Keep more
How to pay 0% tax on capital gains
In 2025 a married couple can have up to $96,700 of taxable income and pay nothing on long-term gains. How to use the 0% rate on purpose, every year.
Updated October 2026 · 5 min read

The short answer
Long-term capital gains are taxed at 0% while your taxable income stays under $48,350 single or $96,700 married filing jointly (2025). If you have room under that line, you can sell a winner, buy it right back, and owe nothing. Your new cost is higher, so future tax is lower.
- The line is taxable income, after the standard deduction.
- The wash-sale rule only blocks losses. It doesn't apply to gains.
- Your gains count toward the line too, so only the room left is 0%.
Most people think of capital gains tax as something that happens to them when they sell. In a lower-income year, it can be a tool instead. The 0% rate is not a loophole. It's the first step of the gains rate table, and it goes unused every year.
How the 0% rate works
Gains held more than a year stack on top of your other income. Whatever part of the gain fits under the line is taxed at 0%. Only the part above the line pays 15%.
Worked example
A married couple, 2025
Gain harvesting: reset your cost for free
Say you bought a fund for $20,000 and it's now worth $48,200. If you sell and buy it back the same day, you lock in the $28,200 gain at 0%. Your cost is now $48,200, not $20,000.
Nothing about your investment changed. But when you sell years from now, at a higher rate, $28,200 less of it is gain. The wash-sale rule doesn't stop this, because that rule only applies when you sell at a loss.
- 01Estimate this year's taxable income: income minus the standard deduction (or your itemized total).
- 02Subtract it from the 0% line for your filing status. That's your room.
- 03In a taxable brokerage account, sell long-term winners up to that room. Leave some cushion.
- 04Buy back the same thing, or something close, right away.
- 05Keep the trade confirms. The new cost shows on next year's 1099-B.
When it works best
- Early retirement, before Social Security and required withdrawals start.
- A gap year, a sabbatical, or a year between jobs.
- A year with a big business loss or a large deduction.
- Every year, for couples whose taxable income sits well under $96,700.
What can go wrong
The gain is 0% federal, but it still raises your income. That can cost you somewhere else.
- Most states tax capital gains like any other income.
- More income can shrink a marketplace health insurance credit.
- It can make more of your Social Security taxable. Our guide on your real tax rate shows how that stacks.
- Taking it too far pushes ordinary income past the line too. Leave a cushion for a late dividend or year-end fund payout.
- Gains held one year or less are short-term. Those are taxed like wages, never at 0%.
Losses first, or gains first?
If you also have losses, they cancel gains before any rate applies. In a 0% year, harvesting losses wastes them, since the gains they'd cancel were already free. Save losses for a year when gains cost 15% or more.
Know your room before you sell.
Send last year's return and this year's documents. We build your return and show how much income is left before the 0% rate ends. Free for a W-2. $99 with a business, rental, investment sale or K-1.
Start my return →