The 61-Day Wash Sale Window: How to Lock In Capital Losses Without Abandoning Your Market Position
The Real Trap (And How to Avoid It)
You've got a losing position in your portfolio. The logical move is to sell it, use the loss to offset gains elsewhere, and maybe sleep better at night. But here's where most investors stumble: the wash-sale rule keeps investors from selling at a loss, buying the same (or "substantially identical") investment back within a 61-day window and claiming the tax benefit .
The frustration is real. You want the tax break—the loss deduction. But you also don't want to sit on the sidelines, unhedged, while the market moves. So what actually works in practice?
The answer isn't a workaround. It's understanding that ETFs offer legitimate flexibility that individual stocks simply don't.
How the 61-Day Window Actually Works
Let's start with the mechanical part, because it's more subtle than most people realize.
If you sell a security at a loss and buy the same or a substantially identical security within 30 calendar days before or after the sale, you won't be able to take a loss for that security on your current-year tax return . The total window is 61 days: 30 days before the sale, the sale date itself, and 30 days after.
Here's what catches people off guard: the rule works both ways. If you buy replacement shares on November 5th and sell the original position at a loss on November 20th, the wash sale rule already applies before you even took the loss . You don't get to harvest the loss just because you sold after buying.
And the window doesn't reset at year-end. The wash sale rule is not confined to the calendar year. If you reacquired the security within 30 days, your loss would be disallowed even if the sale occurred in December and the repurchase in January.
One more critical detail: The wash-sale rule applies across all your accounts, including those outside your brokerage, as well as transactions in your IRA—and it extends even to your spouse's accounts . If you sell a stock at a loss in your taxable account and your spouse buys it in their IRA within the window, the rule applies.
What "Substantially Identical" Actually Means
This is where the fog clears—and where ETF swaps become valuable.
The IRS hasn't issued a tight definition of "substantially identical." Generally, stocks of one corporation are not considered substantially identical to those of another corporation. However, in certain situations, like a reorganization, those stocks could be considered substantially identical .
For ETFs tracking the same index, the picture is unsettled. VOO (Vanguard S&P 500) and IVV (iShares S&P 500) and SPY (SPDR S&P 500) all track the same index but are issued by different companies. The IRS hasn't issued definitive guidance, but tax practitioners generally treat them as NOT substantially identical (different issuers, different fund structures) .
That gray area is where the strategy lives.
Three Legitimate ETF Swaps That Protect Your Tax Break
1. Stock → Sector ETF
One way to avoid a wash sale on an individual stock, while still maintaining your exposure to the industry of the stock you sold at a loss, would be to consider substituting a mutual fund or an exchange-traded fund (ETF) that targets the same industry. These funds can provide a handy way to regain exposure to the industry or sector of a stock you sold, but they generally hold enough securities that they pass the test of being not substantially identical to any individual stock .
Real example: you sell Pfizer at a loss. You don't want to miss the pharmaceutical sector rally. If you sell the stock of a drug company at a loss and then buy an ETF that tracks the drug companies, the wash sale rule does not apply. Examples of ETFs in this sector include iShares Dow Jones U.S. Pharmaceuticals, Invesco Pharmaceuticals, and State Street SPDR S&P Pharmaceuticals .
You locked in the loss. You stayed exposed. The IRS has no complaint.
2. Index Fund → Different Index ETF
This one requires more caution, but it's workable. Selling an S&P 500 fund and purchasing an ETF that tracks a different large cap or total market index is generally not considered a wash sale. Although these funds are heavily weighted toward large cap stocks, they are not considered substantially identical, reducing ambiguity around wash sale treatment .
The key word is *different index*. An S&P 500 fund to a Russell 1000 ETF works. An S&P 500 to another S&P 500 (different issuer or not) is where you hit the gray zone.
3. Active Mutual Fund → Passive ETF
Selling an actively-managed mutual fund at a loss and purchasing a passive ETF that tracks a related index is generally not considered a wash sale. An actively-managed small cap mutual fund, for example, is not substantially identical to an ETF tracking a small cap index such as the Russell 2000 .
Different holdings, different fees, different structure—the IRS tends to accept these as distinct securities.
What Happens If You Break the Rule
It's not the end of the world, but it stings.
You can't use the loss on the sale to offset gains or reduce taxable income. But, your loss is added to the cost basis of the new investment. The holding period of the investment you sold is also added to the holding period of the new investment .
In plain English: the loss doesn't vanish. It defers. You pay the tax bill later when you sell the replacement. And you inherit the original holding period, which can actually work in your favor if it pushes you into long-term capital gains territory.
There's one exception that hurts. You cannot get around the wash-sale rule by selling an investment at a loss in a taxable account and then buying it back in a tax-advantaged account . Worse, when you sell in a taxable account at a loss and buy in an IRA within 30 days, the IRS disallows the loss permanently. The basis carryforward to IRA shares doesn't track in IRA bookkeeping — meaning the loss has nowhere to go .
That's the nuclear option. Avoid it.
The Real Constraint: Timing
The simplest approach is patience. To safely avoid triggering a wash sale, you must wait until the 31st day after the sale to repurchase the security. This ensures that the repurchase is outside the 30-day post-sale window and you are fully compliant with the IRS rule. For example, if you sell a stock on July 1, you should not repurchase it until August 1 .
During that window, you have options. You can hold cash. You can hold a short-term bond fund, so you're not missing the market completely . Or you execute one of the ETF swaps above to stay invested in a similar asset class.
Many readers find the swap approach worth the small effort because it keeps them in the market without sacrificing the tax benefit. A 30-day cash drag can hurt in a rising market, and it psychologically stings more than a clean sector pivot.
A Few Common Pitfalls
- Automatic dividend reinvestment. Reinvested dividends via dividend reinvestment plans (DRIPs) may trigger a wash sale. If you sold the same security at a loss within 30 days, automatic repurchases through dividend reinvestments count as acquiring substantially identical securities, disallowing the loss under IRS rules . If you're harvesting a loss, turn off DRIP temporarily.
- Different ticker, same index. Another myth that pops up in wash sale FAQs is the idea that switching to a different ticker symbol sidesteps the substantially identical rule. The reality is that the IRS cares about the underlying assets, not the ticker. If two ETFs track the same index or have near-identical holdings, they are still considered substantially identical, even if one is "XYZ" and the other is "ABC" .
- Spousal coordination. The IRS says that a wash sale exists if your spouse or a corporation you control purchases substantially identical stock within the wash sale rule 61-day period . If both spouses are managing taxable accounts, you need to track both.
- Brokers don't always catch it. Brokers report wash sales on Form 1099-B using Box 1g, but they only track wash sales within the same account at the same broker. If you sold in your taxable account and bought the same stock in your IRA within 30 days, your broker won't flag it — but the IRS still considers it a wash sale .
How This Looks in Practice
| Scenario | Action | Result |
|---|---|---|
| Sell XYZ stock at $500 loss on March 15 | Buy XYZ stock on March 25 | Wash sale triggered. Loss disallowed. Added to cost basis of new shares. |
| Sell XYZ stock at $500 loss on March 15 | Buy healthcare sector ETF on March 25 | Loss claimed. Tax benefit preserved. Market exposure maintained. |
| Sell S&P 500 ETF at $1,000 loss on March 15 | Buy Russell 1000 ETF on March 16 | Loss likely claimed (different index). Some ambiguity, but widely accepted as not substantially identical. |
| Sell VOO (Vanguard S&P 500) at $800 loss on March 15 | Buy SPY (SPDR S&P 500) on March 16 | Loss likely claimed (different issuer, different structure). Gray area but tax practitioners generally accept this. |
| Sell stock at $1,200 loss on March 15 in taxable account | Buy same stock on March 25 in IRA | Wash sale triggered. Loss permanently disallowed. Does NOT carry over to IRA cost basis. |
The Bottom Line
The 61-day window isn't a trap if you understand it. The rule exists to prevent artificial loss-taking—selling just to claim a deduction and immediately buying back the same thing. But it's not designed to force you out of the market.
ETF swaps let you have it both ways: you realize the loss for tax purposes, and you stay invested in a comparable asset that addresses your real market concern (sector exposure, broad market exposure, etc.). The IRS accepts this because you've genuinely changed your position in a meaningful way.
The friction is minimal. The tax benefit is real. And you don't sit on the sidelines waiting for the calendar to turn.
If you're managing multiple accounts or if your spouse trades, track your transactions manually. Your broker won't always catch cross-account wash sales. Document your ETF swaps—note why the replacement is not substantially identical. And if you're uncertain about a specific swap, a conversation with a tax professional is worth the cost of one lunch.
Disclaimer
This article is for informational and educational purposes only and does not constitute financial, investment, or tax advice. The wash sale rule is complex and evolving, and the IRS has not issued definitive guidance on what constitutes "substantially identical" securities in all scenarios. Strategies described here involve tax considerations and potential risks that vary based on your individual circumstances, other holdings, and account structure. Before executing any loss-harvesting strategy or ETF swap, consult a qualified tax professional or financial advisor who understands your complete financial picture. The tax treatment of wash sales can have significant consequences if handled incorrectly. Verify current IRS guidance at irs.gov (particularly IRS Publication 550) and with a licensed tax advisor before taking action.