Tax Optimization

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.

The FIRE Pathway Team7 min read

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

The FIRE Pathway Team

The FIRE Pathway Team creates educational content on financial independence, early retirement, and smart investing. All content is for informational purposes only.

About us

Get FIRE insights in your inbox

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

We respect your privacy. See our privacy policy.

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.