The discount you get through an Employee Stock Purchase Plan is treated as compensation by the IRS, and that ESPP imputed income equals some or all of the spread between what you paid for the shares and what they were worth on the purchase date. How much of the spread is taxed as ordinary income, and when you owe the tax, depends on whether your plan is qualified under Section 423, whether you meet the holding periods before selling, and whether you correctly adjust your cost basis when you report the sale. Get the last step wrong and you pay tax twice on the same dollars.
Why the Discount Is Taxable Even Though You Never Received Cash
An ESPP lets you buy company stock at a discount, typically 5% to 15% below fair market value. Many plans add a look-back provision that sets the purchase price using the lower of the stock’s FMV on the offering date or the purchase date, then applies the discount to that lower figure. In a rising market, the effective discount can be much larger than the stated percentage. If the stock was $10 on the enrollment date and $12 on the purchase date, a 15% discount with a look-back means you pay $8.50 for stock worth $12, an effective discount close to 29%.
The IRS treats some or all of that spread as ordinary compensation. You didn’t receive it in cash, but you received the ability to buy an asset below market value, and that benefit is imputed to your income. How much is taxed and when depends on two things: whether the plan is qualified or non-qualified, and, for qualified plans, whether you meet the holding period rules before selling.
How Much Is Taxed and When
The plan type sets the timing. A qualified plan under Section 423 generally defers all tax until you sell the shares. A non-qualified plan taxes the discount at purchase.1Office of the Law Revision Counsel. 26 U.S. Code 423 – Employee Stock Purchase Plans
Non-Qualified Plans
The entire discount becomes ordinary income on the purchase date, subject to federal income tax, Social Security tax, and Medicare tax. Your employer withholds these taxes at purchase the same way it would for a cash bonus.2Internal Revenue Service. Topic no. 427, Stock Options
The math is simple:
Imputed income per share = FMV on purchase date − price paid
If the FMV was $50 and you paid $42.50, your imputed income is $7.50 per share. On 200 shares, that’s $1,500 added to your W-2 wages for the year. Your adjusted cost basis then becomes $50 per share (the $42.50 paid plus the $7.50 already taxed), and any gain or loss when you sell is measured from that basis.
Qualified Plans: Disqualifying Dispositions
You have a disqualifying disposition when you sell before meeting both holding period requirements: at least two years from the offering date and at least one year from the purchase date. The discount is treated much like it would be under a non-qualified plan.
Ordinary income equals the full spread between the FMV on the purchase date and the price you paid. That amount is subject to income tax and FICA and is reported on your W-2 in the year of the sale. Any additional gain or loss above the purchase-date FMV is a capital gain or loss, short-term or long-term depending on how long you held the shares after purchase.
If you bought at $85 when the FMV was $100 and later sold at $110, ordinary income is $15 per share and capital gain is $10 per share.
Qualified Plans: Qualifying Dispositions
Meeting both holding periods, two years from the offering date and one year from the purchase date, caps the ordinary income. It becomes the lesser of:3Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans
- the actual gain on the sale (sale price minus price you paid), or
- the offering-date discount (offering-date FMV minus the option price, typically 15% of the offering-date FMV).
The rest of the gain is long-term capital gain, taxed at preferential rates. If the offering-date FMV was $80 and the plan discount is 15%, the ordinary income is capped at $12 per share no matter how high the stock climbs. Buy at $68, sell at $120, and only $12 of the $52 gain is ordinary income; the remaining $40 is long-term capital gain.
The rule also protects you if the stock drops. If you sell for less than you paid, the actual gain is zero or negative, the lesser-of calculation produces zero ordinary income, and the entire loss is a capital loss.
One useful detail: ordinary income from a qualifying disposition is not subject to Social Security or Medicare tax. It appears in Box 1 of your W-2 but not in Box 3 or Box 5.4Internal Revenue Service. Stocks, Options, Splits, and Traders – 5
Where the Numbers Come From: Form 3922
For qualified plans, your employer must file Form 3922 with the IRS and give you a copy when legal title to your ESPP shares is first transferred. That transfer usually happens on the purchase date when shares move into a brokerage account.5Internal Revenue Service. Instructions for Forms 3921 and 3922
Form 3922 carries the numbers you’ll need for every calculation above:6Internal Revenue Service. Transfer of Stock Acquired Through an Employee Stock Purchase Plan Under Section 423(c)
- Box 1, the offering (grant) date.
- Box 2, the purchase (exercise) date.
- Box 3, the FMV per share on the offering date.
- Box 4, the FMV per share on the purchase date.
- Box 5, the price you actually paid per share.
- Box 6, the number of shares transferred.
- Box 7, the date legal title was first transferred.
- Box 8, the exercise price if it wasn’t fixed on the grant date (used with look-back provisions).
Keep every Form 3922. Boxes 1 and 2 tell you whether a future sale will qualify for the favorable holding period treatment, and Boxes 3 through 5 drive the ordinary income calculation. Multiple offering periods produce multiple forms.
Reporting It Without Paying Tax Twice
The mistakes that cost people money don’t happen in the calculation. They happen at reporting time, because the numbers from your employer and your broker don’t line up on their own.
What Shows Up on Your W-2
The ordinary income part of your ESPP benefit gets reported by your employer in Box 1 of your W-2. For a non-qualified plan or a disqualifying disposition, it also flows into Box 3 (Social Security wages) and Box 5 (Medicare wages). For a qualifying disposition of a qualified plan, it appears in Box 1 only.4Internal Revenue Service. Stocks, Options, Splits, and Traders – 5
Timing follows the plan type. Non-qualified plans put the income on the W-2 for the year of purchase. Qualified plans put it on the W-2 for the year of sale. Employers usually roll the amount into your regular wages, so if your W-2 total looks higher than expected, check your final pay stub or the supplemental tax statement your employer may issue.
The 1099-B Basis Problem
When you sell ESPP shares, your broker issues Form 1099-B with the sale proceeds and cost basis. The basis the broker reports is almost always the cash you paid, meaning the discounted purchase price. The broker generally doesn’t know about the imputed income your employer already added to your W-2.7Internal Revenue Service. Instructions for Form 8949
This is the double-taxation trap. Report the sale with the unadjusted basis and the IRS sees a larger capital gain that includes the discount you were already taxed on through your W-2.
Fixing It on Form 8949
You correct the basis on Form 8949, Sales and Other Dispositions of Capital Assets. Report the proceeds and the broker’s basis exactly as shown on the 1099-B. Enter adjustment code B in column (f) to flag that the basis is incorrect. In column (g), enter the adjustment, which is the imputed income already included in your W-2.7Internal Revenue Service. Instructions for Form 8949
The corrected basis is the discounted purchase price plus the imputed income. In the non-qualified example, that’s $42.50 + $7.50 = $50 per share. The adjustment reduces your reported capital gain by the amount already taxed as wages, and the corrected figures flow to Schedule D. The IRS won’t reconcile your W-2 and your 1099-B for you, so this step is on you.
A Worked Example
Assume a qualified ESPP with a 15% discount, a look-back, and a six-month offering period. The FMV was $80 on the offering date and $100 on the purchase date. You bought 200 shares.
Your purchase price is $68 per share (85% of the lower $80 offering-date price). Sale price in both scenarios below is $120.
Qualifying disposition (both holding periods met):
- Total gain: $120 − $68 = $52 per share.
- Ordinary income: the lesser of $52 or $12 (15% of $80) = $12 per share, or $2,400 total.
- Long-term capital gain: $40 per share, or $8,000 total.
- Adjusted basis for Form 8949: $68 + $12 = $80 per share.
Disqualifying disposition (sold early):
- Ordinary income: $100 (purchase-date FMV) − $68 = $32 per share, or $6,400 total.
- Capital gain: $120 − $100 = $20 per share, or $4,000 total.
- Adjusted basis for Form 8949: $68 + $32 = $100 per share.
The qualifying disposition produces $2,400 of ordinary income. The disqualifying one produces $6,400, nearly three times as much, taxed at your marginal rate instead of the long-term capital gains rate.
Watch for Wash Sales
If you sell ESPP shares at a loss and your plan buys new shares of the same stock within 30 days before or after the sale, the wash sale rule disallows the loss. Instead of deducting it, you add it to the basis of the replacement shares.8Office of the Law Revision Counsel. 26 U.S. Code 1091 – Loss From Wash Sales of Stock or Securities
Plans with monthly or quarterly purchases create a recurring acquisition cycle. Sell older shares at a loss and the next scheduled ESPP purchase within the 61-day window (30 days before through 30 days after) can trigger the rule without you doing anything unusual. Dividend reinvestment on the same stock can trigger it too.9Computershare. Tax Traps for ESPPs The loss isn’t permanently lost; it shifts into the replacement shares’ basis and you recover it when those shares are sold. If you’re planning a loss sale, check your plan’s purchase calendar and time the sale outside the 30-day window around the next purchase.