Skip to content
MoneyDeck

ESPP Tax Calculator

Split your ESPP sale into ordinary income and capital gain, then compare

Updated · US rules · Free, no signup

$
$
%

Section 423 plans can discount up to 15%.

Price is based on the lower of the offering-date and purchase-date price.

$
%

Federal marginal rate plus state rate.

%

Estimated tax on this sale

$888.00

A negative figure is the tax a capital loss would save against other gains or income.

Ordinary (compensation) income

$1,200.00

Capital gain (loss)

$4,000.00

Purchase price per share

$34.00

Adjusted cost basis (total)

$8,000.00

Amount paid plus ordinary income — use this, not the 1099-B figure.

Total profit before tax

$5,200.00

Profit after tax

$4,312.00

Tax if the other disposition type

$1,248.00

  • A qualifying disposition saves about $360.00 in tax compared with selling early.
  • Your total cost basis is $8,000 ($6,800 paid + $1,200 of ordinary income). Brokers often report only the amount paid.

Qualifying vs disqualifying: how the profit is taxed

Side-by-side comparison

QualifyingDisqualifying
Ordinary income$1,200$3,200
Capital gain (loss)$4,000$2,000
Capital gain typeLong-termShort-term
Estimated tax$888.00$1,248
Profit after tax$4,312$3,952

About the ESPP Tax Calculator

This ESPP tax calculator shows how the IRS taxes shares bought through a qualified (Section 423) employee stock purchase plan when you sell them. Enter the share price on the offering (grant) date and on the purchase date, your plan discount and lookback, the number of shares and the sale price, and it splits the profit into ordinary compensation income and capital gain or loss — for both a qualifying and a disqualifying disposition — so you can see whether holding longer is worth it.

A qualifying disposition happens when you sell more than two years after the offering date and more than one year after the purchase date. Then the ordinary income is limited to the lesser of the discount measured at the offering date or your actual gain, and the rest is long-term capital gain. Sell earlier and it is a disqualifying disposition: the full bargain element at purchase (purchase-date price minus what you paid) is ordinary income even if the stock has since fallen, and the remaining gain or loss is short- or long-term.

Ordinary income from a Section 423 ESPP is reported as wages on your W-2 but is not subject to Social Security or Medicare tax. Your marginal tax rates are inputs, so the result reflects your own bracket; state tax and the 3.8% net investment income tax can be folded into the rates you enter. Remember to adjust the cost basis your broker reports on Form 1099-B, which often omits the ordinary income and would make you pay tax twice.

With the default inputs, the estimated tax on this sale is $888.00. Change any value above to recalculate instantly.

How to use the espp tax calculator

  1. 1Enter the share price on the offering date and on the purchase date (see Form 3922).
  2. 2Set your plan’s discount and whether it has a lookback.
  3. 3Enter the number of shares and the sale price.
  4. 4Choose qualifying or disqualifying, then enter your tax rates.
  5. 5Compare the two disposition types in the table and chart.

Formula and method

Price = (1 − d) × min(Grant FMV, Purchase FMV); Qualifying ordinary = max(0, min(d × Grant FMV, Sale − Price)); Disqualifying ordinary = Purchase FMV − Price

With a lookback, the purchase price is the discount applied to the lower of the offering-date and purchase-date prices. For a qualifying disposition, IRS Publication 525 makes the compensation income the lesser of (1) the share’s value at the offering date minus the option price figured as if bought on that date, which equals discount × offering-date price, and (2) the sale price minus what you paid. Any further profit is long-term capital gain; if you sell at a loss there is no ordinary income and the loss is a capital loss.

For a disqualifying disposition, the compensation income is the purchase-date value minus the price paid — not limited to your gain. Your basis becomes the price paid plus that income, and the difference from the sale price is a capital gain or loss, long-term only if held more than a year after purchase. Tax is estimated by applying your ordinary and capital gains rates; capital losses are valued at the same rate as a simplification.

d
Plan discount (up to 15%)
Grant FMV
Share price on the first day of the offering period
Purchase FMV
Share price on the purchase (exercise) date

Worked examples

Qualifying sale after the stock rose

With a 15% discount and lookback you pay 85% of $40 = $34 a share. In a qualifying sale the ordinary income is the lesser of the offering-date discount ($6) and the $26 gain: $6 × 200 = $1,200. The other $4,000 is long-term gain. Tax is $1,200 × 24% + $4,000 × 15% = $888, versus $1,248 if sold early.

Disqualifying sale soon after purchase

Selling early makes the full $16 bargain element ($50 − $34) ordinary income: $3,200. Basis rises to $50 a share ($10,000), and the $10 rise to $60 is a $2,000 short-term gain taxed at 24%, for $1,248 total.

Stock fell after purchase, sold early

Paying $25.50 for $30 shares creates $450 of ordinary income even though the shares were sold at $20. The adjusted basis is $30, so the sale produces a $1,000 capital loss — overall a $550 economic loss.

Frequently asked questions

What is a qualifying ESPP disposition?+

A sale more than two years after the offering (grant) date and more than one year after the purchase date. Ordinary income is then limited to the smaller of the offering-date discount or your actual gain, and the rest is long-term capital gain.

How is a disqualifying disposition taxed?+

The difference between the share price on the purchase date and the price you paid is ordinary income reported on your W-2, even if the stock has since fallen. Any change after purchase is a capital gain or loss — short-term if held a year or less.

Is ESPP income subject to FICA?+

No. Ordinary income from a qualified Section 423 ESPP is included in W-2 wages for income tax but is exempt from Social Security and Medicare tax, and employers are not required to withhold income tax on it.

Why does my 1099-B show a bigger gain than I expect?+

Brokers usually report only the price you paid as your cost basis. Add the ordinary income already included in your wages to the basis on Form 8949, otherwise that income is taxed twice.

Should I always wait for a qualifying disposition?+

Not necessarily. Waiting can turn part of the gain into lower-taxed long-term gain, but you carry the risk of holding one company’s stock. If the price drops, a qualifying sale can still leave you worse off than selling immediately.

What is Form 3922?+

Your employer sends Form 3922 for each ESPP purchase. It shows the offering date, purchase date, share prices on both dates and the price paid — the exact inputs this calculator needs.

Tax results are estimates based on published rules and simplified assumptions. They are not tax advice — check official guidance or a tax professional for your situation.

Related tools