Free calculator · wash sale rule and the $3,000 limit

Wash-Sale and Loss-Harvest Calculator

Check one sale at a loss against the 61-day wash-sale window, see what happens to the disallowed part — added to the new shares’ cost basis, or lost for good after an IRA purchase — then estimate how harvested losses net against this year’s gains. Not tax advice; the rules have edge cases this page does not cover.

Example: one sale, three ways to buy back

  1. Window opens · day −30
  2. Sale at a $2,000 loss · day 0
  3. Buy back 100, day +10

    Day +10 · Taxable account

    In the window

  4. Or: 40 in an IRA, day +10

    Day +10 · IRA or tax-advantaged

    In the window · permanent

  5. Window closes · day +30
  • Or: buy back 100, day +31

    Day +31 · Taxable account

    Outside the window

A $2,000 loss on 100 shares sold on day 0. Buying 100 back in a taxable account 10 days later is inside the window: the whole loss moves into the new shares’ basis. Buying 40 in an IRA on day 10 is inside the window too, and that part of the loss, $800, is lost for good. Buying back on day 31 is outside the window, and the whole loss is allowed.
The wash-sale window
61 days
30 days before the sale, the sale day, 30 days after
Net capital loss against ordinary income
$3,000
$1,500 married filing separately; the rest carries forward
How a wash sale is reported
Code W
Form 8949, column (f), with the adjustment in column (g)
What an IRA purchase inside the window does to the loss
For good
Rev. Rul. 2008-5: disallowed, and not added to any basis

Part A

Wash sale check: is this loss disallowed?

One sale at a loss, and every purchase of the same or a substantially identical security within 30 days either side of it — in any of your accounts, including an IRA. Do not list the shares you sold.

The sale and the purchases around it

Purchases of the same or substantially identical security

Purchase 1

Realized loss
$2,000.00
$20.00 per share sold
Disallowed by the wash sale rule
$2,000.00
$2,000.00 into basis · $0.00 lost for good
Allowed this year
$0.00

Your sale and purchases on the 61-day wash-sale window

  1. Window opens · day −30
  2. Your sale at a loss · day 0
  3. Purchase 1 · 100 matched

    Day +10 · Taxable account

    In the window

  4. Window closes · day +30
The window runs from 30 days before the sale to 30 days after it, inclusive: 61 calendar days, in every account you or your spouse control. Purchase 1, 10 days after the sale in a taxable account: inside the window; the loss it disallows moves into the new shares’ basis.

Replacement shares matched, in the order bought

  • Purchase 1: 100 of 100 shares matched

    Nov 12, 2026 · +10 days · taxable

    Loss disallowed
    $2,000.00
    Paid for matched shares
    $3,100.00
    Adjusted basis
    $5,100.00
    Per share
    $51.00
    Holding period treated as starting
    Mar 26, 2026

The sale realizes a loss of $2,000.00, or $20.00 per share sold (short-term: held one year or less).

100 shares bought 10 days after the sale in a taxable account replace shares sold, so $2,000.00 of the loss is disallowed now and added to their basis: $3,100.00 paid + $2,000.00 = $5,100.00 ($51.00 a share). Their holding period includes the time you held the sold shares, so it is treated as starting Mar 26, 2026. The loss is postponed, not lost — it reduces the gain, or adds to the loss, when those shares are sold.

None of the loss is allowed this year. The disallowed $2,000.00 is reported on Form 8949 with code W in column (f) and entered as a positive adjustment in column (g).

Part B

Tax-loss harvesting: what the $3,000 capital loss limit leaves this year

Enter losses as positive numbers, and only the part the wash-sale rule allows. Rates are yours to enter: use your marginal federal rate, not your average one.

Losses, gains and rates

Against ordinary income
$3,000
Limit $3,000 a year
Carried forward
$7,000
Keeps its character; no expiry
Estimated tax reduction this year
$720
At the rates entered

Tax effect is an estimate at the rates entered: $720 federal, against the same year with no harvested losses. The federal limit on net capital loss used against ordinary income is $3,000 for single. The 3.8% net investment income tax and the alternative minimum tax are not included.

How your gains and losses net this year

  1. Short-term losses−$10,000
  2. Net short-term−$10,000
  3. Net capital loss−$10,000
  4. Used against ordinary income+$3,000
  5. Carried forward−$7,000
  • Gain (adds)
  • Loss (subtracts)
  • Used against ordinary income
  • Running total
Short-term results net first, then long-term, then the two nets against each other. That leaves a net capital loss of $10,000: $3,000 is used against ordinary income this year (the limit is $3,000 for single) and $7,000 carries forward to next year ($7,000 short-term, $0 long-term).

The order the losses were used

  1. 1. Net capital loss against ordinary income (limit $3,000)$3,000
  2. 2. Short-term loss carried forward to next year$7,000

A carryforward keeps its character — short-term stays short-term — and is netted against next year's gains first, then up to the same limit of ordinary income, with no expiry date while you are alive.

Worked example

A worked example: one wash sale, and a $10,000 harvest

You bought 100 shares for $5,000 and sell them for $3,000, a $2,000 loss. Ten days later you buy 100 shares back in a taxable account at $31. All 100 replace shares sold, so the full $2,000 is disallowed this year and added to the new shares: $3,100 paid + $2,000 = a $5,100 basis, with the old holding period carried over. If instead you had bought 40 shares in an IRA, $800 (40 of 100 shares) would be disallowed and lost for good, and $1,200 would be allowed now.

The date decides it. Buy on day 30 and the loss is disallowed; buy on day 31 and none of it is. Separately, a $10,000 short-term loss with no gains, filing single, puts $3,000 against ordinary income this year and carries $7,000 forward — at a 24% marginal rate that is about $720 of federal tax this year, at that rate only.

The timeline at the top of the page draws the purchases in the first example, and the table beside this text sets its two outcomes side by side. Part B above starts from the second example, so its waterfall shows the netting order, the $3,000 capital loss limit and the carryforward. Change any figure in the calculator and its drawings follow.

Method

How this is worked out

Loss = basis − proceeds. Purchases dated within 30 days before or after the sale, inclusive, are matched in date order up to the shares sold; disallowed = loss × matched ÷ sold. Taxable replacement: basis = price paid + its share of the disallowed loss, holding period start moved back by the days the sold shares were held. IRA replacement: disallowed for good. Harvest: short-term nets short-term, long-term nets long-term, then across; up to $3,000 ($1,500 married filing separately) of net loss offsets ordinary income, short-term first; the rest carries forward. Tax effect = change at the flat rates entered.

What it assumes

  • Every purchase you list is substantially identical to what you sold — that judgement is yours to make
  • One sale, with cost basis and proceeds already net of commissions
  • The rates you enter are your marginal rates and stay flat across the whole change
  • The losses entered in part B are already net of any wash-sale disallowance

What it leaves out

  • Options, short sales, and contracts to buy, which the rule also reaches
  • Purchases by a spouse or a corporation you control, which count as yours
  • Bracket boundaries, the 3.8% net investment income tax, and the alternative minimum tax
  • State rules that treat capital losses differently from the federal limit
  • That a lower basis on replacement shares can mean a larger gain when they are sold

Questions

Wash sale rule and capital loss questions

Short answers to what people most often ask about the wash-sale window, IRA purchases, cost basis and the $3,000 limit.

What is the wash-sale window?

Sixty-one calendar days: the 30 days before a sale at a loss, the day of the sale, and the 30 days after. If you buy substantially identical shares anywhere in that window, the loss is disallowed to the extent of the shares you bought (26 U.S.C. § 1091).

Does buying the same stock in my IRA cause a wash sale?

Yes. Under Revenue Ruling 2008-5, a purchase in your IRA or Roth IRA within the window disallows the loss in your taxable account, and the loss is gone for good: it is not added to the IRA shares’ basis.

What happens to a loss disallowed by a purchase in a taxable account?

It is deferred, not lost. The disallowed amount is added to the cost basis of the replacement shares, and the holding period of the shares you sold carries over to them. On Form 8949 the sale is reported with adjustment code W.

How much of a capital loss can I deduct in a year?

Losses first offset capital gains. A net capital loss then reduces ordinary income by up to $3,000 a year ($1,500 if married filing separately), and the rest carries forward to later years.

What does this calculator leave out?

It estimates tax at the rates you enter. It does not include the net investment income tax, the alternative minimum tax or state-specific rules beyond the optional flat state rate, and it is not tax advice.

Sources

Where the wash sale rules come from

The window, the matching order and the basis rule are IRC §1091. The IRA result is Rev. Rul. 2008-5: a purchase in your IRA or Roth IRA within the window disallows the loss, and the IRA's basis is not increased. Netting, the $3,000 limit and carryovers are in Publication 550 and the Schedule D instructions. This page is not tax advice; read the primary sources or ask a tax professional before acting on a figure here.

To look for a wash sale across a whole portfolio rather than one trade, the free harvest check runs in your browser with no signup. For how QuantRidge works out figures like these, see how we calculate, and for the IRA and cross-account cases in more depth, wash sales across accounts and IRAs.

For illustration only — not investment, tax, or legal advice. QuantRidge is software, not a Registered Investment Adviser. Already have an account? Log in.