Finance

Wash Sale Calculator

Check whether a repurchase inside the 61-day window disallows a realized loss.


Wash Sale Calculator

Advertisement

Buying back a substantially identical security too soon after a loss sale doesn’t erase the loss — it just defers the tax benefit rather than eliminating it.

How it works

If a repurchase happens within 30 days before or after the sale (a 61-day window total), the loss is disallowed for the current year and instead added to the cost basis of the replacement shares — deferring, not eliminating, the tax benefit.

What this does not include

The wash sale rule applies across all accounts, including a spouse’s accounts and IRAs, per Fidelity’s own summary — this calculator checks the timing rule itself, not whether a specific repurchase in a different account or by a spouse would also trigger it.

How to use this calculator

  1. Enter the realized loss and the original cost basis of the shares sold.
  2. Enter the number of days between the sale and any repurchase.

Frequently asked questions

Does the wash sale rule apply if I buy back a different but similar stock?

Only if the repurchased security is “substantially identical” — buying a different company’s stock in the same sector generally doesn’t trigger it, though buying back into the same fund often does.

Is the disallowed loss gone forever?

No — it’s added to the basis of the replacement shares, so it reduces the taxable gain (or increases the loss) whenever those replacement shares are eventually sold.

Does the wash sale rule apply to an IRA?

Yes — selling at a loss in a taxable account and buying the same security in an IRA within the window can trigger a wash sale, and in that case the disallowed loss may be permanently lost rather than added to a basis.

Important: This is general information, not financial advice. Figures are estimates, and your lender or provider decides the real numbers. Check with a qualified adviser before acting on them.

Be the first to rate this

Written by

M. Whitfield

Personal finance writer

M. Whitfield writes the personal finance calculators, covering loans, mortgages, savings, tax and investment maths. The focus is on showing exactly which number goes into a formula and which assumptions a result depends on, so readers can tell when a figure applies to their situation and when it does not. Every finance page states what it does not account for as plainly as what it does.

Reviewed by

A. Whitfield-Reyes

Calculator reviewer — finance

A. Whitfield-Reyes reviews the finance calculators, checking compounding conventions, rate-period alignment, and whether each page is explicit about the costs and tax treatment it leaves out. Financial results are easy to state with false precision, so review focuses on whether the page makes its assumptions visible to a reader who is not looking for them.

How we write and review

Related calculators