ESPP Calculator screenshot

ESPP Calculator

Work out the shares an employee stock purchase plan buys and what they are worth from contribution used to buy, offering price, market price at purchase, purchase discount (%). Purchase price = offering × (1 − discount); shares = contribution ÷ purchase price; gain = shares × market − contribution, and the page prints the substitution so the result can be checked by hand.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No sign-up, no upload
Formula printed with the answer

ESPP Calculator

Work out the shares an employee stock purchase plan buys and what they are worth from contribution used to buy, offering price, market price at purchase, purchase discount (%). Purchase price = offering × (1 − discount); shares = contribution ÷ purchase price; gain = shares × market − contribution, and the page prints the substitution so the result can be checked by hand.

How this page computes

Purchase price = offering × (1 − discount); shares = contribution ÷ purchase price; gain = shares × market − contribution

The share count is a fraction because a plan computes it that way; a plan that rounds down buys fewer and the page says so.

The gain here is immediate, at the market price on the purchase date; it is not a forecast of what the shares will be worth later.

The calculation runs entirely in this browser tab; nothing is uploaded.

ESPP Calculator computes the shares an employee stock purchase plan buys and what they are worth. Purchase price = offering × (1 − discount); shares = contribution ÷ purchase price; gain = shares × market − contribution. The page prints the rule, the numbers substituted into it and the result, so the arithmetic can be checked by hand.

The share count is a fraction because a plan computes it that way; a plan that rounds down buys fewer and the page says so. Pressed with contribution used to buy 10000, offering price 50, market price at purchase 60, purchase discount 15, it answers: Shares purchased = 235.294118

How to use ESPP Calculator

Enter contribution used to buy 10000, offering price 50, market price at purchase 60, purchase discount 15, then press Run: the page evaluates the shares an employee stock purchase plan buys and what they are worth and prints every line of the working. Typed input is read exactly as written, and a blank field is refused with its name.

Read the first line as the answer and the lines below it as the substitution. If a value is out of range the page refuses it by field and reason instead of printing a number.

With contribution used to buy 10000, offering price 50, market price at purchase 60, purchase discount 15, the answer is Shares purchased = 235.294118.

Fractional shares

The share count is a fraction because a plan computes it that way; a plan that rounds down buys fewer and the page says so.

The gain here is immediate, at the market price on the purchase date; it is not a forecast of what the shares will be worth later.

What to Expect

Best for

  • Working out the shares an employee stock purchase plan buys and what they are worth without a spreadsheet
  • Checking a figure someone else quoted
  • Seeing the formula behind an answer

Not ideal for

  • A discount of 100% or more is refused, because the purchase price would be zero and the share count undefined.
  • A quantity the page cannot compute, which it refuses instead of estimating
  • Rounding an answer that has an exact form

What this tool keeps

  • Purchase price = offering × (1 − discount); shares = contribution ÷ purchase price; gain = shares × market − contribution
  • Every input exactly as typed

What may need cleanup

  • Nothing: the printed answer is the final output
  • A unit conversion, if the inputs were entered in different units

Common errors

  • A discount of 100% or more is refused, because the purchase price would be zero and the share count undefined.
  • An empty field is refused with the field's name

Example use cases

  • Work out the shares an employee stock purchase plan buys and what they are worth for one set of inputs
  • Check the result against the formula by hand
  • See which input the answer is most sensitive to

Sample input

ESPP Calculator: contribution used to buy 10000, offering price 50, market price at purchase 60, purchase discount 15

Sample output

Shares purchased = 235.294118 — Purchase price = offering × (1 − discount) = 50.00 × 0.85 = 42.50

Who this is for

  • Students checking a formula
  • Anyone who needs the number and the working

Frequently asked questions

What formula does this page use?

Purchase price = offering × (1 − discount); shares = contribution ÷ purchase price; gain = shares × market − contribution. The page prints the substitution as well, so the answer can be checked against the rule.

What does ESPP Calculator refuse?

A discount of 100% or more is refused, because the purchase price would be zero and the share count undefined.

What does the default example give?

Contribution used to buy 10000, offering price 50, market price at purchase 60, purchase discount 15 gives Shares purchased = 235.294118. Every line below that restates the same arithmetic.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.