Wash sale if selling recent ESPP shares at a loss with no repurchase — does it even apply?
Sold my ESPP shares last month at a loss. Bought them through payroll deductions over the past year, so the most recent lot was purchased about 6 weeks ago. I haven't bought any new company stock since, no open orders, nothing in my IRA either. My broker's 1099-B shows code W in box 1g on the most recent lot, which I did not expect at all since I didn't buy anything after the sale. I went back and checked my ESPP purchase history and I think the "repurchase" the broker flagged is actually an earlier lot purchased within the 30-day window before my sale date — not after. Is that how wash sales work? I always thought it was about buying after you sell. Can a purchase that happened before the sale trigger a wash sale if selling recent ESPP shares at a loss with no repurchase after the fact?