8949 code B — what does it mean and how do I fix the basis?

My broker sent a 1099-B and the basis column is blank for a handful of stock sales. When I imported the 1099-B into my tax software, it checked box B on Form 8949 (basis not reported to the IRS) and dropped code B in column (f). The software put something random in column (e) for the basis and I have no idea if that number is right. I bought these shares years ago through a dividend reinvestment plan so the cost basis is a patchwork of small purchases. I've tried pulling old statements but some go back further than my broker keeps records. Does code B just mean I'm on my own to figure the correct basis? And do I handle column (g) differently when box B is checked versus box A?

36 comments

Form 8949 box B means your broker reported the proceeds to the IRS but did not report your cost basis to the IRS. You still have to put a number in column (e) — but for box B you enter the correct basis you've reconstructed, not whatever the broker showed. Column (g) then gets -0- because there's nothing to adjust; the correction is already in column (e). That's the key difference from box A.

Kelly C.

Author

So with box B I just put my real number in column (e) and leave column (g) at zero? That's cleaner than I expected. The software was putting a placeholder in there and flagging an adjustment.

Exactly. The instructions for Form 8949 spell this out under the box B rules: correct basis in column (e), -0- in column (g). Don't let the software override that with a fake adjustment.

DRIP shares are genuinely annoying for this. Each reinvested dividend creates a new lot with its own purchase date and basis equal to the dividend amount used. If your broker only tracks shares from a certain date forward, you may need to piece together the rest from old 1099-DIV forms, brokerage confirmations or account statements. Publication 551 on irs.gov covers basis of assets and walks through how reinvestments work.

Kelly C.

Author

I do have most of the old 1099-DIVs. Is the reinvested dividend amount literally the basis for each lot, or do I need to adjust for anything?

The reinvested dividend is the cost for that lot — the per-share price on the reinvestment date times the shares purchased. Hold on to whatever records you use; if the IRS asks, you'll need to show your work.

I had almost the same DRIP situation last year. Uploaded my 1099-B, the old brokerage statements and my own spreadsheet to taxr.ai and it flagged every lot where my reconstructed basis didn't match what the software had auto-filled. Saved me from filing with wrong numbers in column (e) across a dozen small lots. Still had to verify each lot date myself, but it identified where the gaps were.

Kelly C.

Author

That's useful — the gap-finding part is exactly what I need. My spreadsheet has about 40 lots and I'm not confident I lined them all up correctly.

One thing people miss with box B: the holding period still matters. Short-term lots go in Part I, long-term in Part II, even with box B checked. If your DRIP started more than a year before you sold, most lots are probably long-term, but any reinvestment within the last year before the sale date would be short-term.

Kelly C.

Author

Good catch — I did have a few reinvestments in the 12 months before I sold. Those go in Part I box B as separate rows?

Yes, separate rows in Part I. The day after the trade date you bought to the trade date you sold determines whether it clears the more-than-one-year bar.

Column (f) code B signals to the IRS that the basis came from you, not from the broker. It's not a problem or a flag — it's just the disclosure. What matters is that the number in column (e) is supportable. Keep the records you used to reconstruct it.

Any lot you sold at a loss needs a second look: did you buy substantially identical shares within 30 days before or after the sale? DRIP plans can accidentally trigger wash sales if dividends reinvested in the same stock right after a sale at a loss. That disallowed loss would need code W in column (f) and the disallowed amount as a positive in column (g), and you'd adjust the basis of the new shares.

Kelly C.

Author

I hadn't thought about that. I did sell some lots at a loss and the DRIP kept running. I'll need to check the dates.

Check within 30 days before and after each loss sale. The wash sale rule applies even if the broker doesn't report it in box 1g — you still can't take the loss.

Schedule D ultimately summarizes what flows up from Form 8949. When I had a messy basis situation, I gave Taxr my 1099-B and the Schedule D draft side by side and it listed every line where the totals didn't reconcile, including two box B rows where I'd entered the adjustment in column (g) instead of column (e). That's exactly the kind of mechanical error that's easy to miss.

Kelly C.

Author

That reconciliation step is what I was planning to skip. Sounds like it's worth doing before filing.

Schedule D lines 1b and 2 pull the box A and box B totals separately (and lines 8b and 9 do the same for D and E), so a misrouted number won't cancel itself out — it'll just be wrong.

To confirm the rule from the instructions: with box A or D (basis reported to the IRS), you enter the broker's basis in column (e) even if it's wrong, then put the correction in column (g) as a negative if your real basis is higher. With box B or E (basis not reported), you enter correct basis in column (e) and -0- in column (g). Two different mechanics depending on which box is checked.

Worth adding: if the broker did report basis but got it wrong, you use box A or D, not box B or E. Box selection follows what the broker reported to the IRS, not whether the number is accurate.

That's right. The box tells the IRS what the broker did, not whether you agree with the number.

Holding periods for securities traded on an established market are covered in Publication 550 at irs.gov as well. The holding period starts the day after the trade date you bought and ends on the trade date you sold — not the settlement date. For DRIP shares the trade date is the reinvestment date shown on your statement.

If you genuinely can't reconstruct basis for some lots and have no records at all, your options are limited — you can use a reasonable estimate if you can document the method, or you may end up reporting zero basis, which means all proceeds are gain. Zero basis is painful but it's what you're left with if records are truly gone. That's the risk with very old DRIP lots.

Kelly C.

Author

Some of my oldest lots go back far enough that I may be in this spot. I'd rather overpay than get it wrong in the other direction.

That's a defensible position. Document whatever you do and keep those records — the IRS can ask about basis years after filing.

You can find the Form 8949 instructions on irs.gov, both at the about-form-8949 page and on the full instructions page. Both are worth reading alongside your 1099-B to match the broker's boxes to the right part of the form. The instructions also list all the column (f) codes including B and W.

With 40 lots across multiple years I'd seriously check each one before filing. I uploaded my reconstructed basis spreadsheet and my 1099-B to Taxr and it drafted a summary showing which lots still had open questions — missing purchase dates, inconsistent lot sizes, that kind of thing. Reviewed the draft myself before touching the actual return.

Kelly C.

Author

A lot-by-lot summary like that would actually help me hand this off to my preparer too — she'll want to see the supporting detail.

If the total net capital loss from all this exceeds your gains, the deduction against other income is capped — the limit and the carryover rules are in Topic 409 on irs.gov. Any leftover loss carries forward using the Capital Loss Carryover Worksheet.

One mechanical step people skip: after you fill in all the box B rows in Part I and Part II, the column (d), (e) and (g) totals for those rows feed into specific lines on Schedule D. Make sure your software is picking them up correctly and not lumping box A and box B totals together.

Schedule D line 2 is specifically for the box B totals (short-term, basis not reported). Line 1b handles box A. They're separate lines for a reason.

Coming back to the original question on column (g): with box B, once you have the correct number in column (e), column (g) stays at -0- unless there's a separate adjustment like a wash sale. If you have both — wrong basis AND a wash sale — you'd still use box B, put correct basis in column (e), and add code W with the disallowed loss in column (g).

Kelly C.

Author

So multiple codes can stack in column (f) if needed? I didn't know that.

Yes — the instructions say to enter multiple codes in column (f) if more than one applies. Order them alphabetically.

For the DRIP lots where you do have records, consider attaching a statement with the detail if the number of rows gets unwieldy. The instructions allow you to aggregate and attach a statement in certain situations. Check the instructions for Form 8949 for how to format it.

Kelly C.

Author

My software doesn't seem to support attached statements easily. Might need to paper-file those pages or ask my preparer how she handles it.