ESPP Calculator
Figure out how much to defer each paycheck to maximize your Employee Stock Purchase Plan. Stock prices can be fetched automatically or entered manually.
Plan Details
Prior Periods This Calendar Year
Remaining: $25,000
No prior periods — full $25,000 cap available for this period.
Enter the total contributions and price at purchase for each prior period in the same calendar year. FMV is calculated exactly: shares × offering start price.
Paycheck & Contribution
Post-tax deduction — contribution comes out of your take-home
Used when no offering end date is set.
Use this if you're mid-period and know your ESPP account balance
Fill in your plan details and paycheck amount to see results.
Settings
Price fetching uses Yahoo Finance by default — no key needed. Add an Alpha Vantage key to fetch prices directly from your browser without going through the server. Get a free key at alphavantage.co. Stored locally in your browser.
How ESPPs Work
The basic mechanism
You authorize your employer to withhold a percentage of each paycheck (post-tax). At the end of each purchase period, your accumulated contributions are used to purchase company stock at a discount — usually 10–15% off market price — and the shares are delivered to you.
Key terms
- Offering period: The overall enrollment window — often 12 or 24 months. The stock price at the start of this period is the one used for the lookback provision. One offering period may contain several purchase periods.
- Purchase period: The sub-period during which your payroll deductions accumulate for one purchase. Typically 3 or 6 months. This is what the calculator calls "Purchase Period."
- Purchase date: The last day of the purchase period, when shares are actually bought on your behalf.
- Purchase price: The discounted price you pay per share on the purchase date — typically the lower of the offering start price or the purchase date price, minus the discount.
The lookback provision
Most plans include a lookback: the purchase price is based on the lower of the stock price at the beginning of the offering period or the end of the purchase period, then discounted further. This means even if the stock drops, you buy at the lower price — and even if it rises, you lock in the original lower start price.
In the calculator: "Offering Start Date" should be the first day of your overall offering period (not the purchase period start). For single-period plans these are the same date.
Why the math gets complex
Five variables interact: offering period start price, purchase period end price, the lookback provision, the discount %, your pay frequency, and the IRS annual cap. A stock that drops makes the lookback attractive but consumes your IRS cap faster. A rising stock is pure upside. The IRS cap is shared across all purchase periods within a calendar year — not split evenly.
Minimum and maximum gains (if you sell immediately)
- Minimum: The discount alone, which compounds to
discount / (1 − discount). At 15% off: that's 17.6% on every dollar you contribute — regardless of stock movement — if you sell the day of purchase. - Maximum: Uncapped. If the stock doubled during your offering period, you buy at the start price (via lookback) and sell at 2×. The discount is on top of that appreciation.
The IRS $25,000 cap
Under IRC Section 423, you can't receive more than $25,000 worth of stock (valued at the offering start price) per calendar year across all ESPP periods. This caps how much you can contribute — especially if your salary is high or your contribution rate is high. The cap is consumed proportionally faster when the stock price has dropped (because you bought more shares at a lower price, but the IRS counts each share at the higher start price).
Tax treatment (brief note)
Tax rules for ESPPs are nuanced. Generally: the discount portion at purchase is taxed as ordinary income; gains above that may qualify as capital gains depending on your holding period. Consult a tax advisor for your specific situation.
Examples
All examples assume: $10,000 contributed over the purchase period, 15% discount, lookback on, selling immediately on the purchase date. "Start" refers to the offering period start price used for the lookback.
1 Flat market — start $100, end $100
Takeaway: Even when nothing happens, you pocket the 15% discount as pure profit. With $13,235 of IRS cap remaining, you have plenty of headroom to participate fully in a second offering period.
2 Stock rises sharply — start $100, end $130 (+30%)
Takeaway: Best case. Lookback locks you into the lower start price even though the stock surged. You capture both the appreciation and the discount. Crucially, a rising stock doesn't consume your IRS cap any faster — the cap is measured at start price, not end price.
3 Stock drops sharply — start $100, end $60 (−40%)
Takeaway: The immediate gain is still 17.6% if you sell right away — the discount protects you. But the IRS values your shares at the $100 start price, not the $60 you paid. You bought 196 shares cheaply, but each one "costs" $100 of your annual IRS cap. A 40% drop in Period 1 leaves only $5,400 of cap — you'd be capped at a much lower contribution rate in Period 2.
This calculator is for informational purposes only and does not constitute financial advice. ESPP rules vary by employer plan — consult your plan documents and a qualified tax advisor for decisions specific to your situation.