Capital Gains Tax Calculator

See how much federal tax you could owe when you sell an investment, and how holding it longer than a year changes the rate.

Updated October 13, 20265 min readBy FinTools USA Editorial TeamChecked against official sourcesHow we review
$
$
$
%
Use 0 for states with no income tax.
Estimated tax on your gains$3,00015.0% of the $20,000 gain, you keep $17,000
Federal tax, long-term gain$3,00015.0% of the long-term gain
Federal tax, short-term gain$0taxed at ordinary rates
Net investment income tax (3.8%)$0income below $200,000
State tax$0
If the long-term gain were short-term$4,400federal tax at ordinary rates, $1,400 more
  • Long-term gains stack on top of your other taxable income, so a larger salary pushes more of the gain into the 15% and 20% rates. This estimate assumes the standard deduction and no other investment income.

Long-term gain by federal rate

0% rate
$0
15% rate
$20,000
20% rate
$0

Where your long-term gain lands

RateGain taxed at this rateTax
0%$0$0
15%$20,000$3,000
20%$0$0
In this article
  1. How the capital gains tax calculator works
  2. 2026 long-term capital gains rates
  3. Worked example: a single filer with a $20,000 long-term gain
  4. Capital losses and netting
  5. What about selling your home?
  6. What each input means
  7. How to read the results
  8. Ways to reduce capital gains tax
  9. Common mistakes
  10. Frequently asked questions
  11. Sources

A capital gain is the profit you make when you sell an asset for more than you paid for it. The asset might be stock, a mutual fund, cryptocurrency, a second home or a business interest. How long you held the asset and how much other income you have determine the tax rate. This calculator estimates the federal tax on your gains, adds the net investment income tax when it applies and lets you include a state rate.

How the capital gains tax calculator works

  1. Classify the gain. According to the IRS, assets held more than one year produce long-term gains and assets held one year or less produce short-term gains. The count starts the day after you acquire the asset.
  2. Short-term gains are added to your ordinary income and taxed at your normal rates.
  3. Long-term gains are stacked on top of your other taxable income. The part that falls in the 0% zone is untaxed, the next part is taxed at 15% and anything above the 15% ceiling is taxed at 20%.
  4. Net investment income tax (NIIT). If your modified adjusted gross income is above $200,000 (single) or $250,000 (married filing jointly), you may owe 3.8% on the lesser of your net investment income or the amount over the threshold.
  5. State tax is added at the percentage you enter.

The tool also shows what the same gain would cost if it were short-term, so you can see the value of holding on past the one-year mark.

2026 long-term capital gains rates

The rate depends on taxable income, including the gain itself:

Filing status 0% rate: taxable income up to 15% rate: taxable income up to 20% rate
Single $49,450 $545,500 Above the 15% ceiling
Married filing jointly $98,900 $613,700 Above the 15% ceiling
Head of household $66,200 $579,600 Above the 15% ceiling

Some gains are taxed at special maximum rates. The IRS lists 28% for collectibles such as coins and art and for the taxable part of gains on qualified small business stock, and 25% for unrecaptured Section 1250 gain from real estate depreciation. The calculator does not model these.

Worked example: a single filer with a $20,000 long-term gain

Other income is $70,000 and the gain is long-term. After the $16,100 standard deduction, ordinary taxable income is $53,900. The 0% ceiling is $49,450, so ordinary income already fills that zone. All $20,000 of the gain lands in the 15% zone:

  • Tax on the gain: $3,000
  • Same gain if short-term: taxed at the ordinary rate, roughly $4,400 at the 22% bracket
  • Federal tax saved by holding past one year: about $1,400

How other income changes the rate

The same $20,000 long-term gain for a single filer with different amounts of other income (standard deduction applied):

Other income Taxable income before the gain Gain taxed at 0% Gain taxed at 15% Gain taxed at 20% Federal tax on the gain
$30,000 $13,900 $20,000 $0 $0 $0
$45,000 $28,900 $20,000 $0 $0 $0
$60,000 $43,900 $5,550 $14,450 $0 $2,168
$100,000 $83,900 $0 $20,000 $0 $3,000
$500,000 $483,900 $0 $20,000 $0 $3,000
$600,000 $583,900 $0 $0 $20,000 $4,000

A person with low income can sell investments and pay no federal tax on the gain, as long as the gain keeps taxable income inside the 0% zone. People with income near a threshold sometimes time sales across years to use it. State taxes and other factors may still apply.

Capital losses and netting

If you sell some investments at a loss, you subtract the loss from your gains first. If your total capital losses are larger than your gains, the IRS lets you deduct up to $3,000 of the excess against other income each year ($1,500 if married filing separately) and carry the rest forward to later years. The calculator assumes you are entering your net short-term and long-term gains.

What about selling your home?

Gain on your main home can be excluded up to $250,000 ($500,000 for a married couple filing jointly) if you owned and lived in it for at least two of the five years before the sale. Gain above the exclusion is taxed as a long-term gain. Read capital gains tax guide for more situations.

What each input means

Filing status. It sets the thresholds for the 0%, 15% and 20% rates and the NIIT.

Other income. Wages, business income, interest and anything else that is not the gain, before deductions. The tool subtracts the standard deduction.

Long-term gain. The sale price minus your cost basis, for assets held more than a year. Cost basis usually includes what you paid plus certain fees.

Short-term gain. The same for assets held a year or less.

State tax rate. Use your state's rate on capital gains. Some states have no income tax and some tax gains as ordinary income.

How to read the results

The head figure is the estimated tax on your gains, followed by the share of the gain you keep. The cards split federal tax on long-term gains, federal tax on short-term gains, NIIT and state tax. The "Where your long-term gain lands" table shows how much of the gain falls into each rate. If the NIIT row shows a number, your income is above the threshold.

Ways to reduce capital gains tax

  • Hold longer than one year when it makes sense for your plan, so the gain is long-term.
  • Harvest losses. Selling losing investments can offset gains. Be aware of the wash-sale rule, which disallows a loss if you buy a substantially identical investment shortly before or after the sale.
  • Use tax-advantaged accounts. Gains inside a 401(k) or IRA are not taxed each year. A Roth IRA can make qualified withdrawals tax-free. See the Roth IRA calculator.
  • Time sales across tax years. If income varies, selling in a lower-income year can use the 0% or 15% zone.
  • Donate appreciated assets. Giving appreciated stock held more than a year to a qualified charity can avoid the gain, if you itemize.
  • Keep records of your cost basis. Reinvested dividends and fees increase your basis and reduce the gain.

Common mistakes

  1. Selling just before the one-year mark. A few days can turn a long-term gain into a short-term one.
  2. Ignoring the NIIT. The extra 3.8% applies on top of the capital gains rate for high earners.
  3. Forgetting state tax. Federal tax is only part of the bill.
  4. Using the wrong cost basis. Reinvested dividends, stock splits and inherited assets have special basis rules.
  5. Assuming the gain itself decides the rate. The gain is stacked on top of other income, and the combined taxable income sets the rate.

Frequently asked questions

What is the capital gains tax rate for 2026?

Long-term gains are taxed at 0%, 15% or 20% depending on taxable income. For a single filer the 0% zone runs up to $49,450 and the 15% zone up to $545,500. Short-term gains are taxed at ordinary rates.

How long do I have to hold an asset for long-term treatment?

More than one year. You count from the day after you acquired it through the day you sell it.

Do I owe capital gains tax if I reinvest the money?

Yes. Selling triggers the tax even if you buy something else with the proceeds. Exceptions exist for certain accounts and transactions, such as selling inside an IRA or a like-kind exchange of real property.

Is cryptocurrency taxed as a capital gain?

Generally, yes. The IRS treats digital assets as property, so selling or exchanging them can produce a capital gain or loss. Keep records of each transaction.

What is the net investment income tax?

It is a 3.8% tax on investment income for taxpayers above certain income levels, $200,000 for single filers and $250,000 for married couples filing jointly. It applies on top of the regular capital gains tax.

Can I deduct a capital loss?

Yes. Losses offset gains, and up to $3,000 of extra loss can offset other income each year, with the remainder carried forward.

Sources

Disclaimer: This page is for educational purposes only and is not financial, tax or legal advice. Figures are estimates based on the assumptions shown. See our full disclaimer and editorial policy.

More free calculators

Related guides