Glossary term

Wash-Sale Rule

The wash-sale rule disallows a tax loss when substantially identical stock or securities are bought within the IRS wash-sale window around the loss sale.

Byline

Written by: Editorial Team

Updated

April 21, 2026

What Is the Wash-Sale Rule?

The wash-sale rule is the federal tax rule that can disallow a loss when substantially identical stock or securities are bought within the IRS wash-sale window around the loss sale. The rule matters because it limits how investors can use tax losses in a taxable account. A sale that looks like a realized tax loss may not stay usable if the investor re-establishes the same position too quickly.

The term shows up most often in discussions of tax-loss harvesting, but the rule is broader than one planning strategy. It is the operational rule that stops a taxpayer from claiming a loss while effectively keeping the same economic position with only a brief interruption.

Key Takeaways

  • The wash-sale rule can disallow a loss if substantially identical securities are bought too close to the loss sale.
  • The key window includes 30 days before the sale, the sale date itself, and 30 days after the sale.
  • A disallowed loss is generally added to the cost basis of the replacement position rather than disappearing permanently in every case.
  • The rule is most important in taxable investing, not inside tax-sheltered account reporting.
  • The wash-sale rule can limit the immediate value of a capital loss carryover strategy if replacement trades are handled badly.

How The Wash-Sale Window Works

The federal wash-sale window is commonly described as a 61-day period. It includes the 30 days before the loss sale, the day of the sale, and the 30 days after the sale. If the investor buys substantially identical stock or securities during that period, the loss on the sale may be disallowed for current tax purposes.

This is why the rule is not only about what happens after the sale. A purchase made shortly before the sale can also create the wash-sale problem. Operationally, investors have to think in both directions around the loss transaction.

What Happens When The Loss Is Disallowed

A disallowed wash-sale loss usually is not treated as if it never existed economically. Instead, the disallowed amount is generally added to the basis of the replacement shares. That can push the tax effect into a later sale rather than allowing the loss immediately in the current year.

The holding period of the old shares can also affect the replacement position. That detail matters because it changes the tax history attached to the new lot. The practical lesson is that a wash sale usually delays recognition of the loss rather than creating a clean current-year deduction.

How "Substantially Identical" Limits Tax-Loss Harvesting

The hardest part of wash-sale compliance is often not the date count. It is the question of whether the replacement position is substantially identical to the position that was sold. Identical shares of the same stock are the clearest case, but investors can create gray-area questions when they use options, closely related funds, or rapid account switching.

That is why the wash-sale rule is partly a trade-execution issue. A tax plan can fail because of portfolio operations, automatic reinvestment, or replacement choices that were treated too casually.

Wash-Sale Rule Versus Tax-Loss Harvesting

Tax-loss harvesting is the deliberate realization of losses to improve tax efficiency. The wash-sale rule is one of the main limits on that strategy. Harvesting works only when the investor realizes a usable loss. If the investor sells a losing position and then buys substantially identical securities inside the wash-sale window, the intended tax benefit may be postponed instead.

This is why harvesting is not just about finding losers. It is also about replacement design, lot control, dividend reinvestment settings, and timing. The tax value comes from both the sale and the discipline around what happens next.

Example Of The Wash-Sale Rule

Suppose an investor buys stock for $10,000, sells it for $8,000, and expects to use the $2,000 loss for tax purposes. If the investor buys substantially identical shares again a week later, the loss may be disallowed under the wash-sale rule. Instead of using the full loss immediately, the investor generally adds the disallowed amount to the basis of the replacement shares.

That means the economic loss still happened, but the current-year tax result is different from what the investor expected. The rule changes timing and reporting, which is why it matters so much in taxable portfolio management.

The Bottom Line

The wash-sale rule disallows a tax loss when substantially identical stock or securities are bought within the IRS wash-sale window around the loss sale. It matters because the rule can turn an apparent current-year loss into a deferred tax adjustment if replacement trades are handled too aggressively.