Employee Stock Purchase Plans
An employee stock purchase plan buys company shares out of payroll at a discount, and it is one of the few workplace benefits that produces a return the day it settles. The complication is what happens next: how long you hold decides whether part of the gain is taxed as salary or as capital gain, and holding is not free.
- The discount is immediate:: Shares are bought below market value, so the return exists from the purchase date.
- The lookback multiplies it:: Where the plan prices off the lower of two dates, a rising share price makes the effective discount much larger.
- No tax at purchase:: In a qualifying plan, nothing is taxed until the shares are sold.
- Holding periods change the split:: More than two years from the offering date and one year from purchase makes it a qualifying disposition.
Where the AI summary above gets this wrong
"Hold ESPP shares for two years to get the favourable tax treatment."
That's surface-true. Here's what it misses:
- Holding to qualify is a bet, not a tax strategy — Meeting the holding periods reduces the portion taxed as compensation, but it requires holding a single stock for two years. A share price that falls by more than the tax saved leaves you worse off, and concentration in the same company that pays your salary is the risk being taken.
- The lookback is usually the real benefit — A plan that prices at a discount to the lower of the offering date price and the purchase date price can deliver an effective discount far above the headline figure when the stock has risen. This is the feature that makes participating worth doing even for someone who sells immediately.
- The discount is compensation, not capital gain — Even in a qualifying disposition, the discount portion is ordinary compensation income reported through the employer. Only the movement above that is capital gain. People who expect the whole profit at capital gains rates are surprised by the W-2 entry.
01 How the plan works
Money is deducted from pay across an offering period and used to buy company shares at the end of it, at a discount to the market price. Many plans include a lookback: the price is set against the lower of the value at the start of the period and the value on the purchase date.
That combination is what makes an ESPP unusual. With a rising share price, the lookback can produce an effective discount well above the stated percentage, and the gain exists the moment the shares are bought.
In a qualifying plan there is no tax at purchase. The employer issues a Form 3922 recording the details, which is the document you will need years later to compute the basis correctly.
Shows: the immediate value of the purchase discount over a year, measured as the market value of the shares acquired above what you paid for them. Ignores: any lookback provision that can make the discount much larger, tax on the discount, price movement between purchase and sale, and the concentration risk of holding.
Source: About Form 3922
02 What happens when you sell
The sale splits into two parts. Some of the gain is ordinary compensation income, added to your W-2 or reported on the return; the rest is capital gain measured from an adjusted basis.
Where the shares are sold more than two years after the offering date and more than one year after purchase, the disposition qualifies and the compensation portion is limited. Sell earlier and the whole discount at purchase becomes compensation income in the year of sale.
Basis reporting is a common source of error. Brokers frequently report only what you paid, not the compensation already included in income, which means the gain is overstated unless the basis is adjusted. Form 3922 is what supports the correction, and it is worth keeping with the tax records rather than the brokerage ones — the same discipline the rest of a taxable account requires.
Source: Publication 525
03 Sell or hold
Selling at purchase locks the discount and removes the concentration. The whole discount is compensation income, taxed at ordinary rates, and there is essentially no capital gain because no time has passed.
Holding to qualify reduces the compensation portion and converts more of the profit to long-term capital gain. It also means holding a single company's stock for two years, in a company that already provides your income and probably your health cover.
For most people the arithmetic favours selling. The tax saved by qualifying is a fraction of the discount; a twenty per cent fall in the share price is not. Where a household already holds a concentrated position from options or RSUs, the case for selling the ESPP shares immediately is stronger still.
Source: Topic 427: stock options
An ESPP with a lookback is one of the best-value benefits most people are offered and one of the least used, usually because the paperwork arrives once a year and gets filed. Participate to the limit you can afford, sell on purchase, and move the proceeds into whatever the rest of the portfolio needs. The discount is the point. The company stock is not the point, and holding it for tax reasons is how a good benefit turns into a concentrated position nobody chose.
FAQ
Do I pay tax when I buy ESPP shares?
In a qualifying plan, no. Nothing is taxed at purchase. The tax arrives when you sell, split between ordinary compensation income and capital gain depending on how long you held.
What are the ESPP holding periods?
More than two years from the offering date and more than one year from the purchase date. Meeting both makes it a qualifying disposition, which limits how much of the gain is taxed as compensation.
Should I sell ESPP shares straight away?
For most people, yes. Selling locks the discount and removes single-stock concentration. Holding for two years to improve the tax treatment risks more in share price than it saves in tax.
Sources
Regulator references
- About Form 3922 · Internal Revenue Service · 2026The statement an employer issues on a share transfer under an employee stock purchase plan.Last verified: 2026-09-07
- Publication 525 · Internal Revenue Service · 2026How the discount is taxed and how a qualifying disposition differs from a disqualifying one.Last verified: 2026-09-07
- Topic 427: stock options · Internal Revenue Service · 2026The statutory plan framework an employee stock purchase plan sits inside.Last verified: 2026-09-07
Calculator unit tests · the assertions this page's worked example is checked against, and their last result
Changelog
- 2026-09-07 — initial publish (new format)
Run this rule against your situation
See what this rule does to your own projection — month by month, to age 90.
Join the Waitlist