Wash Sale Rules
What Is the Wash-Sale Rule?
The wash-sale rule is an Internal Revenue Service (IRS) regulation that prevents a taxpayer from claiming a loss on the sale of an investment if a substantially identical investment was purchased within 30 days before or after the sale.
The wash-sale rule is a specific tax regulation established by the Internal Revenue Service (IRS) in the United States to prevent investors from generating artificial or "sham" tax losses. The core principle of the rule is that you cannot claim a tax deduction for a loss on the sale of a security if you simply buy it right back. Specifically, it dictates that if you sell a security at a loss and purchase a "substantially identical" security within a 61-day window—defined as 30 days before the sale, the day of the sale, and 30 days after the sale—the loss cannot be immediately claimed for tax purposes. Instead, the loss is disallowed and added to the cost basis of the newly purchased security. The primary purpose of this rule is to stop a practice known as "tax loss harvesting" being used abusively. Tax loss harvesting involves selling a losing position to offset capital gains or up to $3,000 of ordinary income. Without the wash-sale rule, an investor could sell a stock that is down 20% on December 31st to book the tax loss, and then immediately buy it back on January 2nd to maintain their exposure to the asset. This would allow them to lower their tax bill without genuinely exiting the investment. By disallowing the immediate deduction, the IRS ensures that a tax loss is only recognized when the investor has genuinely exited the position and exposed themselves to the risk of being out of the market. This rule applies to a wide range of investment vehicles, including individual stocks, bonds, mutual funds, exchange-traded funds (ETFs), and options contracts. Crucially, it applies across all accounts controlled by the taxpayer, including individual brokerage accounts, joint accounts, and Individual Retirement Accounts (IRAs). This means you cannot sell a stock for a loss in a taxable brokerage account and buy it back in your IRA within the 30-day window without triggering the rule. In fact, doing so is even worse than a standard wash sale, as the loss is permanently disallowed rather than just deferred.
Key Takeaways
- The wash-sale rule disallows claiming a tax loss if a substantially identical security is bought within a 61-day window surrounding the sale.
- The window includes the 30 days before the sale, the day of the sale, and the 30 days after the sale.
- The disallowed loss is added to the cost basis of the new security, deferring the tax deduction until the new position is sold.
- The rule applies to stocks, bonds, mutual funds, ETFs, and options.
- It prevents investors from selling specifically to realize a tax loss while effectively maintaining their position.
How the Wash-Sale Rule Works
The mechanics of the wash-sale rule revolve around the strict 61-day timeframe and the adjustment of cost basis. When a wash sale is triggered, the disallowed loss is not simply erased; it is transferred to the replacement security. 1. The Trigger: You sell Security A for a $1,000 loss. Within 30 days, you buy Security B, which is "substantially identical" to Security A. The wash sale is triggered. 2. Basis Adjustment: The $1,000 loss is added to the cost basis of Security B. If you bought Security B for $10,000, your new cost basis for tax purposes is $11,000. 3. Deferral: This adjustment effectively defers the tax benefit. When you eventually sell Security B, your capital gain will be smaller (or your capital loss larger) by exactly $1,000 because your starting basis was higher. You essentially get the tax benefit later, when you finally close the position for good. 4. Holding Period Tacking: The holding period of the original stock (Security A) is added to the holding period of the replacement stock (Security B). This is crucial because it can affect whether a future gain is taxed at the lower long-term capital gains rate (for assets held over one year) or the higher short-term capital gains rate. The rule is triggered not just by buying the exact same stock, but also by acquiring a contract or option to buy substantially identical stock. This complexity requires careful tracking by active traders, as frequent trading can create a "chain" of wash sales that pushes the realization of losses far into the future.
Important Considerations for Traders
Traders must be extremely vigilant about the wash-sale rule, especially during volatile market periods where active trading is common. Automated trading strategies or rebalancing algorithms can inadvertently trigger wash sales if not properly configured. For example, a dividend reinvestment plan (DRIP) that automatically buys shares within 30 days of a sale can trigger a partial wash sale. It is important to note that the rule applies to "substantially identical" securities, not just identical ones. While the IRS has not provided a precise definition of "substantially identical," it generally means securities of the same company with similar characteristics. For example, common stock and preferred stock of the same company might not be substantially identical, but two different share classes (Class A vs. Class C) likely are. A common strategy to avoid the rule is to swap into a similar but not identical ETF. For instance, selling a specific tech stock and buying a broad Technology Sector ETF is generally considered safe, as the ETF represents a basket of stocks rather than the single company. Additionally, wash sales across different accounts (e.g., selling in a taxable account and buying in an IRA) are strictly prohibited and can lead to permanent loss of the tax deduction. Because the basis in an IRA cannot be adjusted (since gains are tax-deferred or tax-free), the disallowed loss simply evaporates. This is a common and costly mistake for investors managing multiple portfolios.
Real-World Example: Wash-Sale Calculation
Consider an investor who buys 100 shares of TechCorp at $50 per share. The stock price drops, and they sell the shares at $40, incurring a $1,000 loss. Two weeks later, believing the stock will rebound, they buy 100 shares of TechCorp again at $42.
Strategies to Avoid Wash Sales
To avoid triggering the wash-sale rule, investors have a few options. The simplest is to wait at least 31 days after selling a security at a loss before repurchasing it. This "cooling off" period ensures the loss is allowed. Another strategy is to purchase a security that is similar but not "substantially identical," such as a competitor in the same industry (e.g., selling Coke and buying Pepsi) or an ETF that tracks a different index but gives similar exposure. Finally, traders can "double up" on a position they intend to sell; buy the new shares first, wait 31 days, and then sell the original shares at a loss.
Common Beginner Mistakes
Avoid these errors regarding wash sales:
- Thinking the rule only applies to the exact same ticker symbol.
- Believing that selling in a taxable account and buying in an IRA avoids the rule.
- Assuming the broker will always flag potential wash sales across different institutions (they won't).
- Forgetting that the window extends 30 days *before* the sale as well.
FAQs
No, the wash-sale rule only applies to losses. If you sell a security at a profit and immediately buy it back, you must report the capital gain and pay taxes on it. The IRS does not restrict you from realizing gains and resetting your cost basis higher.
The IRS does not strictly define "substantially identical," but it generally refers to securities issued by the same corporation with similar rights and provisions. For example, two different classes of common stock from the same company might be substantially identical. Converting bonds into stock or buying call options on the stock you sold also counts.
Generally, yes. Selling a specific stock (e.g., Apple) and buying a technology ETF (e.g., XLK) is usually not considered a wash sale because the securities are not substantially identical. The ETF represents a basket of stocks, not just the single company you sold.
Day traders are frequently subject to wash-sale rules because they buy and sell the same securities often. If a day trader does not have "mark-to-market" accounting status (Section 475 election), they cannot claim losses on wash sales, which can result in a significant tax liability on phantom profits.
Currently, the wash-sale rule applies to securities (stocks, bonds, options). As of early 2024, digital assets like cryptocurrencies are classified as property, not securities, for tax purposes, so the wash-sale rule technically does not apply. However, legislation has been proposed to close this loophole, so traders should stay updated on tax laws.
The Bottom Line
The wash-sale rule is a critical tax regulation that prevents investors from claiming artificial losses by repurchasing the same or substantially identical security within 30 days. While it limits immediate tax deduction, the loss is not forfeited but rather deferred by adjusting the cost basis of the new holding. Active traders and investors engaging in tax-loss harvesting must carefully track their transaction dates to avoid inadvertent wash sales. Understanding the 61-day window and the definition of "substantially identical" allows investors to manage their portfolios efficiently without running afoul of IRS regulations. Proper planning can help preserve tax benefits while maintaining desired market exposure. Always consult a tax professional for complex situations.
More in Tax Planning
At a Glance
Key Takeaways
- The wash-sale rule disallows claiming a tax loss if a substantially identical security is bought within a 61-day window surrounding the sale.
- The window includes the 30 days before the sale, the day of the sale, and the 30 days after the sale.
- The disallowed loss is added to the cost basis of the new security, deferring the tax deduction until the new position is sold.
- The rule applies to stocks, bonds, mutual funds, ETFs, and options.