Tax-Gain Harvesting for Early Retirees: Paying 0% on Capital Gains
Tax-loss harvesting gets all the press. Tax-gain harvesting is quieter — and for early retirees in their first decade without a paycheck, it can be far more valuable. The strategy: deliberately sell appreciated positions in your taxable brokerage account during low-income years, realize long-term capital gains, and pay 0% federal tax on them.
The 0% rate is not a loophole or a planning trick. It's a statutory rate in the U.S. tax code that applies to long-term capital gains for taxpayers below certain income thresholds. Early retirees — after stopping work and before Social Security or RMDs begin — are uniquely positioned to land in that window for a decade or more.
2026 Long-Term Capital Gains Thresholds
Long-term capital gains rates apply to assets held longer than one year. The rate is determined by your taxable income — ordinary income plus capital gains, minus deductions.1
| Rate | Single — taxable income | Married filing jointly |
|---|---|---|
| 0% | $0 – $49,450 | $0 – $98,900 |
| 15% | $49,451 – $545,500 | $98,901 – $613,350 |
| 20% | Above $545,500 | Above $613,350 |
The 2026 standard deduction is $16,100 (single) or $32,200 (married filing jointly).2 This means your AGI can be up to $49,450 + $16,100 = $65,550 (single) or $98,900 + $32,200 = $131,100 (MFJ) before a single dollar of LTCG is taxed — assuming the entire AGI is capital gains with no ordinary income.
In practice, you'll have some ordinary income (dividends, interest, perhaps part-time work). Ordinary income fills the bracket first, then capital gains are stacked on top. The calculator below handles this stacking precisely.
0% Capital Gains Harvesting Calculator
Enter your expected ordinary income for the year and your available unrealized long-term gains. The calculator shows how much you can harvest at 0%, and flags the ACA subsidy cliff if you're on a marketplace plan.
How ordinary income fills the bracket first
The IRS stacks income in a specific order: ordinary income (wages, interest, taxable distributions) fills the brackets first. Capital gains are then stacked on top. This matters because your taxable ordinary income determines how much 0% LTCG room remains.
Example: Single filer with $25,000 in ordinary income:
- Taxable ordinary income: $25,000 − $16,100 (std ded) = $8,900
- 0% LTCG headroom: $49,450 − $8,900 = $40,550
- Harvest up to $40,550 of long-term gains at 0% federal tax
If that same person had $50,000 in ordinary income, their taxable ordinary income ($33,900) still leaves $49,450 − $33,900 = $15,550 of 0% room. Even with meaningful income, the window can be substantial.
The ACA cliff: the most important constraint for early retirees
Capital gains count as MAGI (modified adjusted gross income) for ACA purposes — the same income base that determines your eligibility for premium tax credits.3 If you're on a marketplace plan and receiving a subsidy, harvesting capital gains can push your MAGI above the cliff where you lose the credit entirely.
The planning implication: if you're on ACA with a subsidy, the ACA cliff often becomes a tighter constraint than the 0% LTCG threshold. A single retiree with $30,000 in ordinary income and a subsidy can harvest at most $33,840 of gains ($63,840 cliff − $30,000 income) — regardless of the $40,550 0% headroom they'd otherwise have.
In years when you're between ACA and Medicare (no subsidy, or deliberately managing income near the cliff), you can access the full 0% window. Coordinate your Roth conversion ladder, HSA contributions, and harvesting to stay in the optimal band simultaneously.
How to execute a harvest
The mechanics are simpler than the planning:
- Identify positions. In your taxable brokerage account, look for lots held longer than one year with unrealized gains. Most brokerages show lot-level detail in the tax center.
- Sell. Sell the specific lots you want to harvest. Use specific lot identification (not FIFO or average cost) so you control exactly which lots are sold.
- Rebuy (optional). If you want to maintain your allocation, rebuy the same security immediately — there is no wash-sale rule for gains (only for losses). Your cost basis resets to the purchase price of the new lot. Future gains on that position start from zero.
- Track MAGI. Capital gains appear in the year they're realized. Update your year-end MAGI estimate to account for the harvest before executing, especially if ACA subsidies are in play.
What happens to the cost basis
When you sell a position with a gain and rebuy at the current price, your new cost basis is the current market value. This is the lasting benefit of tax-gain harvesting: you permanently reset the gain clock. If the market rises further and you later sell at 15%, you're now only taxed on the appreciation from the new, higher basis — not from your original cost decades ago.
For a position bought at $50/share worth $200/share today, harvesting at 0% and rebuying resets the basis to $200. Future gains are only on appreciation above $200. If you held the original lot and sold at $250 in a higher-income year, you'd pay 15% on $200 of gain per share. After the harvest, you'd only pay 15% on $50 per share.
State taxes: check before you harvest
The 0% rate is a federal rate. Most states tax capital gains as ordinary income. California taxes LTCG as regular income (up to 13.3%); Massachusetts has a 5% rate. If you're in a high-tax state, the state tax on harvested gains may eliminate much of the federal benefit. Nine states have no income tax at all (including Florida, Texas, Nevada, Washington). Factor in your state rate before executing large harvests.
Coordinating with Roth conversions
Both Roth conversions and tax-gain harvesting compete for the same low-income bracket space. Roth conversions count as ordinary income and fill the bracket first; capital gains stack on top. If you're executing both strategies in the same year:
- Convert Roth first (since ordinary income rate applies, and it affects the LTCG stack)
- After the conversion, check how much 0% LTCG room remains
- Harvest up to that amount — don't let the ACA cliff or 0% threshold get crossed by trying to do both at max
The interaction between Roth conversions and 0% LTCG harvesting is one of the more complex coordination problems in early retirement planning. The four constraints that apply simultaneously — ordinary income bracket, 0% LTCG limit, ACA MAGI cliff, and IRMAA lookback — require year-level modeling to optimize. See our tax-efficient withdrawal order guide and Roth conversion ladder calculator.
Related guides and calculators
- Tax-Efficient Withdrawal Order — bracket headroom calculator + four-cliff framework
- Roth Conversion Ladder Calculator — ACA MAGI coordination with conversions
- Healthcare Before 65: ACA Marketplace, MAGI, and Subsidy Coordination
- HSA Strategy — HSA contributions reduce AGI, creating more harvest headroom
- Safe Withdrawal Rate for 30–50 Year Retirements
- Social Security Timing — zero-income years and the harvesting window
- Match with an early retirement specialist
Get your harvesting strategy reviewed
Coordinating tax-gain harvesting with Roth conversions, ACA subsidies, and a 30–50 year withdrawal plan requires year-by-year modeling. A fee-only advisor who specializes in early retirement can build that model for your situation — determining exactly how much to harvest each year across the entire sequence. No commissions. Free match.
Sources
- IRS Topic No. 409 — Capital Gains and Losses. Long-term capital gains rates (0%, 15%, 20%) and the income stacking rules (ordinary income fills brackets first, then LTCG is stacked on top). IRS.gov, current as of 2026.
- IRS Revenue Procedure 2025-32. 2026 inflation adjustments: 0% LTCG threshold $49,450 (single) / $98,900 (MFJ); standard deduction $16,100 (single) / $32,200 (MFJ). Published October 2025.
- HealthCare.gov — Modified Adjusted Gross Income (MAGI). Capital gains and dividends are included in MAGI for ACA premium tax credit eligibility. 400% FPL MAGI thresholds determine subsidy eligibility.
- Tax Foundation — 2026 Federal Tax Brackets and Capital Gains Rates. Cross-reference for 2026 LTCG brackets: 0% to $49,450 (single) / $98,900 (MFJ); 15% to $545,500 (single) / $613,350 (MFJ). Published 2025.
- IRS Publication 550 — Investment Income and Expenses. Basis rules for sale and repurchase: no wash-sale restriction on realized gains (wash-sale applies only to losses). Specific identification of lots permitted.
Tax values verified May 2026 against IRS Rev. Proc. 2025-32 and Tax Foundation 2026 brackets. ACA MAGI thresholds approximate 400% FPL for 2026; actual amounts vary by household size. State capital gains treatment varies — verify your state's rules separately.