Capital Gains Tax Calculator 2026
Calculate your federal capital gains tax on stocks, real estate, crypto, and other investments. Includes short-term vs long-term rates, NIIT, and state tax estimate.
2026 Long-Term Capital Gains Tax Rates
| Rate | Single | Married Joint | Head of Household |
|---|---|---|---|
| 0% | $0 – $48,350 | $0 – $96,700 | $0 – $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 |
State Capital Gains Tax Rates (Selected)
| State | Cap Gains Rate | Note |
|---|---|---|
| California | Up to 13.3% | Taxed as ordinary income |
| New York | Up to 10.9% | Plus NYC tax if applicable |
| Texas, Florida, Nevada | 0% | No state income tax |
| Washington | 7% | Long-term gains over $262,000 |
| Massachusetts | 5% | Flat rate |
Frequently Asked Questions
What This Capital Gains Tax Calculator Does
This calculator estimates federal and state tax owed when you sell a capital asset — stocks, real estate, mutual funds, cryptocurrency, or other investments. Enter your purchase price (cost basis), sale price, how long you held the asset, and your income, and it computes your short-term or long-term capital gain, the applicable tax rate, and your net after-tax proceeds.
Short-Term vs. Long-Term Capital Gains
The holding period is the most important tax variable for investment sales. Assets held one year or less at sale are short-term gains, taxed at ordinary income rates (10%–37%). Assets held more than one year are long-term gains, taxed at 0%, 15%, or 20% — a permanent tax preference built into the code to incentivize long-term investment.
| 2024 Long-Term Capital Gains Rates (Single) | Income Range |
|---|---|
| 0% | Up to $47,025 |
| 15% | $47,026 – $518,900 |
| 20% | Above $518,900 |
Additionally, the Net Investment Income Tax (NIIT) adds 3.8% on net investment income for single filers with MAGI above $200,000 or married filers above $250,000, making the effective top federal rate on long-term gains 23.8%.
Cost Basis and Why It Matters
Cost basis is what you paid for the asset, adjusted for splits, dividends reinvested, and improvements (for real estate). Your taxable gain is sale price minus cost basis, not sale price alone. Keeping accurate records of purchase prices, dates, and adjustments is essential — especially for assets held across multiple purchases at different prices (share lots).
For stocks bought in multiple lots, you can specify which shares you're selling using "specific identification" — often choosing to sell higher-basis shares first to minimize taxable gains, or selling shares held longest to qualify for long-term treatment.
Real Estate Capital Gains
Primary residence sales qualify for a significant exclusion: up to $250,000 in gain (single) or $500,000 (married filing jointly) is excluded from capital gains tax, provided you've owned and used the home as your primary residence for at least 2 of the last 5 years. The gain above the exclusion is taxed at long-term rates.
Example: Buy for $300,000, sell for $650,000 as a married couple — $350,000 gain minus $500,000 exclusion = $0 taxable gain. Same couple with a $900,000 sale — $600,000 gain minus $500,000 exclusion = $100,000 taxable long-term gain.
Strategies to Reduce Capital Gains Tax
Tax-Loss Harvesting
Selling investments at a loss to offset capital gains. Up to $3,000 in net capital losses per year can offset ordinary income; amounts above $3,000 carry forward to future tax years. Used systematically, tax-loss harvesting can defer significant tax liability.
Holding Longer Than One Year
The simplest strategy: delay a sale that would produce a short-term gain by a few weeks or months to cross the one-year threshold and qualify for the lower long-term rate. On a $10,000 gain for a 24% bracket taxpayer, this changes the rate from 24% to 15% — saving $900.
Qualified Opportunity Zone Investments
Investing capital gains in Qualified Opportunity Zone funds can defer and potentially reduce the original gain while providing tax-free growth on the new investment after 10 years.
Common Mistakes
Forgetting wash-sale rules
If you sell a security at a loss and buy the same or substantially identical security within 30 days before or after the sale, the loss is disallowed for tax purposes. The loss is added to the basis of the replacement shares, deferring (not eliminating) the tax benefit.
Not tracking inherited asset basis
Inherited assets receive a "step-up in basis" to fair market value at the date of death. Selling an inherited stock at current market price immediately after inheriting it typically generates zero capital gain — not the gain from the original purchase price. Many heirs don't know this rule and overpay.
Tips and Best Practices
- Keep all purchase confirmation statements — establishing cost basis years later without records can result in the IRS treating the entire sale price as gain.
- Consider capital gains timing across years — if your income will be significantly lower next year (retirement, sabbatical, parental leave), delaying a sale into that year may reduce the applicable rate.
- Check your state's capital gains treatment — most states tax capital gains as ordinary income (no preferential rate). California, for instance, taxes long-term gains at the same rate as regular income (up to 13.3%).
Related Calculators
- Income Tax Calculator — model total tax including capital gains.
- Stock Return Calculator — estimate returns before calculating taxes.
- Crypto Tax Calculator — cryptocurrency capital gains rules.
- Compound Interest Calculator — model investment growth over time.
Frequently Asked Questions
Do I owe capital gains tax if I reinvest the proceeds?
Yes. The taxable event is the sale, not what you do with the proceeds. Reinvesting immediately into a similar investment doesn't defer the gain. Only specific tax-advantaged structures (like 1031 exchanges for real estate or Opportunity Zone funds) allow deferral through reinvestment.
What's the capital gains rate on cryptocurrency?
The IRS treats cryptocurrency as property, not currency. The same short-term/long-term capital gains rules apply. Each sale, trade, or exchange of crypto is a taxable event — including trading one cryptocurrency for another.
How does capital gain affect my tax bracket for ordinary income?
Long-term capital gains don't push ordinary income into higher brackets, but they do "stack" on top of ordinary income for purposes of determining which capital gains rate applies. If your ordinary income is $30,000 and you have $25,000 in long-term gains, the $25,000 gain is taxed starting from where your ordinary income left off on the rate schedule.
Do I owe capital gains tax on collectibles?
Yes, but at a maximum 28% rate (not 20%) for long-term gains on collectibles — art, antiques, coins, wine, and similar assets. Short-term gains on collectibles are taxed at ordinary income rates.
Key Takeaways
Capital gains taxation rewards patience — simply holding an investment beyond one year can cut the tax rate in half. The cost basis is as important as the sale price in determining your actual gain, making accurate record-keeping a necessary part of investment management. And for real estate, the primary residence exclusion is one of the largest tax benefits available to individuals — potentially shielding hundreds of thousands in appreciation from any tax at all.