8949 code M — what does it mean and where does the adjustment go?

Trying to figure out what 8949 code M means. My broker sent a 1099-B and when I imported it into my tax software, one of the transactions has a "W" and an "M" in column (f) on Form 8949. I know W is a wash sale, but I've never seen M before. The column (g) amount is a positive number which I think is the disallowed loss, but there's also a second smaller positive adjustment in there that I can't account for. I already looked at the instructions for Form 8949 and ctrl-F'd "code M" but I'm reading it as something about adjustments to market discount — is that right? Or is it something else entirely? Not sure if both codes stack into one column (g) number or if I'm supposed to do something separate. What does code M actually require me to do on the form?

38 comments

Code M on Form 8949 isn't market discount — M means multiple transactions are reported on a single row. Market discount is code D, used specifically when a bond or other debt instrument was sold and the accrued market discount is being reported as ordinary income rather than capital gain. The market discount amount in column (g) is a negative number (in parentheses) that reduces your capital gain (or increases your capital loss) because that portion is shifted to ordinary income. Did your 1099-B show a separate box for market discount, or did the broker just bundle it into the adjustment column?

Priya C.

Author

Checking the 1099-B now — yes, there's a separate line labeled "market discount" with a dollar figure. So the D adjustment and the W adjustment are both in column (g) combined into one net number?

When I had a similar bond situation with both codes, I uploaded my 1099-B to taxr.ai and it read through every column and explained each code separately before showing me how the two adjustments netted in column (g). Saved me from entering the wrong sign. On the substance: yes, when you have both W and a market discount adjustment (code D) on the same row, both adjustments go into the single column (g) entry. Market discount (D) is a negative number in column (g); wash sale disallowed loss (W) is a positive number. They net against each other. The ordinary income piece from the market discount still gets picked up elsewhere — your broker may have already included it in box 1 interest or a separate 1099-INT.

Priya C.

Author

So the market discount piece would be a negative amount, not that extra positive one. So I'm not double-counting — the D portion is already in ordinary income on the 1099 side, and the column (g) entry just corrects the capital side?

Exactly right. The column (g) adjustment for code D, entered as a negative number, reduces what would otherwise look like a capital gain or increases what looks like a capital loss, because that slice of gain was reclassified. Net effect on Schedule D is smaller capital gain, but ordinary income went up by the same amount somewhere else.

Wait, can you even have a wash sale on a bond? I thought wash sale rules only applied to stock and securities — are bonds covered?

Bonds are securities, so yes, wash sale rules apply. The IRS wash sale rules cover stock or securities broadly. Commodity futures contracts and foreign currencies are specifically excluded, but plain corporate or municipal bonds are not.

Good to know. Continuing to read through my own 1099-B now and I see a code D on one of my bond lines too but no W, so just the market discount issue for me.

What kind of bond was it — corporate, muni, something you bought at a discount in the secondary market? The market discount rules work differently depending on whether you elected to accrue the discount annually or are reporting it all at sale. Did you ever make an election to include market discount in income each year?

Priya C.

Author

Corporate bond, bought in the secondary market below par. I never made any annual accrual election so I think it all gets reported at sale. The 1099-B shows the full accrued market discount in that separate line.

Every column (f) code is listed in the Form 8949 instructions at irs.gov/instructions/i8949. Code M is described there as reporting multiple transactions on a single row; the market discount adjustment is code D. The instructions also confirm that when multiple codes apply to one transaction you enter them all in column (f) and combine all the adjustments into one column (g) number, positive or negative as the net works out.

Priya C.

Author

Finding that section now — it confirms what everyone said. Combined into one column (g). I think my software already did this correctly and I was just confused by seeing two codes.

Are you in a part I or part II row for this transaction? Short-term vs long-term matters for which box you check (A, B, or C versus D, E, or F) and whether the disallowed wash sale loss carries to a short-term or long-term position.

Priya C.

Author

Part I, box A — the bond was held less than a year and the basis was reported to the IRS. So the disallowed loss from the wash sale gets added to the cost basis of the replacement bond I bought.

Right, and because it's box A (basis reported to IRS), if you need to adjust the basis shown on the 1099-B you enter the 1099-B basis in column (e) even if it's wrong, then put the correction in column (g) rather than changing column (e). That's the rule for covered securities with basis reported.

Before I filed last year I ran my 8949 entries through Taxr — I had four codes on two rows and I asked it to go line by line through each column for my situation. It flagged that I had the sign wrong on one column (g) entry and would have overstated my capital loss. For the D code (market discount) specifically, it confirmed the market discount amount flows to ordinary income and not to Schedule D as a capital item. Is the replacement bond you bought the substantially identical one that triggered the wash sale — same issuer, same maturity, same coupon? That's what determines whether the wash sale actually applies.

Priya C.

Author

Same issuer, different maturity date. I wasn't sure if that made them substantially identical or not.

Different maturity on a bond is a meaningful difference — it's not automatically substantially identical the way shares of the same company would be. Whether the broker correctly coded it W is worth questioning if the maturities and terms differ significantly.

If the wash sale turns out not to apply because the bonds weren't substantially identical, you'd want to file a corrected return or at least report it correctly the first time. The broker's coding on the 1099-B doesn't bind you if the law doesn't support it — but you can't just ignore a code W the broker reported without being prepared to explain the difference.

Priya C.

Author

So I should check with a CPA or enrolled agent on the substantially identical question before I file? I don't want to override a broker code without being sure.

Yes, that's exactly the situation where a CPA or enrolled agent is worth consulting. The substantially identical analysis for bonds involves more judgment than for stock, and if you're adjusting away a broker-reported wash sale code you want that call documented.

Publication 550 is the place to read on wash sales — it covers how the disallowed loss gets added to the basis of the replacement shares (or bonds), and how the holding period of the new position includes the holding period of the position sold. Both of those carry forward even after you correct the form.

Next step for me: checking Publication 550 on the market discount election section too since I never made the annual accrual election and want to confirm I'm reporting the full amount correctly at sale.

Had a situation with codes W and D on the same 8949 row for a corporate bond last filing season. I gave Taxr the 1099-B and the draft 8949 and it compared them column by column, wrote out what each code required in my column (g), and showed me the net. The ordinary income piece from D was already on a 1099-INT from the broker so it wasn't missing — Taxr just confirmed both sides matched before I sent anything. Did your broker send a 1099-INT or was the market discount only on the 1099-B?

Priya C.

Author

There's a 1099-INT from the same broker. I need to check whether the market discount amount there matches what's on the 1099-B market discount line.

Matching those two numbers is exactly the right move. If the 1099-INT market discount and the 1099-B column (g) code D amount don't match, that's a gap you'd need to reconcile before filing or the two forms will be inconsistent and could draw a notice.

Priya C.

Author

Checked — they match to the dollar. So it looks like everything is consistent, the software combined the W and market discount (D) adjustments into one column (g), and Part I box A is correct. I think I actually had it right and just didn't understand what I was looking at.

That's the most common outcome — the import is right but the codes are opaque until you look them up. Good that you verified before filing rather than after.

For anyone still unsure about the box to check: covered securities with basis reported to the IRS go in box A (short-term) or box D (long-term). If the basis is not reported to the IRS it's box B or E. And under Exception 1 in the Form 8949 instructions, if you have covered securities with no adjustments at all you can skip Form 8949 entirely for those and just enter the totals on Schedule D line 1a or 8a — but if you have codes W or D you have adjustments, so you can't use that shortcut for those rows.

Does the market discount code D also apply to tax-exempt municipal bonds bought at a discount in the secondary market, or only to taxable bonds?

Market discount rules apply to tax-exempt bonds too if purchased at a discount in the secondary market. The accrued market discount on a muni is still ordinary income when the bond is sold, even though the interest itself is exempt — different rules, different character.

That's a wrinkle I didn't expect. So a muni bought below par can still generate ordinary income at sale through market discount even though the coupon interest is tax-exempt. Worth knowing before I assume a muni sale is all capital.

One thing I'd double-check: did the software mark the holding period correctly for the replacement bond? After a wash sale the holding period of the replacement includes the holding period of the sold position. So if the sold bond had been held eight months before the sale, those eight months count toward the holding period of the replacement bond when you eventually sell that one.

Priya C.

Author

Haven't thought about the replacement bond's holding period yet — that's a future-year issue but good to keep track of now while I still have the dates.

To confirm the sign convention one more time: code D (market discount) is always a negative number in column (g), right? It reduces a capital gain or increases a capital loss because that income moved to ordinary. Likewise a code B (incorrect basis, correct basis is higher than reported) would be a negative number in parentheses.

Correct on both counts. D is negative in column (g). Code B for a higher correct basis is entered as a negative in column (g) — shown in parentheses — when box A or D is checked, because the instructions require you to put the 1099-B basis in column (e) and correct it through column (g) rather than changing column (e).

Is there a situation where code D could produce a positive column (g) entry, or is it always negative?

Market discount accrual is always income, so the D adjustment in column (g) is always a negative number — it always reduces capital gain or increases capital loss. You wouldn't see a positive D adjustment; that would be a different code for a different type of basis adjustment.