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.