Wash Sale Calculator: US Stocks and Securities
Model a US wash sale loss and replacement tax cost. This form assumes a full repurchase; it cannot check dates, partial rebuys or retirement-account exceptions.
This wash sale calculator models a full-position replacement in an ordinary taxable account. Enter a dollar loss and whether the same or a substantially identical security was acquired within 30 days before or after the loss sale. “Yes” disallows the full loss and adds it to the replacement security’s tax cost, called its basis. It cannot check dates, partial rebuys, related accounts or retirement-account exceptions. Its “Deductible Loss” label does not establish what you can claim on a tax return.
What the US rule covers
The IRS explains that a loss sale of stock or securities can be a wash sale when a substantially identical acquisition occurs within the surrounding period. A contract or option to acquire the security can count too. Purchases by a spouse or a controlled corporation can also matter.
In the ordinary taxable-account case, the disallowed loss is added to the replacement security’s cost basis, meaning its tax cost. This usually postpones recognition of the loss. It does not repay the cash lost, and further wash sales can defer it again.
This page explains US federal guidance checked on 16 October 2026. The IRS publication opened is the 2025 edition. Apply the guidance and filing instructions appropriate to your tax year, with a qualified tax professional for your own facts.
Thirty days on either side of the sale
The 30-day test includes qualifying acquisitions before the sale as well as after it. Together with the sale date, 30 + 1 + 30 = 61 calendar days. A year-end sale is not isolated from purchases made in the following year.
The form asks you to answer the time-window question yourself. It has no sale-date or purchase-date field, so it cannot return a verified next purchase date. Check actual transaction dates before selecting “No.” Waiting after a sale does not erase an already relevant earlier purchase.
“Substantially identical” is a tax classification. Similar exposure, a different ticker or a different broker is not a decision this form can make. For more context on the rule, see wash sale rule explained.
Wash sale date check: counting the 61-day window
The rule counts calendar days, not trading days, so weekends and market holidays are included. This calculator has no date fields, so use the steps below on your own records and then pick Yes or No.
- Write down the date of the loss sale.
- Count 30 calendar days back and 30 calendar days forward. Those two dates, plus the sale date, form the window.
- List every purchase of the same or a substantially identical security in any of your accounts. Include purchases made by automatic plans.
- If any purchase falls inside the window, answer Yes. If none do, answer No.
Made-up example: a loss sale on 15 March 2026. Thirty days earlier is 13 February 2026 and thirty days later is 14 April 2026. A purchase on 10 February is outside the window. A purchase on 20 February, or on 10 April, is inside it.
What the two controls do
| Control | Entry required | Important limit |
|---|---|---|
| Capital Loss (USD) | Enter the loss as a positive dollar amount. | The tool does not calculate it from proceeds, basis or tax lots. |
| Repurchased Within 30 Days? | Choose Yes or No after checking acquisitions before and after the sale. | This selects a branch; it does not verify the timing or security classification. |
| Result card | Yes branch | No branch |
|---|---|---|
| Disallowed Loss | The entire entered loss. | Zero. |
| Deductible Loss | Zero. | The entire entered loss, subject to other tax rules. |
| Added to New Basis | The entire entered loss as an adjustment. | Zero. |
| Status | The selected wash-sale assumption. | The selected no-wash-sale assumption. |
The basis card shows an addition, not the replacement holding’s final adjusted basis. You need the replacement purchase cost separately. There is no tax-rate field, so none of these amounts is a calculated tax saving.
Worked full-repurchase example
Illustrative taxable-account example: assume a single lot of 100 shares had a $5,000 adjusted basis and sold for $3,800. The realised loss is $5,000 − $3,800 = $1,200. Assume you acquire 100 replacement shares of the same stock inside the rule’s time window for $4,000, with no other relevant trades or fees.
Enter Capital Loss (USD) as $1,200 and select Yes. The calculator shows Disallowed Loss $1,200.00, Deductible Loss $0.00 and Added to New Basis $1,200.00. Those outputs match its full-loss assumption.
The replacement holding’s adjusted basis is worked out separately: $4,000 + $1,200 = $5,200. If an assumed later sale is $5,500, the result before any further adjustments is $5,500 − $5,200 = $300. A new qualifying acquisition could change the treatment of a later loss, so this example stops at that assumed profitable sale.
With the same entered $1,200 loss and No selected, the tool instead shows $0 disallowed, $1,200 deductible and $0 basis adjustment. Read that as “no wash-sale disallowance under the selected assumption.” Whether and when the loss reduces taxable income requires the rest of your return.
Partial replacements require share matching
The IRS instructs taxpayers to match acquired shares with an equal number sold, beginning with the first shares acquired. A small replacement does not necessarily disallow the whole sale’s loss, and mixed tax lots cannot be handled by a single blanket percentage.
Separate illustrative calculation: use the uniform-loss lot above, but assume only 40 of the 100 shares are matched to replacement purchases. Loss per sold share is $1,200 ÷ 100 = $12. The matched disallowed amount is 40 × $12 = $480. The remaining loss before other limits is $1,200 − $480 = $720.
This form cannot reproduce that split automatically because it has no sold-quantity or replacement-quantity inputs. Keep it for the full-replacement scenario and use complete lot records for partial or repeated purchases.
Several lots and a smaller repurchase: a second example
Made-up example: you sell 200 shares at a loss of $10 per share, a total loss of $2,000. Within the window you buy back only 50 shares. Matched shares are 50, so the disallowed amount is 50 × $10 = $500, and the remaining loss before other limits is $2,000 − $500 = $1,500. The $500 is added to the cost basis of the 50 replacement shares.
If you sold lots bought at different prices, the loss per share differs by lot, so match each replacement share to a sold share in the order the IRS instruction describes and calculate lot by lot. Keep a table of each lot with its date, quantity and basis.
IRA and Roth IRA purchases are different
IRS Revenue Ruling 2008-5 addresses a taxable loss sale followed by a substantially identical purchase in the individual’s IRA or Roth IRA (individual retirement accounts) within the window. The loss is disallowed and the IRA or Roth IRA basis is not increased by it.
The calculator always shows a basis addition when Yes is selected. That is unsuitable for the IRA case described by the IRS ruling. Use the ruling and a tax professional instead of carrying that displayed addition into your retirement-account records.
What counts as substantially identical: stocks, ETFs and options
The IRS lists options and contracts to acquire the security among the things that can trigger the rule, so buying a call option on the stock you just sold at a loss may count. For funds, the question is whether the two holdings are substantially identical, and that depends on the facts. Shares of one company and bonds or preferred shares of the same company are not automatically the same. Two funds tracking the same index from different providers are a grey area, and the IRS has not drawn a bright line that a calculator can apply. Ask a tax professional when the two holdings are close.
Dividend reinvestment and automatic purchases
A purchase is a purchase even when you did not place it by hand. If a dividend reinvestment plan or a recurring buy plan acquires shares of the same security inside the window, that purchase can match your loss sale. Before selling at a loss, check whether a reinvestment plan is switched on, in every account you hold.
Holding period carries over to the replacement shares
Besides the basis increase, the holding period of the sold shares is generally added to the replacement shares. This can change whether a later gain is short-term or long-term. The calculator shows only the basis addition and does not track holding periods, so keep the original purchase dates.
Using this calculator with Robinhood records
There is no separate Robinhood input mode here. Robinhood’s wash-sale guidance says the rule applies across investing accounts, including accounts outside Robinhood, and makes the customer responsible for tracking them. A statement from one account cannot establish that no matching acquisition exists elsewhere.
Robinhood also distinguishes the position’s displayed average cost from tax cost basis. It warns against using average-cost calculations to determine realised taxable gain or loss. Use the applicable tax documents, transaction history and basis records when choosing the dollar loss to enter.
That difference can explain why an app’s position gain and a tax document do not line up. Do not force the numbers to agree by subtracting a wash adjustment twice. Follow each statement’s column meanings and reconcile the transaction sequence.
Reporting and keeping supporting records
The IRS instructions for Form 8949 describe code W for a nondeductible wash-sale loss and a positive adjustment in column (g). They also explain correcting an incorrect reported wash amount. This form does not prepare those entries or establish all adjustments your return needs.
- Keep each sale and acquisition date, quantity, account and security identifier.
- Retain the sold lot’s adjusted basis and the replacement purchase cost separately.
- Identify whether the replacement is taxable or held in an IRA or Roth IRA.
- Reconcile any broker-reported disallowance with acquisitions outside that account.
You can record trades manually in OneTradeJournal and keep supporting notes. It does not match all accounts or issue a tax report. A broad absolute return calculation measures a value change; it cannot replace this basis reconciliation.
Other US questions have different rules. Our holding-period tax comparison and trader tax status guide cover related topics; neither makes a wash-sale election or classification for you.
Does the wash sale rule apply to crypto?
The US rule is written for stock and securities. Tax commentators generally say it does not currently reach crypto held as property, but proposals to extend it have been made, and rules about digital assets keep changing. Rapid sell-and-rebuy trades may also be questioned under other doctrines. Check the current IRS position and your tax professional before relying on any of this. This calculator does not decide the treatment of any asset.
Is there a wash sale rule in India?
This page is about US tax. India has no wash-sale rule like the US one that disallows a loss just because you rebought the same share. Other rules can still matter. For example, the dividend stripping provision (section 94(7) of the Income-tax Act, 1961) limits losses on shares bought shortly before a dividend record date and sold soon after, but only to the extent the dividend is exempt from tax, and tax officers can look at transactions made only to create a tax result. The Income-tax Act, 2025 applies from 1 April 2026, so section numbers may have changed. F&O gains and losses are also taxed under their own rules. This is general information, so check with a chartered accountant (CA) for your own case. See wash sale rule explained, intraday trading taxation and the F&O income tax calculator.
Sources
- IRS: Publication 550: wash sales (2025 edition), opened 16 October 2026.
- IRS: Revenue Ruling 2008-5, opened 16 October 2026.
- IRS: Instructions for Form 8949, opened 16 October 2026.
- Robinhood: Wash sales, opened 16 October 2026.
- Robinhood: Average cost and tax cost basis, opened 16 October 2026.
- OneTradeJournal: Wash Sale Calculator input form, opened 16 October 2026.
Related Topics
Related Articles
Absolute Returns Calculator: Total Gain or Loss
Absolute return calculator with formula, worked rupee examples and a comparison with CAGR and XIRR. Learn when absolute return misleads, such as for SIPs.
Options Rollover Calculator
Work out the debit or credit of rolling an option from premiums and lots. Learn roll up, down and out, charges, STT, and futures rollover cost and percentage.
Options Probability Calculator: Model Inputs and Limits
Estimate an option's expected move and price range from price, volatility and days to expiry, with a worked example and why the probability cards need care.
Trading Expectancy Calculator: Formula and Example
Trading expectancy calculator (EV per trade) from win rate, average win and average loss. See R-multiples, profit factor, sample size and low win-rate examples.
Trading Emotion Tracker: Review Feelings and Plan Discipline
Free trading emotion tracker. Log the mood, intensity and plan discipline behind a trade, get a simple rule-based score, and keep a record to review later.
MACD Calculator: Line, Signal and Histogram
Calculate the MACD line, signal line and histogram from your moving averages, with the formula, a worked example and how to read crossovers.
The trading journal for Nifty, Bank Nifty and Indian F&O. Track your trades, spot patterns, build discipline.
- Log one trade a day by hand, on purpose
- AI mentor finds your repeat mistakes
- Behavioural analytics catch tilt early
- Trading calendar with P&L heatmap
- Pre-trade checklist flags risks
Yearly ₹3,999 · No broker credentials