Wash Sale
A sale at a loss that the IRS disallows because you bought the same or a substantially identical security within 30 days before or after the sale.
Formula
More Details
What is a Wash Sale?
Under the US wash sale rule, you cannot deduct a loss on a sale if you buy the same or a substantially identical security within 30 days before or after it. The window covers 61 days: the 30 days before the sale, the day of the sale, and the 30 days after.
The loss is not gone. It is added to the cost basis of the replacement shares, so you claim it later when you sell those. The holding period of the shares you sold also carries over to the replacement.
A Simple Example
| Date | Action | Result |
|---|---|---|
| Mar 10 | Sell 100 shares at a $500 loss | Loss of $5.00 per share |
| Mar 25 | Buy 40 shares back | 40 of the 100 shares are replaced |
$200 of the loss (40 x $5.00) is disallowed and added to the cost of the 40 new shares. The other $300 is deductible now.
Things Traders Miss
- Purchases before the sale count too. Buying more shares in the 30 days before a losing sale can wash it.
- Options count. Selling a stock at a loss and buying a call on the same stock within the window can trigger the rule. The IRS has not said whether a different strike or expiry of the same underlying is substantially identical.
- Short sales count. Covering a short at a loss and shorting again within 30 days follows the same rule.
- All your accounts count. A repurchase in another brokerage account or an IRA washes the loss, but each broker only reports wash sales inside its own account.
- Chains. If the replacement shares are later sold at a loss and bought back again, the carried loss moves forward again.
Canada: the Superficial Loss Rule
Canada has a similar rule. A loss is denied if you or an affiliated person buy the same security within 30 days before or after the sale and still hold it 30 days after the sale. The denied loss is added to the adjusted cost base of the shares bought back.
Wash Sales in TradesViz
The Wash Sales report in your trading journal checks every losing sale against repurchases within the 61-day window:
- Stocks by symbol and options by exact contract
- Across all the accounts you select, not just one broker
- Shows the disallowed loss and the amount carried into each replacement position
- Export to CSV
Results cover the trades you have imported. Positions that were already open before your first import, and accounts you have not imported, are not included.
Where to find it in TradesViz
Example
Sell 100 shares at a $500 loss on March 10 and buy 40 back on March 25: $200 of the loss is disallowed and added to the cost of the 40 new shares.