An Employee Stock Purchase Plan (ESPP) is one of the most underrated benefits a company can offer. Through after-tax payroll deductions, you build up money over an offering period and then buy your employer's stock at a discount — often 15% below the market price. This calculator turns those four numbers into a clear picture of your discounted purchase price, how many shares you get, the instant discount gain on the purchase date, and your total profit when you eventually sell.
Slide the inputs and every figure updates instantly. Because an ESPP is a planned purchase repeated every six months or so, a small change in the discount or the sale price compounds into thousands of dollars over a few years.
How to Use
- Enter the Stock Price at Offering — the fair market value of one share on the first day of the offering period. If your plan has a true lookback, this grant-date price is the lower of the two prices your discount is applied to.
- Set your ESPP Discount. Most qualified Section 423 plans discount the offering-date price by up to 15%. If your plan uses a different rate, type it in; the slider tops out at the IRS maximum of 15%.
- Type your Contribution per Offering Period — the total after-tax money you deferred from your paychecks during this purchase window. Many plans cap employee contributions at $25,000 worth of stock per calendar year under Section 423 rules.
- Enter the Stock Price at Sale — the price per share when you expect to sell. Use a conservative estimate to stress-test, then nudge it up to model the upside.
The result card then shows your discounted purchase price, the number of shares that contribution buys, the market value on the purchase date, the instant discount gain you locked in, and — the headline number — your total gain at the projected sale price.
The ESPP Math
Three formulas drive the whole calculation:
- Purchase price = market price × (1 − discount). On a $100 share with a 15% discount, you buy at $85.
- Shares bought = your contribution ÷ purchase price. Investing $5,000 at $85 a share buys about 58.8 shares.
- Gain at sale = (sale price − purchase price) × shares. If those shares are worth $130 when you sell, your gain is ($130 − $85) × 58.8 ≈ $2,647.
Notice that the discount is locked in the moment the shares are purchased, not when you sell. Even if the stock never moves at all, buying at $85 and holding at a $100 market price already gives you a 17.6% instant gain — which is why financial planners often suggest selling ESPP shares immediately after purchase to de-risk, rather than concentrating wealth in a single employer.
A qualified Section 423 plan adds a lookback twist: the 15% discount can be applied to the lower of the offering-date price and the purchase-date price. This simplified calculator uses the offering-date market price as the reference, so it is a clean, conservative estimate of your own plan.
Why the Discount Is Almost Free Money
The beauty of an ESPP is the asymmetry of the discount. At a 15% discount, the stock can fall 15% from the offering price and you still break even on the shares you bought. Add a lookback and that cushion widens further. That is why, for most employees, contributing at least enough to capture the full discount is one of the highest-return moves available — it is effectively a guaranteed ~15% return over a six-month period, before any market movement.
The trade-off is concentration risk. Every ESPP share is another bet on the same company that already pays your salary. A common rule of thumb is to keep company stock to no more than 10–15% of your investable net worth, and to sell ESPP shares regularly rather than letting them pile up.
Examples
Example 1 — The standard 15% plan. A tech employee contributes $5,000 over a six-month offering period when the stock is $100. The discounted purchase price is $85, buying 58.8 shares. If the stock is $130 on sale day, those shares fetch about $7,647 — a total gain of roughly $2,647, of which $882 was locked in the instant the discount was applied.
Example 2 — Zero discount (your baseline). If your plan offered no discount at all (discount = 0%), the same $5,000 buys 50 shares at $100. Selling at $130 earns exactly $1,500 — pure market appreciation with no bargain element. Comparing this number to Example 1 shows precisely what the 15% discount is worth to you.
Example 3 — The large-cap saver. An executive maxes out at a $1,000,000 contribution on a $100 stock with a 15% discount. The purchase price is $85, buying about 11,765 shares. At a $130 sale price, the instant discount gain is about $176,471 and the total gain at sale is roughly $529,412 — illustrating why high earners treat the ESPP as a core part of their equity compensation.
Example 4 — Holding flat. With a $100 stock, 15% discount, and $8,500 contribution, you buy 100 shares at $85. Even if you sell at the same $100 offering price, the discount alone gives you $1,500 of profit. The discount is yours to keep regardless of what the market does.
FAQ
How is my ESPP purchase price calculated?
Your purchase price is the offering-date market price multiplied by one minus the discount. On a $100 share with a 15% discount, you buy at $100 × 0.85 = $85 per share. Qualified Section 423 plans can apply that 15% discount to the lower of the offering-date or purchase-date price, which is the lookback benefit.
How many shares will my contribution buy?
Divide your total after-tax contribution by your discounted purchase price. A $5,000 contribution at an $85 purchase price buys 5000 ÷ 85 ≈ 58.8 shares. Because most plans let you defer whole dollars, fractional shares are typically settled in cash at purchase.
What is the maximum ESPP discount allowed?
Under IRS Section 423, a qualified ESPP may discount the stock by no more than 15% of the offering-date (or purchase-date) price. Non-qualified plans can offer different terms, but 15% is the standard and the cap this calculator models.
Is ESPP income taxed when I buy or when I sell?
With a qualified plan, no tax is due at purchase. Tax is triggered when you sell. Part of the gain — based on the discount and any price appreciation up to the qualifying disposition — is usually taxed as ordinary income, and the rest as capital gain. Whether it is short-term or long-term depends on how long you held the shares after purchase.
What is a qualifying vs. disqualifying disposition?
A qualifying disposition means you held the shares at least two years from the offering date and at least one year from the purchase date. Only then do you get favorable long-term capital-gains treatment on most of the gain. Sell earlier and a larger portion is taxed as ordinary compensation income.
Should I sell my ESPP shares immediately?
Selling right after purchase locks in the guaranteed ~15% discount and removes single-stock concentration risk, which is why many advisors recommend it. Holding longer lets you capture market upside — but it also doubles down on your employer. Treat the discount as your guaranteed return, and decide separately how much extra market risk you want.
What happens if the stock drops below my purchase price?
Because you bought at a 15% discount, the stock can fall 15% from the offering price before you are underwater. With a lookback, that cushion is even wider. If it does drop, holding and waiting for a recovery is an option, but remember the discount advantage you already gave up by not selling at purchase.
Disclaimer
This ESPP calculator is provided for informational purposes only and does not constitute financial, tax, investment, or legal advice. Estimates are based on the inputs you enter and the standard discount model; actual plan terms, lookback mechanics, contribution caps, withholding, and tax treatment vary by employer, jurisdiction, and holding period. Always confirm your plan documents and consult a qualified tax or financial professional before making ESPP decisions.