Looking for a wash sale calculator — how do I figure out the disallowed loss and adjusted basis?

Sold shares of a tech ETF at a loss in late November, then bought back into the same fund 18 days later in December. My broker's 1099-B shows a wash sale loss disallowed in box 1g, but I'm not sure if the number is right. I tried doing the math by hand using the per-share loss and the number of replacement shares but I keep getting a slightly different figure than what's on the form. Does anyone know of a wash sale calculator or a reliable way to check this yourself? Also confused about how the disallowed amount gets added to the basis of the replacement shares and how I report the whole thing on Form 8949. I've filed simple returns before but this is my first wash sale situation.

35 comments

Uploaded my 1099-B to taxr.ai last year when I had almost the same situation — same ETF sold and repurchased within the 30-day window. It read the box 1g figure, recalculated the per-share disallowed loss against my replacement lot, and listed the adjusted cost basis for the new shares so I could double-check the broker's math before I filed. For the reporting side: the disallowed loss goes on Form 8949 with code W in column (f), and the disallowed amount as a positive number in column (g). Check whether box A or B is checked first — that changes whether you enter the broker's basis in column (e) or your corrected basis.

Matt N.

Author

Box A is checked on mine since the ETF is a covered security. So I enter the broker's basis even if it looks off, and fix it in column (g)?

Step: confirm box A. Yes — with box A, you put the basis the 1099-B shows in column (e) and use column (g) for any correction. The code W positive number in column (g) offsets the loss you'd otherwise claim.

The part people miss is that the disallowed loss doesn't disappear — it gets added to the cost of the replacement shares. So your new basis is what you paid for the replacement shares plus the amount disallowed. And the holding period of the original shares carries over to the replacement lot too, which can flip a short-term position to long-term if you're not watching.

Matt N.

Author

The holding period carryover is new to me. So the replacement shares could already be "long-term" on day one if the original shares were held long enough?

Next step: check your original purchase date. Per Publication 550, the holding period of the new shares includes the holding period of the shares sold. So yes, if the original lot was held over a year, the replacement starts as long-term.

My broker sent a year-end supplement showing the wash sale adjustments lot by lot, which was way more useful than trying to build a wash sale calculator from scratch in a spreadsheet. Worth checking if yours does the same — most of the major ones do. The 1099-B itself only flags the total disallowed, not always which specific replacement lot absorbed it.

Matt N.

Author

Mine included a realized gain/loss report but it was pretty hard to read. I'll call and ask if there's a lot-by-lot version.

Ran into this last tax season. The tricky part is when you have multiple buys inside the 30-day window — each one can absorb part of the loss in proportion to the shares, and the basis bump gets allocated across the lots. A single-figure calculator won't handle that well. I ended up building a small table: sale date, loss per share, repurchase date, shares repurchased, and then mapped the disallowed amount to each replacement lot.

Matt N.

Author

Multiple buys — I only had one repurchase so I think I'm okay, but good to know.

Step: verify there were no other buys in the 30 days before the sale either, not just after. The wash sale window goes both directions.

I uploaded my brokerage's gain/loss PDF to Taxr when my 1099-B showed a wash sale I didn't expect. It flagged the specific lot, pulled the disallowed loss from box 1g, recalculated the adjusted basis on the replacement shares, and drafted the Form 8949 line showing code W in column (f) and the positive adjustment in column (g) so I could review it before entering anything in my tax software. Saved me a lot of second-guessing on a situation that felt more complicated than it was.

Step: get the lot-by-lot detail first. Good call on pulling the PDF. I've been doing it in a spreadsheet but the basis carryover across lots is where I keep making errors.

One thing worth knowing: the wash sale rule can also apply if you bought substantially identical stock in an IRA or Roth IRA in that 30-day window. But in that case the disallowed loss is NOT added to the IRA's basis — it's just gone. That's the one exception to the basis-bump rule that really stings.

Matt N.

Author

I didn't buy anything in an IRA, but that's a terrifying rule. So the loss is permanently lost if the replacement goes into the IRA?

Next step: confirm no IRA purchases. Yes, per Publication 550, when the substantially identical stock is acquired in an IRA or Roth IRA, the disallowed loss can't be added to the cost of those shares. It's permanently disallowed.

For the reporting piece I'd go straight to irs.gov/instructions/i8949, which spells out exactly how to report this — which column gets the code W, what goes in column (g), and how the box you check in Part I or Part II depends on whether basis was reported to the IRS. I found that page clearer than most third-party calculators for the actual reporting piece.

My situation last year had a wash sale where my broker reported it in box 1g but the CUSIP on the repurchase didn't exactly match — slightly different share class. The broker still flagged it, which surprised me. Worth knowing that Publication 550 defines "substantially identical" broadly, and the broker's determination and yours might differ. When in doubt the IRS standard is what controls, not the broker.

Matt N.

Author

That's a good point — I was assuming if the CUSIP matched I was safe, but the "substantially identical" question is separate from the CUSIP question for my own tracking.

For the actual calculator math: the disallowed loss per share is just the loss per share on the sale, capped at the number of replacement shares. Multiply disallowed loss per share by replacement shares, and that's your basis adjustment. Add that to your actual cost of the replacement lot. Your total proceeds and cost basis on the 1099-B still flow into column (d) and (e) of Form 8949 unchanged — column (g) is where the wash sale adjustment lives.

Matt N.

Author

This is the clearest the math has been for me. So the proceeds in column (d) are whatever the 1099-B says, basis in column (e) is the broker's basis, and column (g) is the positive disallowed amount. Net effect is I report the sale but can't take the loss.

Step: total it on Schedule D. Exactly. The Form 8949 totals flow to Schedule D, and the disallowed amount cancels out the loss there. With box A checked you'll see the net on Schedule D line 1b for short term, or line 8b if it's long term with box D.

Worth flagging: Publication 550 says you can't deduct a wash sale loss even if it's NOT reported on Form 1099-B. So even if the broker misses it, you're still supposed to self-identify and report it correctly with code W. A calculator or spreadsheet is only as good as your own records of what you bought and when.

Step: pull all trade confirmations. This is why I keep a separate transaction log outside the brokerage. Brokers only flag same-account, same-CUSIP wash sales per Publication 550 — cross-account or spouse purchases are on you.

Ended up with a wash sale last year because of dividend reinvestment — the DRIP bought a small lot right inside the 30-day window. Didn't even occur to me until I looked at the transaction history. The partial wash sale calculation was annoying: only the shares repurchased through DRIP triggered the wash, so only that proportion of the loss was disallowed.

Matt N.

Author

DRIP triggering a wash sale is something I never would have caught. Turning off DRIP in taxable accounts sounds like a smart move in November and December.

Next step: check DRIP settings before year-end. Exactly what I did after. The IRS doesn't carve out an exception for dividend reinvestment — an automatic buy is still a buy within the 30-day window.

My accountant pointed me to Topic no. 409 on irs.gov and Publication 550 for the holding period rules. The key I kept forgetting: for securities traded on an established market, the holding period starts the day AFTER the trade date you bought, and ends ON the trade date you sold — settlement date doesn't count. That matters when you're close to the one-year line.

Does the wash sale rule apply to crypto? Asking because I sold ETH at a loss and rebought the next day and nobody has told me clearly whether that triggers anything.

Step: check the digital assets page. Currently crypto is treated as property, not a security, so the wash sale rule as written in the tax code doesn't apply to it yet — but that could change. The IRS digital assets page at irs.gov/businesses/small-businesses-self-employed/digital-assets is where I'd watch for updates. Don't rely on this staying true forever.

Okay so for now my ETH loss should be deductible even with the immediate rebuy. Good to know while it lasts.

I'll add a reality check: if you have a lot of small lots with partial wash sales across multiple accounts, a DIY calculator will get messy fast. That's the scenario where an enrolled agent who handles active traders is worth the consult — not because the rule is complicated but because tracking it correctly across lots and accounts at scale is genuinely time-consuming.

Matt N.

Author

Mine is just one fund in one account so I think I can handle it. But I'd agree that if someone has 50 lots across three accounts, that's a different situation.

Pulled everything together for my own filing using the approach described here. Final checklist I used: confirm box A or B on 1099-B, check box 1g for the disallowed amount, enter code W in column (f) of Form 8949, put the positive disallowed amount in column (g), verify the replacement lot's adjusted basis in my own records, and confirm the holding period carried over. That's the full loop.

Matt N.

Author

Saving this list. This thread answered every piece of my original question — the calculator math, the Form 8949 entries, and the basis and holding period adjustments on the replacement shares.