Capital Gains Tax Calculator
Calculate capital gains tax on your investments including stocks, crypto, real estate, and other assets. Compare short-term vs long-term tax rates and estimate your 2025 or 2026 federal and state tax liability.
Quick Answer
How much capital gains tax will I owe?
For a $5,000 capital gain (sold $15,000 asset purchased for $10,000): If held over 1 year, you pay 15% long-term rate = $750 tax. If held under 1 year, you pay your ordinary income rate (22-37%) = $1,100-$1,850 tax. Holding longer saves you $350-$1,100.
Calculate your exact capital gains tax with our interactive calculator below.
Key Takeaways
- Long-term gains (held 1+ year) taxed at 0%, 15%, or 20% vs short-term at 10-37%
- Holding one extra day past 365 days can save 9-17% in taxes
- Capital losses offset gains dollar-for-dollar, plus $3,000/year against income
- Tax-loss harvesting can reduce your tax bill while maintaining market exposure
- Nine states have no capital gains tax: AK, FL, NV, NH, SD, TN, TX, WA, WY
Tax Projections
Tax Breakdown
Short-Term vs Long-Term Capital Gains
| Classification | Holding Period | Tax Rate | Example |
|---|---|---|---|
| Short-Term | 1 year or less | 10% - 37% (ordinary income rates) |
Buy stock Jan 1, sell Dec 31 same year |
| Long-Term | More than 1 year | 0%, 15%, or 20% (preferential rates) |
Buy stock Jan 1, sell Jan 2+ next year |
Why It Matters
The difference between short-term and long-term capital gains tax rates can be significant. For someone in the 24% tax bracket, holding an investment for just one more day (from 365 to 366 days) could reduce the tax rate from 24% to 15% - a 9 percentage point difference.
The One-Year Rule
To qualify for long-term capital gains treatment, you must hold the asset for more than one year. The holding period starts the day after you purchase the asset and includes the day you sell it. Even one day can make a big difference.
How to Reduce Capital Gains Taxes
Hold Investments Longer
The simplest strategy: hold assets for more than one year to qualify for lower long-term capital gains rates (0%, 15%, or 20%) instead of paying ordinary income tax rates (up to 37%).
Harvest Tax Losses
Offset capital gains by selling losing investments. Capital losses can reduce capital gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 per year against ordinary income and carry forward the rest.
Use Tax-Advantaged Accounts
Invest through IRAs, 401(k)s, or other retirement accounts where gains grow tax-deferred or tax-free. Roth IRAs allow completely tax-free withdrawals in retirement, including all capital gains.
Time Your Sales Strategically
Consider spreading large gains across multiple tax years, selling in lower-income years, or using the 0% long-term capital gains bracket if your income is low enough (under $48,350 single / $96,700 married for 2025).
Capital Gains Tax Strategies: A Comprehensive Guide
Understanding capital gains tax strategies can help you keep more of your investment returns. This guide covers proven approaches to legally minimize your capital gains tax liability, from timing strategies to advanced techniques like Qualified Opportunity Zones.
Understanding Capital Gains Tax: Short-Term vs Long-Term
Capital gains tax applies to the profit you make when selling investments, real estate, or other capital assets. The tax treatment depends critically on your holding period:
- Short-term capital gains apply to assets held for one year or less. These gains are taxed as ordinary income, meaning they're added to your wages, salary, and other income and taxed at your marginal tax rate (10% to 37% for 2026).
- Long-term capital gains apply to assets held for more than one year. These qualify for preferential tax rates of 0%, 15%, or 20%, which are significantly lower than ordinary income rates for most taxpayers.
The difference can be substantial. A taxpayer in the 32% income tax bracket pays 32% on short-term gains but only 15% on long-term gains - a 17 percentage point difference. On a $50,000 gain, that's a tax savings of $8,500 just by holding the investment one additional day past the one-year mark.
2026 Capital Gains Tax Brackets
Long-term capital gains tax rates depend on your taxable income and filing status. Here are the projected 2026 brackets:
| Tax Rate | Single Filers | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | Up to $48,350 | Up to $96,700 | Up to $64,750 |
| 15% | $48,351 - $533,400 | $96,701 - $600,050 | $64,751 - $566,700 |
| 20% | Over $533,400 | Over $600,050 | Over $566,700 |
High earners may also owe an additional 3.8% Net Investment Income Tax on capital gains if their modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). This can bring the effective top rate to 23.8%.
Tax-Loss Harvesting Strategies
Tax-loss harvesting is one of the most powerful strategies to reduce capital gains taxes. It involves strategically selling investments at a loss to offset gains from profitable investments.
How Tax-Loss Harvesting Works
- Identify losing positions: Review your portfolio for investments trading below your purchase price.
- Sell to realize the loss: Execute the sale before year-end to capture the tax benefit for the current year.
- Offset gains: Use the losses to offset capital gains dollar-for-dollar. Losses offset short-term gains first (taxed at higher rates), then long-term gains.
- Reinvest strategically: After waiting 31 days (to avoid the wash sale rule), you can repurchase the same security or immediately buy a similar but not "substantially identical" investment.
The $3,000 Rule
If your capital losses exceed your capital gains, you can deduct up to $3,000 per year ($1,500 if married filing separately) against ordinary income. Unused losses carry forward indefinitely to future tax years.
The IRS disallows a loss deduction if you purchase a "substantially identical" security within 30 days before or after the sale. This includes purchases in your IRA or 401(k). To avoid this, wait 31 days before repurchasing, or buy a similar but different investment (e.g., a different S&P 500 ETF).
Qualified Opportunity Zones
Qualified Opportunity Zones (QOZs) offer significant tax advantages for investors willing to invest capital gains in designated low-income communities. Created by the Tax Cuts and Jobs Act of 2017, this program provides key benefits including deferral of capital gains taxes and tax-free appreciation if held for 10+ years.
State Capital Gains Tax Considerations
Don't forget about state taxes when planning your capital gains strategy. State tax treatment varies significantly:
States with No Capital Gains Tax
Nine states do not tax capital gains: Alaska, Florida, Nevada, New Hampshire*, South Dakota, Tennessee, Texas, Washington, and Wyoming.
*New Hampshire only taxes dividend and interest income, not capital gains.
Highest State Capital Gains Tax Rates (2026)
- California: 13.3% - Highest state income tax, no preferential rate for capital gains
- New Jersey: 10.75% - Applies to income over $1M
- New York: 10.9% - Includes NYC local tax up to 3.876% for city residents
- Oregon: 9.9% - Flat rate on all taxable income
- Minnesota: 9.85% - No preferential capital gains rate
Frequently Asked Questions
Capital gains tax is a tax on the profit made from selling an investment or asset. The tax rate depends on how long you held the asset: short-term capital gains (held 1 year or less) are taxed as ordinary income at rates from 10% to 37%, while long-term capital gains (held more than 1 year) are taxed at preferential rates of 0%, 15%, or 20% depending on your income. This tax applies to stocks, bonds, cryptocurrency, real estate, and other investment assets.
The key difference is the holding period and tax rate. Short-term capital gains are for assets held 1 year or less and are taxed at ordinary income rates (10%-37%). Long-term capital gains are for assets held more than 1 year and are taxed at preferential rates (0%, 15%, or 20%). Long-term rates are typically much lower, which is why many investors try to hold assets for at least one year before selling.
Yes, capital losses can offset capital gains and reduce your tax bill. They reduce capital gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 per year against ordinary income ($1,500 if married filing separately). Excess losses can be carried forward to future tax years indefinitely. This is the basis for "tax-loss harvesting," where investors strategically sell losing positions to offset gains.
Yes, the IRS treats cryptocurrency as property, so capital gains tax applies when you sell crypto for a profit. The same short-term vs long-term rules apply: if you hold crypto for more than one year, you qualify for lower long-term capital gains rates. Even crypto-to-crypto trades are taxable events.
Tax-loss harvesting is a strategy where you sell investments at a loss to offset capital gains from profitable investments. This reduces your overall tax liability. You can then reinvest in similar (but not identical) assets to maintain your portfolio allocation while capturing the tax benefit. Important: Be aware of the wash sale rule, which disallows the loss if you buy a "substantially identical" security within 30 days before or after the sale.
There are several legal strategies to reduce capital gains tax: (1) Hold investments for over one year to qualify for lower long-term rates, (2) Tax-loss harvesting to offset gains by selling losing investments, (3) Use tax-advantaged accounts like 401(k)s, IRAs, and Roth accounts, (4) Time sales strategically in lower-income years when you may qualify for the 0% rate, (5) Donate appreciated assets to charity and avoid capital gains entirely, (6) Use 1031 exchanges for real estate to defer gains by reinvesting in like-kind property.
Yes, nine states have no state income tax and therefore no state capital gains tax: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming. New Hampshire only taxes dividend and interest income, not capital gains. The difference can be substantial - a California resident may pay up to 13.3% more in state taxes on gains compared to a Florida resident.
2025 Tax Rate Information & Sources
Official IRS Tax Information
All tax rates and brackets in this calculator are based on official IRS sources for the 2025 tax year:
Long-Term Capital Gains Rates (2025)
- 0% rate: Up to $48,350 (single) / $96,700 (married filing jointly) / $64,750 (head of household)
- 15% rate: $48,351 - $533,400 (single) / $96,701 - $600,050 (married filing jointly) / $64,751 - $566,700 (head of household)
- 20% rate: Over $533,400 (single) / $600,050 (married filing jointly) / $566,700 (head of household)
Important Tax Disclaimer
This capital gains calculator is for educational and estimation purposes only. It is not tax advice and should not be used as a tool for tax preparation or filing.
Tax laws are complex and vary by individual circumstances. Actual capital gains tax liability may differ based on:
- Other income and deductions
- State and local tax laws
- Special tax situations (wash sales, like-kind exchanges, etc.)
- Net investment income tax (NIIT) for high earners
- Changes in tax law
Always consult a qualified tax professional or CPA for personalized tax advice and accurate tax preparation.
Related Guides
Related Calculators
Last updated: