Skip to content

US Capital Gains Tax Calculator 2026

Enter the sale price, your cost basis, other income and filing status to see the 2026 federal tax on the gain, the 0%, 15% or 20% bracket it lands in and any Net Investment Income Tax.

Calculator Details

Federal tax on this gain:$3,000.00See results ↓

What you sold the asset for (amount realized)

What you paid, plus commissions and improvements

Commissions, closing costs and fees paid to sell

Wages, interest and other ordinary income before the standard deduction

Sets the brackets, the 0%/15%/20% thresholds and the NIIT threshold

A main home qualifies for the $250,000 / $500,000 home sale exclusion

More than one year is long-term (0%, 15% or 20%); one year or less is taxed like wages

Your Results

Federal tax on this gain: $3,000.00

Federal tax on this gain

$3,000.00

15% of the gain, Single, 2026

Capital gain

$20,000.00

Sale price − basis − selling costs

Taxable gain

$20,000.00

Long-term: 0%, 15% or 20%

Federal income tax

$3,000.00

NIIT (3.8%)

$0.00

Gain you keep

$17,000.00

Cash after tax and costs

$47,000.00

Rate on your next dollar of gain

15%

Ordinary bracket 22%

Saved by long-term rates

$1,400.00

vs $4,400.00 as ordinary income

State tax not includedMost states tax capital gains as ordinary income; add your state’s tax separately.

On a long-term gain of $20,000.00 you would owe $3,000.00 of federal tax in 2026 (15% of the gain), and keep $17,000.00. State income tax is not included.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Where the gain goes

Where the gain goes

How This Calculator Works

How the US tax on your gain is calculated

tax on gain = tax(taxable income with the gain) − tax(without it) + NIIT

  • Gain: $50,000.00 − $30,000.00 − $0.00 = $20,000.00: taxable gain $20,000.00
  • Taxable income: $85,000.00 − $16,100.00 standard deduction = $68,900.00; with the gain $88,900.00
  • Long-term: the gain stacked above your other income is taxed at 0% to $49,450.00, 15% to $545,500.00 and 20% above: $3,000.00
  • NIIT: 3.8% × the lesser of the gain and modified AGI above $200,000.00 = $0.00
  • Total $3,000.00; you keep $17,000.00 of the gain

Frequently Asked Questions

How much tax is due on a $20,000 long-term gain with $85,000 of other income?

For a single filer in 2026, $3,000. Taxable income before the gain is $68,900 after the $16,100 standard deduction, already above the $49,450 top of the 0% band, so the whole $20,000 is taxed at 15%. Held for a year or less, the same gain would cost $4,400 at the 22% ordinary rate.

Can I sell investments and pay no federal capital gains tax at all?

Yes, if your taxable income including the gain stays at or below $49,450 (single) or $98,900 (married filing jointly) in 2026. With $40,000 of wages, a single filer can realise a $20,000 long-term gain and owe nothing on it, because taxable income including the gain is only $43,900.

Is the holding period counted from the trade date or the settlement date?

From the day after you bought the asset (the trade date) up to and including the day you sold it. You need to hold it for more than one year for the gain to be long term; a sale exactly one year after purchase is still short term.

How is cost basis worked out for shares bought at different times?

Your broker reports cost basis on Form 1099-B, usually first in, first out unless you chose specific lots. Reinvested dividends add to the basis, and commissions on the purchase are part of it. Enter the total basis of the shares you sold; selling fees go in the selling costs field.

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

0%, 15% or 20%, depending on your taxable income including the gain. 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), and the 15% rate up to $545,500 ($613,700 joint, $579,600 head of household); above that the rate is 20% (IRS Rev. Proc. 2025-32).

How are short-term capital gains taxed?

A gain on something you held for one year or less is short-term and is taxed as ordinary income, at the same 10% to 37% bracket rates as wages. Holding an investment for more than one year before selling usually lowers the tax on the gain.

How does the 0% / 15% / 20% stacking work?

Your long-term gain sits on top of your other taxable income (after the $16,100 standard deduction for single filers, $32,200 for joint filers). Only the part of the gain that falls below the 0% threshold is tax-free; the part above it is taxed at 15%, and the part above the 15% threshold at 20%. A large gain can therefore be taxed at two or three rates.

What is the Net Investment Income Tax?

An extra 3.8% on investment income, including capital gains, when your modified adjusted gross income is above $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). It applies to the smaller of your net investment income and the amount of income above the threshold. The thresholds are set in the law and are not adjusted for inflation.

Do I pay tax when I sell my home?

You can exclude up to $250,000 of the gain ($500,000 on a joint return) if you owned the home and lived in it as your main home for at least 2 of the 5 years before the sale, and did not use the exclusion on another home in the previous 2 years (IRS Topic 701). Gain above the exclusion is a long-term capital gain. A loss on selling your home is not deductible.

Can capital losses reduce my tax?

Capital losses first offset capital gains. If losses are larger, up to $3,000 a year ($1,500 if married filing separately) can be deducted from other income, and the rest carries forward to later years with no time limit (IRS Topic 409).

Does this include state tax?

No. Most states tax capital gains as ordinary income at their own rates, a few have no income tax, and some have special rules. Add your state income tax on the gain separately.

US mode: 2026 federal tax only, from the IRS Rev. Proc. 2025-32 rate schedules, standard deduction and capital gain thresholds (0%, 15% and 20% long-term; ordinary rates for short-term gains), the 3.8% Net Investment Income Tax (IRC 1411) and the section 121 home sale exclusion ($250,000 / $500,000 joint). Other income is treated as ordinary income taxed after the standard deduction; tax uses the rate schedules rather than the IRS tax table. It leaves out state income tax, itemized deductions, qualified dividends and other investment income, the 28% rate on collectibles, the 25% rate on depreciation recapture of real estate (section 1250), the alternative minimum tax, partial home sale exclusions and wash sales.

US Capital Gains Tax Calculator 2026: 0%, 15% and 20% Rates

By FindMySum · Last reviewed

This capital gains tax calculator shows the federal tax on selling stocks, ETFs, mutual funds, crypto or an investment property in the United States for 2026. It applies the IRS rules for how long you held the asset, stacks the gain on top of your other taxable income to find which rate applies, and adds the 3.8% Net Investment Income Tax when your income is high enough. All figures are in US dollars.

Short-term or long-term

The holding period decides the rate. An asset held for one year or less produces a short-term gain, which is simply added to your wages and taxed at ordinary income tax rates from 10% to 37%. Held for more than a year, the gain is long term and gets its own lower rates of 0%, 15% or 20%. The difference is large: a 22%-bracket worker pays 15% on a long-term gain, and someone in the 35% bracket still pays only 15% or 20%.

How the 0%, 15% and 20% bands stack

Long-term gains sit on top of ordinary taxable income. For single filers in 2026 the 0% rate covers taxable income up to $49,450, the 15% rate up to $545,500 and 20% above that; for married couples filing jointly the breakpoints are $98,900 and $613,700. If your wages already fill part of the 0% band, only the rest of it is available for the gain, so one sale can be taxed partly at 0% and partly at 15%. The calculator works this out by computing your tax with and without the gain and showing the difference.

On top of that, the Net Investment Income Tax adds 3.8% on investment income once modified adjusted gross income passes $200,000 for a single filer or $250,000 for a joint return. These thresholds are not indexed for inflation.

Worked example: $20,000 gain on shares held two years

With the calculator's starting values a single filer sells shares for $50,000 that cost $30,000, and has $85,000 of other income.

  1. Capital gain: $50,000 − $30,000 = $20,000.
  2. Taxable income without the gain: $85,000 − $16,100 = $68,900, already past the $49,450 limit of the 0% band.
  3. The whole gain is in the 15% band: $20,000 × 15% = $3,000.
  4. Income is below $200,000, so no NIIT. The seller keeps $17,000 of the gain and $47,000 of the proceeds.

Raise the other income to $250,000 and the same gain costs $3,760: $3,000 at 15% plus $760 of NIIT, because the whole gain is above the $200,000 threshold.

Losses, homes and what is not included

Capital losses offset gains first; up to $3,000 of any net loss a year ($1,500 if married filing separately) can come off ordinary income, and the rest carries forward. Selling your main home lets you exclude up to $250,000 of gain ($500,000 for a couple) if you owned and lived in it for two of the last five years. The calculator does not cover the 28% rate on collectibles, the 25% rate on unrecaptured depreciation from rental property, or state income tax, which most states charge on gains as ordinary income. For a sale taxed in Canada, use the Canadian capital gains tax calculator.

Sources

This article explains how the calculator works and is general information, not financial, tax or legal advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy