Tax Optimization7 min read

Tax-Gain Harvesting: The Opposite of Tax-Loss Harvesting (And Why It Works)

Tax-gain harvesting sounds counterintuitive — deliberately realizing capital gains. But in low-income years, it's one of the best moves an early retiree can make.

FIRE Pathway editorsUpdated Editorial standards

The Strategy That Sounds Like a Mistake

Tax-loss harvesting is well-known in investing circles: sell investments at a loss to offset capital gains and reduce your tax bill. It's intuitive — nobody likes paying taxes, and realizing losses is a way to defer them.

Tax-gain harvesting is the mirror image. You deliberately sell investments that have appreciated — realizing capital gains — and then immediately buy them back. At first glance it sounds like the opposite of smart tax planning. Why would you voluntarily trigger a taxable event?

The answer is the 0% long-term capital gains rate, and it's one of the most underused advantages available to early retirees and anyone experiencing a low-income year.

How the 0% Capital Gains Bracket Works

The U.S. tax code taxes long-term capital gains (on assets held more than one year) at different rates than ordinary income. In 2025, the three federal long-term capital gains brackets are 0%, 15%, and 20%.

The 0% rate applies if your taxable income falls below certain thresholds:

  • Single filers: Taxable income up to approximately $48,350
  • Married filing jointly: Taxable income up to approximately $96,700

These thresholds apply to taxable income — your adjusted gross income after subtracting the standard deduction or itemized deductions. That distinction matters.

A single early retiree with $45,000 in portfolio withdrawals and no other income would, after the standard deduction ($15,000 in 2025), have taxable income of roughly $30,000 — well inside the 0% capital gains bracket. Any long-term capital gains they realize during that year are taxed at 0%.

The Mechanics of Tax-Gain Harvesting

The process is straightforward:

  1. Identify the room. Calculate your current taxable income and how much space you have before reaching the 15% capital gains bracket threshold. The difference between your projected taxable income and the 0% bracket limit is your gain-harvesting room.
  1. Identify the right positions. Look at your taxable brokerage account for holdings with the largest unrealized long-term gains. You want lots of appreciation and a holding period longer than one year.
  1. Sell the appreciated position. Realize gains up to your calculated room. These gains land on your tax return at 0%.
  1. Immediately repurchase. Unlike tax-loss harvesting (which has a 30-day wash-sale rule), there is no wash-sale restriction on gains. You can sell a fund and buy it back the same day. Your cost basis resets to the higher price — you've "stepped up" your basis.
  1. Repeat annually. Each year you have low income, you can continue stepping up cost basis in your taxable accounts. Over time, you reduce the embedded gains that would otherwise be taxed if you needed to sell in a higher-income year.

Comparison with Tax-Loss Harvesting

Tax-Loss HarvestingTax-Gain Harvesting
What you're realizingLossesGains
Tax impact in current yearReduces taxesZero taxes (at 0% bracket)
Best use caseHigh-income years with gainsLow-income years with gains
Wash-sale rule?Yes — 30-day restrictionNo restriction
Effect on cost basisLower basis (more future gain)Higher basis (less future gain)

The two strategies serve different goals. Tax-loss harvesting is a deferral tool — you're pushing taxes into the future by reducing basis. Tax-gain harvesting is an elimination tool — you're permanently removing gains from future taxation by recognizing them at 0%.

For a FIRE practitioner, you may use both at different life stages: tax-loss harvesting during high-income accumulation years, tax-gain harvesting during low-income early retirement years.

Who Qualifies and When

Tax-gain harvesting is most valuable for:

Early retirees in the gap years. Between leaving employment and taking Social Security (or Roth conversions at scale), many FIRE retirees have their lowest income years. This is the prime window for gain harvesting.

People taking sabbaticals or career breaks. A year with low earned income, even if temporary, creates gain-harvesting opportunity.

Early in the FIRE journey, lower-income years. If you're in a lower-income phase — early career, part-time work, parental leave — you may have more room in the 0% bracket than you realize.

Couples where one partner has stopped working. A household that was dual-income but has shifted to single-income may find themselves with significant 0% bracket room.

The strategy requires a taxable brokerage account with appreciated positions — typically holding low-cost index funds that have grown over years of consistent contributions. It doesn't apply to IRA or 401(k) holdings (which have their own tax treatment and no capital gains concept).

A Practical Example

Sarah retired at 44 with a $1.2 million portfolio and annual expenses of $48,000. Her income in early retirement comes entirely from portfolio withdrawals — a mix of interest, dividends, and selling shares as needed.

In 2025, Sarah's taxable income (after the standard deduction) projects to $28,000. The 0% bracket limit for single filers is approximately $48,350. She has roughly $20,000 of headroom.

Sarah has a Vanguard index fund position in her taxable account that she bought years ago at an average cost of $32/share. It's now worth $55/share. She holds 1,000 shares — total gain of $23,000.

She sells enough shares to realize $20,000 in gains (staying within her 0% bracket room), then immediately repurchases the same fund. Her cost basis on those shares steps up from $32 to $55. Federal taxes on the $20,000 gain: $0.

If she had instead held those shares and sold them years later in a higher-income year, that same $20,000 gain would be taxed at 15% — a $3,000 bill she's just permanently avoided.

Complications to Watch For

State taxes. Many states don't have a 0% capital gains rate and tax gains as ordinary income. Depending on your state, tax-gain harvesting may still result in a state tax bill even when the federal bill is $0. Run the state numbers before executing.

ACA premium tax credits. If you're purchasing health insurance through the ACA marketplace, your premium tax credits are based on your Modified Adjusted Gross Income (MAGI). Realized capital gains increase MAGI. Harvesting too many gains can reduce or eliminate your subsidy, potentially costing more than you save in taxes. Model the ACA interaction carefully before harvesting.

Social Security and IRMAA. For retirees receiving Social Security, realized gains can affect how much of your benefit is taxable. For Medicare recipients, higher income can trigger IRMAA surcharges on Part B and Part D premiums. These are relevant for older early retirees approaching Medicare eligibility.

The Roth conversion tradeoff. If you're also doing Roth conversions in the same year — which is common for FIRE practitioners — both the conversions and the harvested gains compete for the same low-income bracket space. You can't do $20,000 in gain harvesting and $20,000 in Roth conversions simultaneously at 0% if the combined amount exceeds the 0% bracket. Prioritize based on which permanently removes more future taxes.

Building a Low-Income Year Calendar

The most systematic approach is to map out your expected income over the first decade of early retirement and identify the years where gain harvesting makes the most sense. Years with lower Roth conversions, lower dividends, or part-time income below the threshold offer the best harvesting windows.

This kind of multi-year tax planning, combined with Roth conversion laddering, is where early retirees can systematically reduce lifetime tax burden well below what a working-years tax bracket would suggest. The low-income years of early retirement aren't a problem to work around — they're an opportunity to optimize aggressively.


This article is for educational purposes only and does not constitute financial or tax advice. Tax laws change frequently and individual circumstances vary significantly. Consult a qualified tax professional before implementing any tax strategy.

Topics

tax-gain-harvestingcapital-gains0-percent-capital-gainstax-loss-harvestingtaxable-brokeragetax-optimizationearly-retirement-taxeslow-income-years

Frequently asked.

§ FAQ
01

What is tax-gain harvesting?

Tax-gain harvesting is the deliberate realization of capital gains during low-income years to take advantage of the 0% long-term capital gains tax bracket. You sell appreciated investments, pay zero federal tax on the gain, then immediately repurchase at the new higher cost basis. Future sales will have smaller gains (lower future tax), and you've permanently reset your tax basis higher for free.

02

How does the 0% capital gains bracket work?

In 2026, long-term capital gains are taxed at 0% when your taxable income (after standard deduction) is under ~$47,000 for single filers or ~$94,000 for married filing jointly. For a married couple with no other income, they can realize up to $94,000 in gains every year completely tax-free at the federal level. State taxes may still apply.

03

Does the wash-sale rule apply to tax-gain harvesting?

No. The wash-sale rule (IRS §1091) only disallows losses, not gains. You can sell a security at a gain and immediately repurchase the same security — the gain is still realized and taxed at that moment. This makes tax-gain harvesting mechanically simpler than tax-loss harvesting: no 30-day wait, no 'substantially identical' workarounds needed.

04

When should I do tax-gain harvesting?

In any year when your taxable income falls within the 0% LTCG bracket. For early retirees this typically happens in the first 5-10 years of retirement when earned income is gone but Social Security hasn't started. Tax-gain harvesting combines naturally with Roth conversions in the same years — fill the ordinary-income buckets with conversions and the LTCG bucket with gain realizations.

05

How much can I save with tax-gain harvesting?

For a married couple realizing $50,000 of long-term gains in a 0% year: saves $7,500 (15% LTCG rate that would otherwise apply). Over 10 early-retirement years, potentially $50,000-$150,000+ in cumulative tax savings depending on portfolio size. Combined with Roth conversions, the total tax savings during the early-retirement 'gap years' can be substantial.

06

Does tax-gain harvesting work with ACA subsidies?

It can conflict. Realized LTCG count toward MAGI for ACA subsidy calculations. Large gain harvests can push you above the 400% federal poverty level threshold and eliminate premium tax credits — costing $5,000-$15,000 in healthcare subsidies. Most early retirees doing both carefully size gain harvests to stay within subsidy-eligible income ranges.

07

What's the difference between tax-gain and tax-loss harvesting?

Tax-loss harvesting is realizing losses to offset gains or up to $3K/year of ordinary income — valuable in high-income years. Tax-gain harvesting is realizing gains in 0%-bracket years to reset basis higher for free — valuable in low-income years. They're opposite strategies used in opposite contexts, both in taxable brokerage accounts only.

§ Editorial provenance

FIRE Pathway editors · The FIRE Pathway

Published under our editorial brand by The Top Drawer, an independent publisher. Articles are anchored to primary research; every load-bearing claim cites a source.

Editorial standardsMethodologyReport a correction

Subscribe

FIRE insights, monthly.

One email per month. No spam, no sales pitches. Unsubscribe anytime.

We respect your privacy. Privacy policy.

Financial disclaimer

This article is for educational purposes only and does not constitute financial, tax, or investment advice. All financial decisions involve risk. Past performance is not indicative of future results. Please consult a qualified financial professional before making investment or retirement planning decisions. Read our full disclaimer.