What is an Employee Stock Purchase Plan (ESPP)?
Employee Stock Purchase Plans let employees enroll in a program to buy company stock at a discount, usually through payroll deductions. Most plans offer a discount between 5% and 15%. Fifteen percent is the legal limit for a “qualified” plan under Section 423 of the tax code, which is the type of plan that gets the tax treatment described here. Most ESPPs at public companies are qualified plans.
Two things set ESPPs apart from other equity compensation. First, to get the best tax treatment, you have to hold the shares longer than the usual one year it takes to get long-term capital gains rates. Second, they tend to be the lowest-risk equity program out there. They almost always exist at publicly traded companies, so you can sell your shares at a real market price, and the discount gives you a built-in gain from day one.
Qualified plans also limit you to $25,000 of stock per calendar year, measured using the stock price at the start of the offering period, and many plans cap contributions at a percentage of your pay as well.
How does an ESPP work?
Logistically, here’s what a common plan looks like. You enroll for an offering period, money is set aside from each paycheck, and at the end of the period that money is used to buy shares. The most common offering period is six months.
Many plans also include a “lookback,” which means your discount is applied to the lower of two prices: the stock price at the start of the offering period, or the stock price on the purchase date. Not every plan has a lookback, so it’s worth checking yours.
Example: An employee enrolls in a six-month ESPP with a 15% discount and a lookback on January 1, when the stock price is $100. The period ends on June 30, when the stock price is $120. The employee gets to buy at a 15% discount off the lower of those two prices, which is $100, so the purchase price is $85. Shares worth $120 cost them $85.
Even in the opposite case, where the price on the purchase date is the lower one, the 15% discount still gives you an immediate return of about 18% (15 ÷ 85).
How are ESPP shares taxed?
Nothing is taxed when you enroll or when you buy. The tax comes when you sell, and how it’s taxed depends on how long you held the shares.
To get preferential tax treatment, you have to hold your shares at least 2 years from the start of the offering period and 1 year from the purchase date. That’s called a qualifying disposition. For a six-month offering period, that means holding the stock for 18 months after you buy it.
- Qualifying disposition: Your ordinary income is the smaller of (a) the discount based on the price at the start of the offering period, or (b) your actual gain. Everything above that is long-term capital gain.
- Disqualifying disposition (selling before you meet both holding periods): Your ordinary income is the full discount on the purchase date, no matter what you sell for. Any change in value after you buy is a capital gain or loss.
Either way, ESPP ordinary income isn’t subject to Social Security or Medicare taxes.
Let’s compare what happens if the employee sells right away versus holding, assuming the stock rises another $20 to $140 per share:
| Scenario (per share) | Purchase price | Sale price | Ordinary income | Adjusted cost basis | Capital gain |
|---|---|---|---|---|---|
| Sell immediately on June 30 | $85 | $120 | $35 | $120 | $0 |
| Sell after 13 months (disqualifying) | $85 | $140 | $35 | $120 | $20 long-term |
| Sell after 18 months (qualifying) | $85 | $140 | $15 | $100 | $40 long-term |
Your adjusted cost basis is the $85 you paid plus whatever was taxed as ordinary income. Your capital gain is the sale price minus that adjusted basis. In every scenario, the ordinary income and the capital gain add up to your total profit, the sale price minus the $85 you paid. The holding period only changes how that profit is split between the two.
Sold immediately, the ordinary income is the full $35 discount you received as compensation.
Sold after 18 months, the ordinary income is only the discount measured from the starting price: $100 minus your $85 purchase price, or $15, instead of $35 at the higher ordinary rates. The remaining $40 of gain is taxed at long-term capital gains rates, with a 23.8% maximum compared to the 37% maximum for ordinary income.
Compare the last two rows. Same $140 sale price, but waiting the extra five months moves $20 per share from ordinary income to long-term capital gain. At the top rates, every $100,000 of income you move from ordinary rates to long-term capital gains rates saves $13,200 in tax.
That said, holding isn’t automatically the right answer. While you wait, you’re concentrated in your employer’s stock, and a drop in the price can easily wipe out the tax savings. Many people sell right away and lock in the discount, and that’s a perfectly reasonable choice.
What are common ESPP tax mistakes?
ESPPs are simple to use, but they create the same kinds of tax problems as RSUs.
No tax withheld
When you sell ESPP shares, the ordinary income portion is usually added to your W-2, but qualified ESPPs don’t require any income tax withholding on it. Sell a large block of shares and you can end up with a tax bill you didn’t plan for.
Paying tax twice on the discount
The cost basis your broker reports on Form 1099-B is usually just your purchase price, $85 in our example. If you sold immediately at $120, your W-2 already includes $35 per share of ordinary income. If you use the $85 basis from the 1099-B, you report another $35 per share of capital gain and pay tax on the same money twice. Your correct basis is $120 per share. Your company sends you Form 3922 with the details you need, and your broker’s supplemental statement usually shows the adjusted basis, but you have to actually use it on Form 8949.
ESPPs are one of the easiest benefits to say yes to. Understanding the holding periods, and making sure the discount is only taxed once, is where the real value is.
This article is for general educational purposes and is not tax advice for your specific situation. Figures reflect 2026 federal tax rules.