Most people know about tax loss harvesting — selling losers to offset gains. Far fewer know about its mirror image: tax gain harvesting, where you deliberately sell winners, pay zero federal tax on the gain, and often buy the same investment right back.
It sounds like a loophole. It isn't. It's written directly into the tax code, and in 2026 a married couple can realize up to $98,900 of long-term capital gains at a 0% federal rate — more once you account for the standard deduction. If you're an early retiree, a pre-retiree in a low-income gap year, or anyone whose income temporarily dips, this may be the single most valuable tax move you're not making.
Here's how it works, who it works for, and the three traps that catch people who try it without running the numbers.
The 0% capital gains bracket, explained
Long-term capital gains (assets held more than one year) aren't taxed at your ordinary income rates. They have their own brackets: 0%, 15%, and 20%.
For 2026, the 0% rate applies when your taxable income is at or below:
- $49,450 for single filers
- $98,900 for married filing jointly
Two words in that sentence do a lot of work: taxable income. That's your income after the standard deduction ($16,100 single / $32,200 married filing jointly in 2026). So a retired couple with no other income could realize:
$98,900 + $32,200 = $131,100 of long-term gains in a single year and owe $0 in federal tax on them.
If you're 65 or older, the extra age-based standard deduction and the temporary senior deduction (in effect through 2028) push that headroom even higher.
How the stacking works — this is where people get confused
Capital gains don't get their own separate ledger. They stack on top of your ordinary income, and only the portion of the gain that fits under the 0% threshold gets the 0% rate.
An example makes this concrete. Say you're married filing jointly in 2026:
- Ordinary income (part-time work, interest, an early pension): $50,000
- Standard deduction: −$32,200
- Taxable ordinary income: $17,800
Your 0% capital gains headroom is $98,900 − $17,800 = $81,100. You can realize $81,100 of long-term gains this year and pay nothing on them. Realize $100,000 instead, and the first $81,100 is still taxed at 0% — only the extra $18,900 gets taxed at 15%. Crossing the line doesn't poison the whole gain, just the overage.
The move: sell the winner, buy it right back
Here's what makes gain harvesting so clean compared to loss harvesting: there is no wash sale rule for gains. The wash sale rule only blocks you from claiming a loss when you rebuy within 30 days. When you realize a gain, the IRS is perfectly happy to let you repurchase the identical shares the next minute.
So the mechanics are simple:
- Sell appreciated shares in a taxable brokerage account (held over one year).
- Pay 0% federal tax on the gain, up to your headroom.
- Immediately buy the same fund back.
You now own the same investment with a stepped-up cost basis. When you eventually sell for real — in a higher-income year, at 15% or 20% — the taxable gain is smaller because you already "banked" part of it at 0%.
A couple who harvests $60,000 of gains a year for five low-income years has permanently erased federal tax on $300,000 of appreciation. At 15%, that's $45,000 of tax that simply never happens.
Who this works for
Early retirees. This is the classic FIRE-community play. Between your retirement date and when Social Security, pensions, or RMDs kick in, your ordinary income can be nearly zero. Those gap years are prime harvesting windows.
Pre-retirees with a low-income year. A sabbatical, a layoff with a gap, retiring mid-year at 62 with Social Security deferred — any year your income dips below the thresholds is an opportunity.
Anyone rebalancing anyway. If you need to trim an overweight position, doing it in a 0%-bracket year turns a tax bill into a non-event.
The three traps
Tax gain harvesting is simple in concept but interacts with everything else in your financial life. Three collisions to check before you sell:
1. The ACA subsidy trap
If you buy health insurance on the ACA marketplace — and most early retirees do — harvested gains count as income for subsidy purposes, even though they're taxed at 0%. With the enhanced premium credits expired and the 400%-of-poverty subsidy cliff back for 2026, a large harvest can wipe out thousands of dollars in premium subsidies. A "tax-free" $80,000 gain that costs you $12,000 in lost subsidies is not tax-free. Run both numbers.
2. The Roth conversion competition
Gain harvesting and Roth conversions fight for the same low-income window. Every dollar you convert from a traditional IRA is ordinary income that stacks under your gains — pushing them up and shrinking your 0% headroom dollar for dollar. Neither move is automatically better: conversions save future ordinary-rate tax (up to 22%+ later), harvesting saves future capital-gains tax (15%+). The right split depends on your account balances, your age, and future RMDs. This is a genuinely hard optimization to do on a napkin.
3. State taxes don't play along
The 0% bracket is federal. Most states tax capital gains as ordinary income from the first dollar. A California couple harvesting $80,000 in "tax-free" gains could still owe several thousand dollars to Sacramento. If you live in a no-income-tax state — or plan to move to one — the strategy gets meaningfully more powerful.
Why this is hard to do with a spreadsheet
Notice what you actually need to answer "how much should I harvest this year?":
- Your projected ordinary income for the year, including interest and dividends you can't turn off
- Current-year federal brackets, standard deduction, and your age-based deductions
- Your state's treatment of capital gains
- Your ACA subsidy math, if applicable
- The tradeoff against Roth conversions — which itself depends on decades of future RMDs and Social Security
That's not one calculation. It's a multi-year optimization across your entire retirement plan, and the answer changes every year as thresholds adjust and your income mix shifts.
This is exactly the kind of problem Tally was built for. Its lifetime forecast models real federal brackets, all 50 states' income taxes, capital gains rates, Social Security, and RMDs year by year — so you can set up a what-if scenario ("harvest $60K of gains annually from 62 to 70") next to another ("convert $60K to Roth instead") and see the lifetime tax difference side by side, in actual dollars.
The bottom line
If your income is temporarily low and you hold appreciated assets in a taxable account, the 0% capital gains bracket is close to free money — up to $98,900 of gains for a couple in 2026, before the standard deduction even enters the picture. There's no wash sale rule stopping you from buying right back, and every dollar harvested at 0% is a dollar that never gets taxed at 15% later.
Just don't do it blind. Check the ACA cliff, weigh it against Roth conversions, and remember your state's cut.
Want to see what gain harvesting would do to your lifetime tax bill? Tally builds a year-by-year forecast with real tax brackets in about five minutes — federal, state, FICA, capital gains, all of it. Free for 14 days, no credit card required.
