Skip to content

Wash-Sale Rule

The wash-sale rule (IRC 1091) disallows a capital loss when you buy the same or a substantially identical security within 30 days before or after the loss sale. The 61-day window includes IRAs and spousal accounts.

The rule exists to stop cost-free loss manufacturing: sell at a loss, claim the deduction, buy back a minute later. The window runs 30 days on both sides of the sale, and it is broader than most investors expect: dividend reinvestments and retirement-plan contributions count as purchases, a spouse’s account counts as yours, and a repurchase inside an IRA is the worst case, because Rev. Rul. 2008-5 disallows the loss with no basis adjustment anywhere, destroying it permanently. In a taxable account the disallowed loss at least folds into the replacement shares’ basis, deferring rather than erasing it.

“Substantially identical” has never been bright-lined by the IRS. Two share classes of the same fund clearly qualify; two funds tracking the same index are the gray zone practitioners avoid; funds covering the same market segment via different indexes are the standard harvest-and-swap vehicle. The tax loss harvesting calculator checks your repurchase timing against the window.

Used in these calculators

Guides that put this term to work

Related terms: Tax Loss Harvesting , Capital Gains Tax , Cost Basis

Last updated . Part of the FinExplained finance glossary .