The Wash-Sale Rule Explained: The Tax Trap That Catches Investors Off Guard

The Wash-Sale Rule Explained: The Tax Trap That Catches Investors Off Guard

Tax-loss harvesting is one of the smartest tools in an investor's arsenal — the ability to sell a losing position, capture the tax loss, and put those savings back to work in the market. But there's a tripwire in the tax code that catches well-meaning investors by surprise every year: the wash-sale rule. Trigger it accidentally and the IRS disallows the very loss you were trying to harvest, leaving you with a useless deduction and a portfolio position you didn't intend to hold. Understanding this rule in full detail isn't optional for serious investors — it's a prerequisite for using tax-loss harvesting correctly.

Disclaimer: This article is for educational and informational purposes only and does not constitute tax, legal, or financial advice. Tax laws are subject to change and vary by individual circumstances. Always consult a qualified tax professional before making any investment or tax-related decisions.


What the Wash-Sale Rule Actually Says

The wash-sale rule, established under IRS Section 1091, states that you cannot claim a capital loss on the sale of a security if you purchase a "substantially identical" security within the 30-day window before or after the sale. That's a 61-day total blackout period — 30 days before the sale date, the sale date itself, and 30 days after.

This rule exists to prevent investors from manufacturing paper losses while maintaining their economic exposure to the same investment. Without the wash-sale rule, an investor could sell a losing stock on December 30th, buy it back on January 2nd, claim the loss on their taxes, and end up in exactly the same investment position they started with. Congress decided that's not a real economic loss — and the IRS agrees.

The consequences of a wash-sale violation aren't catastrophic, but they are annoying: the disallowed loss isn't permanently gone. Instead, it's added to the cost basis of the newly purchased security, effectively deferring — not eliminating — the tax benefit. But deferral can cost you significantly if the replacement security rises in value before you realize the adjusted loss.


What Counts as "Substantially Identical"?

The most common wash-sale trap involves selling a stock at a loss and immediately buying back the same stock. That's the obvious case. But "substantially identical" extends further than most investors realize.

Stock in the same company: Selling 100 shares of a company and buying 100 shares back within 30 days is the textbook violation.

Options on the same stock: If you sell shares of a company at a loss and simultaneously purchase call options on the same company within the 30-day window, that likely triggers a wash sale. Options represent rights to purchase the same underlying security, and the IRS typically treats them as substantially identical.

ETFs that track the same index: This is a gray area, but an important one. If you sell an S&P 500 ETF at a loss and immediately buy a different S&P 500 ETF from a competing fund family, many tax professionals consider that a wash sale because the two funds track the same underlying index and hold essentially identical securities. The IRS has not issued definitive guidance here, but the conservative and widely recommended approach is to swap into an ETF tracking a different but similar index — for example, moving from an S&P 500 fund to a total market fund or a different broad-market index fund.

Different share classes of the same fund: Selling one share class of a mutual fund and buying a different share class of the same fund within 30 days almost certainly constitutes a wash sale.

What does NOT trigger a wash sale:

  • Selling a stock at a loss and buying a different company in the same industry
  • Selling a bond fund and buying a stock fund
  • Selling an individual stock and buying an ETF (this is generally safe, as an ETF is not substantially identical to any individual component)

The 30-Day Window Works Both Ways

One of the most frequently misunderstood aspects of the wash-sale rule is that the 30-day window runs in both directions. Most investors know they can't buy back a sold security within 30 days after the sale. Fewer realize they also can't purchase the substantially identical security within 30 days before the sale.

Here's a common scenario: an investor decides to harvest a loss in late November and sells a position on November 28th. But they already bought additional shares of the same stock on November 1st — 27 days before the sale. That purchase, made before the sell date, can trigger a wash sale on a proportionate number of shares. The order of events doesn't matter; the 61-day window is symmetrical.


Does the Wash-Sale Rule Apply Across Tax Years?

A common question: if you sell at a loss in December and wait until January, have you avoided the wash sale? The answer is yes — if you truly wait the full 30 days after the sale date. The calendar year boundary is irrelevant to the IRS. What matters is whether the 30-day post-sale window has expired.

Sell a position at a loss on December 15th. Don't repurchase until January 15th or later and the wash-sale rule does not apply. The loss is valid, regardless of the fact that the sale and the repurchase occurred in different tax years.

Sell on December 20th and buy back on January 3rd? That's only 14 days — still within the 30-day window — and the loss is disallowed even though the purchase happened in the new year.


Cryptocurrency: Currently Exempt (As of 2025)

As of 2025, cryptocurrency is not subject to the wash-sale rule under current IRS guidance. Because crypto is classified as property rather than a security under current law, the wash-sale rule — which explicitly applies to "stocks or securities" — does not technically extend to digital assets.

This means a crypto investor can sell Bitcoin or Ethereum at a loss and immediately repurchase the same asset, claiming the full loss on taxes while maintaining identical market exposure. This is a significant and legal tax advantage that crypto holders currently enjoy.

However, legislative proposals to extend wash-sale rules to crypto have circulated in Congress for several years. Investors relying on this exemption should monitor legislative developments closely, as this loophole could be closed with little notice.


Practical Strategies for Value Investors

Tax-loss harvesting is a natural fit for value investors, who sometimes hold positions that decline significantly before the market recognizes their value. The key is executing the harvest without triggering a wash sale.

The most reliable approach: when you sell a position for a tax loss, replace it with a similar but not substantially identical investment for at least 31 days. A few practical examples:

  • Sell a losing large-cap bank stock → buy a diversified financial sector ETF (not another bank holding company)
  • Sell an S&P 500 index ETF → buy a total market index ETF that includes small- and mid-cap exposure
  • Sell a losing energy stock → buy a broad energy sector fund

After 31 days, you can sell the replacement and return to your original position if you choose — or keep the replacement if it fits your thesis.


Actionable Takeaways

  • The wash-sale window is 61 days total: 30 days before the sale, the sale date, and 30 days after — violate it and the IRS disallows your loss.
  • "Substantially identical" extends beyond the same stock: options, ETFs tracking the same index, and different share classes of the same fund can all trigger a wash sale.
  • The rule is symmetrical: buying the same security before the sale — not just after — can disallow the loss, so watch your purchase history carefully in the 30 days preceding any planned harvest.
  • Waiting across a calendar year isn't enough: only the full 30-day post-sale window matters; a December sale requires a January repurchase no earlier than 31 days after the sell date.
  • Crypto is currently exempt from the wash-sale rule as of 2025, but legislative changes could alter this — stay informed.

Find quality stocks worth holding — not just trading — with the Value of Stock Screener. Fewer trades, fewer wash-sale headaches, and better long-term outcomes.


The content in this article is provided for educational purposes only and does not constitute personalized tax, legal, or investment advice. Tax laws are complex, subject to change, and vary by individual situation. The wash-sale rule involves nuanced determinations best reviewed with a qualified tax professional. Please consult a licensed tax advisor before executing any tax-loss harvesting strategy.

— Harper Banks, financial writer covering value investing and personal finance.

Get Weekly Stock Picks & Analysis

Free weekly stock analysis and investing education delivered straight to your inbox.

Free forever. Unsubscribe anytime. We respect your inbox.

You Might Also Like