A qualified ESPP’s lookback feature applies the discount to whichever price — the start or end of the offering period — is lower, which is why the flat discount alone understates the real gain whenever the stock rose during the period.
How it works
The purchase price is the lower of the offering-date and purchase-date price, reduced by the discount. The immediate gain is the purchase-date market price minus that discounted purchase price — often well above the stated discount percentage alone when the stock has risen.
What this does not include
This computes the immediate purchase-date gain only — the tax treatment (ordinary income versus capital gains) depends on how long shares are held afterward and whether the sale is a qualifying or disqualifying disposition, which this calculator doesn’t determine.
How to use this calculator
- Enter the offering-date price, purchase-date price, and the plan’s discount percentage.
- Enter shares purchased to see total gain.
Frequently asked questions
Why does the discount alone understate the real gain?
Because the lookback applies the discount to the lower of two prices — if the stock rose during the offering period, the discount is calculated against the older, lower price, producing a bigger gain than a flat discount off the current price would.
What if the stock price fell during the offering period?
The lookback still applies the discount to whichever price is lower — in a falling-price scenario, that’s the purchase-date price itself, so the gain is closer to (but still above) the flat discount amount.
Is this gain taxed immediately?
Not necessarily — ESPP shares aren’t taxed at purchase; tax applies when the shares are eventually sold, with treatment depending on the holding period and disposition type.