Guides and thoughts · Part 03 Optimize
Employee Stock Purchase Plans: How the Discount Is Taxed and What to Do With the Shares
In a qualified employee stock purchase plan (ESPP), the discount is taxed as ordinary income when you sell, and how much counts depends on whether the sale is a qualifying or disqualifying disposition. Here’s how ESPP taxes, the look-back and the holding periods work, and what to weigh before retirement.
Alex Wilson, CFP® · 7 minute read
Key takeaways
In this guide
01How does an ESPP work?02How is the ESPP discount taxed?03Should you sell ESPP shares right away or hold them?04What happens to your ESPP when you retire?05Common questionsAn employee stock purchase plan lets you buy company stock through payroll deductions at a discount. The discount is real and easy to see. The tax rules on the way out are where people get tripped up, along with the slow build-up of company stock that nobody chose on purpose.
Here’s how a qualified ESPP works, how the discount is taxed in each kind of sale, and how I’d think about the shares as retirement gets closer.
How does an ESPP work?
In a qualified ESPP, you set aside after-tax pay during an offering period, and on each purchase date the plan buys shares for you at a discount of up to 15%.
Many plans add a look-back: the discount applies to the lower of the price on the first day of the offering period or the price on the purchase date. If the stock rose during the period, the look-back can make the effective discount much larger than 15%.
Rules for qualified (section 423) plans
How is the ESPP discount taxed?
There’s no tax when you buy the shares; the discount is taxed as ordinary income in the year you sell, and how much counts as ordinary income depends on whether the sale is qualifying or disqualifying.
A qualifying disposition means you held the shares more than 2 years from the offering date and more than 1 year from the purchase date. Ordinary income is the smaller of your actual gain or the discount measured at the offering-date price. The rest is a long-term capital gain.
A disqualifying disposition is any earlier sale. The full spread on the purchase date (market value minus what you paid) is ordinary income, and any change after that is a capital gain or loss.
A worked example (illustration only)
Offering-date price: $40. Purchase-date price: $50. With a 15% discount and look-back, you pay $34.
Sell right away at $50: $16 per share is ordinary income, and there’s no capital gain.
Qualifying sale later at $60: ordinary income is the smaller of $26 (actual gain) or $6 (15% of $40). So $6 is ordinary income and $20 is a long-term gain.
If the stock falls to $30 before a qualifying sale, there’s no ordinary income and a $4 capital loss.
Two details catch people. ESPP income isn’t subject to Social Security or Medicare tax and usually has no income tax withheld. And the basis on your 1099-B often shows only what you paid, so use Form 3922 and your plan’s supplemental statement to avoid paying tax on the discount twice.
Wondering how this applies to you?
Every situation is different. On a free 30-minute call, I’ll look at where you are and tell you which of these decisions matter most for you.
Should you sell ESPP shares right away or hold them?
Selling soon after purchase locks in the discount and avoids building a concentrated position, while holding for a qualifying disposition can lower the tax but leaves you exposed to the stock for up to two years.
The tax savings from holding are real but bounded: at most, part of the discount moves from ordinary income to capital gains. The price risk over 12 to 24 months isn’t bounded the same way. That’s why I look at the size of the position and everything else tied to the same company, including RSUs, options and company stock in a 401(k), before choosing. See how RSUs are taxed and net unrealized appreciation.
Neither choice is right for everyone. Someone with a small position and a diversified portfolio may be comfortable holding. Someone whose job, bonus and savings already lean heavily on one employer may prefer to sell and reinvest according to the plan. More on that in what diversified actually means.
What happens to your ESPP when you retire?
When you leave, your participation generally ends, and contributions that haven’t bought shares yet are usually refunded rather than used for a final purchase. Check your plan’s rules for the purchase date nearest your last day.
Shares you already own stay yours. The holding periods keep running after you leave, so a qualifying disposition is still possible. If you’re retiring soon, it can help to plan sales across the years before and after you leave, when your bracket may be lower, and to fold the shares into your broader equity compensation plan.
Common questions
Is an ESPP worth it if I sell right away?
Many people find it is, because the discount is locked in at purchase and selling quickly limits price risk. The discount is taxed as ordinary income in that case.
What is a qualifying disposition for ESPP shares?
A sale more than 2 years after the offering date and more than 1 year after the purchase date. It can move part of the gain from ordinary income to long-term capital gains.
Why is my ESPP cost basis wrong on my 1099-B?
Brokerages often report only the price you paid. Use Form 3922 and your plan’s supplemental statement to add the ordinary income portion to your basis.
This guide is educational and general. It isn’t tax or legal advice, and your plan document controls the details. Confirm your plan’s terms with your stock plan administrator and your tax reporting with your CPA before you sell. Source: Internal Revenue Code section 423, IRS Publication 525, IRS Form 3922 instructions, IRS Topic 427 (Stock Options).
Building up company stock through an ESPP?
I’ll look at your ESPP shares alongside your other company stock and help you decide what to keep, what to sell and when.
