Employee Stock Purchase Gain Calculator
Enter your ESPP contribution, discount and prices to see shares bought, total proceeds and your dollar profit at sale.
How it works
Purchase price = market · (1 − discount) · Shares = contribution ÷ purchase price · Profit = shares · sell price − contribution
Your payroll contributions buy shares at the discounted price, so the number of shares depends on the discounted cost, not the market price. Even if you sell at exactly the market price you paid against, the discount alone is pure profit because you bought below market. Selling higher or lower than the purchase-date price simply adds price movement on top of that guaranteed discount.
Worked example
A $5,000 contribution with a 15% discount and a $50 market price buys at $42.50, giving about 117 shares. Sell at $50 and proceeds are $5,882 — an $882 profit, a 17.6% return, with the discount alone worth about $882.
Frequently asked questions
What if I sell at the same price I bought against?
You still profit by the amount of the discount. Buying at $42.50 and selling at the $50 reference price is a 17.6% gain on your contribution — the whole point of an ESPP is that the discount is money you keep regardless of price moves.
How is the profit taxed?
It depends on how long you hold. A quick sale (disqualifying disposition) taxes the discount as ordinary income; holding past the required periods (a qualifying disposition) can tax part of the gain at lower long-term capital-gains rates. Run your specifics with a tax professional.
Does this include the lookback?
No — this calculator uses a single market price at purchase. If your plan has a lookback that references a lower earlier price, use the ESPP discount return calculator, which handles the lower-of-two-prices rule.
Related calculators
Educational estimate, not investment or tax advice.