Skip to main content
Not investment advice. Educational reading. See Disclaimer.
L.11 · BEGINNER · 4 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 · 1 question ↓

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

Caution: 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

One consolation: in a normal TAXABLE wash sale, the loss isn't destroyed — it's added to the cost basis of the replacement shares, so you get it back when you eventually sell them. The IRA trap above is the exception: that loss is gone for good.

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?

Show the answer

Answer: B. Swap into a similar-but-different fund like ITOT instead of re-buying VTI inside 30 days

The wash-sale rule disallows your tax loss if you buy the same or a substantially identical security within 30 days before or after the sale. Selling VTI and buying ITOT sidesteps it: both track the broad US market, so your exposure barely changes, but they are different funds tracking different indexes, which most practitioners treat as not substantially identical (the IRS has never published a bright-line test). You book the loss and stay invested — which matters, because sitting in cash for 30 days to protect a modest deduction can cost more than the deduction is worth if the market rises. The strongest distractor is selling VTI and re-buying it the next afternoon. It is the intuitive move, and the reason the rule exists at all: without it, anyone could harvest a loss every December without ever changing what they own. Note also that the window is 61 days in total — 30 before the sale, the sale day, and 30 after — so a purchase made in advance washes the loss too. Harvesting inside a Roth IRA accomplishes nothing, since there is no taxable gain to offset. Worse, re-buying the sold fund in an IRA during the window destroys the loss permanently rather than merely deferring it. Two practical traps: turn off dividend reinvestment on a position before harvesting it, and remember that a spouse's accounts count as yours. Takeaway: harvesting works when you change the fund without changing your exposure. Verify current rules against irs.gov Topic 409 before acting.

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.

Quiz · 1 question

Check your understanding

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 →