ESPP cost basis adjustment — why does my 1099-B always show the wrong number?

Every year I sell shares from my employee stock purchase plan and every year TurboTax auto-imports my 1099-B with a cost basis that is way too low. This year the broker shows my basis as the actual purchase price I paid, but it's leaving out the ordinary income my W-2 already included for the discount. So if I don't make an espp cost basis adjustment on Form 8949, I end up paying tax on that discount twice — once as wages, once as a capital gain. I already looked at my W-2 box 1 and can confirm the discount amount is in there. What I can't figure out is exactly how to enter the adjustment on Form 8949 so the IRS doesn't reject it or flag it. Is the adjustment a negative number in column (g)? Do I use a specific code in column (f)? Any help appreciated.

32 comments

Form 8949 column (f) is where you put the reason code, and for a basis correction you use code B. Then in column (e) you enter the basis your broker reported, even if it's wrong. The correct basis goes into column (g) as the difference — a negative number in parentheses if your real basis is higher than what the broker reported. That negative adjustment reduces your gain so you're not double-taxed on the discount.

Column (g) step — so I put the full corrected basis in column (e) and then the adjustment that closes the gap in column (g)? Or do I put the corrected basis directly in column (e)?

column (e) gets what the 1099-B says, not the corrected number. The adjustment amount (negative, in parentheses) goes in column (g). That's what the Form 8949 instructions say for box A or D transactions where basis is wrong.

The part people miss is figuring out exactly how much of the W-2 income to add to basis. For a qualifying disposition the discount percentage matters and whether it's a qualifying or disqualifying disposition changes what gets added. Your company's plan documents and your W-2 should line up — the amount already taxed as compensation is what you're entitled to add back.

Qualifying disposition step — my shares were held long enough to be a qualifying disposition. So only part of the discount goes to W-2, right? The rest is long-term capital gain. I want to make sure I'm adding exactly the right amount to basis.

For a qualifying disposition the amount your employer includes in wages is typically the lesser of two calculations based on your plan's discount and the fair market value at grant vs. at sale. Check your plan summary and compare it to what's in box 1 of the W-2.

Form 8949, code B situation is exactly what I had last year. I uploaded my 1099-B and my pay stubs to taxr.ai and it identified the ESPP compensation amount already in my W-2, calculated the correct adjusted basis, and drafted the column (g) entry for me to review before I filed. Saved me from double-counting the discount. Definitely cross-reference your W-2 box 1 with your broker's confirmation statement before you lock in the number.

W-2 box 1 step — that's exactly the cross-reference I was missing. I'll compare the broker's purchase confirmation against what's in box 1 to isolate the compensation piece.

Look at which box is checked on your 1099-B before you enter anything. If it's box A or D (basis reported to the IRS), you must follow the corrected-basis procedure with code B — enter the broker's figure in column (e) and the adjustment in column (g). If it's box B or E (basis not reported to the IRS), you just enter the correct basis straight in column (e) and put -0- in column (g). The procedure is different depending on that checkbox.

Box A vs B step — mine is box A, basis reported to the IRS. So I definitely need the code B approach with the adjustment in column (g). Thanks for flagging that distinction.

Box A confirmed — then follow the instructions exactly: broker's basis in column (e), negative adjustment in column (g) in parentheses, code B in column (f). Your proceeds from column (d) stay as reported on the 1099-B.

Also worth noting: whether the sale is short-term or long-term changes which Part of Form 8949 you're in. ESPP shares held more than one year from the purchase date (and more than two years from the offering date for a qualifying disposition) go in Part II with box D checked if basis was reported. Shares held a year or less go in Part I.

Publication 550 covers the holding period rule — the day you count from is the day after the trade date you bought, and the day you sell counts as the last day. For securities traded on an established market those dates are trade dates, not settlement dates. Easy to get it wrong if you're going off settlement dates from your brokerage statement.

Trade date step — I've been using settlement date by mistake. Good catch, I'll pull the trade confirmations instead.

Had a disqualifying disposition last year where my broker reported way too low a basis. I gave Taxr my 1099-B and my final pay stub for the year and it matched the ESPP discount already included in my wages, figured the adjusted basis, and listed out the Form 8949 entries with the right codes. Meant I could verify the numbers independently before my preparer touched the return.

Disqualifying disposition step — for a disqualifying disposition the entire spread at exercise typically goes to W-2, so the adjustment to add back to basis is usually larger than in a qualifying one. Worth separating the two if you have both types in the same year.

Schedule D line 1a or 8a shortcut: if your ESPP sale has basis reported to the IRS, no adjustments needed and no codes to enter, you can skip Form 8949 entirely and report directly on Schedule D. But the moment you have a basis correction — which almost every ESPP sale does — you lose that shortcut and have to go through Form 8949.

Schedule D shortcut step — figured I couldn't use it since I have the basis correction, but good to understand why. Form 8949 it is.

If your company's ESPP has a lookback provision, the discount can be calculated off the lower of the grant-date or purchase-date price, which makes the qualifying disposition W-2 calculation more complicated. Worth getting the plan documents and running through the actual numbers rather than guessing.

Brokers that have updated their systems sometimes show the adjusted basis correctly on the 1099-B, while still checking box A as basis reported. In that case there's nothing to adjust and you can trust column (e) as filed. Compare your broker's number to your own calculation before assuming it's always wrong.

Column (e) check step — good point, I'll actually do the math myself first rather than assuming the broker got it wrong. If they already included the W-2 component I don't want to adjust twice.

Double-adjusting step — yes, that would overcorrect and make your gain too small, which could draw a notice. Always reconcile broker's basis against your W-2 amount before entering anything in column (g).

If the correction turns your sale into a capital loss, that loss offsets capital gains first, then you can use up to the annual limit against other income, with any excess carrying forward. The limit and carryover rules are in Topic no. 409 at irs.gov and in the Schedule D instructions.

Form 8949 instructions were confusing me until I loaded my broker statement and both sides of the 1099-B into Taxr — it flagged that my column (e) entry didn't match what the broker had on the covered-securities side and drafted the corrected column (g) amount with the code B notation. Made it a lot easier to hand to my CPA for review.

CPA review step — that's a solid approach, especially for a complicated disposition. Having the reconciliation done before the preparer looks at it probably saves time and money.

Publication 525 covers the restricted property and ESPP income rules in detail. The compensation income you include is what gets added to basis — that's the fundamental principle. If the amount on your W-2 and the amount your broker is treating as basis don't match, one of them is wrong and you need to find out which.

Publication 525 step — going to read through the ESPP section there. I want to understand the actual rule rather than just trust the software.

Also check whether you have multiple lots from different offering periods. Each lot has its own purchase date, its own grant date, its own discount calculation and its own holding period. Brokers sometimes combine them on the 1099-B, which makes the basis even harder to reconcile. Separate them out before you start filling in Form 8949.

Multiple lots step — I do have shares from two different offering periods. I hadn't thought to split them out. I'll go back to the broker's purchase history and separate them before I start the form.

Worth repeating for people who search this later: you cannot skip the basis adjustment just because the broker didn't report it on the 1099-B. The rule applies regardless of what box 1g shows. The IRS instructions for Form 8949 and Publication 550 both say the disallowed or incorrect basis must be corrected by the taxpayer on the form.

Final step if you're still unsure after doing the math: an enrolled agent or CPA who handles equity compensation regularly can review your plan documents and W-2 and confirm the adjustment. ESPP rules differ enough between qualifying and disqualifying dispositions that it's worth a professional set of eyes if the numbers are significant.

Enrolled agent step — noted. If the two-lot calculation gets messy I'll bring in an EA rather than guess. Thanks everyone, this thread answered every question I had.