Estimate your capital gains tax obligations accurately with our free tax calculator. Perfect for calculating taxes on stocks, cryptocurrency, real estate, and other investment gains or losses for the 2024-2025 tax year. Get instant results based on the latest IRS tax rates and brackets.
Make smarter investment decisions with accurate tax calculations tailored to your financial profile. Whether you're an individual investor managing your portfolio, a financial advisor helping clients optimize their investments, or a tax professional preparing returns, our capital gains calculator provides the precise estimates you need for effective tax planning.
Use this calculator to:
Updated with latest IRS tax rates for 2024-2025 tax year. While our calculator provides accurate estimates based on current tax law, remember to consult a qualified tax professional for personalized advice tailored to your specific financial situation.
Elevate your financial analysis with our 7-day free trial.
Tax-filing status | 0% tax rate | 15% tax rate | 20% tax rate |
---|---|---|---|
Single | $0 to $48,350 | $48,351 to $533,400 | $533,401 or more |
Married, filing jointly | $0 to $96,700 | $96,701 to $600,050 | $600,051 or more |
Married, filing separately | $0 to $48,350 | $48,351 to $300,000 | $300,001 or more |
Head of Household | $0 to $64,750 | $64,751 to $566,700 | $566,701 or more |
Tax-filing status | 0% tax rate | 15% tax rate | 20% tax rate |
---|---|---|---|
Single | $0 to $47,025 | $47,026 to $518,900 | $518,901 or more |
Married, filing jointly | $0 to $94,050 | $94,051 to $583,750 | $583,751 or more |
Married, filing separately | $0 to $47,025 | $47,026 to $291,850 | $291,851 or more |
Head of Household | $0 to $63,000 | $63,001 to $551,350 | $551,351 or more |
Tax-filing status | 0% tax rate | 15% tax rate | 20% tax rate |
---|---|---|---|
Single | $0 to $44,625 | $44,626 to $492,300 | $492,301 or more |
Married, filing jointly | $0 to $89,250 | $89,251 to $553,850 | $553,851 or more |
Married, filing separately | $0 to $44,625 | $44,626 to $276,900 | $276,901 or more |
Head of Household | $0 to $59,750 | $59,751 to $523,050 | $523,051 or more |
Tax-filing status | 0% tax rate | 15% tax rate | 20% tax rate |
---|---|---|---|
Single | $0 to $41,675 | $41,676 to $459,750 | $459,751 or more |
Married, filing jointly | $0 to $83,350 | $83,351 to $517,200 | $517,201 or more |
Married, filing separately | $0 to $41,675 | $41,676 to $258,600 | $258,601 or more |
Head of Household | $0 to $55,800 | $55,801 to $488,500 | $488,501 or more |
Elevate your financial analysis with our 7-day free trial.
Short-term capital gains are profits from selling assets held for one year or less, taxed at your ordinary income tax rate (which can be up to 37% in 2024-2025). Long-term capital gains come from selling assets held for more than one year and are typically taxed at preferential rates (0%, 15%, or 20% for most taxpayers).
Example: If you bought 100 shares of XYZ Corp for $5,000 and sold them after 6 months for $5,500, your $500 profit would be a short-term capital gain taxed at your ordinary income rate. If you sold those same shares after 18 months for $5,500, your $500 profit would be a long-term capital gain taxed at the lower capital gains rate.
Tax Impact: For a taxpayer in the 24% income tax bracket, the $500 short-term gain would incur $120 in tax, while the same $500 as a long-term gain might only be taxed at 15%, resulting in just $75 in tax—a 37.5% tax savings.
Your capital gains tax rate depends on your total taxable income (including the capital gains themselves) and filing status. For 2024, the long-term capital gains tax rates are:
For 2025, these thresholds are slightly higher due to inflation adjustments. Use our calculator to see the most current rates.
Real-world Example: A single filer with a taxable income of $75,000 in 2024, including a $15,000 long-term capital gain, would pay 15% tax on the capital gain ($2,250) because their total income falls within the 15% capital gains bracket.
Capital losses can be strategically used to offset capital gains and potentially reduce your tax liability through a process known as "tax-loss harvesting":
Strategic Example: If you have $10,000 in long-term capital gains and $15,000 in capital losses in 2024, you can offset all of your gains ($10,000), deduct $3,000 from your ordinary income, and carry forward $2,000 in losses to use in 2025. If you're in the 24% tax bracket, this strategy could save you approximately $3,120 in taxes for 2024.
The Net Investment Income Tax (NIIT) is an additional 3.8% tax on investment income, including capital gains, dividends, and interest. This tax applies to high-income taxpayers whose modified adjusted gross income (MAGI) exceeds specific thresholds:
The NIIT applies to the lesser of:
Calculation Example: A married couple filing jointly with MAGI of $300,000 (exceeding the threshold by $50,000) and $60,000 in long-term capital gains would pay:
Several important exceptions can significantly reduce or eliminate capital gains tax liability:
Primary residence exclusion: You can exclude up to $250,000 ($500,000 for married couples filing jointly) of capital gains on the sale of your primary residence if you've owned and lived in the home for at least 2 of the 5 years before the sale. This exclusion can be used once every two years.
Step-up in basis at death: When you inherit assets, the cost basis is typically "stepped up" to the fair market value at the time of the previous owner's death, potentially eliminating a significant portion of capital gains.
Tax-advantaged accounts: Investments held in qualified retirement accounts like 401(k)s, traditional IRAs, and Roth IRAs aren't subject to capital gains tax. Roth accounts offer particular advantages since qualified withdrawals are completely tax-free.
1031 exchanges for real estate: Investment property owners can defer capital gains by reinvesting proceeds into similar property through a qualified like-kind exchange.
Opportunity Zone investments: Investing capital gains in Qualified Opportunity Zones can defer and potentially reduce capital gains tax liability.
Practical Example: A couple purchased their home in 2000 for $300,000 and sold it in 2024 for $750,000, realizing a $450,000 gain. Because they meet the ownership and use tests, they can exclude the entire gain from their taxable income, saving approximately $67,500 in federal capital gains tax.
Capital gains have several complex interactions with your overall tax picture:
AGI Impact: Capital gains are included in your Adjusted Gross Income (AGI), which can affect many tax calculations, deductions, and credits.
Tax Bracket Calculation: While capital gains are added to your taxable income to determine which capital gains tax bracket applies, the gains themselves are taxed at their own preferential rates, not your ordinary income rates.
Phase-out Effects: Higher AGI from capital gains can cause phase-outs of certain tax benefits like itemized deductions, child tax credits, or education credits.
Alternative Minimum Tax: Large capital gains can potentially trigger Alternative Minimum Tax (AMT) for some taxpayers.
Medicare Premiums: High-income retirees may face higher Medicare Part B and D premiums (IRMAA surcharges) in future years if capital gains push their income above certain thresholds.
Illustration: If a single filer has $80,000 in ordinary taxable income and realizes a $30,000 long-term capital gain, their total taxable income becomes $110,000. The $80,000 is taxed at ordinary income rates based on the regular tax brackets, while the $30,000 gain is taxed at the applicable 15% capital gains rate. However, the $30,000 could push them into a higher income-based threshold for other tax provisions.
Savvy investors can use several IRS-approved strategies to minimize their capital gains tax burden:
Hold investments longer: Qualifying for long-term capital gains rates by holding investments for more than one year can substantially reduce your tax rate.
Tax-loss harvesting: Strategically realize losses to offset gains, particularly near year-end. This can be done by selling underperforming investments while maintaining your overall investment strategy.
Donor-advised funds and charitable giving: Donate appreciated assets directly to charity rather than selling them and donating cash. You'll avoid capital gains tax entirely while potentially receiving a deduction for the full market value.
Gift appreciated assets: Consider gifting appreciated assets to family members in lower tax brackets who might pay less or no tax on the eventual sale.
Timing of income and gains: Spread large capital gains across multiple tax years when possible, or realize gains in years when your other income is lower.
Tax-efficient investment vehicles: Consider exchange-traded funds (ETFs), which are typically more tax-efficient than actively managed mutual funds due to fewer capital gain distributions.
Qualified Small Business Stock: Gains from qualified small business stock held for over 5 years may be eligible for 50%, 75%, or 100% exclusion from federal income tax, up to certain limits.
Tax Planning Example: An investor with $10,000 in unrealized gains in one stock and $8,000 in unrealized losses in another could sell both positions before year-end. This would result in only $2,000 of taxable gains, reducing their tax liability by up to $1,200 (assuming a 15% long-term capital gains rate) compared to selling only the gainful position.
Capital gains tax treatment varies by investment type:
Stocks, bonds, and mutual funds held for more than one year qualify for preferential long-term capital gains rates (0%, 15%, or 20%).
Collectibles (art, antiques, coins, precious metals including gold bullion) are taxed at a maximum 28% rate, regardless of your income level.
Real estate investments may qualify for preferential treatment, including the Section 121 exclusion for primary residences, depreciation recapture at 25% for rental properties, and 1031 exchanges for investment properties.
Cryptocurrency is treated as property by the IRS, with gains taxed according to normal capital gains rules based on holding period.
Small business stock may qualify for special exclusions under Section 1202, potentially excluding up to 100% of gains from taxation if specific requirements are met.
Comparative Example: An investor in the 35% ordinary income tax bracket who sells three different assets, each with a $10,000 gain:
Understanding these distinctions can help you make more tax-efficient investment decisions.
Capital gains are subject to both federal and state taxation in most cases, with significant variation among states:
Several states have no state income tax, including Florida, Texas, Nevada, Washington, Wyoming, Alaska, and South Dakota, meaning you'll only pay federal capital gains tax.
Other states, like California, New Jersey, New York, Oregon, and Minnesota, have relatively high state income taxes and typically tax capital gains at the same rates as ordinary income, which can add 5-13% to your effective capital gains tax rate.
Some states offer special treatment for capital gains, such as partial exclusions or reduced rates in states like Arkansas, Montana, South Carolina, and Wisconsin.
A few states have specific provisions for retirement income, which may affect retirees who are drawing down investments.
State Impact Example: A taxpayer with a $50,000 long-term capital gain might pay only the 15% federal tax ($7,500) if living in Florida, but the same gain in California could incur an additional 9.3% state tax ($4,650), increasing the total tax burden by 62%.
Review your state's specific tax rules or consult with a tax professional to understand how state taxes will affect your investment returns.
Tax laws evolve constantly, and savvy investors should stay informed about recent changes and proposals:
The Inflation Reduction Act of 2022 introduced a 15% corporate minimum tax and increased IRS enforcement funding, which may indirectly impact investment markets.
The SECURE 2.0 Act changed various retirement account rules, affecting how and when you might realize capital gains from retirement investments.
Current tax brackets and rates established by the Tax Cuts and Jobs Act (TCJA) are scheduled to expire after 2025, which could significantly alter capital gains taxation starting in 2026 if Congress doesn't act.
Various proposed changes have been discussed in recent years, including:
While these proposals haven't become law, they highlight the importance of remaining flexible in your investment strategy and consulting regularly with tax professionals.
Planning Consideration: Investors with substantial unrealized gains might consider strategic realization of some gains before any potential tax increases take effect, especially if they're planning to sell assets in the next few years anyway.
Get started with Amsflow now and elevate your financial mastery with our complimentary 7-day trial.
Amsflow is for research and educational purposes only. Not financial advice. Amsflow doesn't recommend specific investments or securities. Market participation involves substantial risk, including potential loss of principal. Past performance doesn't guarantee future results. Amsflow doesn't offer fund/portfolio management services in any jurisdiction. Amsflow is a data platform only. Amsflow doesn't provide investment tips. Be cautious of imposters claiming to be Amsflow.