Sold ESPP Shares? Your 1099-B Basis Is Probably Too Low, and Here Is How to Fix It on Form 8949

· RKube Services

How ESPP holding periods change wage income, why Form 1099-B basis may omit that income, and how to report the correction on Form 8949.

You bought company stock at a discount through your employee stock purchase plan, sold some of it, and now the broker's Form 1099-B shows a big gain. Then your W-2 shows extra wages from the same shares. If both numbers go onto your return as printed, part of that discount gets taxed twice: once as pay and again as capital gain.

It's a common error on returns with equity pay, and it's fixable. The fix is a basis adjustment on Form 8949. To make it correctly you need to know which kind of sale you had, a qualifying disposition or a disqualifying one, because the ordinary income is figured differently for each.

The rules below come from IRS Publication 525 (2025), Publication 15-B (2026), the Instructions for Form 8949 (2025) and the Instructions for Forms 3921 and 3922 (Rev. 04/2025). They are the rules in force for tax year 2026, and the examples use sales in 2026 and 2027.

What a qualified ESPP is, in tax terms

An employee stock purchase plan option is one of two kinds of statutory stock options (incentive stock options are the other). Pub 525 lists the conditions: you have to be an employee of the company granting the option, or a related company, from the grant date until 3 months before you exercise, and the option can't be transferable except at death. If those aren't met, the option is treated as nonstatutory and different rules apply.

For a statutory option, nothing is taxed when the option is granted, and nothing is taxed when you exercise it (the purchase date at the end of each offering period). Tax shows up only when you sell or otherwise dispose of the shares.

Most plans work the same way. You sign up at the start of an offering period, money comes out of each paycheck, and on the purchase date the plan buys shares at a discount, often 85% of the lower of the price on the first day of the offering or on the purchase date. Pub 525 allows a price of less than 100% but not less than 85% of fair market value at grant.

Two dates matter for everything that follows:

  • The grant date: the first day of the offering period.
  • The exercise (purchase) date: when the shares were bought for you.

Pub 525 adds a useful detail. Your holding period for all the shares starts the day after the purchase date, even though the money came out of many separate paychecks. Your basis is the price you paid on the purchase date. The timing of the payroll deductions doesn't change it.

The holding period test

Whether a sale is "qualifying" depends on one test. Pub 525: you satisfy the holding period requirement if you don't sell until the end of the later of:

  1. 2 years after the option was granted, and
  2. 1 year after the stock was transferred to you.

Sell after both dates and the sale is a qualifying disposition. Sell before either one and it's a disqualifying disposition. Shares from a single offering can end up in both groups if you sell some early and keep the rest.

There is one exception in Pub 525: a sale made to comply with conflict-of-interest requirements is treated as meeting the holding period.

Form 3922: where your numbers come from

When stock is transferred to you through a qualified ESPP, the company (or its plan administrator) files Form 3922 and sends you a copy. The boxes you'll use:

BoxWhat it showsUsed for
1Date option grantedThe 2-year test
2Date option exercisedStart of your holding period (the day after)
3Fair market value per share on grant dateQualifying sale: ordinary income cap
4Fair market value per share on exercise dateDisqualifying sale: ordinary income
5Exercise price paid per shareYour starting basis
6Number of shares transferredShare count
7Date legal title transferredThe 1-year test
8Exercise price per share as if exercised on the grant dateQualifying sale, when the price wasn't fixed at grant

Keep every Form 3922 you get. You need it in the year you sell, which may be years after the purchase. One form per purchase date is typical, so a plan with two purchases a year produces two forms a year.

Disqualifying disposition: ordinary income = the spread at purchase

If you sell before the holding period ends, Pub 525 sets ordinary income at the amount by which the stock's fair market value on the purchase date exceeded what you paid. Two things about that rule surprise people:

  • It isn't limited to your gain. If the stock fell after purchase, you still have the full spread as ordinary income, plus a capital loss.
  • You add the ordinary income to your basis. The capital gain or loss is the sale price minus that higher basis.

Qualifying disposition: ordinary income = the smaller of two amounts

If you meet the holding period and the option was granted at a discount, Pub 525 says you include as compensation the lesser of:

  1. the fair market value at grant minus the option price, or
  2. the fair market value at sale minus what you actually paid.

If the option price wasn't fixed when the option was granted (the usual "lower of" plan), the option price in test 1 is figured as if you had exercised on the grant date. That's what box 8 of Form 3922 gives you. Anything above the ordinary income is capital gain, long-term because you held more than a year. If you sell at a loss, there's no ordinary income at all, only a capital loss.

A worked example, four ways

Same facts in every case. The offering period starts January 2, 2025, with the stock at $40. The purchase date is June 30, 2025, with the stock at $50. The plan price is 85% of the lower of the two prices: 85% x $40 = $34. You buy 200 shares for $6,800.

Form 3922 would show box 3 = $40, box 4 = $50, box 5 = $34, box 8 = $34, box 6 = 200.

The holding period ends on the later of January 2, 2027 (2 years after grant) and June 30, 2026 (1 year after transfer). So any sale on or before January 2, 2027 is disqualifying.

Case 1: sold March 16, 2026 at $55 (disqualifying)

  • Ordinary income: ($50 - $34) x 200 = $3,200, reported as wages
  • Correct basis: $6,800 + $3,200 = $10,000
  • Proceeds: $55 x 200 = $11,000
  • Capital gain: $11,000 - $10,000 = $1,000, short-term (held from July 1, 2025, less than a year)

The 1099-B will most likely show basis of $6,800 and a gain of $4,200. Report that as printed and $3,200 of income is taxed twice.

Case 2: sold March 16, 2026 at $45 (disqualifying, at a loss)

  • Ordinary income: still $3,200, because the rule isn't limited to gain
  • Correct basis: $10,000
  • Proceeds: $9,000
  • Capital loss: $1,000, short-term

The broker's form shows a $2,200 gain here ($9,000 - $6,800). The correct answer is a $1,000 loss. That's a $3,200 swing on one line.

Case 3: sold February 10, 2027 at $55 (qualifying)

  • Test 1: $40 - $34 = $6 a share
  • Test 2: $55 - $34 = $21 a share
  • Ordinary income: the smaller, $6 x 200 = $1,200
  • Correct basis: $6,800 + $1,200 = $8,000
  • Long-term capital gain: $11,000 - $8,000 = $3,000

Waiting moved $2,000 of income from the ordinary column ($3,200 in Case 1 versus $1,200 here) into long-term capital gain. For someone in a high bracket, that difference is real money. It also cost a year of market risk on a single stock, which is the trade-off to weigh.

Case 4: sold February 10, 2027 at $38 (qualifying, price fell)

  • Test 1: $6 a share. Test 2: $38 - $34 = $4 a share
  • Ordinary income: $4 x 200 = $800
  • Correct basis: $7,600
  • Capital gain: $7,600 - $7,600 = $0

Why the 1099-B is "wrong," and why the broker isn't at fault

The Form 8949 instructions are direct about this. For compensatory options granted after 2013, the basis on Form 1099-B won't include any amount you reported as income from the option. You're told to increase your basis by that amount yourself. Pub 525 says the same thing and adds that making the adjustment is your responsibility.

So the broker reports $34 a share because that's what you paid. The extra income on your W-2 never reaches the broker's records. Some plan administrators provide a supplemental statement with an "adjusted" cost figure, which helps, but check it against your Form 3922 before relying on it.

How to enter it on Form 8949

Most ESPP sales are covered securities, so the broker reports basis to the IRS and checks box A (short-term) or box D (long-term). For those, the 8949 instructions say:

  • Column (d): proceeds from the 1099-B
  • Column (e): the basis exactly as shown on the 1099-B, even though it's incorrect
  • Column (f): code B
  • Column (g): the adjustment, entered as a negative number, here the ordinary income amount

For Case 1, that's proceeds $11,000, basis $6,800, code B, adjustment ($3,200), gain $1,000.

If the 1099-B shows basis wasn't reported to the IRS (box B or box E), you enter the correct basis directly in column (e), still use code B, and put zero in column (g).

Tax software usually asks "Is the basis on your 1099-B correct?" or has an employee stock plan screen. Answering it with the Form 3922 figures produces the same lines.

Where the ordinary income lands, and the withholding gap

Pub 15-B (2026) tells employers to report in box 1 of your W-2 the discount portion on a qualifying disposition and the spread on a disqualifying disposition. It also says this income isn't wages for Social Security, Medicare or FUTA, and that federal income tax withholding isn't required on it.

That last part creates a second problem for larger sales. The income shows up on your W-2, but often with nothing withheld. A $20,000 disqualifying spread for someone in the 32% bracket is about $6,400 of tax with no withholding behind it. If the sale is big, plan for it the same year with a higher W-4 withholding or an estimated payment, and check whether you're on the 110% safe harbor (prior-year AGI over $150,000).

A second check: your employer can only report a sale it knows about. If you moved the shares to another broker, or left the company, the W-2 may not include the ordinary income. You still report it. Before you file, compare the W-2 with your own Form 3922 math for every lot you sold.

A short checklist before you file

  1. Gather every Form 3922 for the shares you sold (one per purchase date).
  2. Match each 1099-B lot to its purchase date and share count.
  3. For each lot, test the holding period: later of 2 years from box 1 and 1 year from box 7.
  4. Figure the ordinary income per lot with the disqualifying or qualifying rule.
  5. Confirm that income appears in W-2 box 1 (some employers also add a box 14 note; if unsure, ask payroll).
  6. Enter each lot on Form 8949 with code B and the adjustment.
  7. If the year's sales were large, compare withholding with the tax and plan an estimate.

Common questions

Is the 15% discount taxed when I buy the shares?

No. Pub 525 says nothing is included in income when a statutory option is granted or exercised. The discount is taxed when you sell.

I sold right after the purchase. Is anything special about that?

It's a disqualifying disposition, and the spread at purchase is ordinary income. The capital gain or loss is usually small because the sale price is close to the purchase-date price.

Do I pay Social Security and Medicare tax on ESPP income?

No. Pub 15-B excludes remuneration from an ESPP option, or from selling stock bought under one, from Social Security, Medicare and FUTA wages.

What if I die while holding the shares?

For an option granted at a discount, Pub 525 applies the same lesser-of rule at death as for a qualifying sale. Gifts of ESPP shares have their own wrinkles, so get help before giving shares away.

Does this apply to RSUs too?

The 1099-B basis problem is similar, but RSUs are taxed at vest as regular wages with withholding. The ESPP rules above don't apply to them.

This page is general information, current as of October 16, 2026, not tax advice for your situation.

Sold ESPP shares this year and not sure the 1099-B lines up with your W-2? We do this reconciliation as part of tax prep: rkubeservices.com or (984) 234-7030.

More articles · Call (984) 234-7030