Options and wash sales: written options, assignments, and the stock-to-call trap
Sell a stock at a loss and buy a call on it within 30 days, and the loss is disallowed. Plus written options under §1234, assignments and §1256 index options.
Sell a stock at a loss and buy a call on it within 30 days, and the loss is disallowed, scaled by the contract's share equivalent. §1091(a) says that acquiring a contract or option to buy substantially identical stock within the window is a wash sale. Brokers are not required to match stock to options, and the ones we checked do not.
Written options
A written (sold-to-open) option is not a purchase, so it is not a replacement. Its premium is realized when it is bought back, expires or is assigned. When it is bought back or expires the result is short term under §1234(b), and it never gets code W.
When a written put is assigned, the premium reduces the basis of the stock you receive. When a written call is assigned, it adds to the proceeds of the stock you deliver. A deep-in-the-money written put, however, can be treated as an acquisition of the stock and can wash a loss.
Index options and futures
Options on broad-based indexes (SPX, NDX, RUT, VIX) and regulated futures are §1256 contracts: marked to market at year end, 60% long-term and 40% short-term, reported on Form 6781. The Code says the wash-sale rule does not apply to losses recognized through the year-end mark (§1256(f)(5)). WashTax does not apply §1091 to §1256 contracts at all, which is common practice but broader than that text. Ask your preparer if you trade these around year end.
Options on ETFs like SPY and QQQ are not §1256. They are ordinary equity options.
What no tool does well
Straddle loss deferral under §1092 for offsetting positions is complex enough that the trade-accounting tools, WashTax included, do not automate it. If you run offsetting positions across instruments, expect manual adjustments. A §475 election does not by itself remove §1092.
WashTax generates capital-gains forms and analysis. It is not tax advice and does not file your return. These articles explain the rules as we read them; confirm your own situation with your preparer. Sources: IRS Publication 550; Instructions for Form 1099-B and Form 8949; Revenue Ruling 2008-5; the broker help pages quoted on the broker comparison.