8949 code D — what does it mean and where does it go?

Filing my own return this year and my broker sent a 1099-B with a transaction marked with code D in box 1f. I've been trying to figure out what 8949 code D means and where it actually affects my numbers. The 1099-B shows proceeds and cost basis but the code D is throwing me off. I already looked at the Form 8949 instructions but the list of codes is long and I'm not sure I'm reading it right. The sale was from shares I'd held a few years so I'm pretty sure it goes in Part II. Do I just enter code D in column (f) and then leave column (g) blank, or does the code require an adjustment? The gain looks right on the surface but I want to make sure I'm not missing something before I carry it over to Schedule D.

36 comments

What does the amount in box 1f actually show on your 1099-B? Code D means accrued market discount — that's the piece that matters for what you do next.

Darius J.

Author

Thanks, it shows a dollar amount in box 1f. So the accrued market discount is what's sitting there and I need to figure out what to do with it.

Code D is accrued market discount. The IRS instructions for Form 8949 say you put D in column (f) and then enter the amount from box 1f as a negative number (in parentheses) in column (g) — it reduces your capital gain because that portion is treated as ordinary interest income, not capital gain. I had a similar bond situation last year and uploaded my 1099-B to taxr.ai; it read all the boxes including 1f and walked me through which column (g) entry matched each code. Long-term sale goes in Part II with box D or E checked depending on whether basis was reported to the IRS.

Darius J.

Author

This is really helpful. So the box 1f amount goes as a negative in column (g) and the net in column (h) is the actual capital gain piece. I'll check whether my broker reported basis to pick D vs E.

Is this a bond or a discounted note, or was it stock? Code D specifically applies to market discount bonds. If it's stock it probably shouldn't have a code D at all and might be worth calling your broker to verify.

Darius J.

Author

It's a corporate bond I'd held for a few years. So code D makes sense then.

Got it, that lines up. Market discount on a bond held to partial sale or maturity is exactly when D shows up.

To be clear on the mechanics: the accrued market discount amount in column (g) as a negative number reduces your capital gain on that row. The remaining gain on line (h) is what flows to Schedule D. The ordinary income piece is handled separately — Publication 550 covers how the discount is ultimately characterized.

Wait, does the ordinary income piece ever go somewhere other than Schedule D? I always assumed it all ends up there.

The capital portion goes to Schedule D via Form 8949. The accrued market discount that's recharacterized as ordinary interest income generally goes to Schedule B, not Schedule D. That's the split the code D adjustment is flagging.

Are you using tax software or doing this by hand? Most software will read the 1099-B import and auto-populate column (f) and (g) if the broker sends the data correctly. Worth checking what the software filled in against the actual form before you submit.

Darius J.

Author

Doing it by hand this year. I'll double check the column (g) entry matches box 1f exactly.

The instructions at irs.gov/instructions/i8949 have a full code list. Code D is listed right there with the instruction to put the box 1f amount as a negative (in parentheses) in column (g). Straightforward once you find it in the table.

One thing I'd double-check: did your broker check the "basis reported to the IRS" checkbox? That determines whether you use box D or box E in Part II. If basis was reported to the IRS, check box D. If not, check box E. The code in column (f) is D either way — box D vs E is a separate question from code D.

Darius J.

Author

That's a really easy thing to mix up — the box letter and the code letter are both D but mean completely different things. I'll look at the covered/noncovered indicator on the 1099-B.

Exactly. Covered security means basis was reported, so Part II box D. Noncovered means box E. The column (f) code D stays the same either way.

Had a bunch of these on a bond ladder I sold off last year. I pasted the 1099-B into Taxr and asked it to go line by line through the Part II entries — it flagged each code D row and listed what the column (g) adjustment should be for each one and double-checked that the Part II box (D vs E) matched the covered status on each bond. Saved me from mixing up two bonds where one was covered and one wasn't.

Darius J.

Author

Mixed covered and noncovered bonds is the scenario that would trip me up if I ever hold more than one. Good to know it can keep track across rows.

Does the accrued market discount in box 1f ever not match what you'd calculate yourself from the original discount? I bought a bond at a discount and my own calculation is a little different from what the broker shows.

Brokers can calculate accrued market discount on a ratable (straight-line) basis or the constant yield method. If you elected constant yield by attaching a statement to your return or included amounts in income in prior years, your number could differ from theirs. The 1099-B amount controls what goes in column (g) on Form 8949 unless you have records showing a different accrued amount and want to file a corrected basis — which gets complicated.

Makes sense, I think the ratable vs constant yield difference is what's causing the gap. I'll reconcile it before filing.

Just to confirm the Schedule D side: after Form 8949 Part II is complete, the net total from column (h) flows to Schedule D line 9 if you're using box E (basis not reported to the IRS), or line 8b if you checked box D; line 8a is only for basis-reported sales with no adjustments under Exception 1. Code D entries always have an adjustment in column (g) so they can't use Exception 1 and go to line 8b (box D) or line 9 (box E).

Is that right for box D entries too? I thought Exception 1 only skips Form 8949 when there are no adjustments, so code D always keeps you on Form 8949 regardless of which box is checked.

You're right, I overstated it. Code D entries require a column (g) adjustment so they always stay on Form 8949 — they can't bypass it via Exception 1 regardless of whether the basis was reported. The result then flows to Schedule D line 8b from Part II with box D, or line 9 with box E.

I ran into a code D situation with a Treasury note last year and was second-guessing myself on whether the column (g) number should be positive or negative. I loaded the 1099-B into Taxr and had it check the numbers against the form instructions before I filed — it confirmed the box 1f amount goes in as a negative, which reduces the proceeds-minus-basis calculation and brings the capital gain down to what's left after the ordinary piece is stripped out.

Darius J.

Author

That confirmation is exactly what I needed too — negative in column (g) means the capital gain on line (h) is lower, which makes sense because part of the return is being reclassified as ordinary income.

Does any of this change if the bond was originally issued at a discount (OID) rather than purchased at a market discount? I always mix those two up.

They're different and the codes are different. OID has its own reporting — usually on a 1099-OID — and the discount is included in income as it accrues each year. Market discount on a bond you bought in the secondary market below its adjusted issue price is what code D is about. If your bond generated OID, that should already be in your income and your basis stepped up each year.

Thank you, that clears it up. I had an OID bond and was wrongly thinking code D might apply.

How many bonds are we talking about for the original poster? If it's just one transaction this is pretty manageable by hand. More than a handful and I'd seriously consider software just to avoid transposition errors in the column (g) entries.

Darius J.

Author

Just the one bond this year so doing it by hand should be fine. Good point for future years though.

The market discount bonds section of Publication 550 (irs.gov/publications/p550) explains why the discount piece is ordinary income and not capital gain. Worth reading once just to understand what the code D adjustment is actually doing economically, not just mechanically.

Are there any states that don't follow the federal treatment of accrued market discount? Asking because my state return sometimes diverges from federal on bond income.

State treatment varies and isn't something the federal Form 8949 instructions cover. You'd need to check your state's instructions for Schedule D equivalent or bond income — some states have their own addition or subtraction adjustments for market discount. That's outside the federal question here.

To wrap the mechanics: code D in column (f), box 1f amount as a negative in column (g), Part II with box D or E depending on covered status, result in column (h) goes to Schedule D. The ordinary income piece goes to Schedule B not Schedule D. That's the whole picture.

Darius J.

Author

Thanks, that summary with the negative column (g) entry is exactly what I needed. I feel confident filling this out now.