Capital Gains on ESPP Shares
Capital gains on ESPP shares are subject to special rules: depending on whether you hold long enough and sell at the right time, the same profit might be taxed as ordinary income or as a long-term capital gain. The IRS distinguishes between qualifying and disqualifying dispositions, and that choice alone can swing your tax bill by 20 percentage points or more.
How ESPP Plans Create Dual Tax Treatment
An ESPP (Employee Stock Purchase Plan) lets you buy company stock at a discount, typically 10–15% below market. The moment you exercise—buy shares at that discount—you owe tax. But the amount and type of tax hinges entirely on when you sell.
Unlike stock options, where the spread at grant is often subject to immediate tax, ESPP income is deferred and split: the discount itself is ordinary income the moment you sell; the appreciation after purchase may qualify for long-term capital gain treatment if you meet the holding requirements. This two-part treatment is what makes ESPP tax strategy tractable.
The One-Year and Two-Year Rules
To lock in long-term capital gain rates on ESPP shares, you must satisfy both conditions:
- Hold for ≥1 year from the purchase date (the date the ESPP exercise settled).
- Hold for ≥2 years from the grant date (or the start of the ESPP offering period, depending on plan rules).
If you sell before either threshold, the disposition is disqualifying, and the entire gain—including appreciation above the purchase price—is taxed as ordinary income at your marginal rate.
In practice, the two-year rule is usually the binding constraint. If your plan grants shares on January 1 and lets you exercise after six months (July 1), you cannot sell before January 1 of the next year without triggering ordinary income treatment on the full gain. That means you must wait 18 months from purchase, or 24 months from grant—whichever is longer.
Qualifying Disposition: The Favorable Split
If you hold long enough to achieve a qualifying disposition, the tax is split:
- Ordinary income: 15% of the fair market value (FMV) at purchase date, or the actual discount you received, whichever is less. This is income you owe tax on immediately when you sell.
- Long-term capital gain: Any appreciation from purchase price to sale price, minus the ordinary income component already taxed.
Example: You buy 100 shares at $80 via ESPP (25% discount from the $107 market price at purchase). You hold until the one-year and two-year thresholds are met, then sell at $150.
- Ordinary income = min(15% × $107, $27 discount) = $16.05 per share × 100 = $1,605
- Long-term capital gain = ($150 − $80 − $16.05) × 100 = $3,395
You pay ordinary income tax on $1,605 and long-term capital gains tax on $3,395. If you’re in the 35% bracket and qualify for the 15% long-term rate, you owe roughly $562 + $509 = $1,071 total tax, not $1,400 (which is 35% of the $4,000 gain). The savings come from the long-term rate on most of the appreciation.
Disqualifying Disposition: All Ordinary Income
Sell before you meet both time requirements, and the entire gain—purchase price to sale price—is ordinary income. The appreciation is no longer treated as capital gain.
Using the same example: you sell at $150 after only nine months.
- Ordinary income = $70 per share × 100 = $7,000
- Tax owed ≈ $2,450 (at 35% marginal rate)
versus $1,071 in the qualifying case. The difference is $1,379—the 20-point tax-rate differential on $6,895 of gains.
Common Edge Cases
Sell at a loss within the holding period. If you buy at $80 and sell at $75 before the holding period is met, you have a disqualifying disposition. You still owe ordinary income tax on the discount (the $27 per share or 15% of FMV rule), and you can claim a capital loss only on the portion above purchase price—here, none, since you sold below purchase. This is one of ESPP’s pitfalls: you pay tax on the discount even if the stock falls.
Sell within one year but after two years from grant. A few ESPP plans have staggered grant and offering dates. If the two-year rule is already met but the one-year purchase rule is not, the disposition is still disqualifying. Both conditions must be satisfied simultaneously for qualifying treatment.
Exercise and immediate sale. Some plans allow cash settlement or immediate sales. If you exercise and sell on the same day, you have a disqualifying disposition, and the gain is entirely ordinary income. For plans with automatic dividend reinvestment, the reinvested shares may have a separate holding period clock.
Planning and Timing Decisions
The binary choice—hold to qualify or sell early—creates a simple decision rule:
- If the stock is up significantly and you can afford to wait, holding to the one-year and two-year thresholds is nearly always optimal. The tax savings often exceed 20%.
- If the stock has fallen or you need cash, selling incurs ordinary income tax on the discount, but you avoid further downside. The loss on appreciation above purchase price cannot be claimed against the ordinary income.
- If you expect a major price spike just before the holding period is met, selling right at the threshold captures it at long-term rates.
See also
Closely related
- Long-term capital gain tax — Rates and brackets for gains held over one year
- Short-term vs long-term capital gains: The one-year holding period — Exact day-count rules and common mistakes
- Qualified dividend — ESPP dividends may also qualify for preferential rates if held long enough
- Tax-loss harvesting strategy — Offsetting ESPP losses against other gains
Wider context
- Cost basis — How the purchase price and discount are recorded
- Ordinary income vs capital gains — The two tax rates and their brackets
- Form 8949 — Where to report ESPP sales
- Incentive stock options — A related equity compensation plan with its own holding rules