Free wash sale calculator. Check whether a stock or crypto loss is disallowed under the US wash sale rule and see the basis adjustment carried to your replacement shares.
A wash sale calculator helps you see whether a stock or securities loss you just booked is actually deductible this tax year, or whether the IRS wash sale rule pushes that loss into the cost basis of the shares you bought back. In plain terms, the United States wash sale rule stops traders from selling a position at a loss purely to harvest a tax deduction, and then quietly rebuying the same position right away so their real market exposure never changed. The rule lives in Internal Revenue Code section 1091. The calculator above turns that rule into a fast yes or no answer: you enter your capital loss and whether you repurchased a substantially identical security within 30 days, and it tells you how much of the loss is disallowed, how much stays deductible, and how much gets added to your new basis so it is deferred rather than destroyed.
The wash sale rule is a United States federal tax provision that blocks you from claiming a capital loss if you acquire a substantially identical security within a set window around the losing sale. Congress created it so traders cannot generate a paper loss for tax purposes while keeping the same economic position. It applies to stocks, bonds, options, and other securities held for investment. It does not change how much money you actually made or lost in the market. It only changes the timing of when you are allowed to use the loss on your tax return. If a sale is flagged as a wash sale, the loss is disallowed in the current year and instead attaches to the basis of the shares that triggered the rule.
A key point that scares many new traders unnecessarily: the wash sale rule almost never makes a loss disappear permanently. In the ordinary case it defers the loss. The main way a loss can be permanently trapped is a narrow situation, such as a wash sale involving a related party or certain retirement account repurchases, where the basis adjustment cannot flow back to you. For a normal taxable brokerage account, a disallowed wash sale loss simply waits inside your new cost basis until you exit the replacement position.
The calculator above is intentionally simple so you can sanity check a single trade in seconds. Here is what each field means and what each result tells you.
The calculator above treats repurchase as a single yes or no for a full-position rebuy. Real wash sales can be partial: if you only rebuy part of your position, only that proportion of the loss is disallowed. Use the tool for a quick read, then confirm partial and multi-lot cases with a tax professional or full tax software.
Most people call it the 30 day rule, but the true danger zone is 61 days wide. The rule looks 30 days before the sale, the day of the sale itself, and 30 days after the sale. If you buy a substantially identical security anywhere inside that span, the loss is a wash sale. The before half surprises people: you can trigger a wash sale with a purchase you made weeks before you sold the losing lot, not just with a rebuy afterward. Count calendar days, not trading days, and count carefully around month ends and holidays.
The rule does not trigger on any repurchase. It triggers on buying something substantially identical to what you sold. The IRS has never published a bright line list, which is exactly why traders get tripped up. Judgment matters, so this is one area where professional guidance is worth it.
Rebuying the exact same stock or the exact same fund is the clearest case. Buying a call option or entering a contract to acquire the same stock can also count, because you are reacquiring the same economic exposure. Preferred shares that are convertible into the common stock you sold can be treated as substantially identical in some situations.
Shares of a different company in the same sector are generally not substantially identical. Two index funds that track different indexes are usually fine. Many traders harvest a loss in one S and P 500 fund and rotate into a total market fund to stay invested while sidestepping the rule, but even close trackers of the same index can be a grey area, so verify current guidance before relying on that move.
You bought 100 shares of a stock for 5,000 dollars. You sold all 100 for 3,000 dollars, a capital loss of 2,000 dollars. Four days later you rebought 100 shares of the same stock. In the calculator you enter Capital Loss 2,000 and Repurchased Within 30 Days yes. Result: Disallowed Loss 2,000 dollars, Deductible Loss 0 dollars, Added to New Basis 2,000 dollars, Status Wash Sale. Your new 100 shares carry a cost basis of your purchase price plus 2,000 dollars, so when you eventually sell them you get the loss back through a smaller gain or a larger loss.
Same trade: you booked a 2,000 dollar loss selling 100 shares. This time you stayed out for the full 31 days and bought nothing substantially identical. You enter Capital Loss 2,000 and Repurchased Within 30 Days no. Result: Disallowed Loss 0 dollars, Deductible Loss 2,000 dollars, Added to New Basis 0 dollars, Status Clean. The full 2,000 dollar loss offsets your other capital gains this year, and up to 3,000 dollars of net capital loss can offset ordinary income, with the rest carried forward. Verify the current annual ordinary-income offset figure, as these limits can change.
You sold 100 shares at a 5,000 dollar loss, then rebought only 60 shares within a week. Because just 60 percent of your position was reacquired, only 60 percent of the loss is a wash sale. Disallowed Loss is 3,000 dollars, which attaches to the 60 replacement shares as extra basis. The remaining 2,000 dollars is deductible now. The simple calculator above cannot split this for you, so treat it as a signal to model partial rebuys in full tax software or with your accountant.
| Scenario | Capital Loss | Rebuy in 61-day window | Disallowed Loss | Deductible Now | Added to Basis |
|---|---|---|---|---|---|
| Full rebuy of same stock | $2,000 | Yes (100%) | $2,000 | $0 | $2,000 |
| No rebuy, waited it out | $2,000 | No | $0 | $2,000 | $0 |
| Partial rebuy (60%) | $5,000 | Yes (60%) | $3,000 | $2,000 | $3,000 |
| Bought a different-sector stock | $2,000 | Not identical | $0 | $2,000 | $0 |
| Rebuy in your IRA | $2,000 | Yes | $2,000 | $0 | $0 (basis lost) |
A common and expensive myth is that you can dodge the wash sale rule by selling in one account and rebuying in another. You cannot. The IRS applies the rule across all of your accounts combined. That includes selling in a taxable brokerage and rebuying in your IRA or Roth IRA, and IRS guidance is strict there: the disallowed loss cannot be added to the IRA basis, so it can be permanently lost. The rule also reaches your spouse. A loss you take can be washed by a substantially identical purchase your spouse makes in their own account. It can reach an entity you control, such as a corporation where you hold the reins, because the purpose is to stop the same economic actor from gaming the timing. Your broker only reports wash sales within that single broker and account family, so cross-account and cross-broker matching is your responsibility.
As of the 2025 and 2026 tax years, cryptocurrency is generally classified as property rather than a security for United States federal tax purposes, and section 1091 is written to apply to stock or securities. So the wash sale rule usually does not stop crypto traders from selling a coin at a loss and rebuying it immediately. This is why crypto tax loss harvesting has been popular. Two cautions matter. First, lawmakers have repeatedly proposed extending the wash sale rule to digital assets, so this treatment could change, possibly with little warning. Second, tokenized securities and certain crypto structured products may already fall under securities rules. This is a debated, moving area, so verify current figures and current law before you act, and do not assume crypto is permanently exempt.
This page and the calculator above are for general education. They are not tax, legal, or financial advice, and they do not account for your specific facts, state rules, or account types. Tax rules and figures change, so treat every number here as an example and verify current figures. Before you act on any loss harvesting or wash sale decision, confirm it with a qualified tax professional or CPA. Last reviewed 2026.
The wash sale rule rewards traders who keep good records and punishes those who guess. The single best defense is a clean, honest trade log with exact dates, quantities, and prices for every buy and sell, across every account. Keeping that log on OneTradeJournal means that when tax season arrives, you can see your losing exits, the surrounding 61 day windows, and any rebuys in one place, which makes it far easier for you and your tax professional to spot wash sales before they become a filing surprise. Discipline in your logging today is what makes an accurate, defensible return possible tomorrow. Remember that this is education, not tax advice, so confirm the specifics with a qualified professional and verify current figures for your tax year.
Track IPO timeline from bid dates to listing. Calculate allotment date, refund date, and expected listing date for upcoming IPOs.
Calculate probability of profit for options strategies. Estimate win rates for Nifty and Bank Nifty options using delta-based probabilities.
Free trading expectancy calculator. Enter win rate and risk-reward to see expected profit per trade and edge per ₹100 risked. Test your system instantly.
Calculate absolute returns on your investments. Simple point-to-point return calculation for stocks, mutual funds, and trading positions in India.
Track and analyze trading emotions. Identify patterns between emotional state and trading performance. Improve trading psychology.
Detect revenge trading patterns in your trading history. Identify and prevent emotional trading after losses for better performance.
The trading journal built for Indian F&O traders. Track your trades, spot patterns, build discipline.
Yearly ₹2,499 · No broker credentials
See if a loss is disallowed and how the basis adjustment works.