Capital gains tax calculator 2026
Work out the federal tax on a gain from selling stocks, funds, crypto or other investments, and see what holding for more than a year saves.
Updated for the 2026 tax year
What you sold for, after selling costs
Your cost basis, including buying costs
Wages and other income, before deductions
Federal tax on your long-term gain, 2026
$3,000
15% of your $20,000 gain. You keep $17,000 of it.
- Gain
- $20,000
- $20,000 taxed at 15%
- $3,000
- Total federal tax on the gain
- $3,000
Held for a year or less, the same gain would cost $4,400, which is $1,400 more.
Federal tax only, using the standard deduction. It leaves out state taxes, losses carried from other years, the higher rates on collectibles and on depreciation from rental property, and the exclusion for selling your main home.
Tax on a $20,000 gain by income, 2026
For a single filer taking the standard deduction. Other income is wages before deductions.
| Other income | Held more than a year | Held a year or less | Saving |
|---|---|---|---|
| $40,000 | $0 | $2,400 | $2,400 |
| $60,000 | $2,168 | $3,750 | $1,583 |
| $80,000 | $3,000 | $4,400 | $1,400 |
| $120,000 | $3,000 | $4,764 | $1,764 |
| $200,000 | $3,760 | $5,730 | $1,970 |
| $400,000 | $3,760 | $7,760 | $4,000 |
Long-term capital gains rates, 2026
A gain on something you held for more than a year is long-term. It is taxed at 0%, 15% or 20%, depending on your taxable income including the gain. The gain sits on top of your other income, so part of it can fall in one band and part in the next. Qualified dividends use the same rates.
| Filing status | 0% up to | 15% up to | 20% above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly | $98,900 | $613,700 | $613,700 |
| Married filing separately | $49,450 | $306,850 | $306,850 |
| Head of household | $66,200 | $579,600 | $579,600 |
These are amounts of taxable income, after the standard deduction ($16,100 single, $32,200 married filing jointly). A single filer can therefore have up to $65,550 of total income, gain included, and pay no federal tax on a long-term gain.
Short-term gains
A gain on something held for a year or less is short-term and is taxed as ordinary income, at rates from 10% to 37%. On an $80,000 income, a $20,000 gain costs $4,400 if short-term and $3,000 if long-term.
Net investment income tax
People with income over $200,000 ($250,000 for a joint return, $125,000 if married filing separately) pay an extra 3.8% on investment income, including capital gains. It applies to the smaller of your investment income and your income over the threshold. The thresholds do not rise with inflation. This calculator bases it on the income you enter plus the gain.
What this calculator leaves out
State income taxes on gains. Losses from other sales or earlier years, which reduce your gain (a net loss can also offset up to $3,000 of other income a year). The 28% top rate on collectibles and the 25% rate on depreciation taken on rental property. The exclusion of up to $250,000 of gain ($500,000 for a married couple filing jointly) on selling your main home. Gains inside a 401(k) or an individual retirement account are not taxed as capital gains at all.
Frequently asked questions
What is the capital gains tax rate for 2026?
Long-term gains are taxed at 0%, 15% or 20%. For a single filer the 0% rate applies up to $49,450 of taxable income and the 20% rate above $545,500. Short-term gains are taxed as ordinary income.
How long do I need to hold an asset for the long-term rate?
More than one year. A sale on or before the first anniversary of the purchase is short-term.
How much tax on a $20,000 gain?
For a single filer with $80,000 of other income, $3,000 if it is long-term (15%) or $4,400 if it is short-term.
Can I pay 0% on capital gains?
Yes, if your taxable income including the gain stays within the 0% band: $49,450 for a single filer and $98,900 for a married couple filing jointly in 2026.
Does this cover crypto?
Yes. The IRS treats cryptocurrency as property, so selling it for a gain is taxed in the same way as selling stocks.
Does this include state tax?
No. Most states tax capital gains as ordinary income on top of the federal tax, and a few have no income tax.
Related calculators
- 401(k) What your 401(k) could reach by retirement, with your employer match.
- IRA How much you can put into a traditional or Roth IRA at your income, and what it could grow to.
- Roth versus traditional Which 401(k) or IRA contribution leaves you more after tax, and the tax rate at which they break even.
- Paycheck Take-home pay each payday after federal income tax, Social Security and Medicare.
- Hourly paycheck Pay after federal taxes from an hourly wage, with overtime at time and a half.
- Federal income tax Federal income tax by filing status, with your tax in each bracket and your marginal rate.