The Wash Sale Rule
How the 30-day wash sale rule disallows a loss, what counts as substantially identical, how the loss moves to the new shares, and why futures are exempt.
The wash sale rule disallows a loss when you sell a security and buy back something substantially identical within a short window around the sale. The loss is not lost forever, it is added to the basis of the replacement position, but the timing shift can produce a tax bill that bears no resemblance to how your year actually went. For high-turnover traders who keep returning to the same names, it is one of the most disruptive rules in the code. It also does not apply to futures at all.
Key Takeaways
- 1.A loss is disallowed if you acquire a substantially identical security within 30 days before or after the sale.
- 2.The disallowed loss is added to the basis of the replacement position rather than disappearing.
- 3.The window is 61 days in total, counting both directions around the sale date.
- 4.Section 1256 contracts are outside the rule entirely, which is a major advantage for futures traders.
- 5.A valid Section 475(f) mark-to-market election also removes the rule for the positions it covers.
Tax rules change and your situation is specific to you. Rates, brackets and dollar thresholds are deliberately not quoted here because they are adjusted most years. Confirm anything you plan to act on against current IRS guidance and speak to a CPA or enrolled agent who works with active traders before you file or make an election.
How the rule works
Sell a security at a loss, and if you acquire a substantially identical one within 30 days before or 30 days after that sale, the loss is disallowed for that year. The window runs in both directions, which surprises people: buying first and then selling the older lot at a loss can trigger it just as easily as selling and buying back.
The disallowed amount is added to the cost basis of the replacement position. Economically nothing is destroyed, and when you eventually exit the replacement without repurchasing, the benefit comes through. But it can be deferred across a year boundary, which is where the pain lands. A trader can finish a year roughly flat in cash terms and still owe tax on gains, because the offsetting losses were disallowed and pushed into the following year.
The 61-day window, with a calendar example
The window is 30 days before the sale, the day of the sale, and 30 days after it. That is 61 days in total. Here is a made-up example with invented dates and prices.
| Item | Date or amount | Working |
|---|---|---|
| Loss sale | 15 Dec 2026 | Sale day, counted in the window |
| Window starts | 15 Nov 2026 | 15 Dec minus 30 days |
| Window ends | 14 Jan 2027 | 15 Dec plus 30 days |
| First day outside the window | 15 Jan 2027 | 15 Dec plus 31 days |
| Days in the window | 61 | 30 + 1 + 30 |
So the common answer to how long to wait is at least 31 days after the sale. Remember that purchases in the 30 days before the sale count too. If you added to the same stock on 20 Nov 2026 and then sold the older lot at a loss on 15 Dec 2026, the new purchase can trigger the rule.
What happens to the disallowed loss
IRS Publication 550 says the disallowed loss is added to the cost of the replacement shares, and the holding period of the shares sold carries over to the new ones. The deduction is postponed until you dispose of the new shares. It is not deleted, except in the retirement-account case covered above.
| Step | Amount in US dollars | Working |
|---|---|---|
| Buy 100 shares at $50 | $5,000 | 100 x 50 |
| Sell all 100 at $40 | $4,000 | 100 x 40 |
| Loss on the sale | $1,000 | 5,000 - 4,000 |
| Buy 100 shares again at $42 within 30 days | $4,200 | 100 x 42 |
| New cost basis after adding the disallowed loss | $5,200 | 4,200 + 1,000 |
| Later sell the 100 shares at $55 | $5,500 | 100 x 55 |
| Gain recognised on that sale | $300 | 5,500 - 5,200 |
The total over the two trades is the same, a net gain of $300 either way (1,300 - 1,000). Only the timing moves. That is why the rule hurts most around the end of a tax year.
What counts as substantially identical
The phrase is not precisely defined, which is a recurring theme in this area. Some cases are clear and some genuinely are not.
| Situation | Generally treated as |
|---|---|
| Same stock, sold and rebought | Substantially identical, rule applies |
| Stock and an option on that same stock | Can trigger the rule |
| Two different companies in the same sector | Not substantially identical |
| Two index funds tracking the same index | Unsettled, commonly treated as risky |
| A repurchase inside a retirement account | Can still trigger the rule, and the loss may be permanently lost |
| Section 1256 contracts | Outside the rule entirely |
Selling at a loss in a taxable account and repurchasing in an IRA can trigger the rule without giving you the usual basis adjustment, because the replacement sits in an account where basis does not work the same way. In that situation the loss can be lost outright rather than deferred. This is one of the few genuinely irreversible mistakes in this area.
Options, futures and crypto
Publication 550 says the rule also catches a loss when you buy a contract or option to buy substantially identical stock or securities. So selling a share at a loss and then buying a call option on it within the window can cause a wash sale. Spouses and companies you control can also trigger it, so look at purchases made by them too.
Commodity futures and foreign currencies are treated differently. Publication 550 says the wash sale rules do not apply to losses from sales or trades of commodity futures contracts and foreign currencies. The page above explains why regulated futures that are marked to market at year end sit outside the rule.
Spot cryptocurrency has generally been treated as property and not as a security, which kept it outside the wash sale rule. That position has been a target for new legislation, so check the current IRS guidance for the tax year you are filing. Do not assume last year's answer still holds.
Why futures escape it
Section 1256 contracts are not subject to the wash sale rule. The reason is structural rather than a carve-out for traders: those contracts are already marked to market at year end, so every position is treated as closed and reopened annually at fair value. There is no deferral for the wash sale rule to prevent, because the mark has already forced recognition.
The practical effect is that an active futures trader can enter and exit the same contract as often as their strategy requires without any of their losses being disallowed. Combined with the 60/40 split, this is a large part of why the tax treatment of futures is more favourable to high-turnover trading than the treatment of stocks.
This is also why extending a mark-to-market election to Section 1256 contracts to escape wash sales makes no sense. They were never subject to the rule. The election would cost you the 60/40 split to solve a problem you did not have.
Does India have a wash sale rule?
No. The wash sale rule is part of United States tax law. India has no matching rule that disallows a loss because you bought the same share back soon after. If you are an Indian resident who trades on NSE or BSE, the US 30-day rule does not apply to your trades.
That does not mean anything goes. Indian tax authorities can question arrangements that are made only to create a tax loss, with no real change in your position. Broker blogs describe the General Anti-Avoidance Rule (GAAR) and the sham-transaction idea in this context. Whether a particular sell-and-rebuy would be challenged depends on the facts. Ask a chartered accountant (CA) before you rely on it.
Tax-loss harvesting in India
Tax-loss harvesting means selling a holding at a loss to use that loss against gains, sometimes buying it back. In India, capital losses are generally set off against capital gains, and the rules differ between short-term and long-term gains and for losses in F&O, which are normally treated as business losses. Rules, rates and limits are revised from time to time, and India has moved to a new Income-tax Act, so confirm the current position with a CA before you act.
For related reading, see our pages on capital gains vs business income, short-term capital gains tax, long-term capital gains tax and trading journal for tax and ITR. Crypto losses follow separate Indian rules for virtual digital assets, so do not assume they can be set off in the same way.
Living with the rule if you trade securities
- Track the 61-day window per security rather than per trade, because the rule looks across all your purchases of that name.
- Remember it works backwards as well as forwards. A purchase 30 days before the loss sale counts.
- Watch the year boundary in particular. A disallowed loss in late December is the version that actually changes your tax bill.
- Include every account you control in the analysis, not just the one where the loss occurred.
- If wash sales are materially distorting your results year after year, that is one of the strongest arguments for considering a 475(f) election, assuming you qualify.
How to avoid a wash sale
- Wait at least 31 days after the loss sale before buying back the same security, and do not buy it in the 30 days before the sale.
- Buy a different company instead. Two firms in the same sector are not substantially identical.
- Be careful with funds that track the same index. Whether they are substantially identical is unsettled.
- Check every account you control, including retirement accounts, and purchases by a spouse.
- Remember that options and contracts to buy the same stock count as a purchase.
- Tracking in a journal helps. Group your trades by instrument and look at a rolling 61-day span before you close a losing position.
OneTradeJournal does not import broker statements, so you add each trade yourself. Record the symbol, date, side and result, then filter by symbol and sort by date. It does not detect wash sales for you, and nothing on this page is tax advice.
Wash sale notices from your broker
US brokers report disallowed losses on your tax forms, and you may see a wash sale notification in your account. They track it for each account, so a repurchase in another account or by your spouse may not appear. You are responsible for the full picture on your return, so keep your own record and speak to a CPA.
What to record
Broker reporting flags wash sales, but it does so per account and after the fact. If you trade the same names across more than one account, or want to see the problem forming rather than discovering it in February, your own record is what makes that possible.
The useful fields are the ones you would keep anyway: instrument, date, direction and result. What changes is that you want to be able to group by instrument across a rolling window rather than only by trade. Any journal that lets you filter by symbol and sort by date will do it.
Sources and Further Reading
For authoritative data and further reading on this topic, refer to CME Group, CFTC (US Commodity Futures Trading Commission), IRS and SEC Investor.gov. Always confirm current rules, rates and contract specifications on the official source before you trade.
Related Topics
Related Articles
Paper Trading App in India: What Each App Offers and What SEBI Says
Paper trading apps in India compared from their own pages: cost, virtual money and price delay. Plus SEBI's 2024 advisory and how to judge your practice trades.
Share Market Kaise Sikhe: A Step by Step Plan for Beginners in India
Share market kaise sikhe: a 12-week beginner plan, free NISM and NSE resources, real costs of a first trade, SEBI loss data and a journal habit. No promises.
TradingView Paper Trading in India: Steps, Limits and Nifty Rules
TradingView paper trading is free, but its help page lists Indian exchange symbols as non-tradable. Setup steps, NSE data delay, limits and a journal method.
Zerodha Console P&L: How to Read Your Report and What It Misses
Read your Zerodha Console P&L step by step: realised and unrealised P&L, charges, heat map, Tax P&L, Verified P&L, why numbers differ and what it can't show.
TradeZella Price in India: Plans in Dollars and Rupees (2026)
TradeZella price: Essential $35, Pro $59, Ultra $99 a month or $315 to $891 a year. Rupee cost, the July 2026 rise, trial facts and checks for Indian traders.
Trade Book Meaning: What Your Tradebook Shows and How to Use It
A trade book lists only your filled trades. See how it differs from the order book and where Zerodha, Groww, Angel One, Dhan and Upstox keep it.
The trading journal for Nifty, Bank Nifty and Indian F&O. Track your trades, spot patterns, build discipline.
- Log one trade a day by hand, on purpose
- AI mentor finds your repeat mistakes
- Behavioural analytics catch tilt early
- Trading calendar with P&L heatmap
- Pre-trade checklist flags risks
Yearly ₹3,999 · No broker credentials