
Rex says
Money math without the spreadsheet headache. Plug in your numbers and I'll show you exactly where the dollars land.
Try a scenario
Click to load — tweak from there.Inputs
Result
First safe repurchase date
2025-01-15
Window starts (30 days before sale)
2024-11-15
Window ends (30 days after sale)
2025-01-14
Total no-buy window
61

Psst — share this and help Rex grow
One click, a permanent link with your numbers baked in.
How to use this
- 1Enter date you sold at a loss.
- 2Read your first safe repurchase date on the right — it updates as you type.
- 3Hit Share to keep the scenario or send it to someone.
About this calculator
The wash sale rule disallows a tax loss if you buy the same or a substantially identical security within a 61-day window: 30 days before the sale through 30 days after it. Miss this window by even a day and the IRS disallows the loss deduction, instead adding the disallowed loss to the cost basis of the new shares (deferring, not destroying, the benefit — but not in the year you wanted it). This calculator takes your sale date and spits out the exact start and end dates of the no-buy window, plus a reminder about the trickier scenarios: automatic dividend reinvestment inside the same fund can itself trigger a wash sale, and the rule applies across all your accounts, including your spouse's accounts and your IRA, not just the one where you sold.
Worked example
Using the values the calculator loads with:
Inputs
- Date you sold at a loss: 2024-12-15
Results
- First safe repurchase date: 2025-01-15
- Window starts (30 days before sale): 2024-11-15
- Window ends (30 days after sale): 2025-01-14
- Total no-buy window: 61
What each field means
Inputs
- Date you sold at a loss
- The reference date for this calculation. Defaults to today unless you change it.
Results
- First safe repurchase date
- Returned as a plain value and shown as the headline result. It recalculates instantly whenever you change an input, so you can compare scenarios without reloading.
- Window starts (30 days before sale)
- Returned as a plain value. It recalculates instantly whenever you change an input, so you can compare scenarios without reloading.
- Window ends (30 days after sale)
- Returned as a plain value. It recalculates instantly whenever you change an input, so you can compare scenarios without reloading.
- Total no-buy window
- Returned as a whole number. It recalculates instantly whenever you change an input, so you can compare scenarios without reloading.
FAQ
Does the wash sale rule apply if I buy in a different account?
Yes. The IRS aggregates across all accounts you control, including a spouse's accounts filing jointly and even your own IRA. Buying the same stock in your Roth IRA within the window after selling it at a loss in your taxable account still triggers a wash sale — and worse, in that case the disallowed loss is permanently lost, not just deferred, since IRAs don't carry a cost basis adjustment the same way.
What counts as 'substantially identical'?
The same stock or bond, definitely. Different but very similar index funds tracking the same index (like two different S&P 500 funds from different providers) are a gray area the IRS hasn't clearly ruled on, but most practitioners treat them as safe since they're legally distinct securities from different issuers. Options and warrants on the same underlying stock can also count.
Can automatic dividend reinvestment trigger a wash sale?
Yes, and it's an easy one to miss. If a fund pays a dividend and automatically reinvests it into more shares of the same fund within the 61-day window around a loss sale of that same fund, the reinvested shares can trigger a wash sale on part of your loss. Turn off auto-reinvest before harvesting a loss if you plan to sell soon.
What happens to the disallowed loss?
It's not gone — it gets added to the cost basis of the replacement shares you purchased, and the holding period may also carry over. You'll effectively recapture the benefit whenever you eventually sell those replacement shares for good, just not in the year you wanted.
Accuracy and limitations
- Results are estimates before tax, fees, and inflation unless an input explicitly covers them.
- Rates are treated as fixed for the whole period — variable-rate products will drift from this projection.
- This is educational maths, not financial advice. Check anything contractual with the lender or your accountant.
Related tools
Tax-Loss Harvesting Benefit Calculator
Quantify the tax savings from realizing losses to offset gains and income.
0% Capital Gains Bracket Harvesting Calculator
Find how much gain you can realize tax-free inside the 0% LTCG bracket.
Asset Location Tax Efficiency Calculator
See the tax savings from placing bonds, REITs, and stocks in the right account types.
Cite this calculator
Writing about this topic? Grab a citation — every link helps keep these tools free.
RevenueLab. (2026). Wash Sale Risk Window Calculator. Retrieved from https://www.revenuelab.fyi/toolbox/wash-sale-risk-window
<p>Source: <a href="https://www.revenuelab.fyi/toolbox/wash-sale-risk-window" target="_blank" rel="noopener">Wash Sale Risk Window Calculator — RevenueLab</a> (2026).</p>
Source: [Wash Sale Risk Window Calculator — RevenueLab](https://www.revenuelab.fyi/toolbox/wash-sale-risk-window) (2026).
