← Back to Countries
πŸ‡ΊπŸ‡Έ United States  Β·  6 min read  Β·  Published 2026-09-07  Β·  Updated 2026-09-07
Sources last verified: 2026-09-07

The Wash Sale Rule

Selling at a loss to reduce a tax bill is one of the few genuinely free moves in a taxable account. The wash sale rule is the constraint that makes it non-trivial: buy the same thing back too soon and the loss does not count this year. Most people who fall foul of it never made a deliberate repurchase at all β€” a dividend reinvested automatically was enough.

60-SECOND ANSWER
A wash sale occurs when you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale. The loss is disallowed for that year and added to the basis of the replacement shares. The rule applies across all your accounts, including IRAs and your spouse's.

Where the AI summary above gets this wrong

"Wait 30 days after selling before you buy the stock back."

That's surface-true. Here's what it misses:

β†’ See what a disallowed loss defers

01 What the rule says

The wash sale rule disallows a loss where you sell a security and acquire the same or a substantially identical security within 30 days before or 30 days after the sale. That is a 61-day window centred on the sale date.

The loss is not destroyed in the ordinary case. It is added to the cost basis of the replacement shares, and the holding period carries over, so the benefit arrives when those shares are eventually sold rather than this year.

Acquiring an option or contract to buy the security counts as acquiring it. So does a purchase by your spouse, or by a company you control. The rule is deliberately hard to sidestep by moving the purchase somewhere adjacent.

Source: Publication 550

02 What 'substantially identical' means in practice

The same stock is obviously identical. Two index funds from different providers tracking the same index are, on most readings, not substantially identical β€” but two share classes of the same fund are, and an ETF and its own mutual fund equivalent are.

The practical approach in tax-loss harvesting is to move to a fund tracking a different index with similar exposure β€” a total market fund replaced by a large-cap index fund, say β€” which keeps the portfolio invested without the question arising. The exposure gap over 31 days is usually small relative to the tax saved.

The alternative, sitting in cash for 31 days, is a real risk. A market that rises during the window costs more than the harvest was worth, and that has happened often enough that avoiding it is the main reason to hold a replacement rather than cash.

WORKED EXAMPLE β€” Try the numbers

Shows: the tax the harvested loss would have saved this year, which a wash sale defers into the replacement shares' basis instead. Ignores: that the benefit is deferred rather than lost, the time value of waiting for it, state tax, and the $3,000 annual limit on offsetting ordinary income.

Tax benefit deferred by the wash sale
$1,800
A $12,000 loss would have saved $1,800 this year. A wash sale moves that into the replacement shares' basis, where it waits 12 years for the eventual sale.

Source: Topic 409: capital gains and losses

03 The settings that trigger it by accident

Automatic dividend reinvestment is the most common accidental trigger. A fund pays a dividend two weeks after you harvested a loss in it, the reinvestment buys shares, and part of the loss is disallowed. Turning reinvestment off before harvesting is the fix, and it needs doing in every account holding the security.

The second is a workplace plan or an automatic monthly contribution buying the same fund on schedule. The third is a spouse's account, which is invisible from your side of the household and counts anyway.

None of this makes harvesting not worth doing. It makes it worth doing deliberately: check what else buys the security automatically, pause it, harvest, and hold a non-identical replacement until the window closes. The wider asset location layout also matters here, because holding the same fund in both a taxable account and an IRA is what creates the permanent version of the problem.

Source: Publication 550

Almost every wash sale I have seen was created by a setting nobody remembered switching on. Dividend reinvestment is on by default at most brokers, and it does not ask before buying. If you harvest losses at all, the habit worth building is to check the reinvestment setting in every account that holds the fund before you sell, not after. It takes two minutes and it is the difference between a loss you can use this year and one you get back in a decade.

β€” Jordan Reeves, founder

FAQ

How long do I have to wait to buy back a stock I sold at a loss?

31 days after the sale. The rule covers 30 days before and 30 days after, so a purchase anywhere in that 61-day window disallows the loss for that year.

Does a wash sale in my IRA matter?

Yes, and more than elsewhere. If you sell at a loss in a taxable account and buy the same security in your IRA within the window, the loss is disallowed permanently, because there is no basis in the IRA to add it to.

Are two different index funds substantially identical?

Funds from different providers tracking different indexes are generally not, which is why harvesting usually swaps into a similar but not identical fund. Two share classes of the same fund are identical.

Sources

Regulator references

Calculator unit tests Β· the assertions this page's worked example is checked against, and their last result

Changelog

Run this rule against your situation

See what this rule does to your own projection β€” month by month, to age 90.

Join the Waitlist
Jordan Reeves

Jordan Reeves

Founder of Talk Through Wealth. A software engineer for over a decade before turning to retirement planning, Jordan built the projection engine after watching family members get fragmented, country-by-country advice that never reconciled. He writes about retirement the way the engine computes it: month-by-month, lifetime-long, and skeptical of any rule of thumb that hasn't been run through the math.

More from Jordan β†’ Β· LinkedIn

Disclaimer: General information for US residents, not personal financial advice. Figures use 2026 IRS rules and assumptions you can change in the worked example. Your situation may vary β€” consider speaking with a licensed financial adviser before acting.