Wash Sale Rule

The wash sale rule is a US tax rule that disallows a loss on selling a stock or security if a substantially identical one is bought within 30 days before or after the sale.

The rule covers a 61-day window: 30 days before the sale, the sale date, and 30 days after. If a replacement purchase falls inside that window, the loss cannot be claimed right away. Instead it is added to the cost basis of the replacement holding, which defers the tax benefit until that holding is sold.

For example, someone buys shares for $5,000, sells them for $3,000, and buys the same shares back two weeks later. The $2,000 loss is disallowed for now, and the new shares carry a higher cost basis. If the same pattern happened with a cryptocurrency, the result could be different. The rule's text covers stocks and securities, and the IRS treats most crypto as property, so the rule has generally not applied to it. This has allowed tax-loss harvesting: selling crypto at a loss to offset capital gains, then quickly buying it back.

Two misconceptions are common. The first is that this treatment is permanent. Lawmakers have proposed extending the rule to digital assets, and a token classed as a security could already fall under it. Other countries have their own rules too. The UK, for instance, applies a 30-day matching rule to crypto disposals. The second is confusing it with wash trading, which is trading with oneself to fake market activity. That is a separate issue about market manipulation, not tax.

Learn more

Related terms