ESPP Tax Examples: Qualifying and Disqualifying Dispositions

Worked ESPP tax examples come down to one fork: did you hold the shares long enough for a qualifying disposition, or did you sell early and trigger a disqualifying disposition? The examples below use the same purchase to show how each sale price and holding period changes the tax. All of them assume a Section 423 plan with a lookback and a 15% discount, a grant (offering) date of January 1, 2024, with the stock at $50, and a purchase date of June 30, 2024, with the stock at $60. Your purchase price is 85% of the lower of those two prices, so $42.50 per share.1Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans The $17.50 gap between the $60 market price on the purchase date and the $42.50 you paid is the spread, and how that spread is taxed is the whole question.

One boundary before the numbers. This article is about qualified Section 423 plans. Roughly one in five ESPPs is non-qualified, and those plans tax the discount as ordinary income at purchase; none of the rules below apply.

The Two Holding Periods

A sale qualifies for the better tax treatment only if you satisfy both clocks before selling:

  • Two years from the grant (offering) date
  • One year from the actual purchase date

Both must run out.1Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans In this scenario, the two-year grant clock is the binding one; the earliest qualifying sale date is January 1, 2026. Miss either deadline and the whole sale is a disqualifying disposition.

Qualifying Sale at a Gain

Say you sell on February 1, 2026, at $75 per share. That’s 25 months after grant and 19 months after purchase, so both holding periods are met. The IRS then limits ordinary income to the lesser of:2Internal Revenue Service. Stocks (Options, Splits, Traders) 5

  • The grant-date discount: $50 − $42.50 = $7.50
  • The actual gain: $75 − $42.50 = $32.50

Ordinary income is the lesser figure, $7.50 per share, and it goes on your 2026 W-2 as wages. Add that to the $42.50 you paid and your adjusted cost basis is $50.00. The remaining $25.00 of gain ($75 − $50) is a long-term capital gain, taxed at 0%, 15%, or 20% depending on your total taxable income.3Internal Revenue Service. Topic No 409, Capital Gains and Losses

The total economic gain is $32.50, but only $7.50 hits ordinary rates. The qualifying sale converted $25.00 of what would otherwise be ordinary income into long-term capital gain.

Qualifying Sale at a Loss

Same February 1, 2026, sale date, but the stock has dropped to $40, below your $42.50 purchase price.

  • Grant-date discount: $7.50
  • Actual gain: $40 − $42.50 = −$2.50
  • Ordinary income: lesser of $7.50 or −$2.50 = $0

No gain, no ordinary income. Cost basis stays at $42.50, and the $2.50 per share loss is a long-term capital loss you can use against other capital gains or up to $3,000 of other income for the year, with the rest carried forward.4Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses

Disqualifying Sale at a Gain

Now sell on October 15, 2024, at $75 per share. That’s under a year from purchase and under two years from grant, so the sale is disqualifying. The favorable cap disappears. The full purchase-date spread becomes ordinary income, and it’s also subject to Social Security and Medicare taxes that a qualifying sale would not trigger.

  • Ordinary income: $60 − $42.50 = $17.50
  • Adjusted basis: $42.50 + $17.50 = $60.00
  • Remaining gain: $75 − $60 = $15.00, a short-term capital gain

The $17.50 goes on your W-2. The $15.00 short-term gain is taxed at ordinary rates because you held the shares less than a year.3Internal Revenue Service. Topic No 409, Capital Gains and Losses

Line the two $75 sales up. Qualifying: $7.50 ordinary income, $25.00 long-term capital gain. Disqualifying: $17.50 ordinary income, $15.00 short-term gain, everything at ordinary rates. Same stock, same price, very different bill.

Disqualifying Sale After a Price Drop

This is the case that catches people off guard. You sell on October 15, 2024, at $55, below the $60 purchase-date price but above the $42.50 you paid.

  • Ordinary income: $60 − $42.50 = $17.50 (still the full purchase-date spread)
  • Adjusted basis: $42.50 + $17.50 = $60.00
  • Capital loss: $55 − $60 = −$5.00, short-term

Your actual economic gain is $12.50 per share, but the IRS taxes $17.50 as wages and gives you a $5.00 short-term capital loss to offset other capital gains. If you had waited for the qualifying window and sold at the same $55, ordinary income would have been capped at the lesser of the $7.50 grant-date discount or the $12.50 actual gain, so $7.50 as wages and a $5.00 long-term capital gain. The disqualifying sale here inflates the ordinary income piece by $10 per share for the same economic outcome.

Fixing the Cost Basis When You File

The single biggest filing error on ESPP sales is copying the cost basis straight off Form 1099-B. Brokers typically report only the discounted purchase price ($42.50 in these examples) and ignore the ordinary income already included on your W-2. If you don’t correct it, you pay tax twice on that piece: once as wages, once as capital gain. The IRS won’t send a notice, because the mistake runs in the government’s favor.

The capital gain or loss goes on Form 8949 and flows to Schedule D.5Internal Revenue Service. Instructions for Form 8949 How you correct the basis depends on what the broker reported to the IRS:

  • If basis was not reported to the IRS, put the correct adjusted basis (purchase price plus W-2 income) directly in column (e). No column (g) adjustment.
  • If basis was reported to the IRS, which is the more common case, enter the broker’s basis in column (e), enter the difference as a negative in column (g), and use code “B” in column (f).5Internal Revenue Service. Instructions for Form 8949

For the qualifying sale at $75, that means basis of $50.00, not $42.50. For the disqualifying sale at $75, it means basis of $60.00. Your employer’s Form 3922 has every number you need to compute the correct figure: grant date, purchase date, grant-date price, purchase-date price, and the discounted price you paid.6Internal Revenue Service. About Form 3922, Transfer of Stock Acquired Through an Employee Stock Purchase Plan Under Section 423(c) You don’t file it, but keep it with your records.

One more note on the W-2 side: some employers don’t include the disqualifying-disposition income on the W-2. If yours doesn’t, you’re still responsible for reporting it as wages.2Internal Revenue Service. Stocks (Options, Splits, Traders) 5

Other Charges That Can Change the Bill

Net Investment Income Tax

If your modified AGI exceeds $200,000 single or $250,000 married filing jointly, the capital gain part of the sale may be subject to the 3.8% net investment income tax.7Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax The surtax applies to the lesser of your net investment income or the MAGI excess.8Internal Revenue Service. Net Investment Income Tax The W-2 piece is not investment income; the capital gain is.

Estimated Tax on a Large Sale

ESPPs don’t withhold income tax at the time of sale. A big sale can leave you owing thousands the following April. If you’ll owe $1,000 or more at filing, the IRS expects a quarterly estimated payment or bumped-up W-4 withholding to cover the gap.9Internal Revenue Service. Underpayment of Estimated Tax by Individuals Penalty You avoid the underpayment penalty by paying 90% of your current-year tax or 100% of last year’s liability, or 110% if last year’s AGI was over $150,000.

The Wash Sale Trap

If you sell ESPP shares at a loss and your plan automatically buys new shares within 30 days on either side of the sale, the wash sale rule disallows the loss.10Internal Revenue Service. Publication 550, Investment Income and Expenses The loss isn’t gone forever; it moves into the basis of the new shares and you recover it when you sell those. But it won’t help on the current year’s return. If you’re planning to sell at a loss near a purchase date, consider suspending enrollment for that window.

Capital Loss Deduction Cap

If your ESPP sale generates a capital loss that exceeds your other capital gains, only $3,000 of the excess ($1,500 if married filing separately) offsets ordinary income in the current year.4Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses The rest carries forward. In the disqualifying-loss example above, the $5.00 short-term loss offsets only a small fraction of the $17.50 ordinary income hit that same year.