ESPP Calculator

Calculate ESPP gains and tax treatment for qualifying vs disqualifying dispositions.

By Konstantin Iakovlev · Updated September 2026 · Source: IRS Publication 525 — Employee stock purchase plans (statutory stock options)

$
$
$
%
%
Disposition

Purchase Price / Share

$68.00

Shares Bought

176

Total Gain

$5,632.00

ESPP Breakdown

Total Contribution$12,000.00
Purchase Price Per Share$68.00
Discount Per Share$32.00
Total Discount Value$5,632.00

Tax Treatment

Disposition TypeQualifying
Ordinary Income$2,112.00
Capital Gain (LTCG)$3,520.00
Total Gain$5,632.00

Use the ESPP Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only and does not constitute tax, financial, or legal advice. Results are estimates based on the information you provide and current rates. Always consult a qualified tax professional or financial advisor for advice specific to your situation.

How It Works

Buying shares through an Employee Stock Purchase Plan (ESPP) comes with tax rules and potential gains that are easy to misjudge, and this tool lays them out so you can see where you stand. In 2026, ESPP purchases stay capped at $25,000 per calendar year measured by fair market value, so planning carefully is what lets you wring the most out of the benefit.

Two figures drive the outcome: the purchase discount, usually 5-15% below market price, and the tax treatment that hinges on how long you hold. The calculator separates qualifying dispositions, where shares are held at least two years from grant and one year from purchase, from disqualifying dispositions, and that distinction decides whether your gain is taxed as ordinary income or as capital gains.

The discount itself is taxed as ordinary income no matter how long you hold the shares. Many plans also include a lookback provision that lets you buy at 85% of the lower of the stock price at enrollment or on the purchase date, and overlooking it is a frequent oversight. Because the fine print differs from plan to plan, it is worth confirming your own plan's terms, since tax outcomes can swing widely.

ESPP Purchase: $5,000 contribution with 15% discount on $50 stock

  1. 1 Inputs: stock price $50 at both the offering start and the purchase date, annual salary $50,000 with a 10% contribution ($5,000), and a 15% discount. The purchase price is $50 × 85% = $42.50 per share.
  2. 2 Shares purchased: $5,000 ÷ $42.50 = 117.65, rounded down to 117 shares, costing 117 × $42.50 = $4,972.50.
  3. 3 Discount: ($50 − $42.50) × 117 = $877.50. It becomes ordinary income in the year you sell the shares, not when you buy them.
  4. 4 If sold immediately at $50 per share (a disqualifying disposition), proceeds are $5,850, the full $877.50 is ordinary income reported as wages, and there is no capital gain. Held for the qualifying period and sold at $50, the ordinary income is the smaller of the offering-date discount ($7.50 × 117 = $877.50) and the actual gain, so it is also $877.50 here; any rise above $50 would be long-term capital gain.

Frequently Asked Questions

How does an ESPP work?
An Employee Stock Purchase Plan lets you buy company stock at a discount (typically 15%) using after-tax payroll deductions. Most ESPPs have a 6-month offering period with a lookback provision that uses the lower of the start or end price.
How is the ESPP discount taxed?
In a qualifying disposition (held 2+ years from offering start and 1+ year from purchase), the discount is ordinary income up to 15%, and additional gain is long-term capital gains. In a disqualifying disposition, the full discount at purchase is ordinary income.
Is an ESPP worth it?
Usually. Buying at 85% of the market price is an immediate gain of about 17.6% on the money you put in ($15 ÷ $85) before tax, and a lookback adds more when the stock rose during the offering period. If you sell right after purchase, that is a disqualifying disposition: the discount is taxed as ordinary income, not as a capital gain, and the price can still fall between purchase and sale.