Capital gains tax calculator: how much can you realize at 0%?
The myth that costs people free money: "capital gains are always taxed." They're not. There's a 0% federal long-term capital-gains bracket — for 2026, gains that keep your taxable income under $49,450 (single) or $98,900 (joint) are taxed at zero. See how much you can realize tax-free and the tax on any gain.
Your 2026 gains
Your 0% room
Tax on the gain you entered
Worked examples
Single freelancer sells index funds, all at 0%
Long-term gains you can realize at 0% (2026): $22,750
With $26,700 of taxable income before gains, you can realize about $22,750 in long-term gains at 0% federal tax this year — of your $18,500 gain, $18,500 is tax-free.
✓ Capital gains aren't always taxed — there's a 0% bracket. You can realize about $22,750 in long-term gains at 0% federal tax and reset your cost basis for free (no wash-sale rule on gains — sell and rebuy the same day).
Your 0% room
- Ordinary income before gains: $42,800
- − 2026 standard deduction (SINGLE): −$16,100
- = Taxable income before gains: $26,700
- 2026 0% bracket ceiling: $49,450
- Long-term gain you can realize at 0%: $22,750
Tax on the gain you entered
- Long-term gain realized: $18,500
- Taxed at 0%: $18,500
- Estimated federal tax on the gain: $0 (0.0%)
- You keep: $18,500
Married couple, $145k gain, entirely in the 15% band
Tax on the gain you entered: $21,750
Your income is above the 0% capital-gains threshold, so long-term gains are taxed at 15% (20% at the very top) — about $21,750 on your $145,000 gain (15.0%).
✓ Even above the 0% bracket, long-term gains are taxed far below ordinary rates — 15% here (vs up to 37% on ordinary income). Holding more than a year is what unlocks it.
Your 0% room
- Ordinary income before gains: $168,000
- − 2026 standard deduction (MFJ): −$32,200
- = Taxable income before gains: $135,800
- 2026 0% bracket ceiling: $98,900
- Long-term gain you can realize at 0%: $0
Tax on the gain you entered
- Long-term gain realized: $145,000
- Taxed at 0%: $0
- Taxed at 15%: $145,000 → $21,750
- Estimated federal tax on the gain: $21,750 (15.0%)
- You keep: $123,250
Head of household whose gain straddles the 0% ceiling
Long-term gains you can realize at 0% (2026): $15,850
With $50,350 of taxable income before gains, you can realize about $15,850 in long-term gains at 0% federal tax this year — of your $32,000 gain, $15,850 is tax-free.
✓ Capital gains aren't always taxed — there's a 0% bracket. You can realize about $15,850 in long-term gains at 0% federal tax and reset your cost basis for free (no wash-sale rule on gains — sell and rebuy the same day).
Your 0% room
- Ordinary income before gains: $74,500
- − 2026 standard deduction (HOH): −$24,150
- = Taxable income before gains: $50,350
- 2026 0% bracket ceiling: $66,200
- Long-term gain you can realize at 0%: $15,850
Tax on the gain you entered
- Long-term gain realized: $32,000
- Taxed at 0%: $15,850
- Taxed at 15%: $16,150 → $2,423
- Estimated federal tax on the gain: $2,423 (7.6%)
- You keep: $29,578
Examples are recomputed whenever the underlying rates or data change; the date above is the last recompute.
How the 0% bracket works & data sources
Long-term capital gains (assets held more than a year) and qualified dividends get their own preferential rates: 0%, 15%, or 20%. They stack on top of your ordinary taxable income. For 2026 the 0% rate applies while your total taxable income stays at or below $49,450 (single / MFS), $98,900 (married filing jointly), or $66,200 (head of household); the 15% rate runs up to $545,500 / $613,700 / $579,600, and 20% applies above that. Because it's measured on taxable income, your 2026 standard deduction — $16,100 single, $32,200 joint, $24,150 head of household — first reduces the ordinary income that fills the bracket, which is why a modest earner can realize a surprising amount tax-free. Deliberately realizing 0%-bracket gains to reset your cost basis is tax-gain harvesting, and unlike loss harvesting there's no wash-sale rule on gains — you can sell and rebuy the same day. A single gain can straddle 0% and 15%. This is a federal estimate; state tax may still apply.
Sources: IRS — Rev. Proc. 2025-32 (2026 rates & deduction) · IRS — Topic 409 (capital gains) · IRS — Pub. 550 (wash sales)
Frequently asked questions
Are capital gains really tax-free sometimes?
Federally, yes — long-term gains inside the 0% bracket owe no federal tax. It's one of the most under-used breaks in the code. State tax may still apply.
What's tax-gain harvesting?
Realizing long-term gains that fall in the 0% bracket on purpose, to raise your cost basis for free. Later sales are then measured from the higher basis, so you owe less. There's no wash-sale rule on gains, so you can rebuy immediately.
What about short-term gains?
Assets held a year or less are short-term and taxed at your ordinary income rate — the 0/15/20% rates don't apply. Holding past the one-year mark is what unlocks the preferential rates.
Is a 0% federal rate truly free?
The gain itself is federally untaxed, but it still raises your income for the year — which can affect ACA subsidies, Medicare IRMAA, how much of your Social Security is taxed, and state tax. Check those if you're near any threshold.