Capital Gains Tax Calculator
What is Capital Gains Tax?
Capital gains tax is a tax on the profit you realize when you sell an investment or asset for more than you paid for it. If you sell for less, you realize a capital loss, which may be used to offset gains and reduce your tax burden. The amount of tax you owe depends on three main factors: how much you gained, how long you held the asset, and your income level.
Capital gains tax is separate from income tax on wages, and the rates are generally lower to encourage long-term investing. In the US, the tax code distinguishes between short-term gains (held for one year or less, taxed at ordinary income rates) and long-term gains (held for more than one year, taxed at preferential rates).
US Tax Brackets (2024)
For individuals, the long-term capital gains tax rates for 2024 are:
- 0% if your taxable income is below $48,350 (single), $54,100 (head of household), or $96,700 (married filing jointly)
- 15% if your taxable income is above the 0% threshold up to $533,400 (single), $597,200 (head of household), or $583,750 (married filing jointly)
- 20% for income above the 15% threshold
A 3.8% Net Investment Income Tax (NIIT) may also apply to high-income taxpayers. Short-term gains are taxed at ordinary income tax rates (10%–37%).
Indian Tax Rates (FY 2024-25)
For Indian investors:
- Short-Term Capital Gains (STCG): Gains from assets held for 12 months or less (for equity) are taxed at 15%
- Long-Term Capital Gains (LTCG): Gains from equity mutual funds and stocks held for more than 12 months (or 24 months for real estate) are taxed at 10% (above a ₹1 lakh exemption for equities)
For debt mutual funds held for more than 36 months, LTCG is taxed at 20% with indexation benefits. Our calculator automatically applies the correct rates based on your market selection and holding period.
Real-World Example
Suppose you purchased 100 shares of XYZ stock on January 1, 2020, at $50 per share, for a total investment of $5,000. You sell all 100 shares on January 1, 2024, at $75 per share, for a total sale value of $7,500.
- Total Gain = $7,500 - $5,000 = $2,500
- Holding Period = 4 years (long-term)
- Tax Rate = 15% (assuming income in the $48,350 - $533,400 range)
- Tax Amount = $2,500 × 15% = $375
- After-Tax Return = $2,500 - $375 = $2,125
If you had sold within one year, the $2,500 gain would be taxed at your ordinary income tax rate, which could be as high as 37%, resulting in a tax of $925 instead of $375 — demonstrating why long-term holding is advantageous.
Step-by-Step: How to Use This Calculator
- Select Your Market: Choose between US or Indian market to apply the correct tax rules and brackets.
- Enter Transaction Dates: Input the purchase and sale dates to determine the holding period.
- Enter Prices and Quantity: Input the purchase price per share, sale price per share, and number of shares.
- Review Results: The calculator will show your total gain, applicable tax rate, tax amount, and after-tax return.
- Export Results: Download the detailed tax bracket breakdown as CSV or PDF for your records.
Tax Bracket Breakdown
Our calculator uses a dynamic tax bracket system that applies progressive rates to your gains. For US long-term gains, the applicable brackets (0%, 15%, 20%) are applied in order, meaning only the portion of your gain that falls within each bracket is taxed at that rate. This provides a more accurate tax estimate than a flat rate calculation.
Frequently Asked Questions
- How is capital gains tax calculated?
- Capital gains tax is calculated on the profit from selling an asset. It is the difference between the sale price and the purchase price (cost basis). Short-term gains (held less than 1 year in the US, or less than 12 months in India) are taxed at ordinary income rates. Long-term gains (held more than 1 year in the US, or more than 12 months in India) are taxed at reduced rates based on your income bracket or with fixed rates.
- What is the difference between short-term and long-term capital gains?
- Short-term capital gains apply when you hold an asset for less than one year. These are taxed at your ordinary income tax rate. Long-term capital gains apply when you hold an asset for more than one year and are taxed at preferential rates (0%, 15%, or 20% for US taxpayers; 10% for equity LTCG above a threshold in India). Holding periods differ slightly between US and Indian tax rules.
- What are the capital gains tax rates for 2024?
- For US taxpayers in 2024, long-term capital gains tax rates are 0%, 15%, or 20% depending on income level, plus a 3.8% Net Investment Income Tax (NIIT) for high earners. Short-term gains are taxed at ordinary income rates (10%-37%). For Indian investors, equity LTCG above ₹1 lakh is taxed at 10%, and short-term equity gains (STCG) are taxed at 15%.
- How do I reduce my capital gains tax?
- Strategies to reduce capital gains tax include: holding investments for more than one year to qualify for lower long-term rates, offsetting gains with losses (tax-loss harvesting), investing in tax-advantaged accounts like 401(k) or IRA (US) or PPF/EPF (India), and considering timing of sales to spread gains across years.
- Do I pay tax on every trade?
- No, you only pay capital gains tax when you sell an asset and realize a gain. Simply buying and holding does not trigger a taxable event. However, you should track your cost basis for each purchase so you can accurately calculate gains when you eventually sell. Our calculator helps you estimate potential taxes before you sell.