Skip to main content
Not investment advice. Educational reading. See Disclaimer.
L.13 · INTERMEDIATE · 5 MIN

Tax-Loss Harvesting: When the Math Beats the Brain

Tax-loss harvesting is the practice of selling losing positions before year-end to realize the capital loss for tax purposes — typically reinvesting in a similar (but not 'substantially identical' per IRS wash-sale rules) position. The math is straightforward: realized losses offset realized gains dollar-for-dollar plus up to $3,000 of ordinary income per year. The psychology is where investors lose the value. (Harvesting only applies in taxable accounts; losses inside an IRA or 401(k) carry no tax benefit.)

Quiz · 1 question ↓

Why loss aversion tends to block harvesting

Caution: The behavioral trap: tax-loss harvesting requires deliberately realizing a loss — which fires the same loss-aversion + admission-of-error response as a regular sale (see bf-11 disposition effect). Investors who would happily reinvest at the same price refuse to sell at a loss + buy back the equivalent exposure 31 days later, leaving the tax savings on the table. Published estimates suggest retail investors capture only a minority of the tax-loss harvesting opportunity available in their own portfolios (estimates vary widely by methodology), despite robo-advisors automating the mechanics for years.

Outcomes with and without harvesting

PositionWithout HarvestingWith Harvesting (after wash-sale wait)
Hold $10K loss in MSFT (also have $10K gain in AAPL elsewhere)Pay capital gains tax on $10K AAPL gain (e.g., 20% = $2,000 tax)Realize MSFT loss → offsets AAPL gain → $0 federal capital-gains tax. Re-buy MSFT or similar after 31 days.
Hold $5K loss in QQQ (no gains to offset this year)$5K loss sits as paper loss — no tax benefit until you sell something at a gainRealize loss → $3K offsets ordinary income (~$960 saved at 32% bracket) + $2K carries forward indefinitely. Re-buy QQQ-like ETF same day (e.g., VGT).
Hold $20K loss in a single stock you still believe inLoss compounds + thesis remains; no tax benefitSell, take the $20K loss; buy a similar but not 'substantially identical' position (different sector ETF, different stock); after 31 days, can re-establish the original.

How the wash-sale rule works

The wash-sale rule (IRS §1091) disallows claiming a loss if you buy a 'substantially identical' security within 30 days before or after the sale (a 61-day window total). The IRS has not defined 'substantially identical' for funds. The same stock, bond or option clearly is; two funds tracking the same index carry more risk, so the conservative practice is to switch to a fund tracking a different index (VTI ↔ ITOT, QQQ ↔ VGT). When in doubt, ask a tax professional or wait 31 calendar days.

Why a paper loss equals a realized loss

The 'paper loss vs realized loss' reframe

The mental shift that unlocks consistent harvesting: a paper loss and a realized loss are economically identical from your portfolio's perspective. Neither has any forward-looking impact on the position's expected return. The ONLY difference is whether the IRS recognizes it. Realizing the loss converts a meaningless number into a valuable tax asset (offsetting current gains + up to $3K/yr of ordinary income + indefinite carryforward of the rest). The 'pain' of realizing is purely psychological — there is no economic pain because the economic loss already happened the moment the price dropped. The choice is between: (a) take the pain + claim the tax benefit, or (b) skip the pain + leave money on the table.

Tally the harvest left in your portfolio

Open your portfolio. List every position with an unrealized loss greater than $1,000. For each: (1) is the position still consistent with your thesis? (2) what is the equivalent-but-not-substantially-identical replacement? (3) what is the tax savings at your current marginal rate (multiply the loss by your federal cap-gains rate, OR by your ordinary-income rate up to $3K/yr)? The total of those tax savings is the harvest you have left on the table by treating the loss as something to avoid rather than something to monetize.

Harvesting as one of investing's free options

Tax-loss harvesting is one of the few free options in investing. The cost is psychological (admitting the loss) + administrative (waiting 31 days, picking the replacement); the benefit is direct cash savings on this year's taxes plus an asset that can offset gains for the rest of your life. Investors who systematize it through quarterly reviews + a written replacement-security map capture the value; those who 'will get to it' rarely do.

Sequencing a sale to keep tech exposure

You hold 100 shares of QQQ purchased at $400 (current price $340 — a $6,000 unrealized loss). You also have $4,000 of realized gains from another position this year. You still want US tech-heavy exposure. Which sequence captures the tax benefit while preserving your investment thesis?

Show the answer

Answer: C. Sell QQQ and buy VGT the same day — the $6,000 loss offsets the $4,000 gain, the other $2,000 offsets ordinary income (within the $3,000 limit), and VGT avoids a wash sale

Buying QQQ back the same day fails the wash-sale rule (IRS §1091) because it is the textbook 'substantially identical' purchase that disallows the loss claim. Holding QQQ and selling something else leaves the $6,000 QQQ loss unharvested, and you don't need to step out of tech to harvest it — VGT (or XLK, FTEC, IYW, or similar tech-sector ETFs from different issuers with different underlying construction) provides equivalent exposure WITHOUT triggering wash-sale because they are not the same fund. Selling QQQ and buying VGT same day is the correct sequence: realize the $6K loss, redeploy into a similar-but-distinct ETF same day, capture the $4K gain offset plus a $2K deduction against ordinary income this year, maintain market exposure throughout. Source: IRS Publication 550 §Wash Sales; IRC §1091.

The routine that captures the most value

Mastery check

Counts toward mastery when you're signed in.

Which routine is most associated with capturing the maximum tax-loss-harvesting value over a multi-year holding period?

Checking this answer needs JavaScript, or open the lesson in the app.

Quiz · 1 question

Check your understanding

An investor refuses to harvest a $15,000 loss in a stock they no longer believe in, citing 'I don't want to lock in the loss.' Their marginal capital-gains rate is 20%. What is the most accurate framing of what they are doing?

Why:
Continue this lesson in the app →See it on a real ticker →