stocktax.tools

ESPP Tax Calculator

Estimate the tax on your Employee Stock Purchase Plan shares — how much of your discount is taxed as ordinary income, how much is capital gain, and your real after-tax profit for a qualifying or disqualifying sale.

The ESPP discount is real money, but it is taxed in two parts: some as ordinary income, the rest as a capital gain. Sell too early (a disqualifying disposition) and more of it is taxed as income. This tool shows the split, your correct cost basis, and what you actually keep.
Advertisement
%
The market price when the offering period began — used for the lookback.
The market price on the day the shares were actually bought.
%
%
Qualifying = held >2 years from offering start AND >1 year from purchase. Otherwise disqualifying.
After-tax profit on this sale
Sale proceeds minus what you paid for the shares minus tax.
Your purchase price /share
Taxed as ordinary income
Capital gain
Total tax
Your cost basis
Basis = what you paid PLUS the amount already taxed as ordinary income. Report this on Form 8949 — not the discounted purchase price alone, or you pay tax twice.
You keep Tax
Advertisement

How to use it

  1. Enter the shares purchased and your plan discount (usually 15%).
  2. Enter the price at the offering start and the price on the purchase date — the plan applies the discount to the lower of the two (the lookback).
  3. Enter your sale price, marginal rate and optional state rate.
  4. Pick qualifying or disqualifying to see how the ordinary-income vs capital-gain split changes.

How it’s estimated

A Section 423 ESPP with a lookback lets you buy at a discount to the lower of the offering-date or purchase-date price. Part of your gain is always taxed as ordinary income; how much depends on whether the sale is qualifying or disqualifying.

Estimate for U.S. taxpayers in a qualified Section 423 plan. Uses your stated marginal rate; a disqualifying capital gain is assumed short-term (ordinary rate); ignores NIIT and the additional Medicare surtax.

How an ESPP is taxed

An Employee Stock Purchase Plan lets you buy company stock at a discount, usually 15%, often with a lookback that applies the discount to the lower of the price at the start of the offering period or the price on the purchase date. That discount is valuable — but it is never tax-free. Part of it is taxed as ordinary income and part as a capital gain, and the mix depends on how long you hold the shares.

Qualifying vs disqualifying disposition

The single most important choice with ESPP shares is when you sell. A qualifying disposition requires holding the shares more than two years from the offering date and more than one year from the purchase date. If you meet both tests, the amount taxed as ordinary income is limited to the lesser of your actual gain or the discount measured at the offering-date price, and the remaining gain is taxed at preferential long-term rates. A disqualifying disposition — selling before either test is met — taxes the full discount at purchase as ordinary income, with any further gain as a capital gain.

The cost-basis trap

Just like RSUs, ESPP shares are frequently double-taxed by accident. Your broker's 1099-B often shows only the discounted price you paid. But the amount already taxed as ordinary income is part of your real cost basis. If you file the broker's number unchanged, you pay income tax on the discount and then capital-gains tax on the same dollars. On Form 8949 you adjust the basis upward to include the ordinary-income component. Form 3922, which your employer issues, contains the dates and prices you need.

A quick example

Suppose the offering-start price was $40, the purchase-date price was $50, and your plan gives a 15% discount with a lookback. You buy at 15% off the lower price: $40 × 0.85 = $34 per share. For 100 shares your cost is $3,400. You later sell at $60 ($6,000). In a qualifying disposition, the ordinary income is the lesser of your $2,600 gain or the offering-date discount of $40 × 15% × 100 = $600 — so $600 is ordinary income and $2,000 is long-term capital gain. In a disqualifying sale, the ordinary income is the full discount at purchase, ($50 − $34) × 100 = $1,600, and the remaining $1,000 is a capital gain.

Final word

ESPPs are one of the best deals in employee compensation, and the tax rarely makes them a bad idea. What the tax does decide is how much of the discount you keep — so hold to a qualifying disposition when you can, and always correct your cost basis so you are never taxed twice. When the amounts are large, confirm with a qualified tax professional.

Related calculators

Embed this calculator

Free to add to your website — copy & paste this code:

Frequently asked questions

How is ESPP taxed?

In two pieces. The discount you receive is taxed as ordinary income, and any additional gain when you sell is a capital gain. The split between the two depends on how long you hold the shares before selling.

What is a qualifying vs disqualifying disposition?

A qualifying disposition means you held the shares more than 2 years from the offering date AND more than 1 year from the purchase date. Meet both and less of your gain is taxed as ordinary income, with the rest at long-term capital-gains rates. Miss either and it is a disqualifying disposition, taxed more heavily.

Why might my broker’s cost basis be wrong?

Brokers often report only the discounted price you paid, not the amount already taxed as ordinary income. If you file that basis you pay tax twice on the discount. Adjust the basis on Form 8949 to include the ordinary-income portion (Form 3922 has the numbers you need).

Is the 15% ESPP discount worth it?

Almost always. A 15% discount with a lookback is a large, near-guaranteed return. The tax simply determines how much of that discount you keep — it never turns the discount negative if you sell at or above your purchase price.

What is the lookback?

A lookback lets the plan apply the discount to the lower of the price at the start of the offering period or the price on the purchase date. It can make your effective discount far larger than the stated percentage when the stock has risen.

What form reports my ESPP?

Form 3922 reports the key ESPP dates and prices for the year you buy. Your sale appears on Form 1099-B, and you report the gain on Form 8949 and Schedule D.

Methodology & sources

Calculations follow standard U.S. treatment of Section 423 ESPP dispositions and capital gains. References: IRS Publication 525, IRS Topic No. 427, Form 3922 and Form 8949 instructions. Tax year 2026. Last updated 2026-07.

⚠️ Educational estimate only — NOT tax advice. Your actual tax depends on your full income, filing status, state, residency and current law. Confirm with a qualified tax professional before acting.
Advertisement