Tax-Loss Harvesting Guide

Strategic guide to harvesting investment losses to offset gains and reduce your tax bill before year-end

Back to Investments

What is Tax-Loss Harvesting?

Tax-loss harvesting is a strategy where you intentionally sell investments at a loss to offset capital gains and reduce your taxable income. It's one of the most powerful year-end tax planning strategies available to investors, potentially saving thousands in taxes annually while maintaining your investment strategy.

Key Benefits

  • Offset capital gains dollar-for-dollar
  • Reduce ordinary income by up to $3,000 per year
  • Carry forward unused losses indefinitely
  • Maintain market exposure with similar investments
  • Improve after-tax returns without changing allocation

How Tax-Loss Harvesting Works

The Basic Mechanics

When you sell an investment for less than you paid for it, you realize a capital loss. This loss can be used to:

  • First: Offset any capital gains from the same tax year
  • Second: Offset up to $3,000 of ordinary income ($1,500 if married filing separately)
  • Third: Carry forward remaining losses to future years indefinitely

Types of Capital Losses

Short-Term Losses

Holding period: 1 year or less

Tax treatment: Offset short-term gains first (taxed at ordinary income rates up to 37%)

Value: More valuable because they offset higher-taxed gains

Long-Term Losses

Holding period: More than 1 year

Tax treatment: Offset long-term gains first (taxed at 0%, 15%, or 20%)

Value: Still valuable but offset lower-taxed gains

Netting Rules

The IRS requires a specific order for matching gains and losses:

  1. Net short-term: Short-term gains - short-term losses
  2. Net long-term: Long-term gains - long-term losses
  3. Net overall: If one is positive and one is negative, combine them
  4. Apply to ordinary income: Remaining loss offsets up to $3,000 of wages, interest, etc.
  5. Carry forward: Any excess loss moves to next year

The Wash Sale Rule: Critical to Understand

What is a Wash Sale?

A wash sale occurs when you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale (61-day window total). If this happens, the IRS disallows the tax loss.

Wash Sale Triggers

A wash sale is triggered if you:

  • Sell a stock at a loss and buy the same stock within 61-day window
  • Sell a stock at a loss and your spouse buys it in their account
  • Sell in a taxable account and buy in an IRA within 61 days
  • Sell a mutual fund and buy an ETF that tracks the same index identically
  • Have dividend reinvestment purchase shares during the window

What Happens to a Disallowed Loss?

The loss isn't lost forever—it's added to the cost basis of the replacement security:

  • Example: You bought Stock A for $10,000, sold at $8,000 (loss: $2,000)
  • Within 30 days, you bought Stock A again for $8,500
  • The $2,000 loss is disallowed but added to your new purchase
  • Your new cost basis becomes $10,500 ($8,500 + $2,000)
  • You'll eventually get the tax benefit when you sell the replacement

Strategies to Avoid Wash Sales

Strategy 1: Wait 31 Days

The simplest approach:

  • Sell the losing investment
  • Wait 31 calendar days
  • Repurchase the same investment
  • Risk: Market may move against you during waiting period

Strategy 2: Buy Similar but Not Identical Securities

Maintain market exposure with different investments:

Stock Swaps

  • Sell: Apple → Buy: Microsoft (different tech companies)
  • Sell: Exxon → Buy: Chevron (different energy companies)
  • Sell: JPMorgan → Buy: Bank of America (different banks)

ETF/Index Fund Swaps

  • Sell: Vanguard S&P 500 (VOO) → Buy: Vanguard Total Market (VTI)
  • Sell: iShares Core S&P 500 (IVV) → Buy: SPDR S&P 500 (SPY)
  • Sell: Vanguard Total Bond (BND) → Buy: iShares Core Bond (AGG)
  • Sell: International developed (EFA) → Buy: International total (VXUS)

Note: These are generally considered different enough to avoid wash sale rules, but consult a tax advisor for your situation.

Strategy 3: Double Up Then Sell

If you want to harvest losses but don't want to be out of the market:

  1. Buy an equal amount of the investment you want to sell
  2. Wait 31 days
  3. Sell the original shares at a loss
  4. You now own the shares continuously without triggering wash sale
  5. Downside: Requires double the capital for 31 days

Year-End Tax-Loss Harvesting Process

Step 1: Review Your Tax Situation

  • Calculate realized capital gains for the year
  • Identify short-term vs long-term gains
  • Estimate your marginal tax rate
  • Determine how much loss harvesting would benefit you

Step 2: Analyze Your Portfolio

Look for positions with unrealized losses:

  • Review cost basis vs current value for each holding
  • Prioritize short-term losses (more valuable)
  • Consider the magnitude of each loss
  • Evaluate whether you still want to own the investment long-term

Step 3: Calculate Potential Tax Savings

Tax-Loss Harvesting Calculator

Estimated Tax Savings:

Losses Offset Short-Term Gains:

$8,000

Tax Savings: $2,560

Losses Offset Long-Term Gains:

$0

Tax Savings: $0

Losses Offset Ordinary Income:

$0

Tax Savings: $0

Losses Carried Forward:

$0

Total Tax Savings This Year: $2,560

Carried forward losses will save taxes in future years as you realize gains.

Step 4: Execute the Harvest

  • Place sell orders for positions with losses
  • Immediately buy replacement securities (if using swap strategy)
  • Document the trades and reasons for your records
  • Update your tracking spreadsheet
  • Set calendar reminders for 31 days if planning to repurchase

Step 5: Track and Document

  • Keep records of all harvested losses
  • Track wash sale windows in a calendar
  • Document which securities replaced which
  • Note carried-forward losses for future years
  • Save brokerage confirmations

Advanced Tax-Loss Harvesting Strategies

Direct Indexing

Instead of owning an S&P 500 index fund, own all 500 stocks individually:

  • Allows harvesting losses on individual stocks while maintaining S&P 500 exposure
  • Can harvest losses throughout the year, not just year-end
  • Typically requires $100,000+ to implement effectively
  • Higher complexity and trading costs
  • Many robo-advisors offer this automatically

Tax Alpha

The additional return generated through tax-efficient strategies:

  • Consistent tax-loss harvesting can add 0.5-1.5% annually to after-tax returns
  • Compounded over decades, this significantly improves wealth accumulation
  • Most valuable in high tax brackets
  • Benefits increase with portfolio size and volatility

Qualified Small Business Stock (QSBS)

Special consideration for startup equity:

  • Up to $10 million in QSBS gains can be excluded from federal taxes
  • Harvested losses cannot be used to offset QSBS gains
  • Strategy: Save harvested losses for other gains, let QSBS use exclusion

Common Mistakes to Avoid

Critical Errors That Cost Money

  • Triggering wash sales: Buying back too soon or in an IRA
  • Ignoring dividend reinvestment: Auto-reinvested dividends can trigger wash sales
  • Harvesting in tax-deferred accounts: No tax benefit in IRAs or 401(k)s
  • Forgetting about state taxes: Some states don't allow loss deductions
  • Selling winners instead of losers: Creates tax bill instead of savings
  • Not considering transaction costs: Commissions can exceed tax benefits on small amounts
  • Waiting until December 31: Market may move against you or trades may settle in new year

Year-End Timing Considerations

Critical Deadlines

  • Trade date, not settlement: Must execute by December 31, even if settles in January
  • Market hours: December 31 is often a half trading day
  • Wash sale window: Extends into January, so avoid repurchasing until February
  • December volatility: Markets can move significantly at year-end

Optimal Timing Strategy

  • October-November: Review portfolio, identify losses, plan strategy
  • Early December: Execute primary harvesting trades
  • Mid-December: Monitor for additional opportunities
  • Late December: Final adjustments only if necessary
  • Early February: Repurchase if using wait strategy

When NOT to Harvest Losses

Tax-loss harvesting isn't always beneficial:

  • Low or zero tax bracket: Little benefit if you pay no capital gains tax
  • Expect lower future tax rates: Better to take gains now, losses later
  • No current or expected gains: Limited immediate benefit (though can offset income)
  • Truly want to exit position: If investment thesis has changed permanently
  • High transaction costs: Fees and bid-ask spreads exceed tax benefit
  • Very small positions: Administrative burden exceeds value

Tax-Loss Harvesting Checklist

  • ☐ Calculate year-to-date capital gains (short-term and long-term)
  • ☐ Review all taxable accounts for unrealized losses
  • ☐ Prioritize short-term losses over long-term
  • ☐ Identify replacement securities to maintain allocation
  • ☐ Check wash sale rules carefully
  • ☐ Turn off dividend reinvestment for securities you plan to sell
  • ☐ Execute trades with trade date before December 31
  • ☐ Buy replacement securities immediately (if using swap strategy)
  • ☐ Document all trades and rationale
  • ☐ Set calendar reminders for 31-day wash sale windows
  • ☐ Track carried-forward losses for next year's tax return
  • ☐ Provide documentation to tax preparer
  • ☐ Consider ongoing harvesting throughout the year

Working with Tax Professionals

Tax-loss harvesting can get complex. Consider professional help if:

  • You have large portfolios with many holdings
  • You trade frequently and have complex gain/loss situations
  • You have state-specific tax considerations
  • You own alternative investments (real estate, partnerships, etc.)
  • You're subject to AMT (Alternative Minimum Tax)
  • You have foreign investments with currency considerations

Maximize Your Tax Efficiency

Tax-loss harvesting is a powerful tool to improve after-tax returns without changing your investment strategy. By strategically harvesting losses each year, especially at year-end, you can save thousands in taxes while maintaining your target asset allocation. Start reviewing your portfolio now to identify harvesting opportunities before December 31.