toolskoInstant Results. Privacy First.

Wash Sale Calculator: Disallowed Loss and New Basis

Check if a stock loss is a wash sale (30 days before or after), how much loss is disallowed, the new shares’ adjusted basis and Form 8949 code W.

Tool inputs stay in your browser · optional AI search sends your query

Good to know: Scope: a loss from selling stock, mutual fund or ETF shares or other securities in a regular (taxable) brokerage account when you buy substantially identical shares within 30 days before or after the sale, under 26 U.S.C. § 1091. It finds the 61-day window, matches replacement shares to the shares sold in the order you bought them (earliest first), splits the loss into the part that is disallowed and the part you can claim, works out the adjusted cost basis of the replacement shares (26 C.F.R. § 1.1091-2), shows the holding period that carries over (26 U.S.C. § 1223) and how to report it on Form 8949 (code W, column (g)). If the replacement shares were bought in your IRA or Roth IRA, the loss is still disallowed and the IRA basis is not increased (IRS Rev. Rul. 2008-5). Not included: deciding whether two different securities are “substantially identical” (the same stock or fund share class is; check other cases with a tax professional), options, contracts to buy, short sales, securities futures, several sales in a row that chain wash sales together, shares bought before the sale that you also sold, crypto and other assets the rule does not name, dealers and traders using mark-to-market, and state rules. Enter up to two replacement purchases. Nothing you type is sent or saved. Independent ToolsKo estimate, not tax advice. Sources reviewed November 17, 2026.

How to use it (step by step)

  1. 1Type how many shares you sold at a loss, what you paid for them in total (your cost basis) and the total you got when you sold (proceeds), plus the sale date. Your broker’s Form 1099-B or trade confirmation shows these.
  2. 2Add any purchase of the same stock or fund within 30 days before or after the sale (in any of your accounts, including an IRA): the number of shares, the total cost and the date. Leave purchase 2 at 0 if you made only one.
  3. 3Read whether it is a wash sale, the loss you can still claim, the new cost basis of the replacement shares and what to put on Form 8949. Keep the numbers with your tax records.

Words to know

Wash sale
Selling a stock or fund at a loss and buying the same (or a substantially identical) one within 30 days before or after. The IRS does not let you claim that loss now.
Cost basis
What you paid for an investment, including fees. Your gain or loss is the sale price minus the basis.
Disallowed loss
The part of your loss you cannot deduct this year. In a regular account it is added to the cost basis of the new shares, so you get the benefit later when you sell them.
Holding period
How long you owned the shares. More than 1 year is long-term, 1 year or less is short-term. With a wash sale, the time you owned the old shares is added to the new ones.

Explore tools for Australia, the US & Europe →

Sources & methods

References checked 2026-11-17. Read each tool’s scope and assumptions before relying on its result.

Spotted a wrong result or an outdated rule? Report a mistake · How we check our tools · Get new tools by email

Related tools

See all tools in the US Tax Toolkit: Paycheck, Credits & Deductions →