Skip to content
Omnikalc

ESPP calculator: how much do you gain with the discount and lookback?

Enter your contributions, the stock price at the start and at the purchase date, the discount and the lookback to see the shares bought and the return.

Updated on
Your inputs
$

Value out of range

Value out of range

months

Value out of range

$

Value out of range

$

Value out of range

%

Value out of range

%

Value out of range

Results

Return on your contributions if you sell at purchase

41.2%

A gain on the contributions if sold right after purchase
Gain before tax
$1,976
Gain after ordinary tax (immediate sale)
$1,502
Annualized return for the offering period
99%
Price you pay per share
$42.50
Shares purchased
112.9
Total contributions
$4,800

An employee stock purchase plan can be one of the best deals in a benefits package: you buy your company’s stock at a discount, often with a lookback that sets the price from the lower of two dates. This calculator shows the price you pay, the shares you receive and the return on your contributions if you sell right after the purchase.

How the calculation works

  • Total contributions = contribution per pay period × number of pay periods
  • Purchase price = (1 − discount) × lower of the start price and the purchase-date price (with lookback), or × the purchase-date price (without)
  • Shares = contributions ÷ purchase price
  • Value at sale = shares × purchase-date market price
  • Gain = value − contributions; return = gain ÷ contributions
  • Annualized return = (1 + return)^(12 ÷ months in the period) − 1

Example

You contribute $400 in each of 12 pay periods over 6 months, or $4,800. The stock was $50 at the start and is $60 on the purchase date. With a 15 % discount and a lookback, the price you pay is 0.85 × 50 = $42.50, so you buy 112.9 shares, worth $6,776 at $60. The gain is $1,976, a 41.2 % return in six months, or about 99 % annualized. After a 24 % tax, about $1,502 remains.

Why it matters

A 15 % discount is an instant return of 17.6 % on the money (1 ÷ 0.85 − 1), and a lookback in a rising market can double that. Few investments offer such a return with so little time. The risk is on the other side: if the stock falls after the purchase, you may have a loss on shares you could have avoided buying.

Good to know

Payroll deductions are after-tax. Many plans cap contributions at $25,000 of stock value a year (in fair market value) and allow you to withdraw before the purchase date. Selling quickly avoids holding the concentration risk of owning your employer’s stock. Check the plan document for the offering periods, the lookback, and the holding periods. This tool is for education and is not tax or financial advice.

The stock profit calculator computes the gain on a trade, the dollar-cost averaging calculator tracks the average price of regular purchases, and the net worth calculator adds up your assets.

Frequently asked questions

What is an employee stock purchase plan?

An ESPP lets you buy your employer's stock through payroll deductions at a discount, usually up to 15 percent, at the end of an offering period of 6 to 24 months.

What is a lookback?

A lookback sets the purchase price from the lower of the stock price at the start of the offering period and at the purchase date, then applies the discount. When the stock rises, you buy at a price far below the market.

Should I sell right away?

Many people do, to lock in the gain and avoid holding too much of their wealth and income in one company. Holding for more than two years from the offering date and one from purchase gets tax treatment that is better for part of the gain, but it comes with price risk.

How are ESPP gains taxed?

If you sell immediately, the discount (and any gain) is treated as ordinary income for tax. A qualifying disposition, after the holding periods, taxes part as ordinary income and the rest as long-term gain. Tax rules vary: check the plan documents.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.