Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Some Tips on Tax Consequences of Wash Sales
-
Make sure the last trade is a "buy" and avoid buying the same stock/security in Dec and Jan (next year). Assuming the trading market is open on Dec 31, you can then sell all shares of the stock/security on Dec 31. Since the last purchase of the stock/security is more than 30 days agao, and there is no purchase of the same stock/security in Jan, i.e., more than 30 days following the sale in Dec, the sale in Dec is not considered a wash sale if there's a loss. This means that you can deduct your capital loss for tax purposes. To make tax calculations easier, try to buy and sell the same quantity of the same stock/security.
-
Avoid buying the same stock/security in your IRA/401k/Roth accounts.
-
Try to make each sale profitable by carefully choosing which lots of shares to sell. This is (partially) possible with some trading APIs (e.g., IB trading APIs allowing specifying FIFO, FILO strategies) but is not universally implemented (e.g., Alpaca API does not support it yet) .