Investing & Retirement
Wash Sale Checker
Check a list of trades for possible wash sales — losses on sales where the same security was bought within 30 days before or after.
For information and education only — not financial advice. Results are estimates based on the numbers you enter; check important decisions with a qualified professional.
How to use
- 1Enter each trade on its own line: date, buy or sell, shares, price (e.g. 2025-03-01 sell 10 45).
- 2Loss sales with a purchase within 30 days are flagged.
How it's calculated
A loss sale is flagged if a purchase of the same security happened from 30 days before to 30 days after the sale date. Losses use the average cost of shares held before the sale.
Frequently asked questions
What is the wash sale rule?
US tax rules disallow a loss if you buy the same or a 'substantially identical' security within 30 days before or after selling it at a loss. The loss is added to the new shares' cost basis.
Does it apply across accounts?
Yes — including IRAs and a spouse's accounts. This checker only sees the trades you enter.
Is this tax advice?
No. Brokers report wash sales within one account on Form 1099-B; use this for planning and confirm with a tax professional.
Why the 30-day window counts in both directions, not just forward
The wash sale rule disallows a loss if a replacement purchase happens anywhere from 30 days before the loss sale to 30 days after it — a full 61-day window centered on the sale date, not just a forward-looking 30-day rule. This means a loss can be disallowed even by a purchase made before the loss-generating sale occurred, which is a detail many investors miss when they assume the rule only looks forward in time.
Worked example: Wash Sale Checker
Buying 10 shares at $50, selling 10 shares at $40 a loss (a $100 loss on 10 shares), then buying 10 more shares at $42 within 30 days of that sale: the wash sale rule disallows the $100 loss entirely, since a replacement purchase happened within the 30-day forward window. The identical trade sequence, but with the replacement purchase happening on day 46 instead — outside the 30-day window — leaves the loss fully allowed, with zero wash sales flagged, illustrating how sensitive this rule is to exact timing.
Why the disallowed loss isn't gone forever — it's added to the new position's basis
A wash sale doesn't permanently destroy the tax benefit of the loss — the disallowed amount gets added to the cost basis of the replacement shares that triggered the rule, meaning the loss effectively gets deferred until those replacement shares are eventually sold (assuming no further wash sale occurs at that point), rather than being eliminated outright. This is a timing rule more than a permanent penalty, though it can still complicate tax planning for active traders who frequently buy and sell the same security.
Why this checker only sees what's typed into it, not your whole financial life
The wash sale rule applies across every account you and your spouse hold for the same or substantially identical security — including IRAs, where a replacement purchase can trigger a permanently disallowed loss rather than just a deferred one, since there's no future taxable sale in an IRA to eventually recapture it against. This tool can only check wash sales within the specific list of trades entered for one security in one account; cross-account and cross-security 'substantially identical' situations require manually checking every account involved.
Related tools
- Compound Interest Calculator
See how savings grow with compound interest and regular deposits — any compounding frequency, with a year-by-year growth table.
- 4% Rule / Safe Withdrawal Calculator
See how much you can withdraw from a portfolio each year and how long the money lasts with inflation-adjusted withdrawals.
- Rule of 72 Calculator
Estimate how long it takes to double your money at a given return — or the return needed to double in a set time — with the exact answer for comparison.
- Asset Allocation by Age Calculator
Get a starting stock/bond mix for your age and risk tolerance using the classic 100/110/120-minus-age rules — and see it in dollars.
- Position Size Calculator
Work out how many shares to buy so a stop-loss limits your loss to a set percentage of your account — plus the risk/reward ratio to your target.
- Cooling-Off Period & Right to Cancel Calculator
Work out the last day to cancel a purchase and get a refund — the 14-day right of withdrawal for online and off-premises purchases in the EU and UK, and the US FTC 3-day Cooling-Off Rule for door-to-door sales.