Skip to main content Skip to main content
Not investment advice. Educational reading. See Disclaimer.
L.11 · BEGINNER · 3 MIN

Tax-Loss Harvesting — The Mechanics

Tax-loss harvesting (TLH) is selling an investment that is down to realize a loss on paper, using that loss to offset capital gains (and up to $3,000 of ordinary income per year), then immediately buying a similar -- but not identical -- fund so you stay invested. You keep your market exposure while booking a tax deduction. This module is the HOW; bf-13 covers the behavioral why.

Quiz · 5 questions ↓

The three steps of harvesting a loss

StepWhat you doWatch out for
1. Sell the loserSell a fund trading below what you paidOnly works in a TAXABLE account
2. Book the lossOffset gains, then up to $3,000 of income; carry the rest forwardUnused losses carry forward indefinitely
3. Re-buy similarBuy a not-substantially-identical fund (e.g. VTI then ITOT)Wash-sale: do not re-buy the SAME fund within 30 days

The wash-sale rule and how to avoid it

The wash-sale rule (IRC Section 1091) disallows the loss if you buy the same or a 'substantially identical' security within 30 days before or after the sale. The fix: swap to a DIFFERENT fund tracking a similar index (sell VTI, buy ITOT) so you keep market exposure without triggering the rule. Verify current limits against irs.gov Topic 409.

Four ways people trip the wash-sale rule

Wash-sale fine print: the four ways people trip it by accident
TrapWhat happensHow to stay clear
The window is 61 days, not 30It counts 30 days BEFORE the sale, the sale day, and 30 days AFTER -- buying in advance washes the loss tooNo purchase of the same fund anywhere in that full window
Re-buying inside an IRAThe harshest version: replace the sold fund in your IRA (or Roth) within the window and the loss is PERMANENTLY gone -- it can't be added to any basisPause IRA contributions into that same fund during the window, or buy the sibling fund there too
Dividend reinvestment (DRIP)An automatic reinvested dividend in the sold fund counts as a purchase and washes that slice of the lossTurn off auto-reinvest on a position before harvesting it
Spouse and other accountsYour spouse's accounts and your other accounts all count as 'you' -- a re-buy in any of them triggers the ruleCoordinate the household's accounts before selling

Harvest a loss without breaking the rule

Only relevant in a taxable account: if a holding is underwater near year-end, you can harvest the loss and rotate into a sibling fund -- but never re-buy the identical fund within 30 days, or the loss is disallowed.

A real but modest tax edge

Tax-loss harvesting is a real but modest edge -- a few hundred dollars of tax deferral in a normal year, more in a crash. It is NOT a reason to sell good investments; it is a way to make a paper loss slightly useful while staying invested.

Staying on the right side of the wash-sale rule

You want to harvest a loss on VTI but stay invested in US stocks. What keeps you on the right side of the wash-sale rule?

The psychology of realizing a loss

Related reading: the psychology of harvesting losses

This module is the mechanics; the harder part is doing it without flinching. Behavioral Finance module bf-13 (Tax-Loss Harvesting Psychology) covers why realizing a loss feels like admitting defeat -- and when the math should override that instinct.

Check your understanding

Sit with the ideas.

After selling a fund at a loss to harvest it, what does the wash-sale rule prevent you from doing?

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