What is the wash sale rule?

The wash sale rule is a US tax regulation that states if an asset is sold at a loss that loss can only be claimed if the asset is not repurchased within 30 days. If it’s repurchased before those 30 days, the ability to claim those losses is deferred. It applies to individuals and their spouses, and their associated companies. It’s intended to prevent taxpayers from claiming artificial losses.