Wash sale calculator: the 30-day rule dates and the first clean re-buy date
By Wash-Sale Guardian (who's behind it) · Published 2026-10-31 · Last updated 2026-11-15 · How the checker works
This wash sale date calculator works out the 30-day rule for one loss sale. Enter the trade date you sold at a loss and it gives the window's first day (30 days before), its last day (30 days after) and the first clean re-buy date (day 31 after), plus the next trading day from then. From the first day through the last, both included, is the 61-day window, counted in calendar days. Add a purchase date to see where it falls. The dates stay in this page; nothing you enter is sent anywhere.
This does the dates, and the share arithmetic of one sale at a time. To see which of your real trades wash across every account, with dollar amounts, use the free checker. Its export steps by broker cover Robinhood, Schwab, Fidelity, IBKR, E*TRADE and tastytrade. For a table of windows for several late-2026 sale dates, see the 2026 tax-loss harvesting deadline dates.
Writing about wash sales? Put the date calculator on your own site: one snippet, free.
The 30-day rule dates: an example you can check by hand
You sell at a loss on November 30, 2026. The window runs from October 31 through December 30, both days included. The first clean re-buy date is December 31, which is why November 30 is the last loss sale you can re-buy within 2026.
How the share boxes work it out
IRS Publication 550 (2025), in its Wash Sales section under "More or less stock bought than sold" (read on 2026-11-11), says that if the number of shares you buy within 30 days before or after the sale is more or less than the number you sold, "you must determine the particular shares to which the wash sale rules apply." It continues: "You do this by matching the shares bought with an equal number of the shares sold. Match the shares bought in the same order that you bought them, beginning with the first shares bought. The shares or securities so matched are subject to the wash sale rules." And for the loss it says: "If your loss was disallowed because of the wash sale rules, add the disallowed loss to the cost of the new stock or securities (except in (4) above)." Its item (4) is buying the stock for your IRA or Roth IRA: a loss washed by a purchase there is not added to any cost (see why an IRA re-buy makes the loss permanent).
The boxes do only the arithmetic of that, on what you type:
- Shares washed: the smaller of the shares sold and the shares bought back inside the window.
- Washed part of the loss: the loss x the washed shares / the shares sold, rounded to the cent.
- Still deductible, by these numbers: the loss less the washed part.
- Where the washed part goes: into the cost of the replacement shares, as the sentence above says.
An example you can check by hand. You sold 100 shares at a loss of $1,000 and bought 40 back inside the window. The washed shares are the smaller of 100 and 40, so 40. The washed part of the loss is $1,000 x 40 / 100 = $400, and $600 is still deductible by these numbers. The $400 is added to the cost of the 40 replacement shares. Had you bought 150 back, only the 100 sold can be matched: all $1,000 is washed, and the other 50 shares are not matched by this sale.
What this cannot know, so check it with a CPA or EA:
- Which shares are matched when your lots lost different amounts. The arithmetic spreads the loss evenly over the shares sold. Pub 550 matches the shares bought with an equal number of the shares sold, and our checker takes the ones bought first, but a purchase that matches a lot with a bigger or smaller loss changes the dollars.
- Purchases you did not count. Buys in another account, in an IRA, or in your spouse's account can also be replacements, and the share count here is only what you typed.
- Options. A call option on the stock can count as shares, and these boxes do not model one.
- Several loss sales. Each loss sale has its own window, and one purchase can be matched only once. Use one sale at a time.
What the dates don't tell you
- It spans every account: other brokers, your IRAs (Rev. Rul. 2008-5 disallows the loss with no basis adjustment, which we read as permanent), and your spouse's accounts.
- It washes share for share: the loss on as many of the shares sold at a loss as the buy replaces.
- Options can count: a call option on the stock counts as the shares it gives the right to buy, usually 100 per contract.
- Each loss sale has its own window, so a date outside this one can still fall inside another.
Frequently asked questions
How do I calculate the 30-day wash sale rule dates?
Count 30 calendar days back from the trade date of the loss sale and 30 calendar days forward: IRS Publication 550 covers a purchase made “within 30 days before or after the sale.” Both ends count, so the wash sale window is 61 days including the sale day, and day 31 after the sale is the first clean re-buy date for that sale. Trade date governs, not settlement date. This wash sale date calculator does the counting for one sale.
What is the first date I can buy back after selling at a loss?
For that one loss sale, day 31 after its trade date: the wash sale calculator calls it the first clean re-buy date and also shows the next trading day from then. A purchase on or after that date is outside that sale’s 30-day window. It isn’t an all-clear: another loss sale of the same stock has its own window, and a purchase in any of your accounts, your IRA or your spouse’s account counts too.
Does this calculator check my trades?
No. It works from the dates, and from the share counts and the loss you can type in the optional boxes. It can’t see your trades: which accounts you hold shares in, which shares a purchase matches when your lots lost different amounts, or whether another loss sale has its own window. The free checker reads your broker CSVs and does that, in your browser.
If the first clean re-buy date is a weekend, what then?
The window runs on calendar days, so a clean date can fall on a weekend or a market holiday. The calculator also shows the next trading day, using the NYSE’s standing holiday rules. It doesn’t know about unscheduled closings.
How much of the loss is washed if I buy back fewer shares than I sold?
Only the matched shares: the smaller of the shares sold and the shares bought back in the window. The washed part of the loss is the loss times those shares divided by the shares sold. Selling 100 shares at a $1,000 loss and buying back 40 washes $400; $600 is still deductible by these numbers. The $400 is added to the new shares’ cost, unless bought in an IRA.