Skip to content

Capital Gains Tax Calculator (US) 2027, 2026 & 2025 — Short vs Long-Term, NIIT

Federal tax on 2026 or 2025 short-term and long-term capital gains, or 2027 gains you are planning: 0/15/20% brackets, NIIT, the $3,000 loss deduction, carryovers and a tax-loss harvesting simulator.

United States

2026 brackets, standard deductions and 0/15/20% thresholds: IRS Rev. Proc. 2025-32. Checked 2026-11-14.

Filing status
$
Wages, interest, ordinary dividends, retirement income… Do not include qualified dividends here.
$
$
Prefilled with the 2026 standard deduction for your filing status. Add the extra amount if you are 65+ or blind, or enter your itemized total.
Short-term (held one year or less)
$
$
$
Long-term (held more than one year)
$
$
$

Your 2026 federal capital gains tax

Federal tax caused by your gains
$7,500.00
Income tax + NIIT, with vs without the sales
Long-term gain (0/15/20%)
$50,000.00
Short-term gain (ordinary rates)
$0.00
Taxable income
$133,900.00
Long-term gains and qualified dividends: $0.00 at 0%, $50,000.00 at 15%, $0.00 at 20%.
No net investment income tax: MAGI $150,000.00 is under the $200,000.00 threshold. Your ordinary marginal rate is 24%: that is what short-term gains pay. Total federal income tax $20,670.00 + NIIT $0.00.
State income tax is not included. Most states tax capital gains as ordinary income; a few have no income tax.

Tax-loss harvesting simulator

Enter an unrealized loss you could sell before December 31 to see what it saves on this year's return.

$
Held for
Selling it would save $1,500.00 of federal tax for 2026.
Deadline: for stock and securities traded on an exchange, the IRS uses the trade date, not the settlement date. A sale on Thursday, December 31, 2026 counts in 2026.
Don't buy substantially identical stock or securities within 30 days before or after the sale, including in your IRA or Roth IRA or through your spouse, or it is a wash sale. A similar but not identical fund keeps you invested.

Wash-sale date checker

Enter the date you sold at a loss. Buying substantially identical stock or securities within 30 days before or after that date (including in your IRA or Roth IRA, or by your spouse) makes it a wash sale.

The window runs from Tue, December 1, 2026 to Sat, January 30, 2027. The first day you can buy back without triggering the rule is Sun, January 31, 2027.
Not modelled: collectibles (28% maximum rate), unrecaptured section 1250 gain on real estate (25%), the home sale exclusion, alternative minimum tax, investment interest, and other investment income in the NIIT base.

Sources and rates (checked 2026-11-14)

Every rate and rule in this calculator comes from the official pages below, checked on 2026-11-14.

Investing in Canada? See the Canadian capital gains tax calculator.

This is an estimate, not tax or legal advice. Rules change and your situation may differ: check the official source or ask a tax professional before you file.

Runs entirely in your browser: nothing you type is sent anywhere. Browse all free tools.

Found a problem, or something that could be better? We read every message and we fix things quickly.

This capital gains tax calculator for the US shows the federal tax on stocks, ETFs, funds or crypto you sell in 2026, sold in 2025 or plan to sell in 2027, splitting short-term gains (taxed like wages) from long-term gains (0%, 15% or 20%), adding the 3.8% net investment income tax where it applies, and showing what harvesting a loss before December 31 would save. A single filer with $100,000 of other income who sells shares held over a year for a $50,000 gain pays $7,500 of federal tax on it, all at 15%; selling a $10,000 loss as well saves $1,500.

It nets gains and losses the way Schedule D does, applies the $3,000 limit ($1,500 married filing separately) on losses against other income, carries the rest forward by character, and checks the 30-day wash-sale window. The 2026 brackets and 0/15/20% thresholds come from IRS Rev. Proc. 2025-32; for 2025 they come from Rev. Proc. 2024-40, with the higher 2025 standard deduction the One Big Beautiful Bill Act set, as printed in the 2025 Form 1040 instructions. The 2027 figures, for planning (you file that return in 2028), come from Rev. Proc. 2026-35, published in November 2026. All were checked on November 14, 2026. State income tax is not included, and the result is an estimate, not tax advice. For Canadian rules, see the Canadian capital gains tax calculator.

How to use

  1. Pick the tax year at the top (2026, 2025, or 2027 to plan ahead), choose your filing status and enter your other income (AGI before capital gains) and qualified dividends.
  2. Check the deduction: it is prefilled with that year's standard deduction; change it if you itemize or are 65 or older.
  3. Enter short-term (held one year or less) and long-term gains, losses and any carryover from the year before.
  4. Read the tax caused by your gains, then try the harvesting simulator and the wash-sale date checker before you sell.

Frequently asked questions

What are the 2027, 2026 and 2025 long-term capital gains tax brackets?

For 2027 (Rev. Proc. 2026-35): 0% while taxable income is up to $51,050 (single and married filing separately), $102,100 (married filing jointly) or $68,350 (head of household); 15% up to $563,200 (single), $633,600 (joint), $316,800 (separate) or $598,400 (head of household); 20% above. For 2026: 0% while taxable income is up to $49,450 (single and married filing separately), $98,900 (married filing jointly) or $66,200 (head of household); 15% up to $545,500 (single), $613,700 (joint), $306,850 (separate) or $579,600 (head of household); 20% above. For 2025: 0% up to $48,350, $96,700 or $64,750, and 15% up to $533,400 (single), $600,050 (joint), $300,000 (separate) or $566,700 (head of household). The thresholds apply to total taxable income, with gains stacked on top of your other income.

How are short-term capital gains taxed?

Gains on assets held one year or less are taxed at your ordinary income tax rates, from 10% to 37% in 2025, 2026 and 2027. That is why waiting past the one-year mark can cut the tax on a gain by a third or more.

Who pays the 3.8% net investment income tax?

People whose modified AGI is over $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). The tax is 3.8% of the lesser of net investment income and the amount over the threshold. The thresholds are fixed in law and not adjusted for inflation.

How much capital loss can I deduct?

Losses first offset gains of any size. If losses are larger, up to $3,000 of net loss ($1,500 if married filing separately) reduces your other income each year, and the rest carries forward indefinitely, keeping its short-term or long-term character.

What is the wash-sale rule?

If you sell stock or securities at a loss and within 30 days before or after the sale buy substantially identical stock or securities (including in your IRA or Roth IRA, or your spouse buys them), the loss is disallowed. It is added to the cost of the new shares, except when the purchase was in an IRA, where it is lost.

Does this include state capital gains tax?

No. It calculates federal income tax and NIIT only. Most states tax capital gains as ordinary income at their own rates, and a few have no income tax, so add your state's tax separately.

How the calculator works out your 2027, 2026 or 2025 tax

Short-term and long-term results are netted separately, then against each other, as on Schedule D. A net long-term gain (after any short-term loss) and qualified dividends are taxed at 0%, 15% or 20% according to where they fall when stacked on top of your ordinary taxable income; a net short-term gain is taxed with your ordinary income. The tax shown is your total federal income tax plus NIIT with the sales minus the same without them, so moving into a higher bracket or above the NIIT threshold is included.

2025 has two official sets of figures. Rev. Proc. 2024-40 set the original 2025 brackets, 0/15/20% thresholds and a $15,000 standard deduction ($30,000 joint, $22,500 head of household). The One Big Beautiful Bill Act, signed on July 4, 2025, raised the 2025 standard deduction to $15,750, $31,500 and $23,625 and added a senior deduction of up to $6,000 for 2025 to 2028, but left the brackets and thresholds alone. The calculator uses the law as enacted for 2025 returns, so its 2025 deduction is the higher figure. For 2027 it uses Rev. Proc. 2026-35 (standard deduction $16,600 single, $33,200 joint, $24,925 head of household); those are planning figures until you file in 2028, and a later change in the law could still alter them.

Not modelled: collectibles (28% maximum), unrecaptured section 1250 gain on depreciated real estate (25%), the $250,000 / $500,000 home sale exclusion, AMT, the investment interest deduction, and interest or rents in the NIIT base.

Tax-loss harvesting and the wash-sale rule

Harvesting means selling investments below what you paid to offset gains, or up to $3,000 of other income, and carrying the rest forward. To stay invested, buy something that is not substantially identical (for example a fund tracking a different index) and wait at least 31 days before buying the original back.

For stock traded on an exchange, the IRS counts the trade date, not the settlement date, so a sale on Thursday, December 31, 2026 counts in 2026. Purchases in the 30 days before the sale count for the wash-sale rule too, and so do purchases in your IRA or Roth IRA, where the disallowed loss is lost for good.

US vs Canada capital gains rules

Canada has no short/long-term split: half of every gain is taxed at ordinary rates, a net capital loss can't reduce other income, and the year-end cutoff follows the settlement date. Canada's superficial loss rule is the cousin of the wash-sale rule, with the same 30-day window. Our Canadian capital gains tax calculator applies those rules.