Selling a position at a loss and rebuying it moves real cash. U.S. federal income tax can change the timing of loss recognition. Keep separate columns for economic loss, currently recognized loss and replacement tax basis. This illustration involves identical common stock in a U.S. individual taxable account, with no commissions or other transactions.
Match the shares that were replaced
Suppose 100 shares with basis of $50 each are sold at $40, a $1,000 economic loss. Ten days later, 40 identical shares are repurchased for $42. IRS Publication 550 describes the 30 days before and after a loss sale and the substantially identical security standard. The 40 matched shares defer $400. The other $600 is subject to the ordinary capital-loss rules.
IRS Publication 550, Wash Sales
| Item | Calculation | Amount |
|---|---|---|
| Economic loss | 100 × 10 | $1,000 |
| Deferred amount | 40 × 10 | $400 |
| Total replacement basis | 40 × 42 + 400 | $2,080 |
| Basis per replacement share | 2,080 ÷ 40 | $52 |
If the 40 replacement shares are later sold at $55 with no new wash sale, the gain is 40 × (55 − 52) = $120. Using only the $42 cash purchase price would produce $520, a difference of the deferred $400. Under the ordinary rule illustrated here, the earlier holding period also carries over to the replacement shares.
Across both trades, the initial economic loss of 1,000 and the subsequent cash gain of 520 net to a loss of 480. The recognized loss of 600 followed by a taxable gain of 120 produces the same net loss under the stated assumptions. The timing and allocation differ.
Open the calendar on both sides of the sale
Look back thirty days as well as forward, including across year-end. List dates, lots, quantities, bases and account types. An IRA acquisition can have different consequences, including a different treatment of replacement basis. Substantial identity depends on the securities involved, and other tax jurisdictions have their own rules.
Further reading · Michael Burry, Trading Post October 5, 2026