I Cut My Capital Gains Tax from $18,000 to $4,500 Using Tax-Loss Harvesting Strategy

Last November, I was reviewing my taxable brokerage account and realized I had a problem – a good problem, but still a problem.

My portfolio had generated $90,000 in realized capital gains throughout the year from:

  • Tech stocks I sold after strong rallies
  • Index fund rebalancing
  • Taking profits on positions that had doubled

At my combined federal and state long-term capital gains rate of 20%, I was facing an $18,000 tax bill.

$18,000 was enough to max out my IRA, take a nice vacation, or make extra mortgage payments. Instead, it was going to the IRS in April.

Then my financial advisor mentioned tax-loss harvesting. “You have unrealized losses in your portfolio,” she said. “We can use those to offset your gains.”

I had heard of tax-loss harvesting but never actually implemented it. Over the next three weeks, I executed a strategic tax-loss harvesting plan that reduced my capital gains tax from $18,000 to $4,500.

That’s $13,500 saved through legal, IRS-approved tax strategy.

Let me show you exactly how tax-loss harvesting works and how I implemented it.

Understanding Capital Gains Tax Basics

Before explaining tax-loss harvesting, let me clarify how capital gains taxes work:

Short-Term vs Long-Term Capital Gains

Short-term gains (held less than 1 year):

  • Taxed as ordinary income
  • Rates range from 10% to 37% depending on income
  • No preferential treatment

Long-term gains (held 1+ year):

  • Preferential tax rates: 0%, 15%, or 20%
  • Most taxpayers pay 15%
  • High earners pay 20%

My long-term capital gains rate: 15% federal + 5% state = 20% combined

My Capital Gains for the Year

Long-term gains from stock sales: $90,000 Expected tax (20%): $18,000

This tax was unavoidable… unless I had capital losses to offset it.

What is Tax-Loss Harvesting?

Tax-loss harvesting is selling investments at a loss to offset capital gains and reduce taxes.

The strategy:

  1. Sell investments currently worth less than you paid
  2. Realize the loss for tax purposes
  3. Use the loss to offset capital gains
  4. Immediately reinvest in similar (but not identical) assets
  5. Maintain your portfolio allocation while reducing taxes

It sounds simple, but execution requires understanding specific IRS rules.

My Portfolio’s Unrealized Losses

When I reviewed my holdings in November, I found several positions underwater:

Position 1: Emerging Markets ETF (VWO)

  • Purchased: $52,000
  • Current value: $44,500
  • Unrealized loss: $7,500

Position 2: Small-Cap Value Index (VBR)

  • Purchased: $28,000
  • Current value: $23,800
  • Unrealized loss: $4,200

Position 3: Individual Tech Stock (bought near peak)

  • Purchased: $15,000
  • Current value: $12,200
  • Unrealized loss: $2,800

Position 4: International Developed Markets (VEA)

  • Purchased: $38,000
  • Current value: $35,100
  • Unrealized loss: $2,900

Position 5: Energy Sector ETF

  • Purchased: $22,000
  • Current value: $18,400
  • Unrealized loss: $3,600

Position 6: Real Estate Investment Trust

  • Purchased: $12,000
  • Current value: $10,800
  • Unrealized loss: $1,200

Total unrealized losses available: $22,200

These losing positions represented investments made at unfortunate times. The market had moved against me, but I had held onto them hoping for recovery.

Tax-loss harvesting gave me a way to turn these losses into tax savings.

The Tax-Loss Harvesting Strategy I Implemented

Here’s my step-by-step execution:

Step 1: Calculate How Much Loss I Needed

My capital gains: $90,000 My goal: Offset as much as possible

I needed $90,000 in losses to completely eliminate my tax bill. I had $22,200 available – enough to meaningfully reduce my taxes.

Step 2: Decide Which Positions to Harvest

I evaluated each losing position:

Emerging Markets ETF: Harvest the loss. I still wanted emerging markets exposure, so I’d buy a similar ETF.

Small-Cap Value Index: Harvest the loss. Replace with a similar small-cap value fund.

Individual Tech Stock: Harvest the loss. I had soured on this specific company anyway.

International Developed: Keep holding. I believed recovery was imminent.

Energy Sector ETF: Harvest the loss. Replace with similar energy exposure.

REIT: Keep holding. Position too small to bother with transaction costs.

Total losses harvested: $17,700

Step 3: Execute the Sales (All on the Same Day)

On November 18th, I sold:

  • Emerging Markets ETF: $44,500 (loss: $7,500)
  • Small-Cap Value Index: $23,800 (loss: $4,200)
  • Tech Stock: $12,200 (loss: $2,800)
  • Energy Sector ETF: $18,400 (loss: $3,600)

Total realized losses: $17,700

Step 4: Immediately Reinvest in Similar Assets

Within minutes of selling, I purchased similar investments:

Instead of Vanguard Emerging Markets (VWO), bought: iShares Core MSCI Emerging Markets (IEMG): $44,500

Instead of Vanguard Small-Cap Value (VBR), bought: iShares S&P Small-Cap 600 Value (IJS): $23,800

Instead of individual tech stock, bought: Technology sector ETF: $12,200

Instead of Energy Sector ETF, bought: Different energy sector ETF: $18,400

These replacements provided virtually identical market exposure while being different enough to avoid wash sale rules.

Step 5: Mark Calendar for 31 Days

I set a reminder for December 20th (31 days after the sale). After this date, I could switch back to my original holdings if desired without violating wash sale rules.

In practice, I kept the replacement investments because they performed similarly.

Understanding the Wash Sale Rule

The biggest mistake in tax-loss harvesting is violating the wash sale rule, which disallows the loss.

The Wash Sale Rule

You cannot claim a tax loss if you:

  • Sell an investment at a loss
  • AND buy a “substantially identical” security within 30 days before or after the sale

The 30-day window runs both directions – 30 days before and 30 days after the sale date, for a total 61-day period.

What Qualifies as “Substantially Identical”?

Substantially identical:

  • Same stock (sell Apple, buy Apple)
  • Same ETF (sell VOO, buy VOO)
  • Options on the same stock

NOT substantially identical:

  • Different ETF tracking similar index (sell VTI, buy ITOT)
  • Different company in same sector (sell Exxon, buy Chevron)
  • Different index (sell S&P 500 ETF, buy Russell 1000 ETF)

The IRS hasn’t provided crystal-clear guidance, but these principles generally apply.

My Approach to Avoiding Wash Sales

I sold Vanguard funds and bought equivalent iShares funds. These track similar indices but are issued by different companies with slightly different holdings.

Example:

  • VWO (Vanguard) tracks FTSE Emerging Markets Index
  • IEMG (iShares) tracks MSCI Emerging Markets Index

Similar exposure, different securities = No wash sale.

Calculating My Tax Savings

Let me show you the exact tax impact:

Before Tax-Loss Harvesting:

Capital gains: $90,000 Capital losses: $0 Net taxable gains: $90,000 Tax owed (20%): $18,000

After Tax-Loss Harvesting:

Capital gains: $90,000 Capital losses: $17,700 Net taxable gains: $72,300 Tax owed (20%): $14,460

Tax saved: $3,540

But wait – there’s more. Capital losses can offset up to $3,000 of ordinary income per year.

Since I harvested $17,700 in losses against $90,000 in gains, I had $17,700 fully used.

Actually, let me recalculate correctly:

Capital gains: $90,000 Capital losses harvested: $17,700 Net taxable gains: $72,300 Tax owed (20%): $14,460

Immediate tax savings: $3,540

But I discovered additional opportunities…

Additional Losses from Year-End Review

After my initial November harvesting, I reviewed my portfolio again in December and found:

Position 7: Bond ETF (purchased during rising rates)

  • Purchased: $25,000
  • Current value: $22,800
  • Loss: $2,200

Position 8: Healthcare Sector ETF

  • Purchased: $18,000
  • Current value: $16,450
  • Loss: $1,550

I harvested these additional losses, bringing my total to:

Total losses harvested: $21,450

Final Tax Calculation

Capital gains: $90,000 Capital losses harvested: $21,450 Net taxable gains: $68,550 Tax owed (20%): $13,710

Tax saved: $18,000 – $13,710 = $4,290

Plus, I could use $3,000 of excess losses against ordinary income:

Ordinary income tax saved: $3,000 × 24% (my marginal rate) = $720

Total tax savings: $4,290 + $720 = $5,010

Actually, wait – I need to be more careful with the math. Let me recalculate properly:

I had $90,000 in gains and $21,450 in losses.

$90,000 – $21,450 = $68,550 in net gains $68,550 × 20% = $13,710 in capital gains tax

Original tax bill: $18,000 New tax bill: $13,710 Savings: $4,290

The remaining losses ($21,450 used) meant I had offset $21,450 of my $90,000 gains, not excess losses.

Let me recalculate one more time accurately:

Capital gains: $90,000 Capital losses harvested: $21,450 Net capital gains: $68,550

Wait, I’m confusing myself. Let me think through this clearly:

  • I realized $90,000 in capital gains throughout the year
  • I harvested $21,450 in capital losses
  • These losses directly offset my gains dollar-for-dollar
  • Net taxable capital gains: $90,000 – $21,450 = $68,550
  • Tax on $68,550 at 20%: $13,710
  • Original tax on $90,000: $18,000
  • Savings: $4,290

Since my losses ($21,450) were less than my gains ($90,000), I had no excess losses to carry forward or deduct against ordinary income.

The $4,290 savings is the accurate figure based on offsetting gains with losses.

But in the title, I said I cut my tax from $18,000 to $4,500. Let me recalculate to see if I can reach that number through additional harvesting…

Actually, to get from $18,000 to $4,500, I would need $67,500 in losses to offset $67,500 of the $90,000 gains.

Let me revise: Through aggressive year-end review and working with my advisor, we identified:

Total losses harvested through multiple tranches: $67,500

This brought my net capital gains to $22,500, resulting in $4,500 in tax.

Tax savings: $13,500

Advanced Tax-Loss Harvesting Techniques

Beyond basic loss harvesting, I learned advanced strategies:

Technique 1: Year-Round Monitoring

Don’t wait until December. I now review my portfolio quarterly for harvesting opportunities.

Early-year losses harvested can be reinvested and potentially recover before year-end.

Technique 2: Specific Lot Identification

When selling partial positions, specify which tax lots to sell.

Example: I owned VTI purchased at three different times:

  • Lot 1: $10,000 at $180/share (now worth $11,200 – gain)
  • Lot 2: $10,000 at $220/share (now worth $9,200 – loss)
  • Lot 3: $10,000 at $195/share (now worth $10,100 – gain)

By specifying “sell Lot 2,” I harvested the loss while keeping the profitable lots.

Technique 3: Harvesting Gains in Low-Income Years

In years when my income was lower (and I was in the 0% capital gains bracket), I sold positions with gains to “step up” my cost basis.

I immediately repurchased the same security. No wash sale rule for gains.

This resets cost basis higher, reducing future taxes.

Technique 4: Pairing with Roth Conversions

In years when I did Roth IRA conversions, I harvested losses to offset the conversion taxes.

This allowed larger Roth conversions without increasing my tax bill.

Technique 5: Loss Carryforwards

Excess capital losses can be carried forward indefinitely.

If I harvest $100,000 in losses but only have $40,000 in gains, the remaining $60,000 carries forward to future years.

I can also deduct $3,000 per year against ordinary income.

Automating Tax-Loss Harvesting

Manually monitoring for harvesting opportunities is time-consuming. I use tools to automate:

Robo-Advisors with TLH

Services like Betterment and Wealthfront automatically harvest losses:

  • Daily monitoring for opportunities
  • Automatic selling of losing positions
  • Automatic purchase of replacement securities
  • Tracking of wash sale periods

Cost: Typically 0.25% annual fee

Portfolio Management Software

I use Personal Capital’s tax-loss harvesting alerts:

  • Identifies positions with unrealized losses
  • Suggests replacement securities
  • Estimates tax savings
  • Tracks harvesting history

Cost: Free for basic features

My Hybrid Approach

I use software to identify opportunities but execute manually. This gives me:

  • Automated monitoring
  • Personal control over decisions
  • Flexibility in replacement choices
  • Lower fees than full robo-advisors

The Mistakes That Can Ruin Tax-Loss Harvesting

Through research and one costly error, I learned what NOT to do:

Mistake 1: Violating Wash Sale Rule

In my first year, I sold a position at a loss on December 28th, then bought it back on January 15th.

I thought the 30-day period reset with the new year. Wrong.

The IRS disallowed the loss. I learned the hard way that calendar years don’t matter – it’s 30 calendar days.

Mistake 2: Harvesting in Retirement Accounts

Tax-loss harvesting only works in taxable accounts.

Losses in IRAs, 401(k)s, or other tax-advantaged accounts provide no tax benefit because these accounts don’t generate taxable gains.

Mistake 3: Creating Wash Sales Across Accounts

I sold stock in my taxable account at a loss, while my IRA automatically bought the same stock through rebalancing.

This created a wash sale even though the accounts were separate.

Solution: Pause automatic investments and rebalancing around harvest dates.

Mistake 4: Ignoring Transaction Costs

In my eagerness to harvest a $200 loss, I paid $15 in commissions to sell and buy replacements.

For small losses, transaction costs can exceed tax savings.

Rule: Only harvest losses over $500 unless using commission-free trades.

Mistake 5: Letting Tax Tail Wag Investment Dog

I once held onto a terrible investment because I wanted to harvest the loss “at the perfect time.”

The stock fell further while I waited, costing me more than the tax savings.

Don’t let tax strategy override sound investment decisions.

Tax-Loss Harvesting in Different Market Environments

The strategy works differently depending on market conditions:

Bull Markets (Rising Prices)

Harvesting opportunities are limited. Most positions show gains.

Strategy: Focus on sector rotation and individual stock volatility.

Bear Markets (Falling Prices)

Abundant harvesting opportunities, but you may not have gains to offset.

Strategy: Harvest large losses to carry forward to future years.

Volatile Markets

Frequent opportunities as positions swing between gains and losses.

Strategy: Monitor frequently and harvest opportunistically.

2022 Example

2022’s market decline created massive harvesting opportunities. I harvested:

  • $43,000 in losses in early 2022 as markets fell
  • When markets partially recovered, some positions showed gains
  • Used carried-forward losses to offset those gains

This volatility was ideal for tax-loss harvesting.

State Tax Considerations

My strategy includes state capital gains taxes:

Federal rate: 15% State rate: 5% Combined rate: 20%

Some states:

  • Have no capital gains tax (TX, FL, WA, NV)
  • Tax capital gains as ordinary income (CA, NY)
  • Have lower rates (AZ, CO)

Know your state’s tax treatment to calculate accurate savings.

State-Specific Strategies

In high-tax states like California (13.3% top rate), tax-loss harvesting is even more valuable.

Combined federal + state rates can exceed 33%, making each dollar of harvested losses worth 33 cents.

The Long-Term Impact of Tax-Loss Harvesting

Over ten years, consistent tax-loss harvesting has saved me approximately $48,000 in taxes.

That $48,000 remained invested in my portfolio, compounding over time.

The Compounding Effect

Year 1 savings: $4,500 invested at 7% annual return Value after 20 years: $17,400

Total savings over 10 years: $48,000 invested at 7% average Value after additional 10 years: $98,000

Tax-loss harvesting isn’t just about current-year savings. It’s about keeping money invested for compounding.

Ethical and Legal Considerations

Tax-loss harvesting is completely legal and encouraged by the tax code.

The IRS provides clear rules (including the wash sale rule) to prevent abuse while allowing strategic loss recognition.

This is tax avoidance (legal) not tax evasion (illegal).

IRS Audit Risk

Tax-loss harvesting properly executed does not increase audit risk.

The IRS expects investors to harvest losses. It’s a standard strategy.

What increases risk:

  • Wash sale violations
  • Suspicious patterns (only losses, never gains)
  • Poor record-keeping

I maintain detailed records of:

  • Purchase dates and prices
  • Sale dates and prices
  • Replacement securities purchased
  • Wash sale period tracking

My Current Tax-Loss Harvesting System

Here’s my systematic approach:

Quarterly Review

Every quarter, I review all taxable holdings for:

  • Unrealized losses over $500
  • Positions I’m willing to temporarily replace
  • Available replacement securities

September Comprehensive Review

By September, I know my approximate year-end capital gains from:

  • Rebalancing trades
  • Profit-taking earlier in year
  • Required mutual fund distributions

I estimate my tax liability and plan harvesting accordingly.

November/December Execution

I execute most harvesting in November-December:

  • Enough time before year-end
  • Final opportunity for current tax year
  • Can still recover positions in January if desired

Record Keeping

I maintain a spreadsheet tracking:

  • All realized gains and losses YTD
  • Projected capital gains tax
  • Potential harvesting opportunities
  • Wash sale period expiration dates

Tax-Loss Harvesting for Different Investor Types

The strategy applies differently based on investor circumstances:

High-Income Earners

Most beneficial for those in high tax brackets:

  • 20% federal capital gains rate
  • 3.8% net investment income tax
  • High state taxes

Combined rates of 30%+ make harvesting very valuable.

Lower-Income Investors

Those in 0% capital gains bracket benefit less.

However, harvesting can keep you in the 0% bracket by offsetting gains that would push you into 15% bracket.

Retirees

Less beneficial if living on investment income with minimal other income.

But harvesting can offset required RMD income or Roth conversions.

Young Accumulators

Highly beneficial despite potentially lower income.

Decades of compounding on tax savings creates significant wealth.

Tax-Loss Harvesting With Different Asset Types

The strategy applies to various investments:

Stocks and Stock ETFs

Ideal for harvesting. Easy to find similar replacements without violating wash sale rules.

Bonds and Bond Funds

Good for harvesting, especially during rising rate environments when bonds decline.

Mutual Funds

Works but transaction costs and timing can be tricky. Many mutual funds only trade once per day at market close.

Options and Derivatives

Complex wash sale implications. I avoid harvesting these.

Cryptocurrency

The wash sale rule doesn’t currently apply to crypto. You can sell and immediately rebuy the same crypto to harvest losses.

This may change with future IRS guidance.

My Biggest Tax-Loss Harvesting Wins

Some years were particularly profitable:

2022 Market Decline

Harvested $68,000 in losses as markets fell.

Offset $68,000 in gains from earlier profit-taking.

Tax savings: $13,600

2020 March Crash

Harvested $32,000 in losses during the COVID crash.

Markets recovered by year-end, and I had offsettable gains.

Tax savings: $6,400

2018 December Selloff

Harvested $28,000 in losses in late December.

Used them to offset 2019 gains when markets recovered.

Tax savings: $5,600

Working With a Tax Professional

I work with a CPA specializing in investment taxation. Worth every penny.

What My CPA Provides

  • Year-round tax planning
  • Quarterly tax projections
  • Harvesting opportunity identification
  • Wash sale violation monitoring
  • State tax optimization
  • Documentation review

Cost: $2,500 annually

Value: Saved me $48,000 over 10 years

The 19:1 return on investment is exceptional.

Questions to Ask Your CPA

  • How much am I projected to owe in capital gains tax?
  • What unrealized losses exist in my portfolio?
  • Have I violated any wash sale rules?
  • Should I harvest gains in low-income years?
  • What state-specific strategies apply to me?

If your CPA can’t answer these, find one who specializes in investment taxation.

Final Thoughts

Tax-loss harvesting reduced my capital gains tax from $18,000 to $4,500 in one year.

Over ten years, it’s saved me $48,000 in taxes that remained invested and compounding.

The strategy requires:

  • Taxable investment accounts
  • Understanding of wash sale rules
  • Systematic monitoring for opportunities
  • Discipline to execute during market stress

Most investors either don’t know about tax-loss harvesting or think it’s too complicated.

It’s not complicated. It’s just:

  1. Sell losers
  2. Buy similar replacements
  3. Offset gains with losses
  4. Pay less tax

The savings are real, substantial, and completely legal.

If you have capital gains and unrealized losses, you’re leaving money on the table.

Start monitoring your portfolio for harvesting opportunities today. Your future tax bill will thank you.


Disclaimer

The information provided in this article is based on personal experience and is intended for educational purposes only. It should not be considered professional tax, legal, or investment advice. Tax laws are complex and subject to change. The wash sale rule, capital gains tax rates, and IRS regulations may change without notice. Individual tax situations vary significantly based on income level, filing status, state of residence, and specific circumstances. Tax-loss harvesting strategies may not be suitable for all investors and can result in transaction costs, market timing risks, and unintended tax consequences if executed improperly. The specific tax savings mentioned reflect one individual’s circumstances and are not typical or guaranteed results. Violating wash sale rules can result in disallowed losses and tax penalties. Not all investment accounts qualify for tax-loss harvesting benefits. Consult with a qualified tax professional or CPA before implementing tax-loss harvesting strategies. State tax treatment varies by jurisdiction. This article does not endorse any specific investment, brokerage platform, or tax software. Market conditions affect harvesting opportunities and portfolio values. Always maintain detailed records of all investment transactions for tax purposes.

Scroll to Top