Qualifying and disqualifying ESPP sales
A sale of shares from a tax-qualified employee stock purchase plan is qualifying when it happens more than two years after the offering date and more than one year after the purchase date, and disqualifying otherwise. The labels describe timing. They don't mean one sale is better. Both paths split the proceeds between ordinary income and capital gain, they just split it differently, and which produces the smaller total depends on what the share price did. Your plan document governs. Educational only.
How an ESPP works
Payroll deductions accumulate over an offering period and are used to buy company stock, commonly at a discount. Many plans also price the purchase using a lookback, which compares the price at the start of the offering with the price on the purchase date and applies the discount to the lower one.
That combination is why an ESPP purchase price is frequently well below the market price that day, and it is the reason the tax treatment is more involved than for an ordinary share purchase.
Plans differ on all the main terms: the discount, whether there is a lookback, the offering length, and the contribution limit. Two people describing "my ESPP" are often describing different instruments. The plan document is the only authority for yours.
The two holding period tests
A qualifying disposition requires both of the following to be satisfied.
- More than two years from the offering date, sometimes called the grant date of the offering.
- More than one year from the purchase date.
Miss either and the sale is disqualifying. Because the offering date can precede the purchase date by six months or more, the two-year test is often the binding one, and a share held thirteen months can still be disqualifying.
Holding period requirements for statutory stock purchase plans: IRS Publication 525, Taxable and Nontaxable Income, and Internal Revenue Code section 423. Your plan document governs its own dates.
How each path splits the sale
Both paths report some ordinary income and some capital gain. The difference is how the ordinary income piece is measured.
| Disqualifying | Qualifying | |
|---|---|---|
| Ordinary income | The discount measured at purchase: market price on the purchase date minus what you paid | The lesser of the discount measured at the offering date, or the actual gain on the sale |
| Capital gain or loss | Sale price minus (what you paid plus the ordinary income recognized) | Sale price minus (what you paid plus the ordinary income recognized) |
| Holding period for that gain | Measured from the purchase date, frequently short-term | Long-term by construction, since more than a year has passed |
One detail in the qualifying calculation: the ordinary income piece is capped by the actual gain. If the shares fell, the ordinary income can be smaller than the discount you received, and in a loss it can be nothing.
Why the qualifying path is not automatically cheaper
The name 'qualifying' suggests it is always the cheaper sale. That is not always true.
Start with the ordinary income piece. The qualifying path measures it against the offering-date price and caps it at the actual gain on the sale. The disqualifying path measures it at the purchase date. When the price rose over the offering period, the offering-date measure is the smaller of the two, so a qualifying sale reports less ordinary income and more capital gain. When the price fell between the offering date and the purchase date and then recovered before the sale, the offering-date measure can be the larger one.
The capital gain piece follows its own rules. A qualifying sale is long-term by construction. A disqualifying sale is measured from the purchase date and is frequently short-term, taxed at ordinary rates. A long-term gain can also be subject to the net investment income tax above statutory thresholds, and that tax does not reach the ordinary income piece.
The two paths therefore move several figures at once, and which way each one moves depends on the discount, whether the plan has a lookback, the price path, and your own rates. What holds for everyone: you can calculate the difference from your own plan terms and prices. Waiting also keeps you exposed to the share price, which the tax figures do not show.
What to keep
Every figure the calculation needs is recorded at the time and difficult to reconstruct later.
- The offering date for each period, and the market price that day.
- The purchase date, the price you paid, and the market price that day.
- The number of shares from each purchase, kept lot by lot.
Brokers commonly report a basis that excludes the ordinary income element, which produces the same double-counting problem described on the cost basis page.
Questions people ask
Is a qualifying disposition better?
Not as a general rule. The two paths compute ordinary income differently, and which produces a smaller total depends on your plan terms and what the price did. The names refer to when you sold, not to which sale is cheaper.
How do I know my offering date?
Your plan documents and your broker's plan records carry it for each offering period. It is frequently six months or more before the purchase date, which is why the two-year test often binds later than people expect.
What if I sell at a loss?
In a qualifying sale the ordinary income piece is limited by the actual gain, so a sale below your purchase price can produce no ordinary income at all, with the loss treated as a capital loss. A disqualifying sale still recognizes ordinary income measured at the purchase date even if the shares subsequently fell.
Does the discount get taxed twice?
It should not. The ordinary income recognized is added to your basis, so the capital gain calculation is measured net of it. Whether your broker reported it that way is the thing to check.
Does my plan have a lookback?
Some do and some do not, and it changes the purchase price materially. The modeler on this site treats the pricing rule as a required plan term rather than assuming one, because assuming a lookback where none exists produces a wrong purchase price silently.
Try it with your own numbers
The modeler maps ESPP purchase lots and RSU vests onto one calendar, using the plan terms you enter.
Free to use, and your figures stay in your browser.
Your plan document defines both paths. It won't tell you which fits the rest of your finances.