Form 8949 adjustment codes — which one goes in column (f) and what do you put in column (g)?

Trying to finish my Schedule D and I keep tripping over column (f) on Form 8949. I sold some shares at a loss and bought the same stock back about two weeks later, so I know there's a wash sale involved. My broker's 1099-B has a number in box 1g but I don't know which code goes in column (f), whether I combine codes if more than one thing applies, and what exactly I type into column (g) — positive, negative, in parentheses? I read the instructions once and got more confused. I already have the right box checked (box A, basis reported to IRS). Just need to understand the adjustment code system before I make it worse.

38 comments

For a wash sale, the code is W. Put it in column (f), then in column (g) enter the disallowed loss as a positive number — not in parentheses. So if your 1099-B box 1g shows the disallowed amount, that positive figure goes in column (g). The IRS instructions for Form 8949 are explicit on this: code W, positive number in column (g), which reduces your net loss on that row.

Megan V.

Author

So the positive number in column (g) offsets the loss shown in column (e) vs (d)? That makes sense — it's essentially taking the loss back out.

Yes, exactly. The math works out so the allowable loss is what flows to Schedule D, and the disallowed portion gets added to your basis in the new shares instead.

The codes stack if more than one applies. You just list them together in column (f) with no space or punctuation — like "BW" if the basis is incorrect and there's also a wash sale. The instructions list every code and they go alphabetically when combined.

Megan V.

Author

Good to know. I only have the wash sale issue so just W, but I was wondering about that.

Worth knowing: code B is specifically for when the basis shown on your 1099-B is wrong. With box A or D checked, you still enter the 1099-B's incorrect basis in column (e) — do NOT replace it with the correct number. Then you correct it in column (g) with a negative adjustment (in parentheses) if the correct basis is higher. That's the opposite sign from the wash sale code W adjustment.

This tripped me up last year. I put the right basis in column (e) with box A checked and the IRS sent a notice. The rule really is to keep the 1099-B number in column (e) and fix it in column (g) when basis is reported.

Yes, and if box B or E is checked instead (basis NOT reported to IRS), then you flip it — correct basis goes in column (e) and you put -0- in column (g). The column (e) treatment depends entirely on which box you've checked.

I had a stack of 1099-Bs last year with wash sales, a corrected cost basis, and one inherited lot. I uploaded everything to taxr.ai and it went through each row, matched the codes to what was on each 1099-B, and drafted a column-by-column breakdown showing exactly what went in (f) and (g) for each transaction. Saved me from putting a negative where a positive was supposed to go. For inherited shares, by the way, there's no special code — you enter "INHERITED" in column (b) instead of a date; code L is for a nondeductible loss other than a wash sale — the instructions have the full list.

Megan V.

Author

Inherited shares just get "INHERITED" in column (b) instead of a date? I didn't know that. I don't have any but good to file away.

Yes, for inherited shares you write "INHERITED" in column (b) — and code L is actually for a nondeductible loss other than a wash sale, so I misstated that. The instructions list every code with its exact meaning, worth reading that column before filing.

One thing people miss: even if your broker does NOT report the wash sale in box 1g of your 1099-B, the disallowed loss rule still applies if you rebought within 30 days before or after the sale. The IRS doesn't let you skip the W code just because the form is blank there. You still have to report it with code W and a positive adjustment in column (g).

Megan V.

Author

My broker did show it in box 1g, but this is really useful — so I can't just rely on what the 1099-B reports.

Right. The wash sale rule applies based on what you actually did, not what the broker caught. Brokers only track same-account, same-CUSIP situations for covered securities. Cross-account wash sales or IRA repurchases won't show on your 1099-B at all.

The holding period also carries over in a wash sale. The instructions say the holding period of the new shares includes the holding period of the shares you sold. So you might end up with long-term treatment on shares you've owned for only a few months if the sold shares were long-term.

Yes, this matters a lot for which Part of Form 8949 you use for the new shares when you eventually sell them.

When I sold my company RSUs and had a basis discrepancy because my employer already included the vest-day income in my W-2, I ran my 1099-B and my pay stub through Taxr and it flagged that my column (e) basis was understated — the 1099-B had the purchase price as $0 but my actual basis included the compensation element. It showed me the adjustment amount and that code B was the right code, not W. I was about to put W by mistake.

Megan V.

Author

RSU basis is so confusing. The broker reports $0 and you'd get double-taxed if you don't fix it.

Exactly. The compensation income your employer reports on your W-2 at vest is part of your basis. If you don't add it back through a code B adjustment in column (g), you're paying tax on it twice.

For anyone selling a main home with a Form 1099-S: that gets code H in column (f), and the excluded gain goes as a negative number in column (g). That one goes in Part II with box F checked. Very different situation from the investment adjustment codes but it uses the same column (f) system.

Megan V.

Author

Not my situation but I would have never guessed H and a negative number for excluded gain. Good to know.

Crypto uses completely different boxes now on the 2025 Form 8949. Digital asset transactions go in boxes G through L — G, H, I for short-term and J, K, L for long-term. The instructions say never use box C or F for digital asset transactions. The adjustment codes in column (f) still work the same way though.

Yes, the new boxes G-L are for digital assets only. The IRS digital assets page at irs.gov has more on this. The column (f) code logic is the same regardless of which box you check.

Just to map out the column (g) sign convention clearly: W (wash sale) = positive number. B (incorrect basis where basis IS reported, correct basis is higher) = negative number in parentheses. H (home sale exclusion) = negative number in parentheses. Those three are the ones most people run into and they're easy to mix up.

Megan V.

Author

This is the clearest summary of the signs I've seen. Saving this.

The Form 8949 instructions have a column (g) example and a worksheet for basis adjustments — worth reading alongside this if you want to double-check your math before filing.

If you have transactions with basis reported to the IRS and NO adjustments at all — no wash sales, no basis corrections, nothing — you can skip Form 8949 for those and report the totals straight on Schedule D line 1a (short-term) or line 8a (long-term). That's Exception 1 in the instructions. Saves a lot of rows.

No, you can only use Exception 1 if there are truly no adjustments and no codes. The moment you have a W or B or anything in column (f), that transaction has to go on Form 8949 individually.

Yes, that's right — I should have said that more clearly. Exception 1 is only for the clean rows with nothing in column (f) and (g).

The official instructions for Form 8949 at irs.gov/instructions/i8949 have the complete code list with a one-line description of each. There are more codes than most people realize — M, O, S, and others for less common situations. Worth scanning the list once so you know what you're not dealing with.

One situation that creates confusion: if you bought replacement shares in an IRA or Roth IRA after selling at a loss, that's still a wash sale but the disallowed loss is NOT added to the basis of the IRA shares. It's just gone. The instructions and Publication 550 both say the basis add-back doesn't apply to the IRA situation.

Megan V.

Author

That's a painful rule. So you lose the loss permanently if the repurchase happens inside an IRA?

Yes, permanently disallowed. It doesn't carry anywhere. That's one reason moving wash-sale-prone trading into an IRA can backfire.

Column (g) can also be blank — you only fill it in if there's an adjustment to report. Leaving it blank is correct for clean transactions that do belong on Form 8949 (like those with box B or E checked but no other adjustment needed).

The Publication 550 chapter on wash sales walks through the 30-day before-and-after window in detail. It also covers the rule about your spouse or a corporation you control buying substantially identical stock — those count as wash sales too even if you personally didn't repurchase.

Megan V.

Author

The spouse rule would have caught me if I hadn't read this thread. We have joint brokerage accounts but also separate ones.

Yes, worth checking both accounts. If your spouse bought the same stock in their separate account within that 30-day window, the wash sale rule still applies to your loss.

To add one more code people hit: codes Z and Y are for qualified opportunity fund investments — Z when you elect to defer gain and Y when you report gain you previously deferred. (Code E is for selling expenses or option premiums not reflected on the 1099-B.) Most people won't have them but if you're in a QOZ fund they'll come up. The column (g) treatment depends on the specifics of the deferral and you'd want to check the form instructions carefully or get a CPA involved — QOZ basis rules have their own complexity.