Wash-Sale Rule
An IRS rule disallowing a capital loss if you buy a substantially identical security within 30 days before or after the sale.
What Wash-Sale Rule means
The wash-sale rule stops investors from claiming a loss on paper while keeping the position. If you sell a security at a loss and acquire the same or a substantially identical one within 30 days either side of that sale, the loss is disallowed for the year. The window is 61 days in total, counting the day of sale itself.
A disallowed loss is usually deferred rather than destroyed. The amount is added to the cost basis of the replacement shares and the original holding period carries over, so you recover the benefit when you eventually sell the replacement. The cost is timing, not the deduction — with one significant exception below.
The rule follows you across accounts, which is where most accidental violations happen. Selling at a loss in a taxable brokerage account and buying the same fund the next week inside an IRA triggers it, and in that case the loss is permanently lost, because an IRA has no taxable basis to absorb it. The IRS applies the rule across a spouse's accounts and a controlled corporation as well, and automatic dividend reinvestment quietly buys replacement shares on a schedule you may have forgotten about.
"Substantially identical" is deliberately undefined, and that ambiguity is what makes tax-loss harvesting workable. Selling one company's stock and buying a competitor's is clearly fine; selling an S&P 500 fund and buying the identical fund at another firm is clearly not. The common practice — swapping into a fund tracking a different index with similar exposure — sits in between and is widely used, though the IRS has never blessed it explicitly.
Two limits are worth remembering. The rule applies only to losses, so nothing prevents you from realizing a gain and repurchasing immediately. And your broker reports wash sales only for identical securities within the same account, so any violation spanning two accounts is yours alone to track and report.
Example
In practice: Selling a fund on December 1 for a $3,000 loss and rebuying it on December 20 disallows the loss — waiting until January 1, 31 days later, preserves it.
Related terms
Tax-Loss Harvesting
Deliberately selling losing investments to realize losses that offset taxable gains and a limited amount of ordinary income.
Capital Loss
The loss from selling an investment for less than you paid, which offsets capital gains and up to $3,000 of ordinary income a year.
Capital Gains
The profit from selling an asset for more than you paid, taxed at a lower rate if you held it longer than a year.
Cost Basis
What you originally paid for an investment, adjusted over time — the figure your taxable gain or loss is measured against.
ETF (Exchange-Traded Fund)
A fund holding a basket of investments that trades on an exchange like a single stock, usually tracking an index at low cost.
Index Fund
A fund that mechanically tracks a market index rather than picking stocks, giving broad exposure at very low cost.
Run the numbers
Income Tax Calculator (Federal Brackets)
Estimate your U.S. federal income tax, marginal and effective rates, and take-home pay — with a bracket-by-bracket breakdown of how your income is taxed.
Free newsletter
Get smarter about money — every week
Join thousands of readers who receive our carefully curated analysis on personal finance, investing, and economic trends.
No spam. Unsubscribe anytime. We never sell your data.