ESPP Calculator: Discount, Lookback and Taxes

See what your employee stock purchase plan is really worth: your discounted price, the built-in gain, and the tax whether you sell now or hold for a qualifying disposition.

Education only, not financial advice. This calculator gives estimates from the numbers you enter. It is not a recommendation to buy, sell or hold anything. Check important decisions with a qualified professional. Everything runs in your browser; nothing you type is sent or stored.

IRC §423 Qualified ESPPs can offer up to a 15% discount, often with a “lookback” to the lower of the offering-date and purchase-date price, and limit purchases to $25,000 of stock (valued at the offering date) per calendar year. Tax follows IRS Publication 525: a qualifying disposition requires holding 2 years from the offering date and 1 year from purchase.

Purchase price per share—
Built-in gain at purchase—
After-tax profit, sell right away—
Shares bought—

How an ESPP works

An employee stock purchase plan lets you buy company stock through payroll deductions at a discount, typically 15%, at the end of each purchase period. With a lookback, the discount applies to the lower of the price at the start of the offering and the price on the purchase date. If the stock rose, you’re buying at 15% off the old, lower price. A 15% discount alone is a 17.6% instant gain (1 ÷ 0.85 − 1), before tax.

Purchase price = (lower of offering and purchase price, with lookback) × (1 − discount)

How ESPP shares are taxed

Nothing is taxed when you buy. When you sell:

  • Disqualifying disposition (sold within 2 years of the offering date or 1 year of purchase): the spread at purchase (purchase-date price minus what you paid) is ordinary income on your W-2. Any further gain or loss is a capital gain or loss.
  • Qualifying disposition: ordinary income is the lesser of your actual gain or the discount measured at the offering-date price. The rest is long-term capital gain.

Holding for a qualifying disposition can cut the tax, but it means carrying a concentrated position in your employer’s stock. Many planners suggest selling right away and diversifying. Make sure your broker’s 1099-B cost basis includes the ordinary income already on your W-2, or you’ll pay tax twice. Also see the bonus and RSU tax calculator, the capital gains tax calculator and the tax-loss harvesting calculator.

Frequently asked questions

Is an ESPP worth it?

With a 15% discount you lock in at least a 17.6% gain on each purchase if you sell right away, and more with a lookback when the price rises. For most employees who can afford the payroll deductions, participating and selling promptly is hard to beat.

What is an ESPP lookback?

A provision that applies the discount to the lower of the stock price at the start of the offering period and the price on the purchase date.

What is a qualifying disposition?

Selling ESPP shares at least 2 years after the offering (grant) date and 1 year after the purchase date. Ordinary income is then limited to the lesser of the actual gain or the discount at the offering-date price.

How much can I buy through an ESPP?

Qualified section 423 plans limit purchases to $25,000 of stock per calendar year, valued at the offering-date price. Many plans also cap contributions at a percentage of pay.

Why does my 1099-B show too much gain on ESPP shares?

Brokers often report only the price you paid as cost basis. Add the ordinary income reported on your W-2 to the basis (Form 8949 adjustment) so it isn’t taxed twice.

Related tools and guides

Updated Nov 23, 2026. Built by the ECMSource team. Spot an error? Tell us.

Disclaimer: ECMSource tools are for general education. Results are hypothetical, assume constant rates, and ignore taxes, fees and other costs unless stated. Past returns do not predict future returns. See our full disclaimer and editorial policy.