ChalksumThe right answer, with the work shown.
Tax calculators › Capital gains tax calculator

Capital gains tax calculator

Tax years 2026 and 2027 · Checked Nov 30, 2026 · An estimate, not tax advice. How we calculate

Enter your gain and other income to see the federal, investment income and state tax on a sale of stock, crypto, a rental or other property.

Your sale

Gain (sale price − what you paid) $ Held
Selling your home?
Your other income (salary etc.) $ Tax year
State
Tax on this gain: $3,000
$3,000federal income tax
$0net investment income tax
$0Texas tax
15.0%of the gain
$17,000you keep
long-term rates 2026: 0% up to $49,450 taxable income, 15% up to $545,500, 20% above your taxable income before the sale = $58,900, after = $78,900 federal tax goes from $7,670 to $10,670 = $3,000

How it works

We work out your federal tax with and without the sale; the difference is the tax on the gain. Long-term gains stack on top of your other taxable income and fill the 0%, 15% and 20% bands in turn. State tax is worked the same way with our state engine, treating the gain like other income.

Long-term capital gains brackets

Rate2026 single2026 married jointly2027 single2027 married jointly
0%up to $49,450up to $98,900up to $51,050up to $102,100
15%$49,451 – $545,500$98,901 – $613,700$51,051 – $563,200$102,101 – $633,600
20%over $545,500over $613,700over $563,200over $633,600

Head of household: 0% up to $66,200 (2026) or $68,350 (2027); 15% up to $579,600 or $598,400. Thresholds are taxable income including the gain. Sources: IRS Rev. Proc. 2025-32 and 2026-35.

Questions

How much capital gains tax will I pay?

Long-term gains (assets held more than a year) are taxed at 0%, 15% or 20% depending on your taxable income including the gain. Short-term gains are taxed at your normal income tax rate. Above $200,000 of income ($250,000 married filing jointly) a 3.8% net investment income tax is added, and most states tax gains as ordinary income.

Can I pay 0% capital gains tax?

Yes, on the part of your gain that keeps your taxable income under $49,450 single or $98,900 married filing jointly in 2026. For a single filer that means total income up to about $65,550 before the standard deduction.

Does selling my home count?

Gains on a main home you owned and lived in for 2 of the last 5 years are excluded up to $250,000 ($500,000 married). Only the gain above that is taxed.

Do losses help?

Yes. Losses offset gains first, then up to $3,000 of other income a year, with the rest carried forward. Enter your net gain after losses.

More pay tools

Sources

IRS Rev. Proc. 2025-32 (2026 brackets, deductions, credits) · IRS Rev. Proc. 2026-35 (2027 figures) · IRS Form W-4 · IRS Topic 409: capital gains · IRS Schedule SE (self-employment tax)

Paycheck by state

California · Texas · New York · Florida · Illinois · Pennsylvania · all 50 states