TaxesAdvanced6 min read

How Employee Stock Purchase Plans (ESPPs) are taxed

An ESPP discount is nearly free money — but the tax on it depends on how long you hold the shares, and the two-part rules confuse almost everyone.

An Employee Stock Purchase Plan lets you buy your company's stock at a discount through payroll deductions — often 15% off, sometimes off the lower of two prices thanks to a 'lookback.' That discount is close to guaranteed money, which is why financial writers love ESPPs. But the tax treatment is genuinely tricky: part of your gain is taxed as ordinary income, part as capital gains, and the split depends on how long you hold the shares. Getting it wrong means either overpaying or getting a surprise letter.

How the plan works

You set aside after-tax pay over an 'offering period' (often six months). At the end, the plan buys shares at a discount — say 15% below market. A lookback feature applies the discount to the LOWER of the price at the start or end of the period, which can turn a 15% discount into an effective 20-30%+ return if the stock rose. Because you bought with after-tax money, the discount itself is the taxable event to sort out when you eventually sell.

Qualifying vs. disqualifying dispositions

For a tax-favored 'qualified' ESPP, the key is a two-part holding period: sell after holding the shares more than ONE year from purchase AND more than TWO years from the offering date, and you have a 'qualifying disposition' with better tax treatment. Sell sooner and it's a 'disqualifying disposition,' where more of your gain is taxed as ordinary income. Either way, some ordinary income arises — the difference is how much, and the capital gains rate on the rest.

Qualifying dispositionDisqualifying disposition
Holding period1+ yr from purchase AND 2+ yr from offeringSold sooner
Ordinary incomeLesser of the discount or actual gainFull discount at purchase (the bargain element)
Rest of the gainLong-term capital gainsShort- or long-term capital gains
Overall taxUsually lowerUsually higher
ESPP disposition types (qualified plan)
The same shares, two tax outcomes
Sam buys ESPP shares at $17 (a 15% discount off the $20 price); they're worth $30 when he sells. Disqualifying (sold early): the $3 discount per share is ordinary income now, and the $10 further gain is capital gain. Qualifying (held long enough): a smaller portion is ordinary income and more of the gain qualifies for long-term capital gains rates — often a lower total bill. The catch is that holding for tax reasons also means staying concentrated in your employer's stock, which is its own risk.
The double-taxation trap on the 1099-B
This is the ESPP error that costs people the most: your broker's 1099-B often reports your cost basis as only what you PAID (the discounted price), ignoring the ordinary income you already recognized. If you don't adjust the basis upward on Form 8949, you pay tax TWICE on the discount — once as ordinary income on your W-2, once as inflated capital gain. Always reconcile the ESPP basis using your plan's supplemental statement.

The strategy debate: hold or sell immediately

Many advisers suggest selling ESPP shares immediately at purchase: you lock in the discount as a near-guaranteed return, accept the ordinary-income tax on it, and avoid tying more of your net worth to your employer. Holding for a qualifying disposition can lower the tax rate on the gain, but it exposes you to single-stock risk — the discount is small comfort if the stock drops 40%. The right answer depends on how concentrated you already are in company stock and your risk tolerance; there's no universally correct choice.

The bottom line

An ESPP discount is one of the best deals employers offer, but its tax treatment splits into ordinary income (on the discount) and capital gains (on the rest), with the split and rates hinging on whether you meet the one-year/two-year holding tests for a qualifying disposition. The most expensive mistake isn't the strategy — it's failing to adjust the 1099-B cost basis and paying tax twice on the discount. Given the two-part timing, the basis adjustment, and the concentration-risk tradeoff, ESPP shares are worth modeling carefully or running past a CPA before you sell.

Check your understanding

1 of 3
For a qualified ESPP, what defines a tax-favored 'qualifying disposition'?

Not quite — try again.

The Worth letter

Get smarter about money every week

One email, no spam — practical guides and Worth updates. Unsubscribe anytime.

Put this into practice

Worth tracks your accounts, budgets, and goals — so the concepts in this article aren't just theory.

Start free trial