How the ESPP Discount Is Taxed
An Employee Stock Purchase Plan (ESPP) lets workers buy company stock, often at a 10–15% discount. The discount itself is taxable income, but how much is ordinary income versus long-term capital gains depends on whether you meet two holding periods: a one-year hold from purchase and a two-year hold from the grant date. A qualifying disposition (both periods met) gets preferential tax treatment; a non-qualifying disposition (early sale) taxes the entire gain as ordinary income.
The Two Tax Events
ESPP shares encounter tax twice: at purchase (immediate) and at sale (later). Understanding which part is ordinary income and which is capital gain requires tracking the purchase price, grant-date fair market value, and sale price, then applying the holding-period rules.
Event 1: Purchase (immediate W-2 tax).
You exercise your ESPP election and buy shares at the discounted price (say, $80/share when market value is $100). Immediately, you have ordinary income of $20 per share ($100 − $80), even though you haven’t sold the stock yet. Your employer reports this on your W-2; you owe income tax in that calendar year.
This is non-negotiable: the IRS taxes the discount as compensation, period.
Event 2: Sale (capital gains tax, conditional).
When you eventually sell, you have a gain or loss between your purchase price ($80) and sale price. The tax treatment of that gain depends on holding periods.
Qualifying vs. Non-Qualifying Disposition
The IRS defines a qualifying disposition as a sale that meets BOTH of these:
- One-year holding period from purchase. You must hold the shares for at least one year from the day you bought them (the purchase date).
- Two-year holding period from grant date. You must hold the shares for at least two years from the first day of the offering period (the grant date), when the discount was locked in.
If both are met, you get favorable tax treatment. If either is missed, it’s a non-qualifying disposition, and taxes are harsher.
Qualifying Disposition Example
Grant date (first day of offering period): January 1, 2024. Purchase date (typically six months later): July 1, 2024. Stock price at grant: $100. ESPP discount: 15% (you pay $85/share). Purchase price: $85/share.
Immediate tax: $15/share of ordinary income (W-2 reportable in 2024).
You sell on September 1, 2025 at $120/share.
- One-year holding rule: July 1, 2024 to September 1, 2025 = 14 months. ✓ Met.
- Two-year holding rule: January 1, 2024 to September 1, 2025 = 20 months. ✓ Met.
Qualifying disposition achieved. Your gain from $85 to $120 ($35/share) is split:
- Ordinary income portion: The $15 discount, already taxed at purchase.
- Long-term capital gain portion: Any gain above the discount, i.e., $120 − $100 (the grant-date value) = $20/share. Taxed as long-term capital gain.
Total tax bill: $15 ordinary income (paid in 2024) + $20 long-term capital gain (paid in 2025) = $35 gain per share, with $20 taxed favorably.
Non-Qualifying Disposition Example
Same facts, but you sell on August 15, 2025 (not September 1).
- One-year holding rule: July 1, 2024 to August 15, 2025 = 13 months 15 days. ✓ Met.
- Two-year holding rule: January 1, 2024 to August 15, 2025 = 19 months 15 days. ✗ Not met (need two full years).
Non-qualifying disposition. Your gain from $85 to $120 ($35/share) is all taxed as ordinary income, not capital gain, even though you held it over a year. The two-year rule from grant date failed.
- Total tax bill: $35 ordinary income (split between 2024, when discount was taxed, and 2025, when you report the remaining $20).
The difference: the $20 that was long-term capital gain in the qualifying scenario is now ordinary income. On a 37% top bracket, that’s $7.40 per share more in tax (20% long-term rate vs. 37% ordinary rate).
Why the Grant-Date Rule Matters
The two-year rule from grant is counterintuitive—why should the holding period include the offer period (the six months before purchase) when you didn’t own the stock?
The answer is IRS logic: the offering period is when the compensation is locked in. On the grant date, the company agrees to sell you shares at a discount. The IRS treats that entire commitment window as part of the compensation event, so the clock starts then, not when you write the check.
If you could reset the clock at purchase, ESPPs would lose their tax advantage—you’d just call it “buy shares below market” and treat all gains as ordinary income. The two-year rule from grant date is what makes qualifying dispositions valuable.
Cost Basis for Capital Gains
When you eventually sell, your cost basis for capital-gains math is the price you paid ($85), not the grant-date value ($100). This matters when calculating the long-term capital-gain portion.
- Sale price: $120
- Cost basis: $85
- Total gain: $35
- Ordinary income (discount): $15 (taxed at purchase)
- Long-term capital gain (in qualifying case): $120 − $100 = $20
IRS Form 8949 and Schedule D walk you through this: you report the sale, show your basis ($85), and let the form separate ordinary from capital components.
Stacking Ordinary-Income Taxes Across Offerings
Most firms run ESPP in two offering periods per year (e.g., January–June and July–December). Each purchase triggers ordinary income tax on the discount.
If you max out your ESPP election at, say, $25,000 per year (the 2024 statutory max in Section 423 plans), and your ESPP discount is 15%, you’re recognizing $25,000 × 15% ÷ (100% − 15%) ≈ $4,412 in ordinary income annually. That stacks with your W-2 wages, potentially pushing you into a higher tax bracket.
For high earners, this can be material. Some wait until they’ve taken a lower-income year (sabbatical, job loss) to exercise ESPPs and harvest the discount at a lower rate.
Taxes on Price Declines
If the stock declines and you hold through two years, the math flips.
Example: Grant-date value $100, purchase price $85 (15% discount), sale price $70.
- Ordinary income at purchase: $15 (still owed; you must include it on W-2).
- Capital loss from $85 to $70: $15 loss.
- Net: You pay ordinary income tax on $15 gain, but have a $15 capital loss to offset other gains.
The discount is always taxed as ordinary income, even if the stock falls below your purchase price and you’d prefer to carry a loss. This is why ESPPs are risky if you think the company stock will decline—you’re paying ordinary income tax on a discount that may evaporate.
Non-Section 423 Plans
Most public companies use Section 423 ESPP (IRS code section 423), which includes the two-holding-period rules and 25% purchase-discount cap. Some companies use Section 409(b) non-qualified plans, which don’t require the holding periods.
In a non-qualified ESPP, the discount is still ordinary income at purchase, but you owe capital gains tax on any gain above purchase price when you sell, regardless of holding period. No favorable “qualifying” treatment exists—you miss out on the long-term capital-gain preferential rate on the gain above the grant-date value.
Section 423 plans are more employee-friendly; Section 409(b) is easier for employers to administer and has no statutory discount cap.
Tax Planning Insights
Holding periods are real. Mark your calendar for both the one-year purchase date and the two-year grant date. Even a few days early costs thousands in tax.
Batch by offering period. If you have multiple grants maturing, track which purchases hit qualifying status first. You might sell the oldest batch and hold newer ones to spread ordinary income recognition.
Grant-date value vs. purchase price. For cost basis, save your grant-date fair market value (the 15% discount is calculated from this). Your broker may not report it correctly.
Offset capital losses. If other investments generate losses, executing non-qualifying ESPP dispositions (ordinary income gain) can be paired with capital losses for tax efficiency.
See also
Closely related
- Long-term capital gains tax — favorable rates for holding periods
- Qualified dividend — another preferential-rate income type
- Form 8949 — IRS form for reporting securities sales
- Cost basis — purchase price and adjusted basis
- Ordinary income — salary and wages tax rates
- Section 423 plan — IRS-qualified employee stock purchase plan
Wider context
- Employee stock options — another equity compensation method
- Restricted stock units — third form of equity comp
- Tax-deferred accounts — sheltering investment gains
- Capital gains tax — investment income tax structure
- Marginal tax rate — your highest bracket