Calculators

Wash Sale Calculator

Last updated: November 5, 2026 · Uses 2026 federal tax brackets and thresholds

Sold at a loss and bought back within 30 days? Enter the sale and any purchases of the same or a substantially identical security, in any of your accounts. The calculator shows how much of the loss is disallowed, how much you can deduct now, and the adjusted basis of the replacement shares.

How the wash sale rule is applied

  • The window runs 30 days before to 30 days after the sale: 61 days in total.
  • Replacement shares are matched in the order you bought them, up to the number of shares sold.
  • The disallowed loss is added to the basis of the replacement shares, so it’s deferred, not lost.
  • If the replacement is bought in an IRA, the disallowed loss is lost for good.

Example

With the sample numbers, you sell 100 shares at $40 that cost $55: a $1,500 loss. Buying 60 shares 15 days later disallows $900. You deduct $600 now, and the 60 new shares get a basis of $57 each. See the wash sale rule and wash sales across accounts.

Frequently asked questions

Does the rule apply to crypto?

Not currently for coins held directly, but it does for crypto ETFs and other securities.

Do dividend reinvestments count?

Yes. An automatic reinvestment within the window is a purchase. See DRIPs and cost basis.

Sources

This calculator gives educational estimates only and is not tax, legal or investment advice. Results depend on details it doesn’t capture; consult a qualified tax professional before acting.