Partial wash sale calculator: the loss that counts and the loss set aside
You sold at a loss and bought some back. Enter the numbers and see how much of the loss counts now and how much moves into the new shares.
How it works: the loss is shares sold times the gap between your cost and the sale price. If the buy back falls inside the window, the smaller of the two share counts is the matched part. The loss on the matched part is not counted this year. It is added to the cost of the new shares instead. The rest of the loss counts now. The window length is your own number. Type the one in your rule book. This page does not know it for you.
Part of the loss can still count
You do not lose the whole loss when you buy back less than you sold. Sell 100 shares, buy back 40, and only 40 shares are matched. The loss on the other 60 counts. The default shows this: a $500.00 loss, $200.00 set aside, $300.00 counted. The set-aside part is not gone. It sits in the cost of the new shares and comes back when you sell them.
The usual mix-up
People think a buy back kills the whole loss, or that a different account makes it safe. The match is by share count, one for one, and it runs both before and after the sale. Options on the same stock can count too. Wash sale and options and wash sale rule with options: examples go through those cases. See also cost basis.
Follow along