Wash-Sale Rule

Written by: Editorial Team

What Is the Wash-Sale Rule? The Wash-Sale Rule is a tax regulation enforced by the Internal Revenue Service (IRS) that prevents investors from claiming a tax deduction on capital losses if they repurchase the same or a substantially identical security within a 30-day window befor

What Is the Wash-Sale Rule?

The Wash-Sale Rule is a tax regulation enforced by the Internal Revenue Service (IRS) that prevents investors from claiming a tax deduction on capital losses if they repurchase the same or a substantially identical security within a 30-day window before or after selling it at a loss. The rule is designed to discourage taxpayers from selling securities solely for tax benefits while maintaining their position in the investment.

How the Wash-Sale Rule Works

When an investor sells a stock, bond, mutual fund, or other security at a loss, they typically have the ability to use that loss to offset capital gains and potentially reduce taxable income. However, if the same security—or one that is deemed "substantially identical"—is repurchased within 30 days before or after the sale, the IRS disallows the loss for tax deduction purposes. Instead, the disallowed loss is added to the cost basis of the repurchased security, which may reduce taxable gains when the investor eventually sells it.

For example, assume an investor purchases 100 shares of a company for $5,000. If the stock price drops and they sell the shares for $4,000, they would incur a $1,000 capital loss. Normally, they could use this loss to offset other capital gains or deduct a portion against ordinary income. However, if they repurchase the same stock within 30 days, the IRS treats it as a wash sale, disallowing the loss for immediate tax deduction. Instead, the $1,000 disallowed loss is added to the cost basis of the repurchased shares, adjusting it from $4,000 to $5,000. This ensures that the loss is not permanently erased but is deferred until the new shares are sold.

Key Elements of the Wash-Sale Rule

  1. The 30-Day Window: The wash-sale period spans 30 days before and 30 days after the sale of a security at a loss, making it effectively a 61-day period where the rule applies.
  2. Substantially Identical Securities: The IRS does not provide an exact definition of "substantially identical," but it generally includes the same stock, bond, or mutual fund, as well as options or contracts linked to the same security.
  3. Different Accounts: The rule applies across all accounts an investor controls, including taxable brokerage accounts, IRAs, and accounts held by a spouse.
  4. Cost Basis Adjustment: Instead of claiming an immediate loss, the disallowed loss is added to the cost basis of the repurchased security, impacting future tax calculations.

Application to Various Investment Types

The wash-sale rule applies not only to individual stocks but also to mutual funds, ETFs, bonds, and options. However, its interpretation can vary:

  • Stocks & ETFs: If an investor sells an individual stock and buys the same stock within the wash-sale window, the rule applies. For ETFs, purchasing a different fund with similar exposure (e.g., two S&P 500 index funds from different providers) may or may not trigger the rule depending on how the IRS views their similarity.
  • Mutual Funds: Selling one mutual fund and purchasing another with a nearly identical portfolio can be considered a wash sale.
  • Options & Derivatives: Buying call options or writing put options on the same stock shortly after selling the stock at a loss may trigger the wash-sale rule.
  • Cryptocurrency: As of now, the wash-sale rule does not apply to cryptocurrencies because they are classified as property, not securities, under U.S. tax law. However, legislative efforts could change this in the future.

Wash-Sale Rule and Retirement Accounts

One often overlooked aspect of the wash-sale rule is its application to retirement accounts such as IRAs (Traditional and Roth). If an investor sells a stock in a taxable brokerage account at a loss and repurchases the same stock in their IRA within the wash-sale window, the capital loss is permanently disallowed. Unlike in taxable accounts, where the loss is added to the cost basis of the new investment, a loss triggered by an IRA wash sale is not recoverable in any way.

Wash-Sale Rule and Tax Planning

The wash-sale rule can complicate tax planning, particularly for active traders or investors who engage in tax-loss harvesting. Tax-loss harvesting is a strategy where investors intentionally sell securities at a loss to offset capital gains. However, to comply with the wash-sale rule while still maintaining market exposure, investors often use alternative securities that provide similar but not substantially identical exposure.

For instance, an investor holding an S&P 500 ETF who wants to harvest losses without triggering the wash-sale rule might sell their shares and purchase a Total Stock Market ETF, which provides broad market exposure but is not identical. Another common approach is to wait 31 days before repurchasing the same security.

IRS Enforcement and Record-Keeping

Brokerage firms typically track wash sales within the same account and adjust cost bases accordingly, but investors are responsible for monitoring wash sales across multiple accounts. The IRS does not provide clear guidance on what qualifies as "substantially identical" in all scenarios, so the responsibility of compliance falls on taxpayers.

Investors should maintain detailed records of all trades, particularly if they engage in frequent buying and selling. Failing to account for wash sales properly can lead to incorrect tax filings, which may result in IRS penalties.

Strategies to Avoid Wash Sales

To minimize the impact of the wash-sale rule, investors can adopt several strategies:

  • Wait 31 Days: The simplest way to avoid a wash sale is to wait at least 31 days before repurchasing the same or substantially identical security.
  • Use Alternative Investments: If maintaining market exposure is a priority, an investor can purchase similar but not identical securities, such as switching from a large-cap index fund to a total market index fund.
  • Harvest Losses in December: Since many investors engage in tax-loss harvesting at the end of the year, ensuring no repurchases occur within the 30-day window into January is crucial.
  • Monitor Retirement Account Activity: Avoid repurchasing the same security in an IRA if a taxable account sale at a loss has recently occurred.

The Bottom Line

The wash-sale rule is a crucial tax regulation that prevents investors from claiming losses on securities repurchased within a 30-day period before or after a sale. While the rule does not eliminate the tax benefit of a loss entirely, it defers it by adjusting the cost basis of the new purchase. Investors should be mindful of how the rule applies to different types of securities, retirement accounts, and tax strategies to avoid IRS penalties or unexpected tax liabilities. By maintaining proper records and using strategic alternatives, investors can effectively manage tax implications while remaining compliant with the rule.