What is code M on Form 8949 and what do I do with it?

Trying to figure out what is code M on Form 8949. My broker sent a 1099-B and my tax software auto-populated a bunch of entries with different codes in column (f). Most I can figure out but code M is throwing me. The software put it on a long-term transaction and adjusted the number in column (g) but I don't understand why. The cost basis on the 1099-B looks way lower than what I actually paid. I already checked my old trade confirmations and I'm pretty sure the basis is wrong on the broker side. Is code M what tells the IRS the basis was adjusted? Do I still have to enter the wrong basis from the 1099-B first and then correct it, or can I just put the right number directly?

38 comments

Code M means you're reporting multiple transactions on a single row (for example a summary line under the Form 8949 exception for summary reporting). It doesn't mean basis was adjusted; the code for accrued market discount on a bond is D, and a wash sale is W. Check the instructions for Form 8949 at irs.gov/instructions/i8949 — the code table there lists exactly what each letter means and what goes in column (g) to go with it.

Tara B.

Author

Is code M only for bonds or can it show up on regular stock too?

Code D, not M, is specifically for a bond with market discount — the kind you buy on the secondary market below its face value. The accrued market discount that built up while you held it gets reclassified as ordinary income rather than capital gain. The broker flags it so you know to separate that piece out. M is the multiple-transactions-on-one-row code. It's not a wash sale code either; that one is W.

Tara B.

Author

Okay that makes more sense. My transaction is a corporate bond I bought at a discount, so M fits. But I'm still confused about what number goes in column (g).

Code D pairs with an amount in column (g) that reduces your capital gain by the accrued market discount — that portion gets reported as ordinary income instead. The column (g) entry is a negative number (in parentheses) if the adjustment lowers your gain. I uploaded my 1099-B and the broker's detail sheet to taxr.ai and it compared the accrued discount figure on the detail sheet to what the software had put in column (g), flagged where they didn't match, and drafted the corrected 8949 line for me to review. Worth doing before you file if the numbers feel off.

Tara B.

Author

Did Taxr pull the right column automatically or did you have to point it to the right line?

It read the detail sheet and the 1099-B together and matched them without me having to label anything. It just flagged the discrepancy and showed the before/after.

To answer your direct question: yes, when box A or D is checked (basis reported to IRS), you still enter the basis exactly as the 1099-B shows it in column (e), even if it's wrong. Then you put the correction in column (g) with code B in column (f) alongside any other applicable code. If only code D applies and the basis itself isn't wrong, column (e) gets the 1099-B basis and column (g) gets the market discount adjustment.

Tara B.

Author

So if the 1099-B basis is also wrong I need both code B and code M in column (f)?

Close — it's code B and code D, since D is the market discount code. Multiple codes go in column (f) in alphabetical order. The Instructions for Form 8949 confirm you can enter more than one code for the same transaction.

Worth noting: market discount on a bond is ordinary income, not capital gain. So whatever amount goes in column (g) with code D, that same amount should show up as interest income on your return. Some software handles this automatically and some doesn't. Double-check that your software is picking it up as interest on Schedule B and not just quietly reducing your Schedule D gain with nothing to offset it.

Missing one half of this is where returns usually go sideways. The 8949 adjustment and the ordinary income piece have to both be there or your return won't add up right.

Right, and if the broker already included the accrued market discount in the 1099-INT box 1 or reported it somewhere else, you don't want to double-count it either. Check what the broker reported.

Market discount gets detailed treatment in Publication 550 at irs.gov/publications/p550 — there's a whole section on how accrued market discount is treated when you sell or redeem a bond. It's dense but it's the authoritative source if you want to understand the mechanics behind why code D exists.

Column (f) is just where you tell the IRS why column (g) has an adjustment. Code D is the reason code for market discount reclassification. Without it the IRS has no explanation for why your gain looks smaller than proceeds minus basis.

Tara B.

Author

That's actually the clearest way anyone has put it. So the code is basically a footnote explaining the math.

Exactly. And the IRS matches what you report to what the broker sent. If the adjustment is there but the code isn't, it can trigger a notice asking you to explain the difference.

Are you using box D for this since it's long-term and basis was reported to the IRS? Just want to make sure because if the broker reported basis (covered security) it's box D, and if not it's box E. That changes what you do in column (e) and (g).

Tara B.

Author

Yes, box D is checked. The broker had it as a covered security so basis was reported.

Good. So you follow the box A/D rule: 1099-B basis in column (e) as-is, adjustment in column (g), codes in column (f). You're on the right track.

Had a similar bond situation last year with both a market discount adjustment and a basis discrepancy on the same line. I gave Taxr the 1099-B, the broker's year-end bond detail, and the original trade confirm, and it worked out what the correct column (e) figure should be, what the column (g) adjustment needed to be, and whether I needed code B alongside code D. Saved me a lot of back-and-forth with the instructions.

Tara B.

Author

Did it also handle figuring out how much of the discount was accrued vs not yet accrued?

It did — it used the figures from the broker's detail sheet to calculate the accrued portion through the sale date and compared it to what the 1099-B had reported.

One thing about holding period with bonds: for securities traded on an established market the holding period starts the day after the trade date you bought and ends on the trade date you sold, not the settlement date. So if you're right on the edge of long-term vs short-term, verify the actual trade dates.

If you elected to include accrued market discount in income annually as it accrued (a section 1278 election), the treatment at sale is different — you wouldn't have the same column (g) reclassification because you already recognized the discount as ordinary income each year. Did you make that election?

Tara B.

Author

No, I never made that election. I just held the bond and sold it.

Then the full accrued market discount through the sale date is ordinary income at sale, and code D on the 8949 is the right way to flag the capital gain adjustment.

Went through a market discount situation on a municipal bond last year. I uploaded my broker's 1099-B and the OID/market discount detail statement to Taxr and it read through both documents, identified the accrued discount figure, and produced a completed 8949 line showing what belonged in each column including the column (f) codes. Made it straightforward to hand off to my preparer with everything already reconciled.

Does the state treatment follow federal here? Asking because some states don't conform to the market discount reclassification and you might end up with a capital gain at the state level even though it's ordinary income federally.

State conformity varies a lot. That's really a question for your state's instructions or a preparer who knows your state. The 8949 and Schedule D are federal forms so the market discount code question is fully answered at the federal level.

Just to check: is your bond a tax-exempt municipal or a taxable corporate? The accrued market discount is taxable as ordinary income either way at the federal level, but whether the underlying interest was tax-exempt matters for how the broker may have reported things and whether there's also an OID consideration.

Tara B.

Author

Taxable corporate bond. So I don't have the municipal complexity on top of it.

That simplifies it. The accrued market discount is ordinary income, the rest of the gain (if any) is capital, and the D code and column (g) entry handle the split on the 8949.

For the ordinary income piece that code D is separating out — confirm whether your software is reporting it on Schedule D line 1 or 8 net or whether it's routing the reclassified amount to a different line. If the software doesn't reclassify it automatically you may need to add it manually as interest income on Schedule B.

Which line does the ordinary income portion usually land on? I've seen it handled differently in different software.

There is a dedicated place — accrued market discount is reported as interest income on Schedule B, which flows to Form 1040 line 2b; Schedule D has no ordinary income line. Check what your program does and trace it.

To pull everything together for the original question: code D in column (f) of Form 8949 flags that accrued market discount is being reclassified from capital gain to ordinary income. The column (g) entry shows the amount of the adjustment. You still use the 1099-B basis in column (e) if box D is checked. The reclassified amount must also appear as ordinary income elsewhere on your return or the numbers won't reconcile.

Tara B.

Author

That nails it for me. I think I had the mechanics right but wasn't sure the ordinary income piece had to show up separately. Going to trace through the software to confirm it's being picked up.