Skip to content
Tuesday, August 25, 2026 · Global Edition
Newsjay
STOCKS · ETFs · INVESTING
Loading market quotes…
BTC · ETH · SOL · XRP · ADA · DOGE · AAPL · MSFT · NVDA · AMZN · GOOGL · TSLA
Market data by TradingView
Home / Investing

How the Wash-Sale Rule Actually Works, and What Counts as Substantially Identical

A mistimed repurchase can quietly erase a tax loss an investor was counting on. Here is how the IRS defines the window, and where the disallowed loss actually goes.

How the Wash-Sale Rule Actually Works, and What Counts as Substantially Identical

The wash-sale rule disallows a tax loss when an investor sells a security at a loss and buys a substantially identical one within 30 days before or after that sale, a 61-day window in total. The loss is not gone forever: it is added to the cost basis of the replacement shares, according to IRS Publication 550. This is general tax-mechanics education, not individualized tax or investment advice.

The rule matters most in taxable brokerage accounts, where investors sell losing positions specifically to offset gains elsewhere, a practice generally called tax-loss harvesting. Get the timing wrong and the loss deduction disappears for the current year, even though the economic loss was real.

What Triggers a Wash Sale?

A wash sale is triggered only by a loss sale followed, or preceded, by a purchase of the same or a substantially identical security within 30 calendar days on either side. IRS Publication 550 states the rule directly: if an investor sells stock or securities at a loss and, within 30 days before or after the sale, buys substantially identical stock or securities, the loss cannot be deducted.

Because the window runs both backward and forward, an investor who buys shares first and sells the older, higher-cost shares at a loss two weeks later can still trigger the rule, even without any intent to game the deduction. The IRS measures the calendar, not the investor's stated purpose.

The rule applies only to losses. A sale at a gain, followed by a repurchase of the same security the next day, has no wash-sale consequence, since the disallowance exists to stop investors from manufacturing paper losses while keeping their market position intact.

What Counts as "Substantially Identical"?

Shares of the same company bought back are substantially identical to the shares sold. Beyond that, the standard gets less precise. Publication 550 does not supply a numerical test, and outlets that cover the rule note the IRS has never formally defined the phrase, leaving determinations to fall on the specific facts.

Common stock and a corporation's convertible preferred stock can be treated as substantially identical if the preferred shares are readily convertible and carry few restrictions, since an investor holding either has essentially the same economic exposure. Two different companies in the same industry are not considered substantially identical merely because they compete, and neither are two dissimilar ETFs that happen to hold some of the same names.

What Happens to the Disallowed Loss?

The loss is not permanently forfeited. Publication 550 states that the disallowed loss is added to the basis of the new stock or securities. That higher basis reduces the taxable gain, or increases the deductible loss, whenever the replacement shares are eventually sold in a transaction that is not itself a wash sale.

In practice, this defers the tax benefit rather than eliminating it, but deferral has a real cost: the investor loses the ability to use that loss against this year's gains, and the eventual benefit depends on holding the replacement position until it is sold outside any 30-day window.

Does the Rule Reach ETFs and Mutual Funds?

The rule can apply to fund shares just as it applies to individual stocks, whenever the fund sold and the fund repurchased are substantially identical. Selling one S&P 500 index ETF at a loss and buying a different S&P 500 index ETF from another sponsor within the window is the scenario most likely to draw scrutiny, since both funds track the same index and hold close to the same securities in similar weights.

Kiplinger's coverage flags this exact pattern, along with preferred-stock conversions and purchases made by a spouse, as situations where "substantially identical" is genuinely uncertain rather than settled by a bright-line test. Investors weighing a swap between similar funds are, in effect, making a judgment call the IRS has left undefined.

How Investors Commonly Avoid Triggering It

  1. Wait out the full 61-day window, from 30 days before the loss sale to 30 days after, before repurchasing the same security.
  2. Replace the sold position with a fund or security that tracks a different index or holds a different mix of companies, rather than a near-duplicate.
  3. Track purchases across every account, including a spouse's, since a repurchase in a different account of the same household can still trigger the rule.
  4. Check trade confirmations and any automatic dividend reinvestment, which can unintentionally repurchase shares of the same security inside the window.

Reporting explained by the financial press, including analysis at Fool.com, describes the rule's mechanics the same way Publication 550 does: the disallowed loss carries forward into the basis of the replacement shares rather than vanishing, but only if the investor keeps records precise enough to prove it at tax time.

FAQ

Christopher Lee

Independent editorial contributor focused on global affairs, corporate change, international business, economic policy.

Christopher Lee connects international events to the markets, choices, and quieter consequences that follow.

More about Christopher Lee

Frequently Asked Questions

Does selling at a gain and buying back the same day trigger the wash-sale rule?
No. The rule disallows losses only. A sale at a gain has no wash-sale consequence regardless of when the investor repurchases the same or a similar security, per IRS Publication 550.
Is the disallowed loss gone permanently?
No. IRS Publication 550 states the disallowed loss is added to the cost basis of the replacement shares, which can reduce a future taxable gain or increase a future deductible loss when those shares are eventually sold.
Can two different index ETFs tracking the same benchmark trigger a wash sale?
They can, since both may be considered substantially identical if they hold nearly the same securities in similar weights. Kiplinger's coverage flags same-index ETF swaps as one of the genuinely uncertain cases the IRS has not precisely defined.
Does the 30-day window only count days after the sale?
No. Publication 550 describes a window running 30 days before the sale and 30 days after it, a 61-day span in total during which a repurchase of a substantially identical security can disallow the loss.

Sources

  1. Wash-sale definition, 30-day window, loss disallowance, basis adjustment, gains exemptionInternal Revenue Service, Publication 550 (2025), Investment Income and Expenses
  2. 61-day window framing, substantially-identical uncertainty, ETF and preferred-stock examplesKiplinger, "The Wash Sale Rule: What It Is and How to Avoid It"
  3. Wash-sale mechanics restated, avoidance guidanceThe Motley Fool, "Wash Sales and Worthless Stock"