Does selling a put option before selling shares at a loss trigger wash sale?

So I'm trying to figure out whether selling a put option before selling shares at a loss triggers a wash sale and I can't get a straight answer anywhere. Here's the situation: I own 100 shares of a stock, currently sitting at a big loss. About two weeks ago I sold a put option on the same stock — same ticker, same underlying. Now I want to sell the shares and take the loss. I didn't buy any new shares after the put sale. I've read the wash sale rules but they talk about buying "substantially identical" securities within 30 days. Does selling a put count as "acquiring a contract or option to buy" them? I'm not buying — I'm selling a put, which obligates me to buy if assigned. I already checked my 1099-B from last year for a similar situation and it had a code W but I still don't understand why.

38 comments

Wait, are you asking about selling the put before or after you close the shares position? Because the direction matters a lot here.

Wes F.

Author

Before. I sold the put first, still holding the shares, and now I want to sell the shares at a loss. The put is still open.

The wash sale rules extend to contracts and options. Selling a put on the same stock you're about to sell at a loss can count as acquiring a contract or option to buy substantially identical stock — the obligation to buy if assigned is what the IRS looks at. I ran my own options trades through taxr.ai last spring when I had a similar tangle; I uploaded my brokerage statement and my draft 8949 and it flagged two rows where the wash sale window overlapped with open puts I'd forgotten about. That check saved me from claiming losses my broker had already coded W. The IRS wash sale rules in Publication 550 cover this explicitly.

Wes F.

Author

So even though I'm the seller of the put, not the buyer, the obligation to purchase the underlying is still treated as acquiring a contract to buy? That's the part I keep getting stuck on.

That's exactly the sticking point. The rule in Publication 550 covers acquiring a contract or option to buy — and when you're short a put, assignment forces you to buy the shares. The IRS treats that exposure as enough.

Does it matter whether the put is in the money or way out of the money? Like if assignment is basically impossible does the wash sale rule still apply?

The IRS doesn't carve out an exception based on how likely assignment is. The rule looks at whether the contract or option to acquire the stock exists within the 30-day window, not at the probability it gets exercised.

Ugh that's what I was afraid of. So even a deep OTM short put you sold for a few cents could poison a loss.

Are you planning to let the put expire, close it, or leave it open when you sell the shares? Because what happens to the put after you sell matters for how you report the whole thing on Form 8949.

Wes F.

Author

Probably close the put at the same time I sell the shares, or just before. I hadn't thought about how the two transactions interact on 8949.

The wash sale window is 30 days before and 30 days after the sale of shares at a loss. If you sold the put within 30 days before you sell the shares, and that put creates an obligation to buy substantially identical stock, the loss on the shares gets disallowed. The disallowed amount gets added to the cost basis of whichever position is treated as the "new" acquisition — which in a short put situation gets complicated fast.

Wes F.

Author

So my cost basis on the shares doesn't just disappear — it shifts somewhere. Does it shift to the put contract itself?

That's the messy part. When the wash sale is triggered by an option, the disallowed loss adjusts the basis of the replacement property. If the put expires worthless there's nowhere for it to go, which is one reason these situations can get really ugly at tax time.

My broker showed a code W on a short put situation I had two years ago and I never fully understood it. The 1099-B just had the flag, no explanation of which position triggered it.

Worth noting: Publication 550 says the wash sale rule applies to losses on contracts and options to acquire or sell stock or securities. It specifically does NOT apply to commodity futures contracts or foreign currencies. So if someone is in a similar situation with futures, the answer is different.

Good distinction. I was going to ask about index options but I assume broad-based index options have their own treatment under section 1256 anyway.

Right, section 1256 contracts are a whole separate lane. The wash sale rules don't apply to them. Only equity options on individual stocks are in scope here.

The holding period question is also real here. If the wash sale disallows your loss, the holding period of the "new" shares or position includes the holding period of the shares you sold. So a short-term position doesn't automatically reset to long-term just because of the wash sale. I had a situation with RSUs and options overlapping last year — uploaded everything to Taxr and it mapped out which transactions were within the 30-day windows and drafted a note showing me which 8949 rows needed a W code and which column (g) entries to adjust.

Wes F.

Author

Did it catch things your broker's 1099-B had missed? My broker only flags wash sales on same-CUSIP same-account buys, so cross-position stuff like this I suspect they're not flagging.

Yes — my broker only flagged the straightforward same-account same-CUSIP repurchases. The option overlap wasn't on the 1099-B at all. That's exactly the gap that can burn people.

Can someone clarify what "substantially identical" means for options vs the underlying? Like is a put on AAPL substantially identical to AAPL shares?

The IRS hasn't issued a bright-line rule on this for every option type, but Publication 550 is clear that contracts and options to acquire stock can trigger the rule. A put you're short — which obligates you to buy the underlying — is generally treated as substantially identical to the underlying shares for wash sale purposes.

What line on Form 8949 does the wash sale adjustment go on? Just want to make sure I understand the mechanics.

Each disallowed loss goes on its own row on Form 8949. You put code W in column (f) and the disallowed loss amount as a positive number in column (g). That positive entry in (g) reduces your deductible loss to zero or to the allowed portion. Then it flows to Schedule D.

And the basis adjustment to the replacement shares — that doesn't appear on 8949 for the disallowed sale, right? That shows up when you eventually sell the replacement shares?

Correct. When you later sell the replacement shares you report their adjusted basis (original cost plus the disallowed loss that was added). That's when the deferred loss finally flows through, assuming no new wash sale at that point.

The part people miss is that the wash sale rules can apply even when your broker doesn't report a W code on the 1099-B. Publication 550 says you can't deduct a wash sale loss even if it isn't reported on Form 1099-B. The broker's 1099-B box 1g only shows the disallowed amount for covered securities with the same CUSIP bought in the same account. Cross-account, cross-instrument and option situations often fall through. I gave Taxr my brokerage year-end PDF and my 1099-B side by side and it listed every transaction that fell inside a 30-day window and flagged the ones where the 1099-B showed no W code but probably should have.

Wes F.

Author

This is exactly what I'm worried about. My broker is almost certainly not flagging the short put situation. So I'd be filing an incorrect 8949 if I just copied the 1099-B.

Right. The 1099-B is a starting point, not the final word. You're responsible for identifying wash sales the broker didn't catch and reporting them correctly on 8949 yourself.

Is there any way to avoid the wash sale in this situation at this point, or is it too late since the put is already sold?

If the 30-day window hasn't passed since you sold the put, and you haven't sold the shares yet, one option is to close the put first, wait until you're outside the window on both sides, then sell the shares. But that changes your overall position and you might take a loss or gain on the put close too.

So there's no clean escape hatch once you've opened the put — you just manage timing from here.

For anyone filing with this kind of situation: if the loss is disallowed and the disallowed amount is supposed to add to the basis of the replacement shares, make absolutely sure that adjusted basis flows correctly to the eventual sale of those shares. It's easy to forget by the following year and underreport basis.

Wes F.

Author

That's a good practical point. I'm going to keep a note in my records with the original cost, the disallowed loss amount, and the adjusted basis so I don't lose track of it.

Does any of this change if the put gets assigned before you sell the shares? So the put assignment forces you to buy more shares before you even get to close the original position?

If you get assigned on the put before selling the original shares, now you have a new lot of shares acquired within the 30-day window — which is a much cleaner wash sale trigger. The disallowed loss would add to the basis of the newly assigned shares. And your holding period on those assigned shares would include the holding period of the shares sold at a loss, per the wash sale rules in Publication 550.

The IRS instructions for Form 8949 at irs.gov/instructions/i8949 walk through the column (f) and column (g) mechanics if you want to see the official version of what everyone here is describing. The W code and the positive adjustment in column (g) are both covered there.

Wes F.

Author

Thanks everyone — this thread answered the core question for me. Short version of what I learned: selling a put before selling shares at a loss can trigger the wash sale rule because it creates an obligation to acquire the underlying, the 30-day window applies on both sides of the sale, my broker probably won't flag it on the 1099-B, and I need to report the W code and column (g) adjustment on 8949 myself. I'll close the put, track the adjusted basis carefully, and double-check everything against Publication 550 before I file.