TL;DR
The wash sale rule (IRC Section 1091) disallows a loss when you buy the same or a substantially identical security within 30 days before or after the sale, a 61-day window; the loss is not gone, it gets added to the cost basis of the replacement shares.
Key Takeaways
- 1.The wash sale window is 61 days: 30 days before the sale, the sale day, and 30 days after.
- 2.A disallowed loss is deferred, not erased. It is added to the basis of the replacement shares and the holding period carries over.
- 3.Wash sales apply across all your accounts, including IRAs and your spouse's accounts, which brokers often cannot see.
- 4.Active traders who qualify for trader tax status and make a Section 475(f) election are exempt from wash sales, but give up long-term capital gains rates.
- 5.The practical fix for most day traders is a journal that flags re-entries within 30 days, not a rule memorized from memory.
The wash sale rule says that if you sell a stock or option at a loss and buy the same or a substantially identical security within 30 days before or after that sale, you cannot deduct the loss that year. The disallowed loss is added to the cost basis of the new position instead.
Most day traders hit this rule without noticing. You take a stop on a Tuesday, the setup re-forms on Thursday, you re-enter, and a loss you planned to claim quietly gets pushed into a future tax year. This article explains exactly what counts, how the math works with a worked example, where the traps hide (IRAs, options, ETFs), and when the Section 475(f) election makes the whole problem disappear. It is general education, not tax advice, so run your own numbers past a CPA who works with active traders.
What counts as a wash sale for a day trader?
A wash sale happens when you sell a security at a loss and, within 30 days before or after that sale, you buy the same security or one that is substantially identical. The rule comes from Section 1091 of the Internal Revenue Code and is explained in IRS Publication 550. It applies to stocks, bonds, options, and ETFs held in taxable accounts.
For a swing trader, that means a 61-day window. For a day trader, it means something more annoying: if you trade the same ticker repeatedly, nearly every losing trade has a buy within 30 days on either side of it. Trade SPY or TSLA daily and almost every loss is a candidate for disallowance. The brokers track this for you on a single account, and they report adjustments on Form 1099-B, but only for identical securities in that one account.
| Scenario | Wash sale? | Why |
|---|---|---|
| Sell XYZ at a loss, rebuy XYZ 10 days later | Yes | Same security inside the 30 day window |
| Buy XYZ, then 20 days later sell a different lot of XYZ at a loss | Yes | Purchases up to 30 days before the sale count too |
| Sell XYZ at a loss, rebuy XYZ 31 days later | No | Outside the 61 day window |
| Sell XYZ at a loss in a taxable account, buy XYZ in your IRA 5 days later | Yes | The IRS applies the rule across your accounts |
| Sell XYZ at a gain, rebuy XYZ the next day | No | The rule only applies to losses |
Gains are not affected
The rule only disallows losses. If you sell at a profit and rebuy the next minute, nothing happens tax-wise. That is why wash sale problems show up on red days, not green ones.
In 2026 the practical takeaway is the same as it has been for decades: a loss only counts when you stay out of a substantially identical position for the full 30 days after the sale, and the 30 days before count as well.
A loss is deductible only when you have no purchase of the same security in the 61-day window around the sale, and that window spans 30 days before, the sale date, and 30 days after.
How does the 61 day window actually work?
Think of the sale date as the center of a calendar. Count 30 days back and 30 days forward and you have 61 days in total. Any purchase of the same or a substantially identical security in that span can trigger a wash sale on the losing shares, up to the number of shares you repurchased.
The look-back half is the one people forget. If you scale into a position over three weeks and then sell part of it at a loss, the earlier buys sit inside the window and can taint the sale. Partial matches work proportionally. If you sell 100 shares at a loss and bought back only 40, only 40 shares worth of the loss is disallowed and the remaining 60 shares of loss is deductible.
How to check one losing trade
- 1
Step 1: Find the sale date
Write down the date you closed the losing position. That is day zero of your 61 day window.
- 2
Step 2: Look back 30 days
Scan your buys of the same ticker in the 30 days before the sale. Any purchase that was not the shares you just sold can count.
- 3
Step 3: Look forward 30 days
Scan the 30 days after the sale for any new buy in the same or a substantially identical security, in any account you or your spouse control.
- 4
Step 4: Match shares
Match the repurchased share count against the loss shares. The loss on the matched shares is disallowed, the rest is allowed.
- 5
Step 5: Record the basis adjustment
Add the disallowed loss to the cost basis of the replacement shares and carry the original holding period over.
One more wrinkle: the replacement shares can themselves be sold at a loss and become another wash sale if you buy again, so a chain of losses can roll forward for months. Each link in the chain simply pushes the deferred loss into the basis of the next lot.
The wash sale window runs 61 calendar days, and it applies to purchases made before the sale just as much as purchases made after it.
How is the disallowed loss added to your cost basis?
The disallowed loss is not forfeited. It gets added to the cost basis of the replacement shares, and your holding period on the new shares includes the time you held the old ones. When you finally sell the replacement shares in a way that does not trigger another wash sale, you recognize the deferred loss then.
Here is an illustrative example with round numbers, not a real trade. You buy 100 shares of XYZ at $50 and sell them on December 10 at $45, a $500 loss. On December 20 you buy 100 shares at $46. Because that is within 30 days, the $500 loss is disallowed. Your new cost basis is $46 plus the $5 per share of disallowed loss, which equals $51 per share, or $5,100 total.
| Item | Without wash sale | With wash sale |
|---|---|---|
| Loss recognized in current year | $500 | $0 |
| Cost basis of new 100 shares | $4,600 | $5,100 |
| Gain or loss if sold later at $48 | $200 gain | $300 loss |
| Total economic result | Same $300 net loss | Same $300 net loss |
Notice that the total economic result is identical. The wash sale rule changes when you get the deduction, not whether you get it. That timing matters most at year end. If you were counting on a $500 loss to offset a $500 gain, you now owe tax on a gain that, economically, you never kept.
Why year end matters
A wash sale in late December can push a deduction into the next tax year. A trader who closes the year with big realized gains and a chain of wash-sale-deferred losses can owe tax on gains that have been offset in real life by losses the IRS has not yet let them claim.
Deferred wash sale losses are added to the basis of the replacement shares, so the deduction is delayed rather than lost, and the delay is what costs traders money at filing time.
Which trades count as substantially identical?
The IRS has never published a precise definition, which is what makes this area tricky. In practice, the same stock is clearly identical. Options on that stock, and contracts to acquire it, are treated as substantially identical in most cases. Shares of two different companies in the same industry are not, and neither are most ETFs that track different indexes.
The gray zone is two ETFs that track the same index from different issuers, such as two S&P 500 funds. Many tax professionals treat those as safe, but the IRS has not issued a clear ruling, so conservative filers avoid swapping between them inside the window when harvesting losses.
- Same stock, same account: always identical.
- Same stock, IRA or spouse account: still counts under IRS guidance.
- Call option on the stock after selling shares at a loss: likely counts.
- Different stock in the same sector: generally does not count.
- Two ETFs tracking different indexes: generally does not count.
- Two funds tracking the identical index: unsettled, consult your CPA.
Crypto has been different. Spot crypto is treated as property, and per 2026 tax guides, the wash sale rule does not currently apply to it, though legislation proposing to extend Section 1091 to digital assets has been discussed. Verify the current status before you rely on that, because it can change.
Substantially identical is a facts-and-circumstances test, and the safest working rule is that the same ticker, or an option on it, will be treated as the same security.
How can day traders avoid wash sale traps?
You cannot avoid the rule if you keep trading the same ticker, but you can avoid surprises. The goal is to know, on any given day, which losing trades are going to be disallowed so your year-end tax estimate is not a shock.
A simple workflow
- 1
Export your trades monthly
Download your broker's trade history or Form 1099-B preview and look at the wash sale adjustment column. Brokers such as Fidelity, Schwab, and Interactive Brokers report these adjustments for same-account trades.
- 2
Tag repeated tickers in your journal
If you use a journal such as Tradervue, TradeZella, or a spreadsheet, add a column that flags any re-entry in the same ticker within 30 days of a loss.
- 3
Keep IRAs out of your active names
If you trade a ticker in your taxable account, do not buy it in your IRA inside the window. Brokers do not adjust for that, and a wash sale into an IRA permanently loses the loss because the basis adjustment has nowhere to go.
- 4
Use a different instrument at year end
If you need to harvest a loss in December, swap to a non-identical ticker for 31 days rather than rebuying the same one.
- 5
Reconcile in January
Compare your journal against the 1099-B before filing. Brokers often differ from your own records on partial fills and multi-account trades.
The IRA trap
If a wash sale is triggered by a purchase inside an IRA, the disallowed loss is generally lost for good, because you cannot add basis inside a retirement account. That is the most expensive version of this mistake.
Brokers report wash sale adjustments only for identical securities in a single account, so cross-account and IRA wash sales are the part you have to track yourself.
Does the 475(f) election remove wash sales?
Yes, with a catch. Traders who qualify for trader tax status can make a Section 475(f) mark-to-market election. Under that election, your positions are treated as sold at fair market value on the last day of the year, gains and losses become ordinary rather than capital, and the wash sale rule no longer applies to you. The $3,000 annual capital loss limit also stops applying to those losses.
The price is that you lose long-term capital gains treatment. For 2026, the federal long-term capital gains rate is 0%, 15%, or 20%, and a single filer pays 0% only up to $49,450 of taxable income, with the 15% band running to $545,500, per IRS Revenue Procedure 2025-32. Day traders mostly hold short, so they are already paying ordinary rates on most gains, which is why the election is popular with them.
Pros
- Wash sale rule no longer applies to electing trader positions.
- Losses are ordinary, not capped at $3,000 per year against other income.
- Year-end mark-to-market gives a clean, predictable tax number.
- Removes the need to track 30 day windows across tickers.
Cons
- Long-term capital gains rates are gone for the traded positions.
- Requires qualifying for trader tax status, a facts-and-circumstances test.
- Existing taxpayers must file the election statement by the April 15 deadline of the prior year, so the window for 2026 has already passed.
- Revoking it later is restricted and usually needs IRS consent.
A trader who wants the election for the 2027 tax year needs to file the statement with their 2026 return by April 15, 2027, and should do it with a CPA, since trader tax status itself is not something you simply choose.
The Section 475(f) election exempts qualified traders from the wash sale rule, but the cost is losing capital gains rates and the benefit only comes if you actually qualify as a trader.
What to do next
Start with visibility. Pull your year-to-date trades, list every losing close, and check whether you bought the same ticker within 30 days on either side. That single review will tell you how large your deferred losses are and whether you are likely to owe tax on gains that your real losses have already offset.
Then decide whether the problem is big enough to change your structure. If you trade the same few tickers constantly, ask a CPA who works with active traders about trader tax status and the 475(f) election for 2027. If you trade occasionally, a tag in your journal and a December sweep for losers you want to harvest is usually enough.
- Export your 1099-B preview and check the wash sale adjustment column.
- Search your journal for losses followed by a re-entry within 30 days.
- Confirm no IRA or spouse account bought the same ticker inside the window.
- List any losses you want to claim in 2026 and pick non-identical replacements.
- Book a CPA review before April 15, 2027 if you want to explore a 475(f) election.
The wash sale rule never erases a loss, it only moves it, and a 61 day calendar check on every losing trade is what keeps that move from surprising you in April.
Keep reading
Get smarter trades, weekly
One short email every Sunday. AI workflows, tool reviews, and trader productivity tips.
