Skip to main content
Monday, November 16, 2026Nov 16

Tax loss selling: Avoid the wash sale trap

Investors will be delighted to ring out the year of 2022. But as we approach December 31, this awful market has provided a target-rich environment for harvesting tax losses in non-retirement accounts to reduce the toll to Uncle Sam.

It is common and somewhat reassuring to adopt a mindset that doesn’t count our losses before they are hatched. Sharp market declines can perhaps be more easily weathered by telling ourselves that we really haven’t suffered a loss unless we sell, and for investors with the appropriate long-term view this is a valid perspective. However, there are times in taxable accounts when one can have their cake and eat it too by realizing a loss now to use against future gains, and then repurchasing the position to maintain exposure and benefit from any recovery. The key to success is to avoid a tax trap known as a wash sale.

The wash sale rule exists to prevent taxpayers from deducting losses without a material change in financial position. The rule prohibits selling a security at a loss and buying it back within 30 days, either before or after the sale date.

For example, suppose you had purchased 100 shares of Tesla stock in a brokerage account on November 1, 2021 at a price of $400, for a total of $40,000. On November 1 of 2022 you sold the shares for $20,000, capturing a long-term loss of $20,000. Unaware aware of the wash sale rule, you repurchase the shares a week later for $18,000. Come tax time, the IRS will disallow the capital loss on your 2022 tax return and you will not be able to offset other gains this year.

The rule applies retrospectively as well. Say you owned 100 Tesla shares and purchased an additional 100 shares on October 15, 2022. Your sale on November 1 would violate the wash sale rule. However, had you already owned 200 shares for over 30 days, the partial sale would be deductible.