Do I need to espp adjust cost basis on my tax return?

Sold ESPP shares this year for the first time and I'm completely lost on the cost basis piece. My 1099-B shows a cost basis that is way lower than what I actually paid when you factor in the discount. I know the discount gets reported as ordinary income on my W-2, but my broker's basis doesn't seem to reflect that. So if I just enter what's on the 1099-B into Form 8949, am I going to get double-taxed on the discount? I already reported the compensation income through my W-2 so paying capital gains on that same amount feels wrong. I tried reading the 1099-B instructions but they don't explain the ESPP piece clearly. Do I need to manually espp adjust cost basis on Form 8949, and if so, what's the adjustment and which column does it go in?

33 comments

Yes, you almost certainly need to adjust it. The broker reports the basis they have on record, which for ESPP shares is often just what you paid out of pocket — not including the compensation element already on your W-2. If you don't adjust, you get taxed twice on the discount. What broker are you using? Some report the full adjusted basis, some don't, and that changes what you actually need to do on 8949.

Lena N.

Author

Using a large brokerage, they sent a supplemental sheet alongside the 1099-B that shows "adjusted cost basis" separately from the 1099-B box. But my software is pulling the 1099-B number, not the supplemental one.

Had almost this same situation last year. My broker's 1099-B had the unadjusted basis and my software kept using that number. I uploaded the 1099-B and the supplemental sheet to taxr.ai and it flagged exactly where the two numbers didn't match and what the gap represented. Helped me understand which part was already in my W-2 versus what was still a capital gain question. The adjustment itself goes in column (g) of Form 8949 — a negative number in parentheses if the correct basis is higher than what the 1099-B shows, with code B in column (f).

Lena N.

Author

This is exactly what I needed to know — the column (g) piece with code B. So I'd enter the 1099-B basis in column (e) even though it's wrong, then correct it in column (g)?

Right. Because your shares are covered securities with basis reported to the IRS, you check box A or D depending on holding period, enter the 1099-B basis in column (e), and put the adjustment in column (g). The instructions for Form 8949 at irs.gov lay out the code B scenario precisely — that's where I confirmed the steps.

Is the discount portion on your W-2 as wages, or is it somewhere else on there? The treatment can differ depending on whether it was a qualifying or disqualifying disposition, so knowing your holding period relative to when you were granted and when you purchased matters here.

Lena N.

Author

I held for about 8 months after the purchase date. The grant was about 2 years before I sold. I see extra income on my W-2 that my company confirmed is the ESPP discount.

Eight months from purchase — so that's a disqualifying disposition since you didn't hold at least two years from grant AND at least one year from purchase. The compensation element for a disqualifying disposition is the spread at purchase, which your company should have included in W-2 box 1. That's the amount you add to your purchase price to get adjusted basis.

Worth double-checking: does your supplemental sheet from the broker actually match what your company put in your W-2? I've seen cases where the broker's "adjusted" number doesn't perfectly equal the W-2 income inclusion, especially if there were multiple purchase periods or lots.

Lena N.

Author

Good point, I'll line them up. I had two purchase periods in the same year so there might be two lots.

Each lot is reported separately on Form 8949. Same logic applies to each — figure out the compensation income included in your W-2 for that specific lot, add it to your actual out-of-pocket purchase price, and that's your corrected basis for each lot.

So once you have the right basis, the remaining gain or loss is capital gain or loss. Short-term if you held the shares one year or less from the purchase date, long-term if more than one year. The IRS counts from the day after the purchase date trade date through the sale trade date, not settlement dates.

To confirm on the holding period: 8 months from purchase means short-term capital gain rates on whatever gain remains after the basis correction.

Are you using tax software or filing manually? This matters because some software has an ESPP adjustment workflow that walks you through it, but it still relies on you entering the correct compensation income number. If the software just pulls the 1099-B, leave the 1099-B basis in column (e) and add code B and the column (g) adjustment yourself.

Lena N.

Author

Using software. It imported from the broker but I see no ESPP-specific adjustment field. Looks like I'll need to edit the 8949 entry directly.

The supplemental sheet is key. My broker sends one that breaks out the "ordinary income component" per lot. I gave my entire ESPP packet to Taxr — the 1099-B, the supplemental sheet, and the relevant W-2 boxes — and it listed each lot, what the broker reported, what the W-2 included, and what the column (g) entry should be for each. Made the 8949 entries much cleaner to fill in after that.

That's the right approach — treat each lot as its own row on 8949 and get the adjustment right at the lot level, not just in aggregate.

What happens if someone's broker reports the adjusted basis correctly on the 1099-B already — does the IRS still see a discrepancy from the W-2 income?

No discrepancy in that case. If the broker already included the compensation element in the reported basis, you just enter what's on the 1099-B and there's no column (g) adjustment needed. The W-2 income and the basis tell the same story.

Ah ok so the whole adjustment question only comes up when the broker reports the unadjusted basis — got it.

One thing worth noting: Publication 525 covers the ESPP income inclusion rules if you want to read the actual IRS language. And Publication 550 covers basis and holding period. Between those two and the Form 8949 instructions you can verify every step of this.

Had two disqualifying dispositions in the same year and the reconciliation across two lots was making my head spin. I uploaded the supplemental statements and my W-2 to Taxr and had it cross-check the ordinary income amounts against what ended up in my W-2 and lay out what each lot's adjusted basis should be. Then I filled in the 8949 rows myself. Worth doing before you file so the IRS doesn't see a mismatch between your proceeds and your gain.

Lena N.

Author

This is basically my situation with two lots. I'll try that approach so I know I have the right numbers before entering them.

Flip side question — if someone sells ESPP shares at a loss after a disqualifying disposition, do they still need to add the compensation income to basis? Because the W-2 income would have been real regardless.

Yes, the basis calculation works the same way regardless of whether the eventual sale is a gain or loss. You still add the compensation element (the spread at purchase date, included in W-2) to your purchase price to get adjusted basis. The capital loss would then be what's left after that corrected basis.

Makes sense. So you could have W-2 income AND a capital loss on the same ESPP shares if the price fell after the purchase date.

Schedule D is the last stop: once your 8949 entries are correct, the totals flow there. Short-term lots go to Part I of 8949 and then to Schedule D Part I; long-term to Part II of 8949 and Schedule D Part II. The Form 8949 instructions page on irs.gov walks through each column and the exception that lets you skip 8949 for certain transactions — ESPP adjustments don't qualify for that exception so you're on 8949 regardless.

With many lots, a good sanity check on the aggregate is whether your total compensation income across all ESPP lots matches what your company reported in your W-2. HR or your stock plan administrator can usually give you a lot-by-lot breakdown if the supplemental sheet isn't detailed enough.

Lena N.

Author

I'll ask my stock plan admin for the lot-by-lot breakdown. Good idea before I sit down to fill out the 8949 entries.

Does the correction in column (g) need to be a whole dollar amount or can it reflect cents? Asking because my adjustment is a bit of an odd number.

Form 8949 uses whole dollars — round to the nearest dollar for each entry. The instructions confirm this. So your column (g) adjustment rounds the same way as column (d) and (e).

If the numbers are large or you have multiple years of ESPP sales with potential wash sale questions layered in, that's the point where a CPA or enrolled agent who handles equity compensation is worth the conversation. ESPP basis errors are one of the most common causes of amended returns.

Lena N.

Author

Noted. My amounts aren't huge this year but I'll keep that in mind if the ESPP grows and things get more complicated.