Does the Wash Sale Rule Apply to ETFs? (w/Examples) + FAQs

This article reflects federal tax rules as of June 2026 and covers tax year 2025 (the 2026 filing season). State conformity is addressed separately below. Tax law changes — confirm current figures with IRS Publication 550 before you file.

Quick Answer

Yes. The wash sale rule applies to ETFs for tax year 2025. If you sell an ETF at a loss and buy the same or a “substantially identical” ETF within 30 days before or after the sale, the IRS disallows the loss for now. But two ETFs from different providers tracking different indexes usually are not substantially identical.

ETFs are securities, so they fall squarely under Internal Revenue Code Section 1091, the same wash sale law that governs stocks and bonds. The catch most investors miss is the phrase “substantially identical.” Selling one S&P 500 ETF and buying a different S&P 500 ETF a day later sits in a gray zone the IRS has never clearly ruled on — and getting it wrong means your loss vanishes from this year’s return and gets parked into the cost basis of the shares you just bought.

This matters most right now, at year-end and at filing time, when investors harvest losses to cut their tax bill. The IRS reports that taxpayers claimed hundreds of billions in capital losses each year, and a disallowed wash sale can quietly erase a deduction you were counting on. Heavy traders, robo-advisor users, and anyone running automatic dividend reinvestment are the most exposed.

Here is what you will learn:

  • ✅ How the 61-day wash sale window actually works with ETFs, day by day
  • 🔍 What “substantially identical” means for ETFs — and the same-index vs. different-index trap
  • 🧮 Fully worked dollar examples showing exactly how a disallowed loss moves into your new basis
  • 📄 How to report a wash sale on Form 8949 and Schedule D using code “W”
  • 🚫 The IRA, spouse, and auto-reinvestment traps that wreck even careful investors

What the Wash Sale Rule Is

The wash sale rule is a federal tax law that stops you from claiming a loss on a security if you buy that same security — or one “substantially identical” to it — within a 30-day window on either side of the sale. It lives in IRC Section 1091 and is explained for individuals in IRS Publication 550. Congress wrote it to stop investors from selling just to bank a tax loss while never really giving up their position.

The window is wider than most people think. It is 61 days total: the 30 days before the sale, the sale day itself, and the 30 days after. The SEC’s investor education site confirms a wash sale is triggered when, within 30 days before or after a loss sale, you buy substantially identical securities, acquire them in a taxable trade, or even buy an option to acquire them.

A common misconception is that a wash sale is illegal or that the IRS penalizes you for it. It is neither. A wash sale is perfectly legal — the only consequence is that you cannot deduct the loss this year. The loss is deferred, not destroyed, and that distinction shapes everything that follows.

What you should do about it: treat the rule as a timing rule, not a prohibition. If you want the loss now, simply avoid repurchasing the same or a substantially identical ETF inside the 61-day window. If you do not need the loss now, you can ignore the rule and let the basis adjustment carry it forward.

Why ETFs Count as Securities

An ETF (exchange-traded fund) is a basket of investments — usually tracking an index — whose shares trade on an exchange like a stock. For wash sale purposes, the IRS treats ETF shares as ordinary securities, so losses on ETFs behave like losses on stock: they are short-term if held one year or less, and long-term if held more than a year.

Because ETFs are securities, Section 1091 reaches them with no exception. There is no special ETF carve-out and no “fund” loophole. The consequence of ignoring this is the same as with a stock: your harvested loss is suspended and rolled into the basis of the replacement shares.

What you should do about it: do not assume ETFs are safer than stocks just because they hold many companies. The wash sale rule applies to the fund share you trade, not the stocks inside it.

The 61-Day Window, Explained

The single most expensive mistake is misreading the calendar. The window covers 30 days before your loss sale and 30 days after — including the sale date — for a 61-day total. Charles Schwab and the IRS both stress that a purchase before the sale counts just as much as one after.

This trips up investors who buy more shares to “average down,” then sell their old lot at a loss a week later. That recent purchase inside the prior 30 days can trigger the rule even though the buy came first. The consequence is a disallowed loss you never saw coming.

A second trap is automatic dividend reinvestment. If your ETF pays a dividend during the window and your account reinvests it into more shares of the same ETF, that tiny purchase triggers a partial wash sale on the matching number of shares.

What you should do about it: count 31 days, not 30, to be safe, and turn off automatic dividend reinvestment on any ETF you plan to sell for a loss. Check your statements for the trade dates, not the settlement dates, since the rule keys off the trade.

“Substantially Identical” — The Heart of the ETF Question

Everything about ETFs and wash sales hinges on two words Congress never defined: substantially identical. The tax law does not define the term, and the IRS has issued no ruling on whether two ETFs that track the same index are substantially identical. This is genuinely unsettled — treat any aggressive position here as a risk you are choosing to take.

What is clear: selling an ETF and rebuying the exact same ETF (same ticker) inside the window is always a wash sale. There is no gray area there.

The gray area is everything else. Below are the three buckets investors actually face.

Same ETF, Same Ticker — Always a Wash Sale

Selling VOO at a loss and buying VOO back two days later is a textbook wash sale. The security is identical, so the loss is disallowed and added to the basis of the new shares. The consequence is a deduction delayed until you finally sell the replacement lot.

A common misconception is that selling in one brokerage and rebuying in another avoids the rule. It does not — the rule follows you across all your accounts, including those held by your spouse. What you should do: if you want the loss, stay out of that exact ticker for 31 days.

Different Provider, Same Index — The Risky Gray Zone

This is the contested case. Selling Vanguard’s VOO and buying iShares’ IVV — both pure S&P 500 trackers holding the same 500 stocks — may look “substantially identical” to an auditor, even though the IRS has never ruled on it. Some tax professionals consider same-index swaps risky; others note the funds are legally distinct issuers with different sponsors and fee structures.

The consequence if the IRS disagreed with your aggressive swap is a disallowed loss plus interest on any underpaid tax. Because there is no IRS guidance, no one can promise you a clean answer.

What you should do about it: many cautious investors avoid same-index swaps and instead move to a different index to be safe. If you do swap same-index funds, document that the funds are from different issuers and accept the unsettled risk.

Different Index, Similar Exposure — The Standard Safe Harbor

The widely used tax-loss-harvesting technique is to swap into an ETF that tracks a different index but gives similar market exposure. BlackRock’s tax-loss-harvesting guidance and most major brokers treat funds tracking different indexes as not substantially identical.

For example, selling an S&P 500 ETF and buying a total-market or Russell 1000 ETF keeps you invested in U.S. large caps while almost certainly avoiding the rule, because the indexes hold different stocks in different weights. Fidelity notes that an ETF tracking a sector is not substantially identical to a single stock either.

What you should do about it: build a “partner ETF” pair ahead of time — one fund you sell, one different-index fund you rotate into — so you can harvest the loss and stay in the market on the same day.

How a Disallowed ETF Loss Actually Moves (Worked Example)

The wash sale rule does not delete your loss — it shifts it into the cost basis of your replacement shares and adds the prior holding period. IRS Publication 550 calls this a basis adjustment, and it is the mechanic that lets you eventually claim the loss.

Here is the math, step by step, for tax year 2025:

  • January 2025: You buy 100 shares of an S&P 500 ETF at $500 = $50,000 basis.
  • October 2025: The price drops to $440. You sell all 100 shares for $44,000, a $6,000 loss.
  • 10 days later: You rebuy 100 shares of the same ETF at $445 = $44,500.
  • Result: The $6,000 loss is disallowed this year because you rebought inside 30 days.
  • Basis adjustment: Your new basis becomes $44,500 + $6,000 = $50,500.
  • The disallowed loss is not lost. When you later sell the new lot at, say, $480 ($48,000), your taxable result is $48,000 − $50,500 = a $2,500 loss — the embedded $6,000 finally works through.

If instead you had bought a different-index ETF, the $6,000 loss would be allowed in 2025, offsetting capital gains and up to $3,000 of ordinary income ($1,500 if married filing separately), with any excess carried forward.

Which Situation Applies to You?

The right move depends on your goal and your accounts. Use this quick branch:

  • You want to harvest a loss now and stay invested → sell the ETF and buy a different-index ETF the same day (safe harbor).
  • You want the loss but can sit out → sell and wait 31 days before rebuying the same ETF.
  • You hold the ETF in a taxable account and an IRA → beware the IRA wash sale trap described below, which permanently kills the loss.
  • Your spouse also invests → coordinate, because the rule combines your purchases.
  • You use automatic dividend reinvestment → turn it off before selling.

Three Common ETF Wash Sale Scenarios

Scenario 1 — Rebuying the identical ETF

What You Do Tax Result for 2025
Sell QQQ at a $4,000 loss, rebuy QQQ in 12 days Loss disallowed; $4,000 added to new shares’ basis and held for later

Scenario 2 — Swapping to a different-index ETF

What You Do Tax Result for 2025
Sell an S&P 500 ETF at a $4,000 loss, buy a total-market ETF same day Loss allowed; offsets gains and up to $3,000 of ordinary income

Scenario 3 — The IRA repurchase

What You Do Tax Result for 2025
Sell an ETF at a loss in taxable account, buy the same ETF in your IRA within 30 days Loss permanently disallowed; no basis bump in the IRA

Named Examples

Maria, the year-end harvester. Maria sells her VTI total-market shares in December 2025 at an $8,000 loss to offset a stock gain. She buys an S&P 500 ETF (different index) the same afternoon. Because the funds track different indexes, her $8,000 loss is allowed, cutting her 2025 tax bill while keeping her fully invested.

David, the averager. David buys 50 extra shares of a tech ETF on October 1, then sells his original 100 shares at a $5,000 loss on October 20. Even though the buy came first, it falls inside the 30-day pre-sale window, so part of his loss is disallowed and rolled into the October 1 lot.

Priya, the IRA mistake. Priya sells a sector ETF in her brokerage at a $3,000 loss, then her IRA buys the same ETF eight days later. Under the IRS rule for IRAs, her loss is permanently disallowed and there is no basis adjustment to recover it — the worst outcome possible.

Reporting a Wash Sale: Form 8949 and Schedule D

You report ETF sales on Form 8949, then carry the totals to Schedule D, filed with your Form 1040 by the April 15, 2026 deadline for tax year 2025. Brokers report many wash sales for you on Form 1099-B, but only within a single account and only for identical securities — not across accounts or spouses.

Here is the line-by-line handling for a disallowed loss:

  • Enter the sale on Form 8949 with the proceeds and cost basis in their normal columns.
  • In column (f), enter the adjustment code “W” for wash sale.
  • In column (g), enter the disallowed loss as a positive number, which reduces the loss you claim.
  • The net effect carries to Schedule D, so the disallowed portion is removed from this year’s deductible loss.

A common misconception is that the broker’s 1099-B catches everything. It does not catch cross-account or spousal wash sales, so you must self-report those. The consequence of skipping the adjustment is an overstated loss that can draw an IRS notice and interest.

What you should do about it: reconcile every 1099-B against your own records, and add code “W” adjustments for any wash sales your broker could not see. If you have several accounts, consider tax software or a CPA to track basis across them.

Federal vs. State Treatment

The wash sale rule is a federal rule, but most state income taxes start from your federal taxable income, so the disallowed loss usually flows through automatically. Below is how the layers compare.

Federal Rule State Treatment
IRC Section 1091 disallows the loss and adjusts basis for all taxpayers Most states begin with federal AGI or taxable income, so the same adjustment carries to the state return

States that levy no broad income tax — such as Florida, Texas, Washington, and Nevada — do not tax this kind of investment income at all, so the wash sale rule has no state effect there. A few states with their own conformity quirks may differ, so check your state’s department of revenue if you live in one that does not fully conform to federal income rules. Because conformity genuinely varies, confirm your specific state rather than assuming.

Mistakes to Avoid

  • Rebuying the identical ETF too soon. Repurchasing the same ticker inside 31 days disallows the loss and delays your deduction.
  • Forgetting the 30 days before the sale. A recent “average-down” buy can trigger the rule even though it came first.
  • Leaving dividend reinvestment on. An auto-reinvested dividend in the window causes a partial wash sale you never intended.
  • Buying in your IRA. A same-security purchase in an IRA permanently kills the loss with no basis recovery.
  • Ignoring your spouse’s trades. The rule combines spouses’ purchases, so a spousal rebuy disallows your loss.
  • Assuming the broker tracks everything. The 1099-B misses cross-account and spousal wash sales, leaving you to self-report.
  • Treating same-index ETF swaps as automatically safe. The IRS has not ruled on same-index funds, so this is an unsettled risk.
  • Confusing trade date with settlement date. The rule keys off the trade date; using settlement dates can miscount the window.

Do’s and Don’ts

  • Do swap to a different-index ETF to stay invested while harvesting — it keeps your market exposure intact.
  • Do wait a full 31 days if you want to rebuy the identical fund, because that clears the window cleanly.
  • Do turn off automatic dividend reinvestment before a loss sale, so no stray purchase triggers the rule.
  • Do keep written records of trade dates and lots, because that is what supports your Form 8949 entries.
  • Do coordinate with your spouse, since the IRS treats your purchases together.
  • Don’t rebuy the same ETF in your IRA — the loss is then gone for good.
  • Don’t assume different brokerages hide the trade; the rule follows you everywhere.
  • Don’t rely solely on the 1099-B for multi-account situations.
  • Don’t make aggressive same-index swaps without accepting the unsettled risk.
  • Don’t confuse a wash sale with a penalty — it is only a timing deferral.

Pros and Cons of the Basis-Deferral Mechanic

  • Pro: Your loss is preserved, not destroyed, because it shifts into the replacement shares’ basis.
  • Pro: Your holding period carries over, which can help you reach long-term rates sooner.
  • Pro: It lets you stay invested through the dip if you choose to rebuy.
  • Pro: With a different-index swap, you keep both the loss and market exposure.
  • Pro: The carried loss has no expiration once finally realized.
  • Con: You lose the deduction this year, which hurts if you needed the offset now.
  • Con: Tracking adjusted basis across lots and accounts is error-prone.
  • Con: An IRA repurchase destroys the loss entirely — no deferral at all.
  • Con: The “substantially identical” gray zone leaves same-index swaps uncertain.
  • Con: Misreporting can trigger IRS notices and interest.

What to Do Next

  1. List every ETF you sold or plan to sell at a loss, with exact trade dates.
  2. Check the full 61-day window around each sale for any purchase of the same fund — including dividend reinvestments, IRA buys, and your spouse’s trades.
  3. If you want the loss now, either wait 31 days or rotate into a different-index ETF the same day.
  4. Gather your Form 1099-B and reconcile it against your own records.
  5. Report sales on Form 8949 with code “W” where needed, carry totals to Schedule D, and file by April 15, 2026 for tax year 2025.
  6. Call a CPA or tax attorney if you have many accounts, large losses, same-index swaps, or an IRA overlap — that is where mistakes get expensive, and a pro typically charges a few hundred dollars to clean it up.

This article is educational and is not a substitute for advice from a licensed CPA or tax attorney for your specific situation.

FAQs

Does the wash sale rule apply to ETFs? Yes. ETFs are securities, so IRC Section 1091 applies for tax year 2025. Selling an ETF at a loss and rebuying the same or a substantially identical ETF within 30 days disallows the loss for now.

Are two S&P 500 ETFs from different companies substantially identical? Unsettled. The IRS has issued no ruling on same-index ETFs from different providers. Many advisors treat same-index swaps as risky and prefer a different-index fund instead.

How long is the wash sale window? 61 days. It covers the 30 days before the sale, the sale day, and the 30 days after, per IRS Publication 550. Wait 31 days after selling to safely rebuy the identical ETF.

Can I sell one ETF and buy a different-index ETF to avoid it? Yes. Swapping into an ETF that tracks a different index is the standard tax-loss-harvesting move and generally avoids the rule, because the funds are not substantially identical.

What happens to my disallowed loss? It is deferred. The loss is added to the cost basis of your replacement shares and the holding period carries over, so you claim it when you later sell those shares.

Does the rule apply if I rebuy the ETF in my IRA? Yes, and worse. Buying the same ETF in your IRA within the window permanently disallows the loss with no basis adjustment to recover it.

Do my spouse’s purchases count? Yes. The IRS combines spouses’ trades, so if your spouse buys the same ETF within the window, your loss is disallowed just as if you bought it.

How do I report a wash sale on my taxes? On Form 8949. Enter adjustment code “W” in column (f) and the disallowed loss as a positive number in column (g), then carry totals to Schedule D.

Does my broker track ETF wash sales for me? Partly. Brokers report wash sales on Form 1099-B within one account for identical securities, but not across accounts or between spouses, so you must self-report those.

Does dividend reinvestment trigger a wash sale? Yes. An automatically reinvested dividend that buys more of the same ETF inside the window triggers a partial wash sale on the matching shares. Turn off reinvestment before a loss sale.

Is a wash sale illegal or penalized? No. A wash sale is legal; the only consequence is that the loss is deferred, not deductible this year, and shifted into your replacement shares’ basis.

Does the wash sale rule apply to crypto ETFs? Yes. A spot crypto ETF is a security and falls under the rule for 2025, even though direct crypto holdings currently sit outside it — a distinction Congress could change.