What Is the Wash Sale Rule? The 61-Day Window Explained
If you’ve ever sold a losing stock and then bought it right back, you may have heard about the “wash sale rule.” It’s one of those rules that sounds fuzzy, but it has very real tax consequences if you’re trying to clean up your portfolio or harvest losses. If you want a quick local second opinion before you trade, our Sugar Land tax office can help you sanity-check the IRS side in plain English.
This article is general information, not investment, tax, or legal advice. The wash sale rule lives in Internal Revenue Code section 1091, and there are many gray areas and special cases. Always talk through your specific trades with a qualified professional before acting.
Local note: If you’re in Sugar Land or Fort Bend County and want help applying this to your return, start here: Sugar Land tax preparation services .
If you’re just starting to understand how gains and losses work at all, it can be helpful to pair this guide with: What Is Capital Gain and Loss? and Short-Term vs Long-Term Capital Gains .
Big picture: what the wash sale rule is trying to do
At a high level, the wash sale rule is the IRS saying: “You don’t get to claim a tax loss if, in substance, you never really got out of the investment.”
In other words, if you sell a stock or fund at a loss and then jump right back into the same (or substantially identical) investment, the IRS treats that as a wash sale. Instead of letting you deduct the loss now, they disallow it in the current year and add it back into the cost basis of the shares you bought back.
The 30-day / 61-day wash sale window
The classic wash sale window is often described as “30 days before and 30 days after” the sale. Thinking in terms of a 61-day window usually makes it easier:
- Day 0: You sell a stock or fund at a loss.
- Days −30 to −1: The 30 calendar days before your sale date.
- Days +1 to +30: The 30 calendar days after your sale date.
If you buy the same or a substantially identical security anywhere in that 61-day window, the loss on your sale is likely to be treated as a wash sale.
The timeline doesn’t care whether you’re trading once a year or several times a day — it’s just looking at that 61-day window around the loss sale.
Visual 1 – The 61-day window at a glance
Think of your loss sale as the center of a small calendar. The IRS is looking backward 30 days and forward 30 days to see if you stayed out of (or jumped back into) the same investment.
Any purchase of the same or substantially identical security inside this window can turn your loss into a wash sale.
Visual 2 – “Intentional” loss vs. wash sale trap
Here’s how thoughtful harvesting compares to an unintentional wash sale:
Smart loss harvesting
- Sell a losing fund and sit out 31+ days.
- Or switch to a different fund with similar, not identical, exposure.
- Track trade dates across all your taxable accounts.
Wash sale traps
- Sell at a loss and buy right back within a few days.
- Sell Fund A, buy Fund A in a spouse’s or IRA account.
- Have auto-reinvested dividends quietly buying while you sell.
For a deeper walk-through on the “smart” side, see Tax-Loss Harvesting Explained .
What counts as “substantially identical”?
This is where things get fuzzy. The IRS never gives a neat checklist, but in practice:
- Selling ABC stock at a loss and buying ABC stock back? That’s almost certainly a wash sale.
- Selling one share class of a mutual fund and buying another class of the same fund? Often considered substantially identical.
- Selling an index fund and buying another fund that tracks the same index can be risky territory.
- Selling ABC and buying a different company in the same industry is usually fine — different company, different security.
The more your “replacement” investment behaves like the old one, tracks the same index, or represents the same pool of assets, the more you’re drifting toward “substantially identical.”
If you’re coordinating this with bigger life moves — like a home sale, a concentrated stock position, or exercising stock options — it can help to read: Capital Gains Tax Planning Strategies and then talk through your plan with a pro.
What happens when you trigger a wash sale?
A wash sale doesn’t mean the loss is gone forever. It means:
- The loss is disallowed for this trade on this year’s tax return, and
- The disallowed amount is added to the cost basis of the shares you bought back.
Two key effects:
- Your current-year loss is smaller (or zero), so there’s less to offset other gains right now.
- Your future gain on the replacement shares is smaller (or could even become a loss), because their basis is higher.
The rule is about when you get the deduction, not whether it exists at all.
Simple numeric example
- You bought 100 shares of XYZ at $50 ($5,000 total).
- The price drops and you sell all 100 shares at $35 ($3,500 total).
- On paper, you’ve got a $1,500 loss.
If you do nothing else, that $1,500 loss can go on your tax return (subject to capital loss rules). But if you buy 100 shares of XYZ back two weeks later at $36, here’s what happens in a classic wash sale scenario:
- The $1,500 loss is disallowed for now.
- It’s added to the basis of the 100 new shares you bought at $36.
- Your new basis per share is $36 + $15 = $51 per share.
When you eventually sell those 100 shares, your gain or loss is calculated from the higher $51 basis. That’s how the disallowed loss gets “carried forward” inside the investment instead of showing up as a deduction this year.
Without wash sale
Sell at $35, stay out of XYZ for 31+ days:
- $1,500 loss shows on your return this year.
- Can offset capital gains and up to $3,000 of ordinary income (combined with other losses).
- Any future buy of XYZ has a fresh basis.
With wash sale
Sell at $35, buy back at $36 within 30 days:
- $1,500 loss is disallowed now.
- Loss is added to your new position, basis becomes $51 per share.
- Loss may show up later as a smaller gain (or bigger loss) when you eventually sell.
Same economic pain, different tax timing — which is why this rule matters when you’re intentionally harvesting losses.
How the wash sale rule interacts with tax-loss harvesting
Tax-loss harvesting is the strategy of selling losing positions to generate capital losses that can offset gains (and, in some cases, reduce ordinary income up to $3,000 per year).
Done correctly, harvesting can be a very powerful tool. But if you don’t respect the wash sale rule, you can lose the timing benefit of the loss and end up with messy basis adjustments.
Tax-Loss Harvesting Explained: Turning Market Losses into Tax Savings
And if you want the deeper companion guide: Wash Sale Rule vs Tax-Loss Harvesting
Does the wash sale rule apply to crypto?
As of the time of writing, the wash sale rule applies to stocks and securities. Many popular cryptocurrencies are currently treated as property, not as stocks or securities, so traditional wash sale rules haven’t been applied to them in the same way.
Congress has periodically discussed extending wash sale concepts to digital assets, so this is an area that could change. If you’re harvesting crypto losses, review the rules annually.
Where everyday investors usually get tripped up
- Automatic reinvestment of dividends buying inside the window.
- Multiple accounts including a spouse’s account or IRAs.
- ETF/index “look-alikes” that track the same index.
- Late December trades that collide with early January buys.
Was this article helpful?
Hi — Umair here. I write these guides for our neighbors in Fort Bend and across the Houston area so you can make clearer, calmer money decisions without having to decode IRS jargon on your own. Your feedback helps me keep improving what I share with the community.
If yes, a quick Google review helps more people find law-based, plain-English tax guidance. If not, tell me what to fix so I can make this guide better for the next reader.
Suggested reads to level up fast
If you’re learning wash sales because you’re planning end-of-year moves, these pair perfectly with this guide.
Want a calm second opinion before you trade?
When it makes sense to bring in a professional
- Trade frequently, or
- Use multiple brokerages or retirement accounts, or
- Are coordinating harvesting around big gains (business sale, real estate, stock options),
the wash sale rule can materially change your tax bill and your documentation trail. A good tax professional can help you harvest losses without constantly stepping into traps.
If you’re deciding between DIY software and a human guide, these may help: Do I Need a Tax Preparer or Tax Software? and What a Tax Advisor Actually Does .
For now, the most important thing is simply understanding what the wash sale rule is trying to prevent, and how your own trading patterns line up with that 61-day window.
Want to talk through your trades with a real tax professional?
If you’re planning tax-loss harvesting or you’ve already triggered wash sales and want to understand what it means for your return, we can walk through it together in plain English. You can also see how we price things here: tax preparation near me – prices .
