Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeMoney calculatorsUSWash Sale Calculator

Wash Sale Calculator

money

Check the 30-day window, the disallowed loss and the new basis of your replacement shares

Estimates only, not financial advice. What you type stays on your device. Checked against sources on 29 Sept 2026.

Enter the dates and amounts of a loss sale and any purchases around it. The calculator finds the 61-day window from 30 days before to 30 days after the sale, matches replacement shares one for one, and shows the disallowed loss, the deductible rest, the new cost basis and when the new shares turn long-term.

Next:
  • Child Tax Credit Calculator The $2,200 child tax credit, its refundable part and the phase-out, for 2026 or 2025
  • EITC Calculator Earned Income Tax Credit for 2026 or 2025 by children and filing status, with your band
  • RSU Tax Calculator Federal tax on RSU vesting, the 22% withholding shortfall and the gain when you sell

Rates and rules read from IRS Publication 550, Investment Income and Expenses (Wash Sales) on 29 Sept 2026; they may have changed since.

How to calculate a wash sale disallowed loss and adjusted basis

1

Under "The loss sale" enter the "Date you bought the shares you sold", the "Date you sold them" and the "Shares sold".

2

Enter "Their total cost basis" and "Total sale proceeds" in dollars.

3

For each repurchase enter the date, "Shares bought", "Total paid" and whether it was "Bought in" a taxable account or an IRA; press "Add a purchase" for more.

4

Read "Loss you can deduct now" and open "Replacement shares" for the new basis, then press "Share result".

About the Wash Sale Calculator

A wash sale happens when you sell a stock or fund at a loss and buy the same or a substantially identical security within 30 days before or after the sale. The IRS then refuses the loss for now. It is not gone: IRS Publication 550 moves the disallowed loss into the cost basis of the replacement shares, and the holding period of the shares you sold carries over to them.

Partial replacement. If you buy back fewer shares than you sold, only that many shares are washed. Publication 550 matches the shares bought with the shares sold, first purchase first. Sell 100 shares at a $1,000 loss and buy back 60, and $600 is disallowed while $400 stays deductible this year. Each replacement purchase takes its share of the disallowed loss by its number of matched shares.

The window counts calendar days. Day 30 after the sale is still inside; day 31 is the first safe day to buy back. Purchases in the 30 days before a sale count too, which is the part people forget when they add to a losing position and then sell the older shares.

Holding period. The replacement shares are treated as held from an earlier date, the purchase date minus the days you held the old shares, so they can turn long-term sooner than their own purchase date suggests. The calculator shows that date.

IRA purchases. Buying the replacement in an IRA or Roth IRA still triggers the rule, but the loss is not added to any basis, so it is lost for good.

What this calculator does not do: decide whether two funds are substantially identical, handle options, short sales or a spouse's account, or read your Form 1099-B. Your broker reports wash sales only within one account and the same CUSIP; the rule applies across all of them. An estimate, not tax advice.

Frequently asked questions

What is the wash sale rule?

The wash sale rule stops you deducting a loss on a stock or security if you buy the same or a substantially identical one within 30 days before or after the sale. The loss is not lost: IRS Publication 550 adds it to the cost basis of the new shares, so it lowers the gain or raises the loss when you finally sell them.

How many days do I have to wait to buy back a stock after selling at a loss?

Wait until the 31st day after the sale. The window runs from 30 days before the sale to 30 days after it, 61 days in all, and a purchase on day 30 still counts. Buying in the 30 days before the sale also counts, so check recent purchases before you sell.

What happens if I buy back fewer shares than I sold?

Only the shares you bought back are washed. Publication 550 matches purchases to the shares sold one for one, in the order you bought them. Selling 100 shares at a $1,000 loss and buying back 60 disallows $600 and leaves $400 deductible this year. The $600 goes into the basis of the 60 new shares.

How is the cost basis adjusted after a wash sale?

Add the disallowed loss to what you paid for the replacement shares. In the IRS example, 100 shares bought for $1,000 and sold for $750 give a $250 loss; buying 100 again for $800 makes the new basis $1,050. The holding period of the old shares is added to the new ones as well.

Does buying in my IRA trigger a wash sale?

Yes. Publication 550 lists buying substantially identical stock for your IRA or Roth IRA as a wash sale. Unlike a purchase in a taxable account, the disallowed loss is not added to any basis, because IRA assets have no basis for this purpose. The loss is gone permanently, which makes this the costliest version of the rule.

Does my broker catch every wash sale?

No. Brokers report a wash sale on Form 1099-B only when the shares were bought in the same account with the same CUSIP number. Purchases in another account, your spouse's account or an IRA are not reported, but the rule still applies to them, and you report the adjustment yourself on Form 8949 with code W.

Sources

  • IRS Publication 550, Investment Income and Expenses (Wash Sales)

The law behind this calculator:

  • 26 U.S.C., section 1091 (official text, read on 19 October 2026)

Applies to: United States. Last verified 29 September 2026.

Figures from IRS Publication 550, Investment Income and Expenses (Wash Sales), read 29 September 2026. Built by Saifuddin, Omnikit.

Rates and rules change; check the source before you rely on a figure.

Still stuck? Ask about Wash Sale Calculator and anybody who knows can answer. No account needed.

Common uses

  • Wash Sale Rule CheckerEnter your trade dates to see whether a loss sale falls inside the 61-day wash sale window

On the related tools: Additional Child Tax Credit Calculator – How much of the child tax credit comes back as a refund: 15% of earnings over $2,500 · NSO Tax Calculator – Federal tax on exercising non-qualified stock options and selling the shares.

Related tools

All money calculators
Sales Tax CalculatorAdd sales tax to a price or take it out of a total, with your state rate plus local rateBonus Tax CalculatorTax withheld from a US bonus in 2026: flat 22% or aggregate, FICA, state, and your netSelf-Employment Tax Calculator 20262026 SE tax, federal income tax with the QBI deduction, and your four quarterly paymentsChild Tax Credit CalculatorThe $2,200 child tax credit, its refundable part and the phase-out, for 2026 or 2025EITC CalculatorEarned Income Tax Credit for 2026 or 2025 by children and filing status, with your bandRSU Tax CalculatorFederal tax on RSU vesting, the 22% withholding shortfall and the gain when you sellHome Sale Exclusion CalculatorGain on selling your home, the $250,000 or $500,000 exclusion and the taxable restHome Office Deduction CalculatorSimplified $5 per square foot or the actual-expense method, side by side

More for US: all 41 US calculators.

Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)