ESPP Calculator
See what your employee stock purchase plan is worth: the discount, the lookback, your return and the tax when you sell now or later
Your Plan
Plans often allow 1% to 15%
6 months is most common
Up to 15% in a qualified plan
First day of the offering
For a qualifying sale
Discount off the lower of the two prices
Your top federal rate, plus state if you like
0%, 15% or 20% federal
Gain on the purchase date
$2,058.82
41.2% on the $5,000.00 you put in · 117.647 shares bought at $42.50, 29.2% below the $60.00 market price
Shares bought
117.647
worth $7,058.82 on the purchase date
Purchase price
$42.50
15% off the lower of $50.00 and $60.00
Effective discount
29.2%
below the purchase-date price
$25,000 limit used
$5,882
this period, at the offering-date price
What your shares are worth
$7,058.82 on the purchase date
Sell now or hold?
After tax, selling at $60.00 right away or at $60.00 after a qualifying hold
Tax on Your Gain
| Sell Right Away | Hold for a Qualifying Sale | |
|---|---|---|
| Sale price | $60.00 | $60.00 |
| Gain | $2,058.82 | $2,058.82 |
| Taxed as wages | $2,058.82 | $882.35 |
| Taxed as a capital gain | $0.00 | $1,176.47 |
| Tax | $494.12 | $388.24 |
| You keep | $1,564.71 | $1,670.59 |
A qualifying sale comes at least 2 years after the offering date and 1 year after the purchase. Selling earlier is a disqualifying sale: the whole discount at purchase is taxed as wages. Uses your rates as flat rates.
How an ESPP Works
An employee stock purchase plan sets aside part of your pay each period and buys company stock at a discount, up to 15% in a qualified plan. With a lookback, the discount applies to the lower of the price at the start of the offering and on the purchase date, so a rising price adds to your gain. Selling right away locks in that gain; holding longer can lower the tax but leaves you exposed to the stock.
The Formulas
Purchase price = (1 − discount) × lower of the two prices
Shares = contributions ÷ purchase price
Qualifying sale: wages = lesser of the gain and discount × offering price
Tax rules follow IRS Publication 525. Your broker reports the details on Form 3922; any extra gain or loss is a capital gain or loss.
ESPP Tips
- •A 15% discount is an instant 17.6% return on what you contribute
- •Many people sell right away to avoid holding too much of their employer's stock
- •Holding for a qualifying sale only pays off if the price doesn't fall
- •Keep Form 3922 and check your cost basis; brokers often report it too low
- •Purchases are capped at $25,000 of stock a year at the offering-date price
Frequently Asked Questions
Related Calculators
Related Articles
More articles in Stocks & Options →- Step-by-step guideHow an ESPP Works: Discounts, Lookbacks and TaxesLearn how employee stock purchase plans work, what the discount and lookback are worth, how ESPP shares are taxed and whether to sell right away or hold.
- Capital Gains Tax: 2026 and 2027 Rates and How to Calculate ItLearn how short- and long-term capital gains are taxed, the 2026 and 2027 brackets, the 3.8% net investment income tax and how losses lower the bill.
- How to Calculate Stock Profit, Return and Break-Even PriceWork out the profit and return on a stock trade including commissions and dividends, the yearly return, and the price you need to break even.
- How Much Will My 401(k) Be Worth at Retirement?Project your 401(k) balance from your contributions, the employer match and investment growth, and see why the match and an early start matter so much.