HomeAboutFree ResourcesInvesting GroupShopFAQ▶ Join the Investing Group

The IRS Rule That Can Void Your Tax Loss — Even When You Did Everything Right

You sell a losing position. You take the tax loss. You feel good about it. Then you buy back in — and the IRS tells you the loss never happened. That's the wash sale rule, and it catches investors off guard every year. Understanding it isn't optional if you're doing any tax management. It's foundational.

61Total days in the wash sale window — 30 before + day of + 30 after
$3,000Max capital loss deductible against ordinary income per year
$0What your loss is worth if an IRA wash sale wipes it out permanently

What Is the Wash Sale Rule?

The wash sale rule is an IRS regulation under IRC Section 1091 that disallows a tax loss on the sale of a security if you purchase a "substantially identical" security within 30 days before or after the sale. The rule was designed to prevent investors from manufacturing paper losses purely for tax purposes while maintaining essentially the same investment position.

The loss doesn't disappear permanently in most cases — it gets added to the cost basis of your replacement shares, deferring it until you sell those shares outside the window. But in one critical scenario — when an IRA is involved — the loss is gone forever. More on that below.

⚠️ The 61-Day Window

Most people think of the wash sale rule as "30 days after." The actual window is 61 days total — 30 days before the sale, the day of the sale, and 30 days after. If you buy the same stock 25 days before selling it at a loss, that pre-sale purchase also triggers the rule. This catches investors who add to a position and then sell the whole thing shortly after.

What Triggers a Wash Sale

A wash sale is triggered when all three conditions are true:

  • You sell a security at a loss — if you sell at a gain, the rule doesn't apply
  • Within the 61-day window, you purchase a "substantially identical" security in any account you control — brokerage, IRA, Roth IRA, or your spouse's accounts
  • The replacement purchase happens before or after the loss sale — the order doesn't matter, only the timing does

What "Substantially Identical" Actually Means

The IRS has never published an exhaustive definition, which creates some gray area — but here's the practical guidance based on IRS publications and tax court precedent:

TransactionWash Sale?Reason
Sell AAPL, buy AAPL back within 30 daysYesIdentical security
Sell VOO, buy VOO back within 30 daysYesIdentical ETF
Sell VOO, buy SPY within 30 daysLikely YesBoth track the exact same index (S&P 500)
Sell QQQM, buy QQQ within 30 daysYesSame underlying index — sister funds
Sell VOO, buy VTI within 30 daysGenerally NoDifferent fund tracking a different index
Sell SCHD, buy VYM within 30 daysGenerally NoDifferent dividend ETFs with different indexes
Sell individual stock, buy ETF holding that stockGenerally NoA single stock is not substantially identical to a diversified ETF
Sell stock, buy call option on same stockYesOptions on the same security can trigger the rule
🚨 The S&P 500 ETF Gray Zone

Selling VOO and buying SPY — or selling VOO and buying IVV — within 30 days is widely treated as a wash sale because all three track the exact same index. When in doubt, replace with a different index: swap VOO for VTI (total market), not SPY.

The IRA Trap That Permanently Kills Your Loss

This is the part of the wash sale rule that does the most permanent damage — and that most investors never hear about until it's already happened.

If you sell a security at a loss in a taxable brokerage account and then purchase a substantially identical security inside your IRA or Roth IRA within the 61-day window, the loss is disallowed. That's expected. What's not expected: the loss is gone permanently.

Normally, when a wash sale occurs between two taxable accounts, the disallowed loss is added to the cost basis of your replacement shares — deferring it until a future sale. But inside an IRA, there's no mechanism to adjust your cost basis. The deferred loss has nowhere to land. It disappears.

🚨 Real Example

You sell 100 shares of VOO in your taxable account at a $4,000 loss. Three weeks later, your monthly IRA contribution auto-invests in VOO inside your Roth IRA. Wash sale triggered. The $4,000 loss is permanently disallowed — not deferred, not recoverable in any future year. The IRS will not allow you to claim it anywhere, ever.

This is especially dangerous for investors who automate contributions — including automatic dividend reinvestment (DRIP) — across both taxable and retirement accounts simultaneously. Your automation can accidentally trigger a wash sale with no conscious decision involved.

What Happens to the Loss When You Trigger a Wash Sale

Between two taxable accounts: The disallowed loss is added to the cost basis of your replacement shares. When you eventually sell those shares outside the wash sale window, you'll recognize the deferred loss at that time. Your brokerage tracks this automatically and reports it in Box 1g of your 1099-B.

When an IRA is involved: The loss is permanently gone. There is no recovery. Document what happened, file correctly, and build a system to prevent recurrence.

Cross-account and cross-brokerage wash sales: Cross-brokerage wash sales — and wash sales between a taxable account and an IRA at any brokerage — are your legal responsibility to identify and report. They will not appear automatically on any 1099-B. When amounts are significant, a CPA who specializes in investment taxation is worth the cost.

How to Tax-Loss Harvest Without Triggering a Wash Sale

Strategy 1 — Replace With a Substantially Different Security

Sell the losing position and immediately buy a similar — but not substantially identical — ETF. You stay fully invested, capture the loss, and avoid the wash sale entirely.

Sell ThisReplace WithMarket Exposure Maintained
VOO (S&P 500)VTI (Total U.S. Market)Broad U.S. equities — 4,000+ companies vs. 500
QQQM (Nasdaq-100)VGT (Vanguard Tech ETF)Technology sector — different index, similar exposure
SCHD (Dividend)VYM (Vanguard Dividend ETF)Dividend income — different index and composition
NVDA (individual stock)SMH (Semiconductor ETF)Semiconductor exposure — stock ≠ substantially identical to ETF

After 31 days, you can sell the replacement and buy your original holding back — the 30-day window has closed.

Strategy 2 — Wait 31 Days

Wait 31 days after the sale before repurchasing. You'll be out of the market during that window but you preserve the deduction cleanly with no complexity.

Strategy 3 — Pause Automation During Harvest Windows

Temporarily pause automated recurring purchases and DRIP across all accounts during a tax-loss harvesting event. A single automated dividend reinvestment can trigger a wash sale with no human decision involved.

Strategy 4 — Coordinate Across Your Entire Household

The wash sale rule applies across you and your spouse's accounts combined when you file jointly. Coordination across the entire household is required, not optional.

"The core ETFs at the heart of the AutoPilot Wealth System — VOO, QQQM, and SCHD — make wash sale management dramatically simpler than a stock-heavy portfolio. You always have a clear, non-substantially-identical replacement ready. You're not scrambling to find a swap for one of fifty individual stock positions." — Leigh Mariotti, Profit Equation HQ

What to Do If You Already Triggered One

If it was between two taxable accounts: The loss is deferred, not gone. Confirm your brokerage shows the cost basis adjustment correctly on your 1099-B in Box 1g. When you sell the replacement shares outside the window, the deferred loss will be recognized.

If an IRA was involved: The loss is permanently disallowed. If the amount is significant, consult a CPA. Then build a checklist to prevent it from happening again.

If you're not sure: Pull your 1099-B from February of the following tax year and look for Box 1g. Cross-account wash sales across different brokerages or between taxable and IRA accounts are your responsibility to catch.

📋 Year-End Wash Sale Checklist

In October and November: review unrealized losses in taxable accounts, map the 61-day window, confirm a replacement strategy or 31-day hold plan, and pause DRIP and automated contributions across all accounts. Execute before mid-December so trades settle before year-end.

Build the System That Handles This Automatically

The AutoPilot Wealth System is designed around simplicity and tax efficiency. Join the Investing Group and get the complete AutoPilot Wealth System to see the exact framework Leigh uses to manage a $3M+ portfolio — with minimal complexity and maximum clarity.

Frequently Asked Questions

What exactly is the wash sale rule?
The wash sale rule (IRC Section 1091) disallows a tax loss on the sale of a security if you buy a substantially identical security within 30 days before or after the sale. The full window is 61 days total. It applies to stocks, ETFs, mutual funds, and options. The rule was designed to prevent investors from claiming paper losses while maintaining the same investment position.
Does the wash sale rule apply to ETFs?
Yes. ETFs are subject to the same wash sale rules as stocks. ETFs that track the same index — like VOO, SPY, and IVV, which all track the S&P 500 — are generally considered substantially identical. ETFs tracking different indexes, like VOO (S&P 500) and VTI (Total U.S. Market), are generally considered distinct and safe to swap.
Can my IRA trigger a wash sale in my taxable account?
Yes — and this is the most costly version of the rule. If you sell a security at a loss in a taxable account and buy the same security in an IRA or Roth IRA within the 61-day window, the loss is permanently disallowed. Unlike a same-account wash sale where the loss is deferred via cost basis adjustment, an IRA has no mechanism to carry that adjustment forward. The loss is gone for good.
Does DRIP (dividend reinvestment) cause wash sales?
It can. If you sell a security at a loss and your brokerage automatically reinvests dividends into the same security within the 61-day window — including inside an IRA — that reinvestment counts as a repurchase and triggers the wash sale rule. Temporarily disabling DRIP across all accounts during a tax-loss harvesting window is a critical best practice most investors skip entirely.
What happens to the disallowed loss?
Between two taxable accounts, the disallowed loss is added to the cost basis of the replacement shares and recovered when you eventually sell those shares. If the replacement purchase was inside an IRA or Roth IRA, there is no mechanism to adjust IRA basis — the loss is permanently and irrecoverably disallowed.
Does the wash sale rule apply to cryptocurrency?
As of current law, the wash sale rule does not apply to cryptocurrency because crypto is treated as property, not a security. This has historically made crypto an attractive tax-loss harvesting vehicle — you can sell at a loss and immediately repurchase with no wash sale concern. However, Congress has repeatedly proposed extending wash sale rules to digital assets. Consult a tax professional for current guidance.
How do I know if my brokerage tracked a wash sale correctly?
Check your 1099-B in February of the following year — any disallowed wash sale loss appears in Box 1g. Your brokerage tracks wash sales within accounts at that same institution automatically. Cross-brokerage wash sales and wash sales between a taxable account and an IRA are your legal responsibility to identify and report.
Disclaimer: Profit Equation HQ, JJMAR LLC, and Leigh Mariotti are not financial advisors. Nothing on this page constitutes financial advice or a recommendation to buy or sell any security. All investing involves risk. Tax laws are subject to change and vary based on individual circumstances. This content is for educational and informational purposes only. Consult a licensed financial and/or tax professional before making investment or tax decisions.
Profit Equation HQ

Build Wealth & Create Freedom on AutoPilot

Disclaimer: Investing in the financial markets involves a risk of loss. You should only invest money you can afford to lose. Profit Equation HQ, JJMAR LLC, and Leigh Mariotti are NOT financial advisors. Nothing said on ProfitEquationHQ.com by Leigh Mariotti or other contributors is meant to be a recommendation to buy or sell any financial instrument. All content is for educational and informational purposes only.

Copyright © 2026 Profit Equation HQ  ·  JJMAR LLC  ·  All Rights Reserved