Proceeds vs cost basis — what exactly goes where on Form 8949?

My 1099-B arrived and I'm staring at columns I don't fully understand. The "proceeds" column is what the broker sent me from the sale, right? But the "cost basis" column is confusing me because one of my lots shows a number that seems way too low — I bought the shares through ESPP at a discount and I think the broker only recorded what I paid out of pocket, not the compensation piece my W-2 already included. I've been trying to figure out if I just enter both numbers as-is on Form 8949 or if I'm supposed to adjust something. I tried reading the 1099-B instructions but they don't really explain the ESPP situation. Is proceeds vs cost basis just a straight copy from the 1099-B, or do I need to make an adjustment on the form?

34 comments

Form 8949 is where the distinction matters most. Proceeds go in column (d), cost basis goes in column (e). For a typical covered security where the broker reported basis to the IRS, you check box A (short-term) or box D (long-term) and those two columns drive the gain or loss in column (h). For your ESPP situation though, the basis question is real. If your W-2 already picked up the discount as compensation, then your true basis is higher than what the broker shows. That means the 1099-B basis is understated.

Leah T.

Author

So if the basis is understated I'd be paying tax on that gain twice — once through the W-2 and again when the 1099-B shows a low basis?

Exactly. The fix is to enter the corrected (higher) basis on Form 8949. Because box A or D is checked, you still put the broker's number in column (e), then use a negative adjustment in column (g) to bring the basis up. Code B in column (f) flags the correction.

1099-B box 1e is the cost basis the broker is reporting. Box 1d is proceeds. Those map directly to columns (e) and (d) on Form 8949. Where it gets complicated is exactly what you're describing — the broker may not know what your W-2 included, so they report only your purchase price.

Leah T.

Author

That tracks. My broker shows what I paid per share through payroll deduction, not the FMV at purchase date.

Had the same ESPP confusion last year. The W-2 amount for the discount is part of your basis. You have to add that back or you're getting taxed on it twice. Your HR or equity plan statement usually shows the FMV at purchase date which is what you need to calculate the correct basis.

Ran into this last spring with a mix of ESPP lots and some inherited shares. I uploaded my 1099-B and the equity plan statement to taxr.ai and Taxr pulled out each lot, matched the proceeds to the basis, and flagged which ones had the W-2 compensation piece missing from the broker's basis. It drafted a column (g) adjustment worksheet I could check before entering anything on Form 8949. Saved me from entering a bunch of wrong numbers. The rule it was applying: when box A or D is checked and the broker's basis is wrong, you enter the broker's (wrong) number in column (e) and correct it with a negative adjustment in column (g) using code B.

Leah T.

Author

Negative adjustment meaning I put a number in parentheses in column (g)? So if correct basis is $500 higher than what the broker shows, I'd put ($500) there?

Column (g) yes — a negative number shows the adjustment that increases your basis, reducing the gain. So ($500) in column (g) with code B in column (f) is right.

Just to separate the two concepts clearly: proceeds are what you received when you sold. Cost basis is what you paid (or are treated as having paid) to acquire the asset. The difference is your gain or loss. Everything on Schedule D flows from that arithmetic, with Form 8949 being the detail sheet.

Publication 551 is the IRS's basis guide if you want the full rules. It covers adjusted basis, what gets added (like compensation income already taxed) and what reduces basis. It's dense but the section on property received for services is relevant for ESPP.

Leah T.

Author

I'll look at that. Does it say anything specific about ESPP or just stock received for services generally?

Publication 525 is more directly on point for ESPP — it covers the income inclusion side. You'd use both together: 525 for what your W-2 should have included, 551 for how that affects basis.

Inherited shares work differently — worth flagging since you mentioned inherited shares elsewhere. For inherited property the basis is generally the fair market value at the date of death, not what the original owner paid. That's true however long you held the shares after inheriting them, and the holding period is automatically long-term.

One thing brokers sometimes get wrong is the proceeds figure itself. If you had a sale with fees or commissions deducted, some brokers report net proceeds and some report gross. Net is more common for covered securities. Check box 1d footnotes on your 1099-B to know which one you have — it matters for whether you do anything in column (g) for that.

Leah T.

Author

Mine says net proceeds. So column (d) is the net number and I don't adjust for the commission separately?

Correct — if the broker already netted the commission out of proceeds, you use that net figure in column (d) and no commission adjustment needed. If it were gross proceeds you'd have to subtract the commission in column (g).

For digital assets it's worth noting Form 8949 now has separate boxes. Short-term crypto goes in boxes G, H or I (not box C anymore) and long-term in J, K or L. Proceeds vs basis works the same way conceptually but you need to track cost basis per coin lot yourself since not all exchanges send a 1099-DA yet.

Schedule D is the summary but Form 8949 is where you show the work. Under Exception 1, if box A or D applies and you have no adjustments, you can skip Form 8949 for those transactions and put the totals directly on Schedule D line 1a or 8a. But with the ESPP basis fix, you do need Form 8949 for those lots.

Leah T.

Author

So clean lots with no adjustments can bypass Form 8949 entirely, but any lot where I'm correcting basis has to go on Form 8949. Got it.

Form 3921 is what corporations send when you exercise ISOs — different from ESPP but I want to flag it since people mix them up. ESPP is a section 423 plan and the income rules there go through W-2 on a qualifying vs disqualifying disposition basis. ISO exercises have their own AMT implications on Form 6251 line 2i. I fed my Form 3921 and my broker's 1099-B into Taxr and it walked through which amounts were already on my W-2 and which were only AMT adjustments, so I could enter the right basis in column (e) for each lot. Helped me avoid double-reporting the spread.

Leah T.

Author

Mine is definitely ESPP not ISO, but good to know the forms differ. The double-reporting trap sounds the same though.

Wash sale rule can also mess with your cost basis number. If you sold at a loss and bought back within 30 days before or after, the disallowed loss gets added to the basis of the new shares. So the basis on the new lot is artificially higher than what you paid. Brokers report that in box 1g and show code W, but only for covered securities with the same CUSIP in the same account.

Leah T.

Author

I didn't rebuy any of these shares so wash sale shouldn't apply, but I'll double check the CUSIP situation.

Column (f) code W with the disallowed amount as a positive number in column (g) is how you'd report it if it did apply. The IRS instructions for Form 8949 spell that out.

Had a complicated year with RSUs vesting, ESPP purchases and some old lots with gifted basis. I showed Taxr my broker's 1099-B alongside my equity plan summary and it compared the proceeds and basis lot by lot, listed which ones had basis discrepancies and which column (g) codes applied to each. I was able to go line by line from that list when filling out Form 8949. For gifted shares specifically: if FMV at gift was lower than the donor's adjusted basis, your gain basis is the donor's adjusted basis and your loss basis is FMV at the gift date — which means the basis number you use actually depends on whether you end up with a gain or a loss on that lot.

Leah T.

Author

The gifted basis dual-rule is new to me. So I'd need to know what the original owner paid before I can even enter column (e)?

Yes — you need the donor's adjusted basis. If you don't have it you have to get it from them. Without it you can't correctly fill column (e) for a gifted lot.

Publication 550 chapter 4 covers capital gains and losses in full, including holding period rules. Short-term is a year or less, long-term is more than a year. The count starts the day after you acquired the shares and the sale date counts as a disposal day. That determines whether a lot goes in Part I or Part II of Form 8949 — which then flows to Schedule D line 1 or line 8.

If your net capital losses for the year exceed your capital gains, you can only deduct a limited amount against other income — the rest carries forward. The carryover worksheet is in Publication 550 or the Schedule D instructions. Worth checking if the basis corrections push any of your ESPP lots into a loss position.

Leah T.

Author

Loss carryover — good to know that's an option. I don't think I'll end up in loss territory but I'll check once I have the right basis numbers.

Topic 409 on the IRS site covers capital gains and losses including the deduction limit on net losses. irs.gov/taxtopics/tc409 is the page. Useful alongside the Schedule D instructions if you want the official summary in plain language.

To pull the ESPP question together: the step order matters. First confirm what your W-2 (it's included in box 1 wages, often itemized in box 14) or the equity plan statement shows as ordinary income for the discount. That amount plus what you paid through payroll is your corrected basis. Then compare to box 1e on the 1099-B. If they differ, the correction goes in column (g) of Form 8949 with code B, and you still enter the broker's number in column (e) if box A or D is checked.

Leah T.

Author

This is the clearest walkthrough of the steps I've seen in this thread. W-2 amount plus payroll deduction = corrected basis, compare to 1099-B box 1e, adjust in column (g) with code B. That's what I'll work from.