Confused about which form 8949 code to use for my situation

Filed my own return last year and somehow got through it, but this year I sold some ETF shares at a loss and bought back into a similar (but not identical?) fund 18 days later. My broker's 1099-B shows a wash sale amount in box 1g. When I go to enter this on Form 8949 I see there's a column (f) for codes and I have no idea which one applies. I put "W" because I read that somewhere but then TurboTax is asking me about an adjustment in column (g) and I'm second-guessing myself. I already checked the IRS instructions page but the list of codes is long and I can't tell if W is the only one I need or if I should be combining it with something else. What code or codes go in column (f) for a wash sale reported on a 1099-B?

36 comments

W is the right code for a wash sale. Column (f) gets "W" and column (g) gets the disallowed loss as a positive number. So if $400 of your loss was disallowed, you enter 400 in column (g), not negative. The instructions for Form 8949 list all the codes and their column (g) treatments.

Claire N.

Author

Positive number step — ok that's where I was getting tripped up. I kept wanting to put it in parentheses because it felt like a loss adjustment. Good to know it goes in positive.

Also make sure you have the right box checked at the top of Part I. If your 1099-B shows basis reported to the IRS, that's box A. If it doesn't, box B. The box you check changes where the numbers flow, not the W code itself, but getting the box wrong throws off Schedule D.

Claire N.

Author

Box A step — yes mine says basis reported. So Part I box A, code W in column (f), disallowed amount as positive in column (g). That's the picture?

Exactly that. And your proceeds still go in column (d) exactly as the 1099-B shows them, don't adjust those.

I had the same mess last tax season with a wash sale that crossed December into January so the disallowed loss landed on a different year's return. I uploaded my 1099-B and the next year's 1099-B to taxr.ai and had it walk through every line of Form 8949 for my situation — it matched the disallowed amount to the adjusted basis on the new shares and flagged that my broker had the CUSIP match in the same account, which is what triggers the box 1g reporting. The underlying rule I took away: code W goes in column (f) and the disallowed loss as a positive number in column (g), and that disallowed amount gets added to the cost basis of the replacement shares.

Claire N.

Author

The cross-year piece is what worries me. My sale was late November and the repurchase was mid-December, so it's all in the same year at least. But good to know the basis bump on the new shares is part of the same calculation.

Basis step — the carryover basis on the replacement shares is easy to miss. A lot of people fix the current-year form correctly and then forget their cost basis on the new shares is higher than what they paid.

Are you sure the fund you bought back is substantially identical? Because if it genuinely isn't, there's no wash sale at all and you don't use code W. The IRS wash sale rules cover buying substantially identical stock within 30 days before or after the sale. Two ETFs tracking different indexes usually aren't considered substantially identical, though that's a facts-and-circumstances call.

Claire N.

Author

Substantially identical step — my broker flagged it in box 1g so I assumed they already made that call. But you're right, the broker only matches by CUSIP in the same account, so if I bought a different fund it might not actually be a wash sale.

Right. The broker's box 1g match is mechanical — same CUSIP, same account. If you bought a different ticker with a different CUSIP, the broker won't flag it even if the funds are economically similar. But the tax rule still applies if they're substantially identical regardless of CUSIP.

Publication 550 is the place to read the actual wash sale rules. The IRS page for it spells out what substantially identical means and confirms the disallowed loss gets added to the basis of the new shares and the holding period of the new shares includes the holding period of the shares you sold.

My broker sent me a corrected 1099-B in March last year that changed the box 1g amount. I had already entered everything and had to go back and redo the column (g) entry. If your 1099-B might get corrected, worth waiting a couple weeks before filing.

Claire N.

Author

Good call. Mine came in early February and said "original" not "corrected" so I think I'm safe, but I'll double check before I hit send.

One thing the instructions make clear: even if your broker does NOT report the wash sale in box 1g, you still can't deduct the loss. The reporting obligation is on you either way. The 1099-B box 1g rule only triggers when same CUSIP, same account. You could have a wash sale your broker never flags.

This is under-appreciated. Cross-account wash sales, spousal accounts, even a corporation you control buying the same shares — all wash sales the broker won't catch but that still apply under the rules.

Exactly. Publication 550 covers the spousal and controlled-corporation situations specifically. Easy to miss if you're just reading the 1099-B.

Dealt with this two years running when I was tax-loss harvesting. I pasted my Form 8949 draft and both 1099-Bs into Taxr and it checked each row — confirmed the W codes, flagged one row where I had the adjustment in parentheses instead of positive, and listed the adjusted basis amounts I needed to carry into the next year's cost basis records. Saved me from filing a form with the sign wrong on column (g).

Claire N.

Author

Column (g) sign step — the parentheses mistake is exactly what I almost made. Glad you flagged it, I'll double-check every row before I submit.

For anyone wondering about the holding period side: when you have a wash sale, the holding period of the new shares includes the holding period of the shares you sold. So if you sold shares you'd held 11 months and immediately bought replacements, your holding period on the replacement shares doesn't restart at zero — it tacks on those 11 months.

Holding period step — this matters a lot near the one-year mark. Short-term gains get taxed very differently from long-term, so getting the holding period right on the replacement lot can change which part of Form 8949 you use next time you sell.

I always mess up which Part to use. Short-term goes in Part I (held one year or less), long-term in Part II (held more than one year). Counting starts the day after you acquired the shares; the day you sell counts as part of the holding period.

A net capital loss after all this would only be deductible against ordinary income up to a cap. Check the Schedule D instructions and Topic 409 on the IRS site for the limit and the carryover worksheet — the numbers depend on your filing status.

Claire N.

Author

Carryover step — I think I'll still have a net gain this year overall so hopefully not an issue, but good to know there's a cap and a worksheet for future years.

My situation last year: sold at a loss, broker showed wash sale in box 1g, but I also had a code B situation on a different row because my broker didn't report basis to the IRS on some older shares. Code B in column (f) means the basis shown on the 1099-B is incorrect, which is separate from box B at the top of that Part (checked when basis wasn't reported to the IRS). You can stack codes — W and B together — if both apply to the same transaction.

Stacking codes step — the instructions for Form 8949 list which codes can be combined. Worth checking the instructions directly because not every pair is valid.

Agreed. I think I referenced the instructions table for that. It's pretty short once you find the right section.

Does the W code move the numbers onto Schedule D automatically in tax software or do you still have to check that Schedule D line 1b and line 2 pull in correctly? I always worry something gets dropped.

Schedule D step — in most software yes it flows automatically, but I print a draft of Schedule D every year and trace the totals back to Form 8949 manually before filing. Takes ten minutes and has caught errors twice.

Good habit. I'll do that this year.

There's a full codes table at irs.gov/instructions/i8949, in the IRS instructions for Form 8949. It's the clearest reference I've found — lists every code, what goes in column (g), and whether you can combine it with others.

Went through a wash sale audit question from the IRS a couple years back (not a full audit, just a CP2000 notice asking about an underreported loss). The issue was I had the sign wrong on column (g) — entered the disallowed loss as negative instead of positive. The corrected return was straightforward once I understood the error but it added months. Get the sign right the first time.

Claire N.

Author

Sign step — noted. Positive number in column (g) for the disallowed amount. I'll triple check that before filing.

And make sure the proceeds in column (d) match the 1099-B exactly. Any mismatch there is another thing the IRS matching program catches.

Just to be thorough: the wash sale rules also apply to contracts and options to buy stock, not just stock itself. So if you bought a call option on the same ETF within that 30-day window instead of the shares directly, it still counts. Commodity futures and foreign currencies are excluded from the wash sale rules but stock options are not.

Options step — that catches people who think they're being clever by using options to stay in the market during the wash sale window. Same rule, same disallowance.