ESPP calculator
What an employee stock purchase plan is actually worth — once the lookback, the $25,000 cap, and the way the discount is taxed are all in the math.
Return on the cash you contributed
—
Enter your numbers above.
The $25,000 cap is measured on the grant-date price, before the discount.
How the math works
An ESPP has two moving parts: the price you pay and the price the stock is worth when you buy it. The gap between them is the whole return. The discount sets a floor under that gap, and a lookback can widen it.
The price you pay per share is the discount applied to a reference price:
With a lookback, the discount is applied to the lower of the offering-date price and the purchase-date price. The return that matters is not the stated discount — it's the immediate gain divided by the cash you paid:
At a flat 15% discount with no lookback, that return is 0.15 / 0.85, or about 17.6% on the cash. Add a lookback and a stock that climbed during the offering period, and the number goes higher — because you bought at a fraction of a price that has since risen.
Worked example
Take a qualified Section 423 plan with a 15% discount, a six-month offering period, and a lookback. The stock opens the offering at $100 and is $120 on the purchase date.
The lookback prices the purchase at 85% of the lower $100, so each share costs $85 for stock worth $120. That's an immediate gain of $35 a share — a 41.18% return on the cash paid, not the 15% on the label. The discount was 15%; the lookback did the rest.
Now the cap. The $25,000 annual limit is measured on the undiscounted $100 grant-date price, which allows 250 shares that year, bought for $21,250. Hold those shares to a qualifying disposition and sell at $130: the ordinary income is the lesser of the $45 actual gain and the $15 grant-date discount, so $15 a share. The adjusted basis becomes $100 — the $85 paid plus the $15 already taxed as wages — and the long-term capital gain is $30 a share.
When this calculator is wrong
The return above is real, but it is a gross, pre-tax, point-in-time number. Three things turn it into something smaller, and one of them costs people money every April.
- The discount is ordinary income, taxed once as wages. The bargain element — the gap between what you paid and the market price — is compensation. It shows up on your W-2 and is taxed at your marginal rate, not the capital-gains rate. A 41.18% gross return is a good deal less after the ordinary tax on the discount comes out.
- The $25,000 cap is a grant-price cap, not a contribution cap. At a $100 grant-date price you can accrue the right to buy 250 shares a year — $25,000 of stock measured before the discount. Contribute more and the plan refunds the excess. The ceiling is fixed by the stock's price on the offering date, so a higher-priced stock lets you buy fewer shares, not more dollars of discount.
- The 1099-B double-taxes the discount if you let it. This is the expensive one. For shares bought in 2014 or later, your broker is barred from adding the already-taxed discount to the cost basis it reports on Form 1099-B — it reports only the $85 you paid, not the $100 adjusted basis. Report that figure as-is and you pay capital-gains tax on the $15 discount a second time. In the worked example that is a $562.50 overpayment at a 15% long-term rate. The fix is a Form 8949 adjustment (code B), and tax software with an ESPP step usually handles it if you tell it the shares came from an ESPP.
- It says nothing about concentration. Every share is in the one company that also signs your paychecks. The calculator treats the holding as money; your financial life treats it as a bet on a single employer. The discount is the reason to participate; it is not a reason to keep the shares.
What to do with the result
If the return is large and you don't have a strong, specific reason to hold the stock, the clean move is to sell at purchase and capture the discount as cash. Selling immediately makes the sale a disqualifying disposition — the gain above the discount is taxed as ordinary income rather than at the long-term rate — but it removes the single-employer risk and locks in the part of the return that was never speculative.
If you do hold, hold with intent: a qualifying disposition needs more than two years from the grant date and more than one year from the purchase date, and it converts the gain above the grant-date discount into a long-term capital gain. Either way, when you sell, check the cost basis your broker reported and adjust it on Form 8949 if it shows only the discounted price. That one correction is worth more than most of the optimization the ranking calculators spend their time on.
Common questions
- Is an ESPP worth it?
- For the discount alone, almost always. A 15% discount is about a 17.6% return on the cash before any lookback, and a lookback on a rising stock pushes it higher. The case weakens only if your plan has a small discount, no lookback, a long holding requirement before you can sell, or if participating would crowd out an employer 401(k) match — which is a larger, guaranteed return.
- What is the ESPP lookback?
- A lookback applies the discount to the lower of the share price on the offering date and the price on the purchase date. When the stock rose over the offering period, you buy at a discount off the old, lower price — so the effective discount is larger than the stated rate. Not every plan offers one.
- How much can I put into an ESPP?
- Section 423 caps the stock you can accrue the right to buy at $25,000 of fair market value per calendar year, measured on the grant-date price before the discount. Plans also set a payroll-deduction limit, commonly a percentage of pay. The $25,000 figure is a stock-value ceiling, not the amount of cash you contribute.
- How is an ESPP taxed when I sell?
- The discount is always ordinary income. In a disqualifying disposition (sold before the holding period), the ordinary income is the full discount at purchase, and the rest is a capital gain or loss. In a qualifying disposition, the ordinary income is the lesser of the actual gain or the grant-date discount, and the remainder is a long-term capital gain. In both cases your true cost basis is the price paid plus the ordinary income — which is the number the 1099-B leaves out.
- Should I sell my ESPP shares right away?
- Selling at purchase captures the discount and removes the risk of holding one employer's stock. The cost is that the gain above the discount is taxed as ordinary income rather than long-term. Holding for the qualifying period lowers the tax on that slice, but only if the stock holds its value in the meantime. The discount is the sure thing; the stock is not.