Skip to main content
Tax-Loss Harvesting Basics

TLH vs Tax-Gain Harvesting

Pomegra Learn

TLH vs Tax-Gain Harvesting

Tax-loss harvesting is the default strategy, but in years with low income (retirement transition, sabbatical, business downturn), tax-gain harvesting reverses the logic: realize GAINS at the 0% long-term capital gains rate instead of avoiding them.

Key takeaways

  • Long-term capital gains are taxed at 0%, 15%, or 20%, depending on ordinary income. High earners always face 20% (or 23.8% with NIIT). Low-income earners can realize gains at 0%.
  • The 2024 long-term capital gains brackets are: 0% (income under $47,025 single, $94,050 married), 15% (income up to $518,900 single, $583,750 married), 20% (above).
  • Tax-gain harvesting is ideal in years with exceptionally low income: bridge years between jobs, early retirement, sabbaticals, or years with large business losses.
  • Harvesting $50,000 of gains at 0% in a low-income year, then avoiding gains in high-income years, can save $7,500–$15,000 in lifetime taxes vs. the reverse schedule.
  • The strategy requires discipline: identify low-income years in advance, harvest gains deliberately, and rebalance using the proceeds.

The 0% capital gains bracket: Your hidden tax advantage

Most investors focus on tax-loss harvesting (realizing losses to offset gains). But the opposite opportunity—harvesting gains at 0% tax—is equally valuable and often overlooked.

Here's how the long-term capital gains brackets work (2024):

Single filer:

  • 0% rate: Taxable income up to $47,025
  • 15% rate: $47,025 to $518,900
  • 20% rate: Over $518,900

Married filing jointly:

  • 0% rate: Taxable income up to $94,050
  • 15% rate: $94,050 to $583,750
  • 20% rate: Over $583,750

The key insight: If your taxable income is below the 0% threshold, any capital gains you realize are taxed at 0%.

Example: The magic of the 0% bracket

Scenario: Married couple retiring in 2024

  • Ordinary income (Social Security, pensions, interest): $80,000
  • Taxable income before gains: $80,000
  • Remaining room in 0% bracket: $94,050 - $80,000 = $14,050

If they realize $14,050 in long-term capital gains from their portfolio:

  • Taxable income becomes: $80,000 + $14,050 = $94,050
  • Capital gains tax on the $14,050: $0 (all within 0% bracket)

They've realized gains tax-free. Without this strategy, those same gains would have been taxed at 15% (if realized in a higher-income year), costing $2,107.

When tax-gain harvesting makes sense

Tax-gain harvesting is only sensible in specific scenarios:

Scenario 1: Retiring early (bridge years)

You're retiring at 55; you won't access Social Security or pensions until 65. In years 55–62, your income is low.

Year 2025 (age 55, early retirement):

  • Ordinary income: $20,000 (part-time work, rental income, interest)
  • 0% bracket room: $94,050 - $20,000 = $74,050 available
  • You harvest $70,000 of long-term capital gains from your portfolio (0% tax).
  • Taxable income: $90,000.
  • Tax owed: $0 on the gains; this is free tax-deferral.

Years 2026–2034 (working again):

  • Ordinary income: $150,000+
  • Any gains realized now are taxed at 15% or 20%.

Lifetime benefit: By harvesting gains in 2025 (0% rate), you avoid realizing them in future years when they'd be taxed at 15%+. Tax savings: $10,500+ (assuming $70K at 15%).

Scenario 2: Sabbatical or career break

You take a year off to travel, study, or care for family. That year's income drops to $30,000.

Year 2025 (sabbatical):

  • Ordinary income: $30,000
  • 0% bracket room: $94,050 - $30,000 = $64,050 available
  • You harvest $60,000 of capital gains (0% tax).
  • Return to work in 2026.

Scenario 3: Business loss year

You own a business and have an exceptionally bad year (net loss of $100,000). Your ordinary income from other sources is $50,000.

Year 2025 (business loss):

  • Ordinary income: $50,000 - $100,000 loss = -$50,000
  • Net loss carried back or forward; for now, if you harvest capital gains, you're realizing them at 0% (you have no taxable income).

Example calculation:

  • Loss from business: $100,000
  • Ordinary income from wages/other: $50,000
  • Net position: $50,000 loss carryover
  • Harvest $70,000 in capital gains
  • Net taxable income: $70,000 - $50,000 = $20,000
  • Capital gains tax: $0 (within the 0% bracket on the gains portion)

Scenario 4: Transitioning to a lower-tax-bracket job

You move from a $200K corporate role to a $80K academic or nonprofit role.

Year 2025 (lower-income job):

  • Ordinary income: $80,000
  • 0% bracket room: $94,050 - $80,000 = $14,050
  • You harvest $14,000 of gains (0% tax).
  • Stabilize in the new role; future gains will be taxed at 15%.

How to execute tax-gain harvesting

Step 1: Identify a low-income year (in advance)

Look ahead to your income projections. Do you expect a year with below-average income? That's your harvest year.

Step 2: Calculate your bracket room

Estimate your ordinary taxable income for the low-income year. Subtract from the 0% bracket threshold.

Example:

  • Threshold (married): $94,050
  • Expected ordinary income: $70,000
  • Room in 0% bracket: $94,050 - $70,000 = $24,050

Step 3: Identify gains to harvest

Review your portfolio for positions with large embedded gains. Prioritize:

  • Positions with gains ≥ 20% (larger tax benefit to avoid future tax)
  • Positions you're least bullish on (rebalancing benefit)
  • Positions with low-dividend yields (minimal reinvestment drag)

Step 4: Sell and realize the gains

Sell exactly the amount of gains that fits your 0% bracket room. No more, no less.

Concrete example:

Position A: Microsoft

  • Cost basis: $50,000
  • Current value: $75,000
  • Gain: $25,000

You want to harvest $24,050 in gains to maximize your 0% bracket. You can:

Option A (sell full position, reinvest partial proceeds):

  • Sell all 100 shares of MSFT at $75,000.
  • Realize $25,000 gain (more than your $24,050 room).
  • Reinvest $74,050 in MSFT or similar (keeping $950 cash for the "over-harvest").

Option B (sell partial position):

  • Calculate the proportional sale: ($24,050 / $25,000) × 100 shares = 96.2 shares.
  • Sell 96.2 shares of MSFT at $72,150.
  • Realize exactly $24,050 gain (within 0% bracket room).
  • Reinvest proceeds in Microsoft or substitute.

Option B is more precise but requires fractional share trading (most brokers support this now).

Step 5: Rebalance with proceeds

After realizing gains, reinvest proceeds to rebalance your portfolio. This is the key: tax-gain harvesting forces a rebalancing, so you're not just harvesting gains—you're optimizing the portfolio simultaneously.

Rebalancing example:

After harvesting gains, you have $24,000 in proceeds (realized gains already deducted). You could:

  • Rebalance toward underweighted sectors (if portfolio is tech-heavy, buy diversified ETFs).
  • Move proceeds to a Roth IRA (tax-free growth going forward).
  • Increase bond allocation in preparation for more conservative years.

Tax-gain harvesting vs. tax-loss harvesting: Which comes first?

In most years, TLH (realizing losses) is the priority. But in low-income years, the priority flips.

Decision framework

Income LevelStrategyPriority
High ($200K+)Tax-loss harvestingRealize losses; defer gains.
Moderate ($100K–$150K)BalancedHarvest losses in volatile years; harvest gains only in sabbatical years.
Low ($0–$75K)Tax-gain harvestingRealize gains at 0%; defer losses (use carryforward).

The multi-year plan

For investors with predictable low-income windows:

Years 1–5 (high income):

  • Focus on TLH: harvest losses aggressively.
  • Avoid realizing gains; defer with low-volatility holds.
  • Accumulate unrealized gains in the portfolio (but don't sell).

Years 6–8 (low income, e.g., early retirement or sabbatical):

  • Stop TLH (no need; income is low anyway).
  • Instead, harvest accumulated gains at 0%.
  • Rebalance portfolio.

Years 9+ (high income again):

  • Resume TLH strategy.

Over this 8–10 year cycle, you've:

  • Reduced losses when your tax rate was high (Years 1–5 TLH).
  • Realized gains when tax-free (Years 6–8 harvest).
  • Compounded the net tax savings compared to a reactive strategy.

The tricky part: Reinvestment after gain harvesting

After realizing a gain, you have proceeds that must be reinvested. This creates a new cost basis, which affects future TLH.

Example:

Year 2025 (low-income year):

  • Sell MSFT position with $25,000 gain (0% tax).
  • Reinvest $75,000 proceeds in a diversified ETF (new cost basis: $75,000).

Year 2026 (market decline):

  • The ETF is now worth $60,000 (down $15,000).
  • You have a $15,000 loss available to harvest.
  • But the market is down; many other positions have losses too.
  • The loss from the ETF is perfectly normal and harvestable.

Year 2027 (market recovery):

  • The ETF recovers to $80,000.
  • You now have a $5,000 gain on the Year 2025 reinvestment.
  • If you're in a high-income year, this is taxable.

The point: Tax-gain harvesting creates new cost bases that will eventually generate new gains or losses. This is fine—it's just the normal cycle of tax optimization. Over decades, the net effect is positive (you've deferred taxes and harvested at favorable rates).

Roth conversions: A complement to tax-gain harvesting

In low-income years, tax-gain harvesting pairs well with Roth conversions.

Combined strategy:

Year 2025 (low-income year):

  1. Harvest $50,000 in capital gains (0% tax).
  2. Convert $50,000 from traditional IRA to Roth (0% tax, because your income is low and the gains harvest offset it).

Result:

  • Moved $50,000 to tax-free growth forever (the Roth contribution).
  • Realized $50,000 in gains tax-free.
  • Used the low-income year to its fullest.

Future benefit:

  • The Roth grows for decades tax-free.
  • No required distributions after age 75 (unlike traditional IRAs).
  • Withdrawals in retirement are tax-free.

The combined tax savings can be $7,500–$15,000+ over a lifetime (avoided 15–30% taxes on the converted amounts).

Who benefits most from tax-gain harvesting?

Tax-gain harvesting appeals to:

  1. Early retirees (before age 65, before Social Security kicks in).
  2. Those with predictable low-income years (sabbaticals, career transitions).
  3. Business owners with variable income (low-income years offset business losses).
  4. Part-time or gig-economy workers with flexible income.

It's less valuable for:

  • Full-time workers with stable income (few low-income years).
  • Those already in the 0% bracket regularly (Social Security, pensions covering living expenses).
  • Investors in tax-deferred accounts (IRAs don't benefit from 0% bracket harvesting, since all distributions are taxable).

Flowchart: TLH vs. Tax-Gain Harvesting Decision

Pitfalls in tax-gain harvesting

Pitfall 1: Harvesting too much (exceeding 0% room)

If you harvest $30,000 of gains but only have $25,000 of room in the 0% bracket, the excess $5,000 is taxed at 15%, negating some benefit.

Prevention: Calculate bracket room precisely before harvesting. Use tax software to model the impact.

Pitfall 2: Forgetting about future income (Social Security, RMDs)

In retirement, you might forget that upcoming year's Social Security starts, or required minimum distributions (RMDs) increase, pushing you into higher brackets.

Example:

  • 2025 (retirement year): Low income, harvest $40K in gains (0% tax).
  • 2026: Social Security begins ($25K/year); RMD from IRA ($15K). Total: $40K ordinary income. Any gains now are taxed at 15%.

Prevention: Project income 2–3 years forward, accounting for when Social Security, pensions, or RMDs begin.

Pitfall 3: Tax-loss harvesting and tax-gain harvesting in the same year

If you harvest both losses and gains in the same low-income year, the IRS nets them. You want them separate.

Avoid: Harvesting $50K of losses and $50K of gains in the same year when income is low. Instead, harvest one or the other.

Next

We've explored the mirror strategy to tax-loss harvesting: tax-gain harvesting in low-income years. This concludes our deep dive into tax-loss harvesting and its applications across different account types, market conditions, and income scenarios.