Wash sale flagged after selling entire position at a loss then repurchasing — did I do something wrong?

Got my 1099-B from my broker last week and box 1g has a wash sale loss disallowed amount I wasn't expecting. Here's what happened: I sold my entire position in a single ETF at a loss in late November, then bought back into the same ETF about 18 days later in December. I thought that because I sold the WHOLE position — not just part of it — the wash sale rule wouldn't apply. My tax software is now flagging it and putting code W on Form 8949 with the disallowed loss as a positive number in column (g). I didn't buy anything in between, no IRA purchases, nothing. Is the wash sale rule really triggered even when you liquidate a full position before rebuying? And does the disallowed loss just disappear or does it carry somewhere?

38 comments

Did you buy back into the exact same ETF ticker, or a different but similar one? That detail changes things a little — though honestly for the same fund it probably doesn't matter.

Claire J.

Author

Same ticker, same fund, same account. No doubt it's identical. I just assumed selling 100% of shares before rebuying was a clean break somehow.

What made you think selling the whole position would avoid the wash sale rule? I see that idea come up a lot and I've never understood where it comes from.

Claire J.

Author

Honestly I read it somewhere online and it stuck. Something about "you have to have no remaining shares." Sounds like that was just wrong.

Yeah that's a myth. The rule looks at the repurchase window, not whether you held zero shares in between. The 30-day before and after window is what controls it.

The wash sale rule applies whenever you sell at a loss and buy substantially identical stock or securities within 30 days before or after the sale — selling 100% of your shares doesn't create an exception. I ran into this same situation last year. I uploaded my 1099-B and my trade history to taxr.ai and had Taxr map out exactly which lots were affected and what the disallowed loss was adding to each repurchased lot's cost basis. Saved me from entering the wrong numbers in column (e) and column (g) on Form 8949.

Claire J.

Author

So the disallowed loss doesn't just vanish — it gets added to the cost basis of the new shares I bought back?

Correct. The disallowed loss is added to the cost basis of the newly purchased shares. So when you eventually sell those shares without triggering another wash sale, that higher basis reduces your gain or increases your loss at that point. The loss is deferred, not permanently gone.

Claire J.

Author

That actually makes me feel a lot better. So I'm not permanently losing the deduction, just pushing it forward?

Exactly right — deferred, not destroyed. The key is not triggering another wash sale when you do sell those repurchased shares, or the deferral just keeps rolling.

Are you filing with the same account for both the sale and the repurchase? The 1099-B box 1g wash sale amount only gets reported if the sold securities were covered and the repurchase had the same CUSIP number in the same account. Does your 1099-B show a CUSIP in box 1b?

Claire J.

Author

Yes, same account the whole time. And yes there's a CUSIP listed. So the broker had everything they needed to flag it automatically I guess.

Right, that's why it showed up in box 1g. If it had been a different account the broker might not have caught it, but the rule still applies — you just would've had to report it yourself.

Worth knowing: even if the broker doesn't report it in box 1g, you still can't deduct the wash sale loss. I found that out the hard way when I had a cross-account situation. I uploaded my trade confirmations and account statements to Taxr and it drafted a summary showing which lots were disallowed and what adjusted basis to carry into the next tax year — I reviewed it myself and used those numbers when I filled out Form 8949. The rule doesn't care whether the 1099-B caught it.

Does that apply to wash sales triggered by purchases in an IRA too? I thought that was treated differently.

Good question — with IRA repurchases the disallowed loss is NOT added back to the new shares' basis the way it is for a taxable account repurchase. The loss is just gone permanently in that scenario. Very different outcome.

To fill out Form 8949 correctly here: check box A or B in Part I depending on whether the basis was reported to the IRS, enter code W in column (f), and enter the disallowed loss amount as a positive number in column (g). The proceeds from the 1099-B go in column (d) as shown. Don't change the proceeds figure even if it feels wrong.

Claire J.

Author

So I leave column (d) exactly as the 1099-B shows it and only adjust in column (g)?

What's the holding period on your original shares? That determines whether this goes in Part I or Part II of Form 8949 — short-term if you held a year or less, long-term if more than a year. The holding period for the repurchased shares will also include the holding period of the shares you sold, which matters later.

Claire J.

Author

I'd held the original shares for about 7 months so short-term. Good point about the holding period carrying over — I didn't realize that transferred to the new lot.

Does your broker's 1099-B show the adjusted basis for the repurchased shares already, or just the original purchase price? Some brokers update it automatically and some don't, which creates its own headache.

Claire J.

Author

Mine shows the original purchase price. So I'll need to track the adjusted basis myself going forward for those repurchased shares.

Yeah keep a spreadsheet. When you eventually sell those shares, your actual basis is higher than what the broker will show on the next 1099-B, so you'd need to make a column (g) adjustment at that point too — this time a negative number in parentheses because your correct basis is higher.

Are you sure the 18-day gap you mentioned is right? The 30-day window runs both before AND after the sale date. So if you bought anything in the 30 days before the November sale — even a small add to the position — that could also be contributing to the wash sale flag.

Claire J.

Author

I'm pretty sure I didn't add to the position in the 30 days before the sale, but now you have me second-guessing myself. I should double-check my trade history.

What software are you using? Some programs handle the column (g) adjustment automatically once you confirm the wash sale, and others make you enter it manually. Just want to make sure the positive number isn't being subtracted twice somehow.

Claire J.

Author

Using one of the major online ones. It seems to be pulling the box 1g amount directly and placing it in column (g) automatically. I'll verify it matches what's on the 1099-B exactly.

Something that tripped me up: if you have multiple lots from different purchase dates, the wash sale can apply to only some of them depending on how many shares you repurchased versus how many you sold. Were all your original shares from one purchase date or multiple lots?

Claire J.

Author

Multiple lots over about a year. So it's possible not every lot is fully disallowed?

Exactly — the disallowed loss is proportional to the number of replacement shares purchased. If you sold 100 shares at a loss but only bought back 60, only 60% of the loss is disallowed. The remaining 40% would be deductible. Your 1099-B might be lumping it all together though.

Can a loss carry forward to next year if the wash sale permanently defers it past December 31? Like if the repurchased shares are still held at year-end, the disallowed loss just sits in the basis — it doesn't appear on this year's Schedule D at all, right?

Right, it doesn't flow through to Schedule D this year. It lives in the cost basis of the replacement shares. You'll recover it when those shares are eventually sold — assuming you don't trigger another wash sale at that point.

Just to be careful with one thing mentioned upthread: the reply about IRA repurchases said the loss is "permanently gone" — that's correct per Publication 550. When a wash sale is triggered by a purchase in your IRA or Roth IRA, the disallowed loss cannot be added to the basis of the IRA shares the way it can with a taxable account purchase. Worth flagging clearly because it's a costly mistake if someone misreads it.

Agreed, and I should have been clearer — the original comment was right but I wanted to make sure no one assumed the IRA scenario and the taxable account scenario work the same way. They don't.

Have you checked whether the repurchased shares' adjusted basis is already reflected somewhere in your broker's cost basis tracking tool? Some brokers update it in the account interface even if the 1099-B doesn't reflect it yet. Might save you from tracking it manually.

Claire J.

Author

Good call — I'll log into the account and check the lot detail view. If they've already adjusted it I can at least confirm the numbers match what I'd calculate.

Publication 550 on the IRS site (irs.gov/publications/p550) covers the wash sale rules in detail including the basis adjustment and holding period carryover. The instructions for Form 8949 at irs.gov/instructions/i8949 also walk through the column (f) and column (g) entries for code W specifically. Both are worth reading alongside your 1099-B before you finalize anything.

Claire J.

Author

Thank you — I'll go through both before I submit. At least now I understand the loss isn't gone, just deferred into the new shares' basis. That changes how stressed I am about this significantly.