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.)
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.
§ 02Outcomes with and without harvesting
Position
Without Harvesting
With 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 gain
Realize 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 in
Loss compounds + thesis remains; no tax benefit
Sell, 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.
§ 03How 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.
§ 04Why 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.
§ 05Tally 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.
§ 06Harvesting 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.
§ 07Sequencing a sale to keep tech exposure
§ 08The routine that captures the most value
Mastery check
Counts toward mastery when you're signed in.
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?