The wash sale rule does not care that you traded an option instead of a stock. If you close a position at a loss and buy a substantially identical one inside a 61-day window, the IRS disallows the loss for now, and the part that trips up most options traders is how loosely “substantially identical” gets applied to contracts. This guide covers the window, what the rule actually does to your numbers, where options create real ambiguity, and why SPX trades sit outside it.
Key Takeaways
- The window is 61 days: 30 days before the loss sale, the sale day itself, and 30 days after.
- A disallowed loss is deferred, not erased. It is added to the cost basis of the replacement position, and the holding period carries over.
- Buying a call (or other option to acquire the stock) within the window can trigger the rule against a stock loss.
- Broad-based index options such as SPX are Section 1256 contracts and are generally outside the wash sale rule. SPY options are not.
- Your broker only tracks part of this. Cross-account, spouse and IRA purchases are yours to catch.
This is educational content, not tax advice. Tax treatment depends on your situation, so confirm anything that matters with a CPA.
What the wash sale rule actually says
The rule lives in Section 1091 of the Internal Revenue Code. It disallows a loss on the sale of stock or securities if, within 30 days before or after the sale, you buy substantially identical stock or securities, or acquire a contract or option to buy them. Options on a stock are explicitly within reach because they are an “option to acquire.”
Count the window like this:
- 30 calendar days before the day you sell at a loss
- The sale day
- 30 calendar days after
That is 61 days in total. The “before” half is what surprises people: if you bought more shares three weeks ago and then sell the older lot at a loss, the earlier purchase can be the replacement.
Disallowed does not mean gone
When the rule applies, the loss is not permanently lost in a taxable account. Two adjustments happen instead:
- The disallowed loss is added to the cost basis of the replacement shares or contracts.
- The holding period of the position you sold is added to the holding period of the replacement.
Here is a hypothetical, illustrative example. You buy 100 shares of XYZ at $50 and sell them on December 10 at $42, an $800 loss. On December 20 you buy 100 shares of XYZ again at $43. The $800 loss is disallowed, and your new basis becomes $43 + $8 = $51 per share. If you later sell at $55, you report a $400 gain rather than a $1,200 gain, so the loss shows up eventually, just not this year.
If you replace only part of the position, only that part is washed. Sell 200 shares at a loss and rebuy 100, and the loss on 100 shares is disallowed while the loss on the other 100 stands.
Where options make it harder
With stock the test is simple: same ticker. With options there are several distinct questions, and the IRS has not drawn a bright line on most of them.
| Your sequence | Wash sale risk |
|---|---|
| Sell XYZ shares at a loss, then buy XYZ shares within 30 days | Yes, clear case |
| Sell XYZ shares at a loss, then buy an XYZ call within 30 days | Yes, a call is an option to acquire the stock |
| Close an XYZ call at a loss, then buy shares of XYZ within 30 days | Generally treated as a risk; the call and the stock can be substantially identical for this purpose |
| Close an XYZ call at a loss, then buy a different strike or expiration on XYZ | Unsettled. A materially different strike or expiration gives you a better argument, but there is no safe-harbor rule |
| Let a long option expire worthless, then buy the same option within the window | Yes, expiration counts as a disposition for this purpose |
| Sell SPX options at a loss, then buy SPX options | Generally no, Section 1256 contracts are outside the rule |
The practical conclusion: if the replacement is the same underlying, the same direction, and close in strike and expiration, assume the rule applies. If you are deliberately changing strike or expiration to stay outside it, you are relying on a judgment call, and a conservative reading by an auditor may differ.
Rolling a losing position
Rolling is the situation where this bites most often. You close a losing XYZ call and open a new XYZ call a month out at a similar strike on the same day. That is a sale at a loss followed immediately by a purchase of a very similar contract, so the loss is a strong candidate for deferral. The deferred loss goes into the basis of the new call, and you will see it again when that call is closed or expires.
Short options
The statute is written around acquiring positions, so closing a short option at a loss is a less common wash sale scenario than closing a long one. Short-put assignments and covered-call exercises add their own basis adjustments, which is a separate topic. If you write options against stock you hold at a loss, ask your CPA how the straddle rules in Section 1092 interact with the wash sale rule before the year ends.
The IRA trap
This is the version that costs real money. If you sell XYZ at a loss in a taxable account and buy XYZ (or an XYZ call) inside your IRA within the window, the IRS position in Revenue Ruling 2008-5 is that the loss is disallowed and no basis adjustment is available, because IRA basis does not work that way. The loss is simply gone. The same applies to a purchase made by your spouse.
The SPX workaround, and its limits
Broad-based index options such as SPX, NDX, RUT and VIX are Section 1256 contracts. They get two different treatments that matter here:
- Mark-to-market at year end. Open positions are treated as sold at fair market value on December 31, so gains and losses are recognized each year regardless of when you close.
- 60/40 treatment. 60% of the gain or loss is long term and 40% short term, whatever the holding period.
Because of the mark-to-market regime, the wash sale rule is generally not applied to these contracts. That is why traders who want index exposure after harvesting a loss sometimes switch vehicles. It has limits, and they are worth being exact about:
- SPY, QQQ and IWM options are not Section 1256 contracts. They are equity options on ETFs and follow the normal rules. Our SPX vs SPY tax comparison walks through the difference.
- Year-end mark-to-market cuts both ways. An open SPX position with an unrealized gain creates taxable income on December 31 even if you have not closed it.
- Cash settlement and European exercise change how SPX behaves near expiration, so it is not a drop-in swap for an ETF option position.
- Selling SPY and buying SPX is not a clean test either way, since the IRS has not published a rule on whether those are substantially identical. Treat the swap as a position taken, not a guarantee.
What your broker tracks, and what it does not
Brokers report wash sales on Form 1099-B, and the disallowed amount appears in the adjustment column. The tracking has gaps that fall on you:
- It generally covers the same account only. Purchases in another taxable account, an IRA, or your spouse’s account are not netted.
- It typically matches identical securities. Judgment calls on “substantially identical” options, such as a different strike, are often not flagged.
- Cost basis for the replacement position may be adjusted by the broker for the cases it detects, and you need to confirm it matches your own records.
The fix is dull and effective: keep a trade log with account, date, quantity, strike and expiration for every closed loss, and check it against the 61-day window before you sell anything for tax purposes in December. If you do not keep one yet, this options trading journal guide sets up the fields you need.
Year-end planning without the guesswork
A loss realized in the 2026 tax year has to be sold by the last trading day of the year, but the 30-day “after” half of the window runs into January. A loss sold on December 15 can still be washed by a purchase as late as mid-January. A short checklist:
- List every position closed at a loss from December 1 and from the 30 days before.
- Search all your accounts, including IRAs and a spouse’s, for purchases of the same underlying in that window.
- Decide whether you want the loss this year or want to stay in the position, because you usually cannot have both in a taxable account.
- If you wait out the 31 days before repurchasing, you stay clear of the rule but you carry the market risk of being out of the position.
- Reconcile the 1099-B adjustments against your own log in February.
Who this guide is not for
If you hold only index options that qualify as Section 1256 contracts, the wash sale rule is mostly background for you, and your bigger questions are year-end marking and Form 6781. If you qualify for trader tax status and made the Section 475(f) election in time, the wash sale rule does not apply to your trading positions at all. Our trader tax status and 475(f) guide explains who actually qualifies, which is a narrower group than most people assume.
Bottom Line
Treat any purchase of the same underlying within 30 days of a loss sale as a probable wash sale, in any account, and track it yourself. The loss is deferred into the replacement’s basis rather than lost, except in an IRA, where it is gone. SPX-style index options sit outside the rule, but SPY options do not.
FAQ
Q: Does the wash sale rule apply to options?
A: Yes. Buying a call or other option to acquire the stock counts as acquiring a substantially identical security, so it can wash a stock loss, and options can be washed against each other when they are substantially identical.
Q: Can I avoid a wash sale by changing the strike price or expiration?
A: Possibly, but there is no safe harbor. A materially different strike or expiration gives you an argument that the contract is not substantially identical. Treat it as a judgment call and ask a tax professional before relying on it.
Q: Do SPX options trigger the wash sale rule?
A: Generally no. Broad-based index options are Section 1256 contracts, taxed 60/40 and marked to market at year end, and that regime sits outside the wash sale rule. SPY options are ordinary equity options and are covered by the rule.
Q: What if I buy the replacement in my IRA?
A: Under the IRS position in Revenue Ruling 2008-5, the loss is disallowed and there is no basis adjustment to recover it later, so the loss is effectively lost for good.
Q: Does my broker catch every wash sale?
A: No. Brokers generally track identical securities within a single account. Trades across accounts, spouses, and judgment-call options are your responsibility, and the 1099-B only reflects what the broker detected. The IRS describes the rule and reporting in Publication 550.
Keep learning
For the full picture of how options are taxed, read our options tax treatment guide, then see what happens at expiration in when options expire worthless.
