ESPP calculator
Calculate your employee stock purchase plan discount, shares and tax split by disposition type.
How an ESPP works
An employee stock purchase plan (ESPP) lets you set aside payroll money to buy company stock at a discount, usually 15%. The best plans add a lookback: you buy at a discount off the lower of the price at the start of the offering period or the price on the purchase date. That combination can produce a large, near-guaranteed gain the moment shares are purchased - which is why a qualified ESPP is often the first benefit financial planners tell employees to max out.
The math behind your purchase
This ESPP calculator works out the three numbers that matter:
- Price you actually pay = (lower of offering or purchase price) × (1 − discount).
- Shares bought = your contribution ÷ that price.
- Built-in gain = the purchase-date value minus what you paid.
Worked example
Suppose the offering price was $20, the price on purchase day is $25, your discount is 15%, you contributed $10,000, and the plan has a lookback:
- Price paid: lower price ($20) × 0.85 = $17 per share
- Shares: $10,000 ÷ $17 = 588 shares
- Value at purchase: 588 × $25 = $14,700
- Built-in discount: $14,700 − $9,996 = $4,704
You just turned $10,000 into about $14,700 of stock - before any market movement.
Qualifying vs disqualifying dispositions
How you are taxed depends on how long you hold. The split decides how much of your gain is ordinary income (taxed at your marginal rate) versus a capital gain (taxed lower if long-term):
- A disqualifying disposition (sold before meeting the holding periods) treats the entire purchase-date discount as ordinary income. In the example, the full $4,704 is ordinary income, and any further gain to your sale price is a separate capital gain.
- A qualifying disposition (held >2 years from offering and >1 year from purchase) treats only the smaller offering-date discount as ordinary income. Selling the same shares at $30 makes just $1,764 ordinary income (15% of the $20 offering price × 588 shares) and the remaining $5,880 a long-term capital gain.
Sell at purchase or hold?
This is the core ESPP decision:
- Sell at purchase to lock in the discount with zero market risk. Most advisors favor this because you are otherwise holding concentrated employer stock.
- Hold for a qualifying disposition to shift part of the gain to the lower long-term rate - but you take a year-plus of single-stock risk to get there, which can wipe out the tax savings if the stock drops.
Common mistakes
- Not enrolling at all - a 15% lookback discount is hard to beat anywhere else.
- Holding the whole position for taxes and ending up over-concentrated in one stock.
- Reporting a wrong cost basis on the 1099-B and paying tax twice on the discount already taxed as income.
ESPP gains interact with the rest of your equity. To see the tax on the rest of your compensation, use the RSU tax calculator; for the capital-gains side of a later sale, see the capital gains tax calculator.
Frequently asked questions
- What is an ESPP lookback?
- A lookback lets you buy at a discount off the lower of the price at the start of the offering period or the price on the purchase date. Combined with the discount, it can make an ESPP one of the highest guaranteed returns available to employees.
- When is my ESPP discount taxed?
- The discount is always ordinary income. In a disqualifying disposition (sold before the holding periods), the full discount at purchase is ordinary income. In a qualifying disposition, only the smaller offering-date discount is ordinary income and the rest is a long-term capital gain.
- Should I sell ESPP shares immediately?
- Selling at purchase locks in the discount with no market risk, which many people prefer. Holding for a qualifying disposition can lower the tax rate on part of the gain but adds the risk of holding concentrated employer stock.
- How much can I contribute to an ESPP?
- The IRS caps qualified ESPP purchases at $25,000 of stock value per year (measured at the offering-date price), and most plans let you contribute 1-15% of pay toward it.
Last reviewed January 2026. This calculator provides general educational estimates based on the inputs you enter and simplified assumptions. It is not financial, tax, legal or investment advice, and figures may differ from your actual liability. Verify with a licensed CPA or financial advisor before acting.