An investor can sell a holding at a loss and buy it back shortly afterward, ending up with the same position. Wash sale rules exist because that sequence would otherwise generate a deduction without any real change.

The rule targets a specific pattern

Without a restriction, an investor could sell at a loss purely to record it, repurchase immediately, and continue holding exactly what they held before.

The economic position would be unchanged while a loss had been claimed, which is the outcome the rule is designed to prevent.

The rule therefore looks at purchases surrounding a loss sale rather than at the sale in isolation. What matters is the whole sequence of trades, not the single transaction that produced the loss.

The window runs in both directions

The restriction applies to acquisitions of substantially identical securities within a defined period both before and after the loss sale.

The symmetry catches an investor who buys additional shares first and then sells an older lot at a loss, which would otherwise sidestep a forward-looking rule.

Because the window extends on both sides, a routine purchase made before a decision to sell can trigger the rule unintentionally.

Disallowed does not mean destroyed

A loss caught by the rule is not permanently lost. It is added to the cost basis of the replacement shares.

The effect is to defer the loss until the replacement position is eventually sold outside the window, rather than to eliminate it.

The holding period of the disposed shares also carries over to the replacement, which affects how a later sale is characterized. Both adjustments travel together, so the record has to follow the position forward.

Substantially identical is the ambiguous term

The rule turns on whether the replacement is substantially identical to what was sold, and that phrase does not have a mechanical definition covering every case.

The same security repurchased is clearly covered. Two different funds tracking different indexes are generally not treated the same way, though the analysis depends on the facts.

The uncertainty sits in the middle of that range, which is where the judgment of a qualified tax professional becomes relevant.

Accounts and automation complicate tracking

Purchases in a retirement account can affect the treatment of a loss taken in a taxable account, so looking at one account alone can be misleading.

Automatic dividend reinvestment and recurring purchase plans generate acquisitions on their own schedule, which can fall inside a window without any deliberate action.

These rules are detailed, they apply to individual circumstances, and they change over time, so current guidance and professional advice govern any actual situation.