Cost basis employee stock purchase plan — why my 1099-B looks wrong

Sold shares I bought through my company's ESPP last year and now I'm staring at a 1099-B that shows a cost basis way lower than what I actually paid. My broker only put the purchase price in box 1e, but it left out the discount portion that my W-2 already taxed. So if I just enter the 1099-B numbers into Form 8949 as-is, I'll get taxed on that discount amount twice — once as wages on my W-2 and again as a capital gain on Schedule D. I already checked my pay stubs and the W-2 box 1 is definitely higher than my salary, so the discount is in there. What's the actual rule for adjusting the cost basis on Form 8949 for ESPP shares, and do I need a code in column (f) to flag the correction?

33 comments

You're right that double taxation is the risk here. The W-2 income inclusion becomes part of your adjusted cost basis. So your basis isn't just what you paid out of pocket — it's what you paid plus the ordinary income your employer already reported. When you enter the sale on Form 8949, put the proceeds from the 1099-B in column (d). In column (e), enter the basis as shown on the 1099-B (even if it's wrong). Then use column (f) code B and column (g) to adjust up to your correct basis. The adjustment in column (g) will be a negative number (in parentheses) because your true basis is higher than what the broker reported.

Amara M.

Author

This matches what I suspected. So the number in column (g) is the W-2 income amount that was already taxed as compensation? That's the piece I needed to confirm.

Exactly. It's the spread that appeared on your W-2 — the difference between the fair market value at purchase and your discounted price. That's the amount that lifts your basis and prevents the double hit.

Whether the sale is qualifying or disqualifying changes which number lands on your W-2 and how much adjusts your basis, so you need to check that first before you fill in column (g).

Amara M.

Author

I haven't heard that term before — how do I know which one mine is?

It turns on how long you held the shares after purchase and after the offering date. The ESPP plan documents or your brokerage statement usually label it. Publication 525 on irs.gov covers both dispositions in detail if you want the exact rules.

The holding period question matters for more than just the W-2 amount. It also determines whether your gain or loss on Schedule D is short-term or long-term. For ESPP shares the clock starts the day after the purchase date, same as any other security traded on an established market — the trade date you bought, not settlement.

Ran into this exact reporting mess last filing season. I uploaded my ESPP purchase confirmations, the 1099-B, and my W-2 to taxr.ai and had Taxr map out which portion of the basis came from payroll deductions and which came from the W-2 income inclusion — it laid out each lot separately so I could see the column (g) figure for each row on Form 8949. I still took that worksheet to my CPA to review, but it saved me from going in blind. The rule itself — that the W-2 income amount gets added to what you paid — is something the instructions for Form 8949 and Publication 525 both explain, but seeing it applied lot by lot to my own numbers made it concrete.

Amara M.

Author

Breaking it down lot by lot is exactly the problem I'm running into — I bought shares each quarter for two years so I have eight separate purchase lots, all at slightly different prices and discount percentages.

Eight lots sounds like a lot but each one is just its own row on Form 8949. The tricky part is matching each lot's W-2 inclusion to the right row. Your employer's ESPP administrator should be able to give you a supplemental statement that shows the ordinary income recognized at each purchase date. That number is what you add to your actual out-of-pocket cost to get the corrected basis per lot.

Amara M.

Author

My employer did send a supplemental statement but I wasn't sure if that was the official document or just informational. Sounds like it's the number I should actually use.

Treat it as the starting point but cross-check it against your W-2 box 1 increase and your pay stubs. If the totals reconcile, you're good. If they don't, find out why before filing.

One thing that tripped me up: my broker did report some of the income in the basis — but only partially, so the adjustment I needed in column (g) was smaller than I thought. Don't assume the entire discount is missing from column (e). Check your supplemental statement and subtract whatever the broker already included.

Same situation for me. My 1099-B had a footnote saying basis may not include all compensation income. That footnote is basically the broker telling you to do exactly this reconciliation.

To be clear on the Form 8949 mechanics: if the basis IS reported to the IRS (box A or D checked), you must enter the 1099-B basis in column (e) as-is, even knowing it's wrong, then correct it in column (g) with code B. If basis is NOT reported to the IRS (box B or E), you enter your correct basis directly in column (e) and put -0- in column (g). Which box your broker checked on the 1099-B determines which path you take.

Amara M.

Author

Mine has box A checked, so I go the code B route in column (f) and put the adjustment in column (g). Got it.

Worth flagging: if you sell at a loss and you bought additional ESPP shares within 30 days before or after the sale, wash sale rules could apply and you'd need code W in column (f) instead, with the disallowed loss as a positive number in column (g). Hopefully not your situation but worth a check.

Amara M.

Author

No overlap in my case — I sold everything in one tranche and didn't buy back in. But good to know that could have complicated things.

The qualifying vs. disqualifying distinction is worth spelling out more. In a qualifying disposition you hold long enough and the W-2 income is capped at the actual discount percentage from the offering date. In a disqualifying disposition you sell too early and the full spread at purchase date hits your W-2 regardless of what price you sell at. That changes how much you add back to basis. I had Taxr read through my ESPP plan documents and purchase confirmations and flag which of my lots were qualifying and which weren't — it listed each lot's status and the corresponding W-2 amount so I knew exactly which rows needed what adjustment on 8949.

The cap on the W-2 amount in a qualifying disposition catches people off guard. They assume the discount is always what they add back but it's only the capped amount in that scenario — the rest comes through as capital gain.

Right, and the capital gain portion in a qualifying disposition is long-term if you met the holding period, so the tax rate difference actually makes qualifying dispositions favorable in most cases.

Does the broker ever get the basis right on its own? Mine did for two lots and missed on three others. No pattern I could find.

Brokers are only required to report basis for covered securities and the ESPP rules are complicated enough that partial reporting is pretty common. The supplemental statement from your employer is usually more reliable for the compensation piece.

If you have both a qualifying and disqualifying lot from the same offering period, they can land in different parts of Form 8949 — one long-term, one short-term — depending on the holding period of each. Keep them on separate rows and don't combine.

Amara M.

Author

I hadn't thought about mixing periods in a single offering cycle. I'll check each lot's purchase date separately.

There's a column (g) worksheet built specifically for basis adjustments in the Form 8949 instructions at irs.gov/instructions/i8949. If you're doing this by hand it's worth reading through that section — it walks through how adjustments interact when there's more than one code in column (f), which can happen if you somehow also have a wash sale in the mix.

I had a similar problem last year with eight lots across two plan years. I showed Taxr my employer's supplemental ESPP statement alongside my 1099-B and it compared the two side by side — it marked the lots where the broker's column (e) figure was understated and calculated the column (g) adjustment for each one. I reviewed the output, matched it back to my W-2, and then entered the numbers on 8949 myself. For anybody dealing with multiple lots it's a faster way to see the full picture before you start entering rows.

Eight lots across two plan years sounds exactly like what I'm heading into next filing season. I'll keep this in mind.

To add one practical thing: even after you get the basis right, make sure your Schedule D totals reconcile to your Form 8949 totals before you file. Software usually does this automatically but if you're doing it manually or overriding entries, mismatches between the two forms are a common reason a return gets flagged.

Amara M.

Author

I'm using software but I've been overriding the basis entries, so I'll double-check the Schedule D carryover line too.

If the amounts are significant and you're not confident in the qualifying vs. disqualifying classification for each lot, it's worth a session with a CPA or enrolled agent who handles equity compensation. Getting the classification wrong shifts the wrong amount onto your W-2 reconciliation and the wrong gain type onto Schedule D — both directions hurt.

Amara M.

Author

Mine are significant enough that I'm going to have a CPA review before I file. At least now I know what questions to ask and which lines on 8949 we're talking about.

Between them, Publication 525 and Publication 550 at irs.gov/publications/p550 cover the ESPP rules pretty thoroughly — holding period, what goes on the W-2, how to figure the basis for each type of disposition. If you want to read the primary source before your CPA appointment, those two are the right starting point.