portfolio management

Tax-Loss Harvesting: How to Cut Your Tax Bill by Selling Losers

Tax-loss harvesting lets you sell investments at a loss to offset capital gains, reducing your tax bill. Learn the rules, the wash-sale trap, and how to do it properly.

By Jennifer Lee··6 min read
Tax-Loss Harvesting: How to Cut Your Tax Bill by Selling Losers

What is tax-loss harvesting?

Tax-loss harvesting is the practice of selling investments that have declined in value to realize a capital loss, which can then be used to offset capital gains — reducing your tax bill. It's one of the most accessible tax strategies available to individual investors and can meaningfully improve after-tax returns over time.

Key principle: you're not actually losing money you haven't already lost. The paper loss already exists — tax-loss harvesting simply crystallizes it in a way that creates a tax benefit.

How it reduces your taxes

Capital gains taxes apply when you sell an investment for a profit. Tax-loss harvesting offsets those gains with losses:

  • You sell Stock A with a $5,000 gain
  • You also sell Stock B with a $3,000 loss
  • Net taxable gain: $2,000 (instead of $5,000)
  • Tax saving at 20% long-term capital gains rate: $600

If your losses exceed your gains, you can deduct up to $3,000 of net losses against ordinary income (salary, etc.) per year. Additional losses can be carried forward to future tax years indefinitely.

Short-term vs long-term capital gains

The tax treatment differs significantly by holding period:

  • Short-term gains (held <1 year): taxed at ordinary income rates — up to 37% at the top bracket
  • Long-term gains (held >1 year): taxed at preferential rates — 0%, 15%, or 20% depending on income

Short-term losses are most valuable — they offset short-term gains that would otherwise be taxed at the highest rates. Always try to match loss type to gain type for maximum benefit.

The wash-sale rule — the critical trap

The IRS wash-sale rule prevents you from claiming a tax loss if you buy a "substantially identical" security within 30 days before or after the sale. This means:

  • You sell VOO at a loss on December 10
  • You buy VOO again on December 20
  • Result: the loss is DISALLOWED — you've triggered the wash-sale rule

The wash-sale window is 30 days on EACH SIDE of the sale (61 days total). To claim the loss you must wait 31 days before repurchasing the same or substantially identical security.

How to harvest losses without losing market exposure

The solution: immediately replace the sold security with a similar (but not substantially identical) one to maintain your market exposure while still claiming the loss.

  • Sell VOO → immediately buy IVV (both track S&P 500 but are different funds — generally considered not substantially identical)
  • Sell SCHB → buy VTI (both total US market, different providers)
  • Sell Apple → buy Microsoft (different companies, no wash-sale issue)

After 31 days, you can switch back to your original holding if you prefer.

When to harvest losses

  • Market pullbacks: Any time a position is down 5%+ from your cost basis, evaluate if harvesting makes sense
  • Year-end: December is peak harvesting season — review your portfolio for unrealized losses before December 31
  • After large gains: If you've sold a property, business, or large stock position with big gains, harvest losses aggressively to offset

Tax-loss harvesting limitations

  • Only applies to taxable accounts — no benefit in IRAs or 401(k)s (no taxes on those gains anyway)
  • Defers taxes, doesn't eliminate them — your cost basis is reduced, so you'll pay more tax eventually when you sell the replacement
  • Transaction costs and timing can erode benefits on small positions

Tax-loss harvesting is most valuable for high-income investors with significant taxable accounts and frequent rebalancing. Done consistently, it can add 0.5–1.5% per year in after-tax returns — meaningful compounding over a decade.

The Wash-Sale Rule: What Trips Investors Up

Most investors know the wash-sale rule exists, but far fewer understand how wide its net actually reaches. The IRS disallows your loss if you buy a substantially identical security within 30 days before or after the sale — that is a 61-day window total, not just 30 days after. Buying back into a position the day before you plan to harvest it is just as problematic as buying back in the day after.

  • Options on the same stock count. If you sell shares at a loss and then buy call options on that same stock within the 61-day window, the wash-sale rule is triggered.
  • ETFs tracking the same index are contested — but risky. The IRS has never issued definitive guidance declaring two S&P 500 ETFs to be substantially identical, but it has the authority to do so. Swapping SPY for IVV carries real audit risk.
  • The safe swap approach uses correlated but distinct indexes. Selling VTI and buying SCHB (Russell 1000) is a cleaner substitute — similar exposure, meaningfully different construction.

Year-Round Harvesting Beats the December Rush

Most retail investors treat tax-loss harvesting as a December chore. That habit leaves significant value on the table. Markets do not wait until year-end to sell off — February and March 2020 delivered some of the sharpest single-month declines in modern market history. Investors who only reviewed their portfolios in December that year had already watched those losses recover and disappear.

A practical rule of thumb: any time a position is down 10% or more from your cost basis, it is worth evaluating for harvest. Key moments to review include:

  • After any broad market correction of 8% or more
  • Following an earnings miss or sector-wide negative catalyst on individual holdings
  • In October, which has historically been a volatile month across multiple market cycles
  • Whenever a position triggers a SELL signal from your analysis tools

Which Losses to Harvest First

Short-term losses — on positions held less than one year — offset short-term gains taxed at ordinary income rates that can reach 37% for high earners. Long-term losses offset long-term gains taxed at the lower 0, 15, or 20% rates. Dollar for dollar, a short-term loss saved is worth more in tax reduction.

Prioritize in this order:

  • Short-term losses to offset short-term gains first
  • Long-term losses to offset long-term gains second
  • Excess losses can offset the other category, and up to $3,000 per year can offset ordinary income, with the remainder carried forward

One important caution: do not harvest a position if you expect a rapid recovery and the missed upside would exceed the tax benefit. Transaction costs also matter — for small accounts, commissions and bid-ask spreads can erode the tax savings entirely.

Using AI Signals to Time Your Harvests

Individual stocks are generally simpler to harvest than ETFs — if you sell one bank stock at a loss, you can immediately buy a different bank without triggering the wash-sale rule. ETFs require more care because so many funds track overlapping indexes.

This is where StockSignal24's AI signals add practical value. When a position in your portfolio is down and the platform issues a SELL signal based on deteriorating fundamentals — weakening earnings momentum, declining relative strength, or negative sector rotation — that signal helps you distinguish between a temporary dip worth holding and a genuine weakening worth harvesting. Harvesting a loss on a position with a confirmed SELL signal captures the tax benefit without sacrificing a likely recovery. Using signal data alongside price data makes the harvesting decision more precise than looking at unrealized losses alone.

Tax StrategyTax-Loss HarvestingPortfolio ManagementTax Efficiency

Get AI-Powered Stock Signals

Free Buy, Hold, or Sell signals for 375+ stocks. Updated daily with AI analysis.

Explore Stock Signals →