Finance tools

ESPP tax calculator

Find out how ESPP tax is calculated when you sell shares from a qualified employee stock purchase plan (IRC §423). This calculator splits ordinary income and capital gain, shows adjusted basis for Form 8949, and estimates 2026 federal tax using your filing status and brackets—not one flat rate. Switch between qualifying and disqualifying disposition, load the built-in sample scenarios, and compare tax if you had waited for qualifying treatment. Download a CSV or PDF summary anytime—no account required. Selling stock from a regular brokerage account? Use the capital gains tax calculator instead (RSUs and stock options are out of scope here).

What this ESPP tax calculator does

How are ESPP shares taxed when you sell?

Avoid double tax on ESPP (basis trap)

How ESPP taxes work (discount, purchase, and sale)

Holding ruleWhat it means for your sale
2 years from grant (offering) dateRequired for <strong>qualifying</strong> disposition; measured from the start of the offering period on Form 3922
1 year from purchase dateAlso required for qualifying treatment; measured from the day shares were purchased
Sell before either date<strong>Disqualifying</strong> disposition—spread at purchase is generally ordinary income
Sell after both datesQualifying path—ordinary income capped under <strong>§423(c)</strong>; capital gain uses adjusted basis

ESPP discount and lookback pricing

Qualifying vs disqualifying ESPP disposition

TopicQualifying dispositionDisqualifying disposition
Holding periods≥ 2 years from grant date and ≥ 1 year from purchase dateEither period not met
Ordinary income (typical)Lesser of total gain or grant-date discount (§423(c))Spread at purchase: (purchase-date FMV − price paid) × shares
Capital gainSale proceeds − adjusted basis; usually long-term on qualifying sales modeled herePrice change after purchase; short-term unless held > 1 year after purchase
Adjusted basis (capital leg)Purchase price + ordinary income included in wagesPurchase-date FMV (after wage spread) for capital gain math
Withholding on §423(c) OIGenerally no federal withholding on qualifying OI—you may owe at filingEmployer may withhold on disqualifying wage component

IRC §423(c) ordinary income and ESPP wage amounts

Qualifying ordinary income cap (§423(c))

Disqualifying ordinary income (spread at purchase)

Worked ESPP tax examples (qualifying and disqualifying)

Qualifying sale (sample scenario)

Disqualifying sale (sample scenario)

Broker basis trap (W-2, 1099-B, and Form 8949)

Numeric basis trap example (qualifying sale)

How to report an ESPP sale on your tax return

How to use this ESPP tax calculator

  1. Enter share count and FMVs

    From Form 3922: share count (Box 5), grant-date FMV per share (Box 3), purchase-date FMV per share (Box 4), and your purchase price per share after the plan discount. Dates are in Boxes 1–2. Use your plan statement if anything differs.

  2. Add sale details

    Enter sale price per share and optional selling costs. Choose Qualifying or Disqualifying—or use Qualifying example / Disqualifying example to load a sample scenario.

  3. Set tax context

    Pick filing status and other estimated taxable income (after deductions if that is how you plan). Open Advanced for state tax, NIIT, lookback helper, or plan discount %.

  4. Review tax split and export

    Check total tax, ordinary vs capital breakdown, adjusted basis, broker basis reminder, and qualifying vs disqualifying comparison when applicable. Export CSV or PDF for your CPA or records.

Sample numbers

Limitations of this calculator

Discover more calculators for time tracking, payroll, and HR.

Frequently asked questions about ESPP tax when you sell your shares

How much tax do I pay on ESPP when I sell?

Your ESPP tax depends on proceeds and basis, filing status, other taxable income, and whether the sale is qualifying or disqualifying. There is no flat ESPP rate—the wage portion uses federal income brackets and the gain portion uses capital-gains rules.

Enter your Form 3922 numbers in the calculator above for a 2026 federal estimate. Use Advanced for state tax or NIIT, and compare qualifying vs disqualifying to see how much tax might change if you had waited to meet holding periods.

How is tax on ESPP calculated?

The IRS splits ESPP profit into ordinary income (wages) and capital gain. On a qualifying sale, wage income is limited by IRC §423(c); the rest is usually long-term capital gain. On a disqualifying sale, the spread at purchase is wages, and any price change after purchase is capital gain.

You are taxed on the gain, not the full sale price. The calculator applies those rules to your share count, FMVs, sale price, and disposition type.

How do I avoid double tax on ESPP?

Increase your cost basis on Form 8949 by the ordinary income already taxed as wages (from your W-2 or plan reporting). That adjusted basis stops the same dollars from being taxed again as capital gain.

Brokers often report only the discounted purchase price on Form 1099-B. Fix basis in tax software—or use the adjusted basis line from this calculator—before you file.

Why should I hold ESPP shares for 2 years?

Holding at least 2 years from the grant date and 1 year from the purchase date is required for a qualifying disposition. That can cap wage income under §423(c) and move more profit to long-term capital gain.

Waiting is not always right for your finances—balance tax with diversification and cash needs. The comparison in the calculator shows the tax difference between selling early and qualifying treatment on the same facts.

What is a qualifying ESPP disposition?

A qualifying disposition means you met both ESPP holding periods: at least 2 years from the grant (offering) date and at least 1 year from the purchase date.

When both tests are met, ordinary income on the sale is limited by §423(c), and the remaining profit is typically taxed as long-term capital gain (for the capital portion modeled here).

What is a disqualifying ESPP disposition?

A disqualifying disposition happens when you sell before satisfying either holding period. The IRS treats the spread at purchase—purchase-date FMV minus what you paid—as ordinary income.

Any increase (or decrease) in share price after the purchase date is generally a capital gain or loss, usually short-term unless you held more than one year after purchase.

How is ordinary income calculated on a qualifying ESPP sale?

On a qualifying sale, ordinary income is the lesser of (1) your total gain on the sale or (2) the grant-date discount amount (often 15% of grant-date FMV × shares).

That cap is why qualifying sales can produce much less wage income than disqualifying sales on the same economics. Enter your Form 3922 FMVs in the calculator to see the split.

Are ESPP contributions pre-tax?

Usually no. Most qualified ESPP plans take payroll contributions after tax, similar to money you invest from your bank account.

Tax on the purchase discount is generally handled when you sell (qualifying path) or through wage reporting tied to a disqualifying purchase/sale pattern—not as a pre-tax 401(k)-style deduction.

What is the ESPP tax rate?

There is no single ESPP tax rate. Wage income from the plan is taxed like other pay (federal brackets on top of your other taxable income). The capital-gain portion uses short- or long-term rates, depending on holding rules.

For a dollar estimate on your sale, use the calculator above—it applies 2026 federal tables to both parts instead of a one-size-fits-all percentage.

What tax forms do I need for an ESPP sale?

You will typically use Form 3922 (purchase FMVs and dates), Form W-2 (wages, including ESPP ordinary income), Form 1099-B (broker sale proceeds—verify basis), Form 8949 (sale with adjusted basis), and Schedule D (capital gains summary).

See Reporting on your return on this page for a checklist. Run your tax software’s ESPP workflow before accepting imported 1099-B basis.

What is IRS Form 3922 for ESPP?

Form 3922 is the annual statement your employer (or transfer agent) sends after an ESPP purchase. It shows grant date, purchase date, shares, and fair market values the IRS cares about for §423 calculations.

You may not attach it to your return, but you need it to compute ordinary income and adjusted basis when you sell—even if your broker later sends a simpler 1099-B.

What is the $25,000 ESPP limit?

IRC §423(b)(8) limits how much stock can accrue under a qualified ESPP each calendar year—generally $25,000 of stock measured at grant-date FMV, combined across all §423 plans with the same employer.

Excess amounts may be treated as a non-qualified purchase. This calculator does not enforce the cap; confirm with your plan administrator if you buy near the limit.

Does a disqualifying disposition change my basis?

Yes. After a disqualifying purchase/sale pattern, capital gain is usually measured from purchase-date FMV (not just cash paid), because the spread at purchase was already taxed as wages.

That is why disqualifying sales can show a smaller capital gain than you expect from sale price minus out-of-pocket cost—the wage leg absorbed part of the economics.

Is ESPP ordinary income withheld from my paycheck?

On many plans, no federal income tax is withheld on §423(c) ordinary income from a qualifying sale—even though that income is taxable on your return.

You may owe tax when you file. Disqualifying spreads are more likely to appear on your W-2 or pay stubs around purchase or sale—reconcile those amounts with the calculator.

Should I use an ESPP tax calculator or a capital gains calculator?

Use an ESPP tax calculator (this page) when shares came from an employer §423 employee stock purchase plan. You need qualifying vs disqualifying rules, wage income, and adjusted basis—not just sale price minus broker cost.

Use the capital gains tax calculator for regular brokerage or crypto sales, or when you already know your final basis and there is no ESPP wage component.

What is ESPP lookback pricing?

Lookback lets you buy at a discount applied to the lower stock price on the grant date or purchase date. That can reduce your purchase price versus discounting only the purchase-date price.

Enter the price you actually paid in the calculator. For a quick check, enable the lookback pricing helper under Advanced and compare to your plan statement.

Is ESPP capital gain short-term or long-term on a disqualifying sale?

The spread at purchase is ordinary income, not capital gain. Only price movement after the purchase date creates capital gain or loss.

That post-purchase gain is short-term if you sell within one year of purchase, even when the grant-date two-year rule is not met. This calculator treats disqualifying capital gain as short-term by default; if you held more than one year after purchase but still have a disqualifying sale, confirm treatment with your tax preparer.

Can I lose money on ESPP shares?

Yes. Company stock can fall after you buy through the plan. You can have a capital loss on sale even after wage income was computed on a disqualifying path.

Capital losses follow normal netting rules against other gains; they do not erase wage income already recognized. Model your sale price below purchase FMV to see the split in the calculator.

Do ESPP shares trigger AMT?

Qualified §423 ESPP purchases are not the same as incentive stock option (ISO) AMT adjustments. Most employees do not get a separate AMT hit at purchase solely because of a standard ESPP.

Very large ordinary income in a year can still affect overall tax, including AMT for some filers. Ask a CPA if you are near AMT territory on Form 6251.

How do states tax ESPP income?

Many states follow federal characterization (wages vs capital gain) but apply their own rates. California generally taxes capital gains as ordinary income for residents.

Enable state income tax under Advanced for a rough combined estimate—state conformity and local taxes are not fully modeled.

When should I sell ESPP shares?

There is no one-size-fits-all answer. Consider cash needs, how much of your wealth is in employer stock, and whether you have met the two-year / one-year holding rules for qualifying treatment.

Model tax with the qualifying vs disqualifying comparison, then decide with a tax or financial professional if the stakes are high. This page is educational—not a recommendation to buy, hold, or sell.