StructureX

Home › Guides › Options: the math

The wash sale rule with options, in worked examples

In the US, if you sell at a loss and buy the same stock back within 30 days, before or after, you can't claim the loss yet. Options can count as buying it back. Here are four cases, worked out in numbers.

Options guide · 9-minute read · Updated 2026-10-28

The short answer

A Wash sale (options) happens when you sell a stock at a loss and buy the same stock, or something "substantially identical," within 30 days before or after the sale. That's a window of about two months around the sale.

When it applies, the loss isn't gone. It's added to the Cost basis of the new shares. You get it later, when you sell those. The time you held the old shares usually carries over too.

Options make this easy to trip. A put that's assigned buys the shares. A call you buy is a contract to buy them. Both happen all the time in the wheel strategy, often right after a loss.

As of October 2026, the IRS explains the rule in Publication 550. That's the place to check the current wording.

What counts as buying it back

What you do within 30 days of the loss saleCan it trigger a wash sale?
Buy the same sharesYes
A put you sold is assignedYes. Assignment is a purchase
Buy a call on the same stockYes. It's a contract to buy the shares
Sell a put that expires, never assignedUnclear. Ask a tax professional
Your spouse buys the sharesIt can
You buy them in your IRAYes, and the loss can be lost for good
Buy a different companyNo
Wait 31 days, then buyNo

The window runs both ways. Buying shares 20 days before you sell the old ones at a loss counts too.

Example 1: the wheel trap, where the stock keeps falling (hypothetical)

This is the one that catches wheel sellers. All numbers are made up.

You bought 100 shares of XYZ at $50 months ago. It slid. On October 1, you sell them at $40. That's a −$1,000 loss, and you plan to use it on this year's taxes.

On October 11, you want back in. You sell a $38 put for $1.00 and collect $100.

On October 25, XYZ is at $35. You're assigned. You just bought 100 XYZ shares at $38, 24 days after the loss sale.

DateWhat happensMoneyTax effect
Oct 1Sell 100 shares at $40−$1,000 lossWash sale: can't claim it yet
Oct 11Sell a $38 put+$100Lowers the new shares' cost
Oct 25Assigned at $38Pay $3,800New cost: $38 − $1 + $10 = $47 a share
Dec 31XYZ at $30, still heldShares worth $3,000Paper result: $3,000 − $4,700 = −$1,700

Check the real money. You lost $1,000 on the first shares. On the second set, you paid $38, got $1 back, and they're worth $30: another −$700. Total: −$1,700. The rule matches it exactly. It just moved the first $1,000 onto the new shares.

So on this year's return, the $1,000 loss you counted on is $0. You can claim it only when you sell the new shares.

Say you sell them on December 31 at $30, to claim the full −$1,700 this year. Then on January 10 you sell another put, and it's assigned on January 20. That's within 30 days again. The loss moves onto the newest shares, into next year.

Keep wheeling the same stock while it falls, and the loss keeps rolling forward.

Example 2: buying a call after a loss sale (hypothetical)

You sell 100 XYZ at a −$800 loss on November 20. You still like the stock. On November 30, you buy one $40 call for $2.00, or $200, to keep the upside.

What happensMoneyTax effect
Sell 100 shares−$800 lossWash sale
Buy a $40 call−$200Call's cost becomes $200 + $800 = $1,000
Call expires worthless$0 backNow you claim −$1,000

The total loss is the same −$1,000. It just shows up when the call ends, not when you sold the shares.

Example 3: closing a put at a loss, then selling it again (hypothetical)

You sold a $45 put for $1.00. XYZ dropped. You buy it back for $4.00: a −$300 loss. Five days later, you sell the same $45 put again for $4.50.

The rules are written mostly about buying. For re-selling the same option, the answer is less clear-cut. Brokers and tax preparers don't all handle it the same way. If you plan to claim that −$300, ask a tax professional first, or wait out the 30 days.

Example 4: the IRA trap (hypothetical)

You sell 100 XYZ in your taxable account at a −$1,000 loss. Twelve days later, a put you sold in your IRA is assigned. You now own XYZ inside the IRA.

AccountWhat happensLoss you can claim
TaxableSell 100 shares at a loss−$1,000 on paper
IRAPut assigned within 30 daysWash sale
ResultLoss can't be added to IRA shares you can use$0, possibly ever

In a normal wash sale, the loss waits on the new shares. Inside an IRA, gains and losses aren't counted each year. So the loss may never be usable. Treat your IRA and your taxable account as one when you watch the 30 days.

How to keep it from biting

  1. Write down every loss sale with its date. Mark the day 31 days later on a calendar.
  2. Don't sell a put on that stock inside the window if you need the loss this year.
  3. Watch all your accounts. Brokers track wash sales inside one account. They usually can't see your IRA at another broker, or your spouse's account.
  4. Watch December closely. A loss sale late in the year plus a January put can push the loss into next year.
  5. Wheel a different company for a month. A different stock isn't "substantially identical."

Want to run your own numbers? Try the wash sale calculator. Want the bigger tax picture first? See taxes on selling options in the US.

If you're in Canada

Canada has its own version, the Superficial loss rule, also with a 30-day window each way. We work through it with options in the superficial loss rule with options. In a TFSA or RRSP, losses can't be claimed at all, and which option trades a TFSA or RRSP allows differs by broker.

Questions

Does an assigned put count as a wash sale?

It can. Assignment means you bought the shares. If that happens within 30 days of selling the same stock at a loss, the loss moves to the new shares.

Is the wash sale loss gone forever?

Usually not. It's added to the cost of the new shares and counts when you sell them. The big exception is buying back inside an IRA, where the loss may never count.

Does selling a covered call trigger a wash sale?

Selling a call isn't buying the stock, so on its own it's not the usual trigger. The trigger is buying shares, buying calls, or a put assignment within the window.

How long do I have to wait to sell a put again?

No assignment can land inside the 30 days after the loss sale. A US stock put can be assigned any day before it expires. So the simple way is to wait 31 days before you sell it.

Follow along

XTradingViewFacebook