Capital Gains Tax Calculator 2026

Federal 0%, 15% and 20% rates, 25% and 28% gains, losses, the 3.8% NIIT and state tax

Last updated: October 2026 · Sources: IRS Rev. Proc. 2025-32, IRC §1(h), IRC §1411

Filing and income

Wages, business profit, interest and so on, before the standard deduction. It decides which bracket your gain lands in.

The sale

Sale price minus what you paid (your cost basis).

Only used to show the sale price.

More than 12 months is long-term.

Losses cancel gains first. A net loss of up to $3,000 reduces other income.

Total tax on this gain
$6,075.00
Federal + NIIT + state
Gain after tax
$18,925.00
Effective rate on net gain: 24.30%

Tax breakdown

Federal income tax
Long-term, top rate on this gain: 15%
$3,750.00
Net investment income tax (NIIT)
3.8% once income passes $200,000
$0.00
State tax (California)
Taxed as ordinary income
$2,325.00
Total tax on gain$6,075.00
How the brackets apply to you. For single filers in 2026, long-term gain that sits in taxable income up to $49,450 is taxed at 0%, up to $545,500 at 15%, and above that at 20%. Your other income leaves $83,900 of taxable income after the $16,100 standard deduction. With the sale, taxable income is $108,900.

How this calculator works

The formula in plain words

We work out your federal tax twice: once on your other income alone, and once with the sale added. The difference is the tax caused by the sale. Your deduction is used against your other income first, then against the gain. Long-term gain sits on top of everything else, so the part that fits under the 0% limit is tax-free and the rest is taxed at 15% or 20%. Short-term gain is taxed like wages. NIIT and state tax are added on top.

Worked example

A single filer earns $100,000 in wages and sells shares held for two years at a $25,000 gain. After the $16,100 standard deduction their other taxable income is $83,900, already above the $49,450 limit for 0%, so the whole gain is taxed at 15%: $3,750 in federal tax. Their income stays under $200,000, so there is no NIIT. If instead they had no other income and a $60,000 gain, taxable income would be $43,900 and the federal tax would be $0.

Key rules for 2026

  • 0% rate up to $49,450 of taxable income single, $98,900 married filing jointly, $66,200 head of household.
  • 20% rate above $545,500 single, $613,700 joint, $579,600 head of household.
  • Depreciation on real estate is recaptured at up to 25%; collectibles are taxed at up to 28%.
  • Net losses offset up to $3,000 of other income ($1,500 married filing separately); the rest carries forward.
  • NIIT of 3.8% applies above $200,000 single, $250,000 joint or $125,000 married filing separately.
  • Selling your main home? Up to $250,000 of gain ($500,000 joint) is usually excluded, which this calculator does not apply.

State capital gains tax

Most states tax gains as ordinary income at their own rates, using their own deductions. Washington taxes only long-term gains, at 7% above its standard deduction and 9.9% on taxable gains over $1 million. Minnesota adds 1% on net investment income above $1 million. Eight states have no income tax at all and do not tax gains.

Frequently asked questions

What are the 2026 long-term capital gains tax rates?

Long-term gains (assets held more than one year) are taxed at 0%, 15% or 20% depending on your total taxable income. For 2026 the 0% rate applies up to $49,450 of taxable income for single filers ($98,900 married filing jointly, $66,200 head of household), 15% up to $545,500 ($613,700 joint, $579,600 head of household) and 20% above that.

Does my standard deduction reduce tax on capital gains?

Yes. The deduction is used against wages and other ordinary income first, and any amount left over shelters your gains. A single filer with no other income and a $60,000 long-term gain has $43,900 of taxable income after the $16,100 standard deduction. That is all below $49,450, so the federal tax is $0.

How are short-term capital gains taxed?

Gains on assets held one year or less are taxed as ordinary income, at the same 10% to 37% rates as wages. Because they stack on top of your other income, they are usually taxed at your highest bracket.

What are the 25% and 28% capital gains rates?

Two kinds of long-term gain have higher maximum rates. Gain on depreciated real estate, up to the depreciation you claimed (unrecaptured section 1250 gain), is taxed at your ordinary rate but no more than 25%. Gain on collectibles such as art, coins, stamps, antiques and physical gold or silver (including many precious metal funds) is taxed at no more than 28%.

Can capital losses offset my gains?

Yes. Losses first cancel gains. If your losses are bigger than your gains, up to $3,000 of the net loss ($1,500 if married filing separately) reduces your other income this year, and the rest carries forward to future years with no time limit. Buying the same or a substantially identical investment within 30 days before or after the sale disallows the loss.

What is the 3.8% net investment income tax?

It is an extra 3.8% on the smaller of your investment income or the amount your modified AGI exceeds $200,000 single, $250,000 married filing jointly or $125,000 married filing separately. The thresholds are set in law and not adjusted for inflation.

Which states tax capital gains differently?

Most states tax gains as ordinary income. Washington has no income tax but charges 7% on long-term gains above a yearly standard deduction ($278,000 for 2025), plus 2.9% more on Washington capital gains over $1 million, for 9.9% at the top. Real estate is exempt. Minnesota adds a 1% tax on net investment income over $1 million. Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas and Wyoming do not tax capital gains.