Tax-Loss Harvesting vs. Tax-Gain Harvesting: When to Realize Gains on Purpose
- Jai Prabakaran
- Nov 28
- 5 min read
Updated: 5 days ago

Taxes are one of the largest expenses investors face — often larger than fees, inflation, or market volatility. The smartest investors use the tax code strategically: harvesting losses when markets fall and harvesting gains when their income is low, all to reduce lifetime taxes and improve long-term compounding.
In 2025, with elevated market volatility, high interest rates, upcoming sunset provisions in 2026, and shifting capital-gains thresholds, these strategies have become more important than ever.
This deep-dive guide covers exactly how both strategies work, when to use them, how to avoid IRS pitfalls, and how to integrate them into multi-year retirement and wealth planning.
🟢 1. What Is Tax-Loss Harvesting (TLH) — Full Technical Definition
Tax-loss harvesting involves intentionally selling an investment at a loss to create a realized capital loss, which the IRS allows you to:
🔹 Offset current-year capital gains
🔹 Offset up to $3,000 of ordinary income (MFJ or Single)
🔹 Carry forward unused losses indefinitely
Why this matters:
Capital losses are one of the few tax assets that:
🔹 Never expire
🔹 Apply across investments
🔹 Reduce taxable income dollar-for-dollar
How TLH works technically:
You harvest losses by selling:
🔹 Underwater stocks
🔹 Mutual funds
🔹 ETFs
🔹 Crypto (NOT subject to wash-sale rule)
🔹 Options positions
Then, you reinvest proceeds into similar but not substantially identical holdings to keep market exposure.
Why TLH is so powerful:
Because losses can:
🔹 Offset short-term gains taxed at ordinary income rates
🔹 Offset long-term gains taxed at 0%–20%
🔹 Unlock tax-savings equal to 37% (in some cases) depending on bracket
🔹 Reduce NIIT (3.8% surtax)
🔹 Lower MAGI levels related to ACA subsidies and Medicare IRMAA
TLH reduces taxes today, but can increase taxes later if the replacement asset appreciates.
🟢 2. The Wash-Sale Rule - Advanced Interpretation (2025)
The wash-sale rule prevents claiming losses if you buy substantially identical investments:
🔹 30 days before the sale
🔹 OR 30 days after the sale
🔹 OR immediately after selling inside a retirement account
🔹 OR across different brokerage accounts
Advanced notes:
🔹 ETFs with overlapping indexes may trigger wash-sale risk (e.g., VOO and IVV).
🔹 Crypto is currently exempt from wash-sale rules (2025 law).
🔹 Buying in a spouse’s account or IRA also invalidates losses.
🔹 Selling XYZ and immediately rebuying XYZ inside a 401(k)/IRA voids the loss in taxable account.
Professional workarounds:
🔹 Sell VOO → Buy VTI
🔹 Sell QQQ → Buy XLK
🔹 Sell SPY → Buy SCHX or SPTM
🔹 Sell sector fund → Buy total-market fund
The goal: maintain exposure while capturing the loss.
🟢 3. What Is Tax-Gain Harvesting (TGH) - The Opposite Strategy
Tax-gain harvesting means intentionally selling investments at a gain in order to:
🔹 Reset the cost basis higher
🔹 Lock in gains at lower or 0% tax
🔹 Reduce future tax liability
🔹 Reduce future RMD-driven taxable income
🔹 Improve estate-planning outcomes
Why this matters:
Many investors let gains grow untouched, resulting in:
🔹 Higher future tax brackets
🔹 Larger RMDs
🔹 Bigger NIIT exposure
🔹 Higher Medicare premiums
🔹 Higher Social Security tax thresholds
TGH is the answer.
Technical details:
TGH makes sense in years where the taxpayer falls into the 0% long-term capital gains bracket.
Estimated 2025 0% LTCG thresholds:
🔹 Single: ~$47,000 taxable income
🔹 MFJ: ~$94,000
🔹 HOH: ~$63,000
If you stay below that number, your realized long-term gains are taxed at 0%.
This is one of the most powerful but underutilized tax strategies.
🟢 4. When to Use Tax-Loss Harvesting -
Most Advanced Applications
Tax-loss harvesting goes far beyond offsetting stock gains.Here are the advanced uses:
A. Offsetting gains from real estate sales
Losses from stock/ETF sales can offset gains from:
🔹 Rental property sales
🔹 Commercial buildings
🔹 Vacation homes
🔹 Land sales
TLH is often used before 1031-exchange decisions.
B. Reducing tax on RSUs, ESPP, and stock comp
Loss harvesting helps reduce the sting of:
🔹 RSUs vesting
🔹 ESPP sales
🔹 ISO exercises (avoiding AMT spikes)
C. Lowering MAGI for Medicare IRMAA
A large TLH can keep a retiree below IRMAA thresholds - saving hundreds to thousands in Medicare premiums.
D. Protecting ACA healthcare subsidies
For early retirees (FIRE):TLH keeps MAGI low → maintains subsidies
E. Smoothing multi-year tax brackets
Use TLH in high-income years → shift taxes across multi-year plans.
F. Managing NIIT (Net Investment Income Tax)
Loss harvesting reduces net investment income and may shield the client from the 3.8% surtax.
G. Reducing tax before selling a business
Large future gain?Harvest losses ahead of the sale.
🟢 5. When to Use Tax-Gain Harvesting (TGH) — Most Advanced Applications
TGH is not for beginners — it’s a tool used by wealth managers to control long-term taxes.
A. The Pre-RMD “Golden Window” (Ages 60–72)
Before RMDs start at 73:
🔹 Income is often lower
🔹 Gains can be sold at 0% or 15%
🔹 Cost basis resets higher
🔹 Future RMDs get smaller
This window is the best time for tax-gain harvesting.
B. Early retirees / FIRE
Clients living off cash savings or low withdrawals qualify for 0% capital gains.
C. Years between job transitions
One low-income year can wipe out decades of future gains.
D. Before TCJA sunsets in 2026
Capital-gains brackets may shrink.Harvest gains in 2024–2025 under current favorable rates.
E. When heirs are in higher tax brackets
Harvest gains now → avoid them paying a higher rate later.
F. Strategic rebalancing without tax penalty
If you sell winners to rebalance your portfolio, harvesting gains in low-bracket years makes the sale tax-efficient.
🟢 **6. Combining Loss Harvesting + Gain Harvesting
(Professional-Level Approach)**
The smartest investors use both strategies over multiple years.
Example:
Step 1 (Bad markets):
Harvest losses → bank the tax asset.
Step 2 (Good markets or low-income years):
Harvest gains → reset basis at low or 0% tax.
Step 3:
Use the losses to offset future gains, while using the low-income years to lock in gains tax-free.
This creates a self-funding, tax-efficient investment cycle.
🟢 7. Multi-Year Planning: MAGI Modeling + Tax Forecasting
Advanced planning requires forecasting:
🔹 Future RMDs
🔹 Social Security start date
🔹 Medicare IRMAA tiers
🔹 Expected income fluctuations
🔹 Realized/unrealized gains
🔹 Capital-loss carryforwards
Professional planners use multi-year MAGI projections to determine:
🔹 Which years to harvest losses
🔹 Which years to harvest gains
🔹 How to avoid crossing IRMAA thresholds
🔹 How to time Roth conversions
🔹 How to reduce lifetime tax burden
🟢 8. Avoid These Common Pitfalls
A. Triggering wash-sale rules unintentionally
Especially with automatic reinvestment (turn off DRIP temporarily).
B. Harvesting too many losses
This lowers cost basis → future gains become bigger.
C. Not checking state tax rules
California taxes capital gains at full income-tax rates.
D. Harvesting gains during high-income years
This may push MAGI far above thresholds.
E. Forgetting about IRMAA
Small increase in MAGI = large increase in Medicare premiums.
F. Ignoring NIIT implications
High-MAGI investors face extra 3.8% surtax.
🟢 9. Example Scenarios (Most Useful for Clients)
Scenario 1: Tech employee with large RSU event
TLH offsets high-income year gains from RSUs.
Scenario 2: Early retiree with low income
TGH allows selling $40k–$100k in gains at 0%.
Scenario 3: Retiree approaching RMDs
Harvest gains to reduce future taxable income.
Scenario 4: Investor with large real estate gain
Use TLH years ahead of selling the property.
Scenario 5: Parent gifting appreciated stock to college-aged child
Child can harvest gains at 0% bracket (kiddie tax rules apply but can be navigated).
🟢 The Big Picture
Tax-loss harvesting reduces taxes today.Tax-gain harvesting reduces taxes later.
Used together - strategically, across multiple years - they can dramatically reduce a client’s lifetime tax burden and create a smoother, more predictable retirement-income plan.
With this type of muti year strategy we at Pacific Data can help investors, retirees, and business owners keep more of what they earn.




Comments