ESPP taxation works backward from what most employees expect. The money for your Employee Stock Purchase Plan comes out of every paycheck as an after-tax deduction, nothing is taxed when the shares are bought, and the tax bill arrives a year or more later when you sell. Because no one withholds tax at that point, the first time you see the cost may be a balance due on your return.
Here is the short version. Your plan buys shares at a discount of up to 15%. When you sell, part of your profit (the discount) may be taxed as ordinary income at your regular rate, and the rest is a capital gain or loss. How much lands in each bucket depends on how long you held the shares. Sell after both holding clocks have run and you have a qualifying disposition, which usually shrinks the ordinary income piece. Sell sooner and it is a disqualifying disposition, and the full discount at purchase is ordinary income.
The rest of this guide walks through each step, with one worked example you can follow line by line. This is general information, not tax advice, and plan terms vary, so check your own plan documents.
What an ESPP does to your paycheck
You choose a contribution amount, and your employer deducts it from each paycheck during an offering period. Those contributions are after-tax payroll deductions. They do not reduce your federal taxable wages the way a traditional 401(k) deferral does, so your income tax and payroll tax withholding stay calculated on your full pay while your take-home pay drops by the ESPP amount. If you are unsure how the two kinds of deductions differ, see our guide to pre-tax vs post-tax deductions.
On your stub, the ESPP line usually sits among the post-tax deductions. Our walkthrough on how to read your pay stub shows where to find it. The key point is that you have already paid tax on this money. The tax question comes later, and it concerns only the profit.
No tax when shares are bought
At the end of each offering or purchase period, the plan uses your saved contributions to buy shares. Under the Internal Revenue Code (section 421(a)), no income results at the time the share is transferred to you. Even if the stock is worth far more than you paid, you do not report that gain on the purchase date and no tax is withheld from your pay for it. That timing is the core of ESPP taxation: the tax is deferred until you sell.
The discount, the lookback, and the $25,000 limit
A qualified plan under section 423 can set the purchase price as low as 85% of the stock’s fair market value, which is a maximum 15% discount. The plan decides which date sets the price: the grant (offering start) date, the purchase (exercise) date, or whichever of the two is lower. Plans that compare both dates are commonly called lookback plans, and they can lock in a lower price if the stock rises during the offering period.
There is also a cap. Your right to buy stock cannot accrue at a rate above $25,000 of stock value per calendar year, measured at fair market value on the grant date.
The two holding clocks
Two dates drive everything that follows:
- The grant date (the offering date, when the option was granted).
- The purchase date (when the shares were transferred to you).
A sale is a qualifying disposition only if you sell after the later of two dates: 2 years after the grant date, and 1 year after the purchase date. Because the grant date comes first, the 2-year clock is usually the one that matters. Any sale before both clocks have run is a disqualifying disposition.
ESPP qualifying disposition vs disqualifying disposition
When you sell, your profit is split between ordinary income (taxed like wages, at your regular income tax rate) and capital gain. The split is what changes.
Qualifying disposition
For an ESPP qualifying disposition, your ordinary income is the lesser of two amounts:
- The sale price minus the price you paid, or
- The fair market value at the grant date minus the option price. If the option price was not fixed at grant, this is computed as if the option had been exercised at grant.
That ordinary income is compensation, not capital gain. Your basis in the shares goes up by the amount you include as income, and the rest of the profit is a long-term capital gain. If you sell at or below what you paid, the ordinary income is zero, and any shortfall is a capital loss.
Disqualifying disposition
For an ESPP disqualifying disposition, the ordinary income is the full spread at purchase: the fair market value on the purchase date minus the purchase price. It is reported in the year you sell, not the year you bought. Your basis becomes the purchase price plus that income, and whatever gain or loss remains is capital. If you held the shares one year or less since purchase, it is short-term. If you held them longer than that, it is long-term.
One detail catches people off guard. The ordinary income from a disqualifying sale is owed even if you sell at a loss. In that case the loss shows up as a capital loss, not as an offset to the ordinary income.
A worked ESPP taxation example
Take a lookback plan with a 15% discount. The stock is $40 on the offering (grant) date and $50 on the purchase date. The purchase price is 85% of $40, or $34 per share. Payroll deductions of $6,800 buy 200 shares. The spread at purchase is $16 per share ($50 minus $34), or $3,200 in total.
| Scenario | Sale price | Ordinary income | Cost basis | Capital gain or loss |
|---|---|---|---|---|
| A: disqualifying sale, within a year of purchase | $55 | $3,200 ($16 per share) | $10,000 ($50 per share) | $1,000 short-term gain ($5 per share) |
| B: qualifying sale | $55 | $1,200 ($6 per share) | $8,000 ($40 per share) | $3,000 long-term gain ($15 per share) |
| C: disqualifying sale, within a year of purchase | $45 | $3,200 ($16 per share) | $10,000 ($50 per share) | $1,000 capital loss ($5 per share) |
In Scenario B, the ordinary income is the lesser of $21 per share (the $55 sale price minus the $34 you paid) and $6 per share (15% of the $40 grant-date price). The lesser amount is $6, so the ordinary income is $1,200. Adding that to your $34 purchase price gives a basis of $40 per share.
Compare A and B. Your total profit is $4,200 in both. In A it splits into $3,200 of ordinary income and a $1,000 short-term gain. In B it splits into $1,200 of ordinary income and a $3,000 long-term gain. Only the split changes. Ordinary income is taxed at your regular income tax rate, while a long-term gain is taxed at capital gains rates, which is why waiting often helps. For how your top rate differs from your overall rate, see marginal vs effective tax rate.
Scenario C shows the harsh case. The stock falls to $45 after you buy, and you sell within the first year. The sale brought in $9,000 against $6,800 of contributions, a $2,200 gain in cash, yet you still report the full $3,200 of ordinary income. The $1,000 capital loss is reported separately and does not erase it.
The Form 1099-B cost basis trap
This is the most common and most expensive ESPP mistake. For options granted after 2013, the basis your broker reports on Form 1099-B does not include the amount you included in income. The 1099-B will usually show your basis as what you paid, which is $6,800 ($34 per share) in our example.
If you enter that figure as is, you are taxed twice on the discount. Take Scenario A. Sale proceeds are $11,000. Against a $6,800 basis, the gain looks like $4,200. But you already reported $3,200 as wages, so the real capital gain is $1,000 against the correct $10,000 basis. Using the 1099-B number would report a $4,200 capital gain on top of the $3,200 of wages and overstate your income by $3,200.
The fix is to increase the basis yourself and report the correction on Form 8949 with adjustment code B, as the Form 8949 instructions explain.
Form 3922 and the paperwork to keep
Form 3922 is the statement your employer issues when ESPP shares are transferred to you. It shows the dates and values you need to track the holding periods and figure basis. Hold on to every copy. When you sell, Form 3922 is how you prove which clock applies and what the grant-date and purchase-date values were. Your 1099-B will not show those details.
Where the ordinary income gets reported
For a qualifying sale, the IRS says your employer should report the ordinary income as wages in box 1 of your Form W-2. If it does not, you report it yourself. For a disqualifying sale, the ordinary income must be reported for the year of sale. Check whether the box 1 amount on your W-2 already includes it before adding it on your own, or you will count it twice.
Why there is no withholding, and what to do about it
The tax code says no amount is required to be withheld on this income (sections 421(b) and 423(c)). ESPP purchase and sale income is also excluded from Social Security and Medicare wages under section 3121(a)(22), so FICA does not apply to it either. The result is that the tax is settled on your return, and a large sale with no planning can produce a balance due.
This is the opposite of restricted stock units. RSUs are taxed as wages when they vest, with withholding taken at that time, and even then people can fall short. Our article on the RSU withholding shortfall explains that case. With an ESPP, there is no withholding at all, so the gap can be larger.
You have two practical ways to cover it:
- Raise your paycheck withholding. Enter an extra dollar amount per pay period in Step 4(c) of Form W-4. Withholding taken from wages is treated as if spread evenly across the year, which makes it a forgiving way to catch up late in the year. Our guide on how to fill out a W-4 shows where that line is.
- Make estimated tax payments. If you sell a large block, you can send in quarterly payments directly. See who needs to pay estimated taxes quarterly for how that works.
Either route helps you avoid surprises. If you owe too much at filing time and did not pay enough during the year, you could face a penalty. Read how the underpayment penalty works before you decide how much to set aside.
Common questions
How are ESPP shares taxed?
There is no tax when the shares are bought. Tax arises when you sell. Part of your profit is ordinary income, taxed at your regular rate, and the rest is a capital gain or loss. How the profit splits depends on whether the sale is a qualifying or disqualifying disposition.
What is an ESPP qualifying disposition?
It is a sale made after the later of 2 years from the grant date and 1 year from the purchase date. The ordinary income is limited to the lesser of your actual profit per share or the grant-date discount, and the remainder is a long-term capital gain.
What is an ESPP disqualifying disposition?
It is any sale made before both holding periods have run. The full spread at purchase, which is the market value on the purchase date minus your purchase price, becomes ordinary income in the year of sale. Any remaining gain or loss is capital, short-term or long-term depending on how long you held the shares after purchase.
Is tax withheld when I sell ESPP shares?
No. The tax code does not require withholding on ESPP income, and it is also excluded from Social Security and Medicare wages. You settle the tax on your return, so consider extra withholding through Form W-4 Step 4(c) or estimated tax payments to avoid a balance due.
Why does my Form 1099-B show the wrong cost basis?
For options granted after 2013, the broker reports the price you paid and does not add the ordinary income you included in wages. You must increase the basis yourself and report the correction on Form 8949 with adjustment code B. Otherwise the discount is taxed twice.

Leave a Reply