When you sell a security at a loss and repurchase the same or a “substantially identical” asset within 30 days, you have entered the territory of the wash sale rule. Originally established by Congress in the mid-1950s, this regulation was designed to prevent taxpayers from manufacturing artificial losses for tax benefits while maintaining their economic position in a security. For active traders and long-term investors alike, mastering these nuances is essential to effective tax planning.
The technical foundation of the wash sale rule resides in Section 1091 of the Internal Revenue Code. At its core, the rule prohibits the deduction of a capital loss if a “wash” occurs within a 61-day window—specifically, the 30 days before the sale, the day of the sale itself, and the 30 days following the sale. This expansive window ensures that investors cannot circumvent the intent of the law by timing their trades too closely together. If you sell shares of a tech giant at a loss and buy them back 15 days later, the IRS views that transaction as a wash, effectively hitting the pause button on your tax deduction.

Triggering a wash sale does not mean your tax loss is gone forever; rather, it is deferred. The disallowed loss is added to the cost basis of the newly purchased security. This adjustment is a double-edged sword: while you cannot claim the loss today, the higher cost basis will eventually reduce your capital gains (or increase your future loss) when you finally exit the position permanently. For example, if you buy a stock at $100, sell it at $80, and rebuy at $75 within the window, your $20 loss is tacked onto the new $75 purchase. Your adjusted cost basis becomes $95, preserving the tax benefit for a future date when you truly liquidate the investment.
Many taxpayers stumble into wash sale traps without realizing it, often during the “Super Bowl” of the financial year: year-end tax planning. Here are the most frequent errors encountered by our firm:

Currently, direct holdings of cryptocurrency are treated as property rather than securities by the IRS. This classification creates a unique opportunity for tax-loss harvesting. You can sell a digital asset at a loss and immediately repurchase it without triggering Section 1091. However, be cautious: Crypto ETFs and trusts are treated as securities and are fully subject to wash sale rules. Furthermore, legislative proposals are frequently introduced to close this loophole, so what works today may not work tomorrow.

To navigate these rules successfully, consider a “wait-and-watch” approach or a “substitution” strategy. If you need to harvest a loss but want to maintain market exposure, you might buy a security that is correlated but not substantially identical—such as moving from an individual stock to a sector-specific fund. Mapping your trades on a calendar and setting reminders for the 31st day after a sale can provide the clarity needed to avoid accidental violations.
As an Enrolled Agent focused exclusively on solving complex tax problems, I help clients navigate these intricate IRS regulations to ensure their investment strategies remain tax-efficient. If you are concerned about how your recent trading activity might impact your tax liability, contact this office today to schedule a personalized strategy session.
Beyond the basic mechanics, the concept of “substantially identical” warrants a closer look, particularly for those utilizing sophisticated hedging strategies. While the IRS has not provided a rigid definition, case law suggests that if the price movements of two securities are nearly perfectly correlated and the underlying assets are essentially the same, you are at risk. For instance, swapping a Class A share of a company for a Class C share of that same company—where the only real difference is voting rights—will almost certainly trigger a wash sale. Similarly, if you sell a call option at a loss and buy the underlying stock within the window, the loss is disallowed because the option gave you a “contract or option to acquire” the security.
One of the most significant traps involves retirement accounts. Under Revenue Ruling 2008-5, if you sell a security at a loss in a taxable brokerage account and, within the 30-day window, you purchase that same security inside an IRA or a Roth IRA, the wash sale rule applies. However, there is a major catch: unlike a normal wash sale where the loss is added to the basis of the new purchase, you cannot increase the basis of your IRA. This means the tax loss is permanently lost, providing no future tax benefit. This makes it critical to coordinate trades across all your accounts, including those managed by spouses or controlled entities, as the IRS often views the household as a single economic unit in these scenarios.
The 61-day window is also often misunderstood. Many focus only on the 30 days after a sale, but the 30 days “before” are equally important. This is known as the “double-up” trap. If you buy more of a stock you already own because the price has dipped, and then sell your original high-cost shares for a loss within 30 days of that new purchase, the loss is disallowed. To properly harvest that loss, you must ensure a clear 31-day gap exists between any purchase and any sale of the same security. For those involved in short selling, the timing rules are slightly different but follow a similar logic: a wash sale occurs if you close a short position at a loss and then, within the window, enter into another short sale of the same security or buy the security outright. By staying disciplined and planning your exits with this buffer, you can protect your portfolio’s tax efficiency and ensure your tax planning remains robust throughout the year.
Sign up for our newsletter.