Skip to main content
Wash Sales

What Is the Wash Sale Rule for Tax Purposes?

Pomegra Learn

What Is the Wash Sale Rule for Tax Purposes?

The wash sale rule is one of the most misunderstood provisions in the tax code—and one of the most expensive mistakes to mishandle. At its core, the rule prevents you from deducting a capital loss on the sale of a security if you buy the same or a substantially identical security within a window that spans 30 days before and 30 days after the sale. The IRS enacted this rule to prevent artificial loss-selling schemes where investors would claim tax deductions without genuinely exiting their positions.

Quick definition: The wash sale rule disallows a capital loss deduction when you sell a security at a loss and repurchase the same or substantially identical security within 30 days before or after the sale—a 61-day window total.

In practical terms, this means that if you sell 100 shares of Apple at a loss on December 15, you cannot claim that loss if you buy any Apple shares between November 15 and January 14. If you do buy within that window, your loss is disallowed, and instead, the disallowed amount gets added to your cost basis in the newly purchased shares, deferring the loss into the future.

Key Takeaways

  • The wash sale rule applies to capital losses and prevents claiming deductions when you repurchase the same or substantially identical security within 61 days (30 days before and after the sale).
  • A "wash sale" creates a disallowed loss that is added to your cost basis in the replacement security, deferring the tax benefit rather than eliminating it permanently.
  • The rule applies across all your accounts—not just the account where the loss originated—including brokerage, IRA, and custodial accounts you control.
  • Substantially identical securities include the same stock or bond, but also mutual funds or ETFs that track the same index, which trips up many investors.
  • Intentional wash sale violations can trigger audit scrutiny and penalties; inadvertent violations still result in loss disallowance.

Why Congress Created the Wash Sale Rule

The wash sale rule emerged from Depression-era tax law, codified in Section 1091 of the Internal Revenue Code. Congress recognized that without such a rule, investors could manufacture tax losses without changing their economic exposure to a security. Imagine an investor who owns 100 shares of a stock trading at $50. The stock rises to $60, then falls to $40. Rather than accept the loss (which, from an accounting perspective, would show a loss from the $60 high), the investor could sell at $40 to claim a $1,000 loss deduction, then immediately buy back at $40. No actual loss occurred; no economic decision was made. The deduction was pure tax engineering.

The wash sale rule closes that gap. It forces genuine economic decisions: either accept your loss and move away from that security for at least 31 days, or keep your position but forfeit the immediate deduction. Many investors view this as unfair—and there's a legitimate debate about whether the rule serves modern markets as intended—but it remains a foundational principle of U.S. tax law.

How the Wash Sale Rule Disallows Losses

When you trigger a wash sale, the IRS does not erase your loss. Instead, it defers it. Here's the mechanics: If you sell 100 shares of Company X at a $1,000 loss, and then buy 100 shares of Company X (or a substantially identical security) within the 61-day window, that $1,000 loss becomes disallowed. The $1,000 is added to your cost basis in the newly purchased shares. If you bought those shares for $9,000, your new cost basis becomes $10,000.

Later, when you eventually sell that second batch, or when you exit the position permanently, your loss will be reflected in that future transaction. The deferral is indefinite—it stays with the security until you finally sell without repurchasing.

Real-World Scenario

Suppose you own 100 shares of TechCorp acquired at $8,000 ($80 per share). In November 2024, the stock falls to $7,000 ($70 per share), and you sell to claim a $1,000 capital loss for your 2024 tax return. Three weeks later, in December, TechCorp has recovered to $7,200, and you want to re-enter the position. You purchase 100 shares at $7,200.

Result: Your $1,000 loss is disallowed. Your new cost basis in the December purchase is $7,200 + $1,000 = $8,200. If you sell those shares next year at $7,500, your loss is only $700—not because the market moved, but because the disallowed loss was added to your cost basis.

Key Components of the Rule

The wash sale rule has three essential parts:

  1. The triggering event: You must sell a security at a loss.
  2. The covered period: The 61-day window (30 days before the sale, the sale date itself, and 30 days after).
  3. The replacement purchase: You must buy the same or substantially identical security during that window.

If all three conditions are met, the loss is disallowed.

Broad Application

The wash sale rule applies to:

  • Individual securities: Stock shares, bonds, notes.
  • Funds and ETFs: Both mutual funds and exchange-traded funds that track the same index or hold the same securities.
  • Account types: Brokerage accounts, IRAs (traditional and Roth), custodial accounts, and any account you control.
  • Spouses: If you are married filing jointly, the rule also applies to purchases made by your spouse.

A common misconception is that the rule applies only within a single account. It does not. If you sell 50 shares of Microsoft in your brokerage account and buy 50 shares in your IRA during the 61-day window, you have triggered a wash sale.

The Cost of Noncompliance

Violating the wash sale rule—intentionally or otherwise—results in loss of the deduction. There is no penalty beyond the disallowance itself; you are not fined additional tax. However, if the IRS suspects deliberate avoidance, audit risk increases. More commonly, inadvertent wash sales cost investors thousands of dollars in foregone deductions simply because they did not track their purchases closely.

Professional investors and tax-loss harvesting strategies depend on understanding wash sale mechanics. Mishandling it is expensive: a $50,000 loss disallowance can defer $12,500 in tax savings (at a 25% marginal rate) indefinitely.

How to Avoid Triggering the Rule

The simplest approach is to wait 31 days after selling before repurchasing the same security. Alternatively, you can:

  • Buy a different but similar security: Sell Apple and buy a different tech stock or a broad tech ETF (though "substantially identical" rules can be murky here).
  • Use options carefully: Selling covered calls or buying protective puts on a security can sometimes trigger wash sale treatment, depending on timing and position size.
  • Track your portfolio systematically: Use a spreadsheet or specialized tax-loss harvesting software that flags wash sale risks before you execute trades.

Important Note

Tax law and wash sale rules are subject to change, and the IRS releases annual updates to rates and thresholds. Readers should confirm the current rules with the IRS website (irs.gov) or a qualified tax professional before implementing any strategy that relies on the wash sale rule's specifics.

Summary

The wash sale rule prevents you from claiming a capital loss if you repurchase the same or substantially identical security within 30 days before or after the sale. Rather than destroying your loss, the rule defers it by adding the disallowed amount to your cost basis in the replacement security. Understanding this rule is essential for any investor pursuing tax-loss harvesting or managing capital losses strategically.

Next

Why the Wash Sale Rule Exists