ESPP tax calculator
Sell your ESPP shares now or hold them for a qualifying sale? Compare the federal tax and what you keep each way, with the lookback, the ordinary income rules and capital gains, for 2026 or 2027.
- Have your ESPP purchase confirmation from your equity plan portal or Form 3922, showing shares, purchase price and the offering and purchase dates.
- The sale price and the gap between the offering and purchase values move the answer most.
- Read the headline as how much more, or less, you would keep after federal tax by holding for a qualifying sale.
- Use Email Me My Report to get a PDF you can share with your CPA.
Not sure what to enter? Point at any box, or tap its , for where to find the number and who to ask.
- Your purchase price per share
- ·
- Taxed as pay: sell now / qualifying
- ·
- Federal tax if you sell now
- ·
- Federal tax with a qualifying sale
- ·
- After tax if you sell now
- ·
- After tax with a qualifying sale
- ·
- Holding stops paying below
- ·
Point at any line to see what it means.

Your report explains what these numbers mean for you
How is ESPP stock taxed when you sell?
You pay nothing when you buy. When you sell before the holding periods are met, the discount at purchase is taxed as pay and the rest is capital gain or loss. When you hold for a qualifying sale, more than two years after the grant date (usually the first day of the offering) and more than one year after purchase, only the smaller of the grant-date discount or your actual gain is taxed as pay, and the rest is long-term capital gain.
How the gain is split
| Sale | Taxed as pay | The rest |
|---|---|---|
| Disqualifying (sell now) | Purchase-date value less your price, even at a loss | Capital gain or loss |
| Qualifying (hold) | Lesser of the grant-date discount or your gain | Long-term capital gain |
From IRS Publication 525. The holding periods for a qualifying sale run more than two years from the grant date, usually the first day of the offering, and more than one year from the purchase date.
A worked example at the default inputs
The calculator opens on 2026, married filing jointly, with 500 shares bought under a 15% discount and a lookback: the stock was $40 at the start of the offering and $50 on the purchase date, so the price is $34 a share. Other income is $250,000.
Sold now at $55, $8,000 is taxed as pay and $2,500 is short-term gain: $2,615 of federal tax. Held for a qualifying sale at the same price, only $3,000 is taxed as pay and $7,500 is long-term gain: $2,130.
Holding keeps $485 more, if the price holds. If the shares fall below $53.81 while you wait, from $55 today, selling now would have kept more.
What this is actually calculating.
Under a qualified (section 423) plan you buy shares at a discount, often off the lower of the price at the start of the offering and on the purchase date. You owe nothing when you buy. The tax comes when you sell, and how much of the gain is taxed as pay depends on how long you held the shares.
This works out both choices at the same sale price and in the same tax year: selling now, before the holding periods are met, and holding for a qualifying sale, more than two years after the grant date (usually the first day of the offering) and more than one year after purchase. It figures federal income tax on each, with capital gains at 0%, 15% or 20% and the 3.8% net investment income tax, and shows what you keep.
The parts that decide the answer.
Selling now (a disqualifying sale)
The discount you received at purchase, the value on the purchase date less the price you paid, is taxed as pay even if you sell at a loss. Anything above the purchase-date value is capital gain, short-term unless you held the shares more than a year; anything below it is a capital loss.
Holding for a qualifying sale
Only the smaller of two amounts is taxed as pay: the discount figured on the grant-date value, or your actual gain. The rest is long-term capital gain. If you sell at a loss, none of it is taxed as pay. If the price fell during the offering, that grant-date discount can be larger than the discount you actually received.
The price can move while you wait
The comparison uses the same sale price both ways and leaves out what money from selling now could earn while you wait. Holding means waiting, and a fall in the share price can easily outweigh the tax saved. Concentration in your employer's stock is the bigger risk for most people.
What this leaves out
State tax, other capital gains and losses you have this year, qualified dividends, credits and the alternative minimum tax. No Social Security, Medicare or federal income tax is withheld on ESPP income; on a large sale, an estimated payment or extra withholding avoids an underpayment penalty. Form 1099-B shows only the price you paid (for options granted after 2013), so add the part taxed as pay to your basis on Form 8949.
Before you rely on it.
Is the ESPP discount taxed twice?
It should not be. The part taxed as pay is added to your cost basis, so it is not taxed again as capital gain. Form 1099-B shows only the price you paid (for options granted after 2013), so adjust the basis on Form 8949.
Should I sell ESPP shares right away?
Often, yes. Selling right away locks in the discount and limits how much of your wealth rides on one company, usually at a modest tax cost compared with a qualifying sale. Holding pays off only if the price holds up while you wait.
Does ESPP income have Social Security or Medicare tax?
No. Income from a qualified section 423 plan is not subject to Social Security or Medicare tax, and no federal income tax is withheld on it. Set aside what you owe, and on a large sale make an estimated payment or raise your withholding to avoid an underpayment penalty.
Get your full report
A branded summary of the figures you entered, what they mean, and the assumptions behind them.
Downloaded. A copy is on its way to your inbox.
A number is a starting point, not a plan. The next step is a conversation about what it means for yours.
Book a Free CallA complimentary 30-minute call. No cost, no obligation, and nothing to prepare.


