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.
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.
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.
A wash sale is triggered when all three conditions are true:
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:
| Transaction | Wash Sale? | Reason |
|---|---|---|
| Sell AAPL, buy AAPL back within 30 days | Yes | Identical security |
| Sell VOO, buy VOO back within 30 days | Yes | Identical ETF |
| Sell VOO, buy SPY within 30 days | Likely Yes | Both track the exact same index (S&P 500) |
| Sell QQQM, buy QQQ within 30 days | Yes | Same underlying index — sister funds |
| Sell VOO, buy VTI within 30 days | Generally No | Different fund tracking a different index |
| Sell SCHD, buy VYM within 30 days | Generally No | Different dividend ETFs with different indexes |
| Sell individual stock, buy ETF holding that stock | Generally No | A single stock is not substantially identical to a diversified ETF |
| Sell stock, buy call option on same stock | Yes | Options on the same security can trigger the rule |
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.
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.
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.
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.
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 This | Replace With | Market 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.
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.
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.
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
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.
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.
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.

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