Does wash sale still count if position closed before year end?

Trying to figure out if I actually have a wash sale problem or if I'm overthinking this. I sold shares of a tech ETF in October at a loss, then bought back into the same ETF about two weeks later because I thought the dip was overdone. Then I sold the whole position again in December, also at a loss, before December 31. So the position is completely flat by year end - nothing is open. My 1099-B came in and box 1g on the first sale shows a wash sale loss disallowed. But if I closed everything before year end, does that disallowed loss eventually get absorbed back in? My broker's tax doc says I have less total loss than I feel like I actually realized. I've tried reading Publication 550 but I'm going in circles on whether closing the position before December 31 changes anything.

33 comments

Yes the wash sale still counted when it happened, but closing the replacement shares in the same year does unlock that deferred loss. When the wash sale triggered, the disallowed loss got added to the cost basis of the replacement shares. So when you sold those replacement shares in December, that higher basis came with them and produced a bigger loss on the December sale. The net result over both legs should equal your actual economic loss.

Priya C.

Author

That's what I was hoping but my broker's 1099-B totals don't seem to add up that way. The December sale shows a loss but it doesn't feel like it captured the full adjustment.

Worth adding up each lot manually. The adjustment in box 1g on the first sale increases the basis of the specific replacement lot, not the entire December position if you held multiple lots.

Had almost the exact same situation last year with an index fund. I uploaded my 1099-B and the trade confirmations to taxr.ai and had Taxr map each lot's adjusted basis after the wash sale transferred over. It flagged that my broker had applied the disallowed loss to the wrong replacement lot, which shifted the gain/loss split between short-term and long-term. The rule is what it is, but catching that lot mismatch saved me a headache on Form 8949.

Priya C.

Author

Did the corrected basis end up changing which box you checked on Form 8949? Wondering if that's where my numbers are drifting.

It did, yes. The incorrect lot assignment meant the long-term box was checked when it should have been short-term for part of it. Mattered for the rate.

The core rule from Publication 550 is that the disallowed loss gets added to the cost of the new stock and the holding period of the new shares includes the holding period of the shares sold. So your December sale basis was already inflated by that October disallowed loss - you just need to verify the broker tracked it correctly.

People confuse this all the time. The wash sale lock only stays "locked" if you're still holding the replacement shares at year end. If you sell the replacement shares before December 31 and don't buy back in again within 30 days, the loss is fully recognized in that year. Your situation sounds like it should resolve cleanly.

One caveat: the 30-day window runs both before AND after the sale. So if you bought back into the same ETF after that December sale, even in January, another wash sale could trigger.

Priya C.

Author

I did not buy back in January, so I think I'm clear on that. Fingers crossed.

Worth double-checking whether your ETF shares all have the same CUSIP. Some brokers run into issues if you bought through two different share classes or a related fund - the box 1g wash sale reporting only applies when the substantially identical shares bought have the same CUSIP and are in the same account.

Good point. And if the replacement shares were bought in an IRA or Roth IRA, the loss is permanently disallowed, not just deferred. If they were in a different taxable account, it's still a wash sale (even if box 1g doesn't show it) and the loss gets added to the new shares' basis. The IRA case is the worst version of this scenario.

Priya C.

Author

All same account, same ticker. I'm pretty sure same CUSIP too.

My broker showed a wash sale disallowed amount last year and I wasn't sure if the December sell-off had really cleared it. I gave Taxr my 1099-B and the two trade slips and asked it to reconcile the lot-by-lot basis, then had it draft a summary showing how the disallowed loss from the first sale rolled into the adjusted basis of the replacement lot and came back out in the second sale. I checked the math myself before I filed. The numbers matched once you tracked each lot individually - the aggregate 1099-B total was misleading me.

Priya C.

Author

This is exactly the problem I think I'm having - looking at the totals instead of the lot-level detail. Going to try pulling the individual lot records from my broker.

On Form 8949, the October sale goes in with code W in column (f) and the disallowed amount as a positive number in column (g), which reduces your deductible loss on that row. The December sale of the replacement shares should show the adjusted (higher) basis. Those two rows together should sum to your true economic loss.

Exactly right. And you check box A, B, or C (Part I short-term) or D, E, F (Part II long-term) based on whether the broker reported basis to the IRS and your holding period.

My accountant told me one time that the wash sale isn't really a loss denied forever - it's a loss deferred. If you close the position cleanly with no repurchase in the 61-day window, the economic loss is preserved, just moved to the second transaction. That framing helped me stop panicking every time I saw box 1g flagged.

Something I had to learn the hard way: the 30 days is calendar days, not trading days. I thought I was outside the window once and I wasn't. If your dates are close, count them carefully.

The rule is within 30 days before or after the sale date. The sale date for listed securities is the trade date, not settlement date, so use trade dates when you're counting.

Ive been in this situation twice now and both times my broker summary page was confusing but the individual lot detail page was accurate. Download the full realized gain/loss report with lot-level detail, not just the 1099-B summary. Usually buried in the tax documents or the transaction history section.

Priya C.

Author

Found it - my broker calls it the "realized gain/loss detail" report. The lot breakdown is there and it does show the basis adjustment on the replacement lot. Going to reconcile it against my 8949 entries now.

I had a wash sale that spanned November and December two years ago and the adjusted basis thing confused me for months. Eventually I pasted my 1099-B and trade confirmations into Taxr and asked it to list every lot with its pre-adjustment basis, the disallowed amount added, and the adjusted basis that should appear on each Form 8949 row. Having that side-by-side made it obvious which December lot was carrying the deferred loss.

To be clear on one edge case: if you had bought back into the ETF in an IRA or Roth IRA within that 30-day window, the loss would be permanently disallowed - you can't add it to the IRA's basis. That's the exception where "deferred" becomes "gone." Publication 550 covers it. Doesn't sound like your situation but worth flagging.

Priya C.

Author

No IRA involvement here, everything was in a taxable brokerage. Good to know though, I'll keep that in mind for future trades.

Does the same logic apply if the second buy was options on the same ETF instead of the shares themselves? Asking because I have a situation where I sold the shares at a loss and bought calls a couple weeks later.

Yes - Publication 550 says the wash sale rules apply to losses on contracts and options to acquire or sell stock or securities. An option to buy the same ETF shares would likely be substantially identical for wash sale purposes.

The wash sale rules do NOT apply to commodity futures or foreign currencies though. Options on equity ETFs are a different story - covered under the same rules as the underlying shares.

My situation was that the broker got the wash sale right but then I accidentally double-counted the disallowed amount on my 8949 by also entering it in column (e) instead of column (g). Got a letter from the IRS about the discrepancy. If your numbers aren't matching, make sure you're only adjusting in column (g), not both columns.

Column (e) is always your cost basis - either what the 1099-B shows or your corrected basis depending on which box you checked. Column (g) is only for adjustments on top of that. Mixing them will definitely throw off the totals.

Came back to update: had the same scenario last year, fully closed before December 31 with no repurchase, and when I filed the numbers worked out. The Schedule D line 1b short-term total matched my actual economic loss once both 8949 rows were in. The wash sale code W row and the December row netted correctly.

Priya C.

Author

This is reassuring. I think my issue was just looking at broker summary totals instead of doing the lot-level reconciliation. Going to file with the adjusted basis from the replacement lot detail and see how it ties out to Schedule D.

If after all this your Schedule D total still doesn't match what you expect, Publication 550 has worked examples on wash sales that show the basis adjustment math step by step. Sometimes seeing a numeric example written out makes the column (g) interaction clearer than any explanation.