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
Enter one ESPP purchase and one sale—share counts, Form 3922 fair market values, sale price, and whether the sale is qualifying or disqualifying. You get a clear split between wages and capital gain, an adjusted basis line for Form 8949, and a 2026 federal tax estimate that respects your other taxable income.
Built for IRC §423 plans: §423(c) wage caps on qualifying sales, disqualifying spread at purchase, the common broker basis trap, and a side-by-side view of tax if you had held long enough to qualify.
Use Advanced for state tax, NIIT, or a lookback price check. For paycheck withholding and annual refunds, try the income tax calculator. IRS overview: Publication 525.
How are ESPP shares taxed when you sell?
When you sell shares from a qualified employee stock purchase plan (ESPP), the IRS splits profit into ordinary income (wages) and capital gain. Which rules apply depends on whether your sale is a qualifying or disqualifying disposition under IRC §423.
Qualifying sale: you held shares at least 2 years from the grant (offering) date and 1 year from the purchase date. Ordinary income is capped under §423(c) (often the discount at grant date). The rest is usually long-term capital gain.
Disqualifying sale: selling too early taxes the spread at purchase (purchase-date FMV minus what you paid) as wages. Any change in price after purchase is capital gain—typically short-term unless you held more than one year after purchase.
Basis trap: wage income from the ESPP must be added to your cost basis before you report capital gain. Brokers often omit that adjustment on Form 1099-B, which can make you pay tax twice on the same dollars.
Avoid double tax on ESPP (basis trap)
Adjusted basis (qualifying sale) ≈ cash you paid for shares + ordinary income included in wages from the ESPP.
If tax software uses only the discounted purchase price from your broker, capital gain looks too high. Match Form 3922 + W-2 before filing—this calculator shows the adjusted basis we use for the capital leg.
How ESPP taxes work (discount, purchase, and sale)
Most §423 plans let you buy company stock at a discount (often 15%) using payroll contributions over an offering period (sometimes six months). At the purchase date, shares are bought and often transferred to a brokerage account. Tax is usually driven by what happens when you sell, not when you enroll—though disqualifying treatment can tie wage income to the purchase.
Contributions are typically after-tax from payroll (not pre-tax like a 401(k)). The economic benefit is the discount (and any lookback), which the IRS taxes through wage and capital-gain rules when you dispose of the shares.
After each purchase you should receive IRS Form 3922 with grant date, purchase date, share count, and fair market values. Keep it with your tax records—you will need those FMVs even if your broker’s 1099-B shows a simpler number.
This page models one purchase lot and one sale. It does not validate the $25,000 calendar-year accrual cap (§423(b)(8)) or employer FICA on disqualifying spreads—see Limitations below.
| Holding rule | What it means for your sale |
|---|---|
| 2 years from grant (offering) date | Required for <strong>qualifying</strong> disposition; measured from the start of the offering period on Form 3922 |
| 1 year from purchase date | Also 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 dates | Qualifying path—ordinary income capped under <strong>§423(c)</strong>; capital gain uses adjusted basis |
Mark grant and purchase dates from Form 3922 on your calendar. Then select Qualifying or Disqualifying in the tool to match your sale—holding periods are not calculated automatically from dates you enter.
ESPP discount and lookback pricing
Qualified ESPP plans commonly offer a 15% discount on company stock. Many plans also use a lookback rule: your purchase price is the discount applied to the lower of the stock price at the grant (offering) date or the purchase date. That can make your per-share cost lower than discounting only the purchase-date price.
In the calculator, enter the actual price you paid per share from your plan statement (or Form 3922). If you want a quick sanity check, open Advanced and turn on lookback pricing helper—it applies your discount % to the lower FMV and compares the result to what you entered.
Lookback mechanics vary by employer. Your summary plan description and Form 3922 are authoritative; this tool does not model every non-standard plan design.
Qualifying vs disqualifying ESPP disposition
Whether your sale is qualifying or disqualifying is the biggest driver of ESPP tax. The same sale price can mean very different ordinary income and capital gain depending on how long you held the shares after the grant and purchase dates.
Use the table below for a side-by-side view, then choose the matching option in the calculator.
| Topic | Qualifying disposition | Disqualifying disposition |
|---|---|---|
| Holding periods | ≥ 2 years from grant date and ≥ 1 year from purchase date | Either 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 gain | Sale proceeds − adjusted basis; usually long-term on qualifying sales modeled here | Price change after purchase; short-term unless held > 1 year after purchase |
| Adjusted basis (capital leg) | Purchase price + ordinary income included in wages | Purchase-date FMV (after wage spread) for capital gain math |
| Withholding on §423(c) OI | Generally no federal withholding on qualifying OI—you may owe at filing | Employer may withhold on disqualifying wage component |
If you are weighing an early sale, model a disqualifying sale first and read the qualifying vs disqualifying comparison in the results—then factor in diversification and cash needs, not tax alone.
IRC §423(c) ordinary income and ESPP wage amounts
Part of your ESPP profit is taxed as wages (ordinary income); the rest is capital gain. The wage amount depends on qualifying vs disqualifying rules; capital gain is figured only after you know that wage piece and your adjusted basis.
Switch between Qualifying and Disqualifying above the results to see each formula applied to your inputs.
Qualifying ordinary income cap (§423(c))
OI = min(total gain on sale, grant-date discount × shares)Total gain ≈ (sale price − selling costs) × shares − cash paid for shares. Grant-date discount is often 15% of grant-date FMV per share when your plan uses the standard discount.
Example: 150 shares, grant FMV $80, purchase price $68, sale $110 → total gain $6,300; discount at grant $12/share → OI = min($6,300, $1,800) = $1,800. Capital gain uses basis of $68 + $12 = $80 per share (before selling costs).
Disqualifying ordinary income (spread at purchase)
OI = (purchase-date FMV − price paid per share) × sharesThis spread is taxed as wages even if you sell later at a loss. Capital gain is generally sale proceeds minus purchase-date FMV (per share), times shares, after selling costs.
Example: 200 shares, purchase FMV $72, paid $51, sold $75 → OI = ($72 − $51) × 200 = $4,200; capital gain on the post-purchase rise ≈ $600 before tax (see the Disqualifying example preset).
For bracket-based federal totals, see Worked examples below or tap Qualifying example / Disqualifying example in the calculator.
Worked ESPP tax examples (qualifying and disqualifying)
These examples match the Qualifying example and Disqualifying example presets in the calculator. They illustrate how disposition type changes the split between wages and capital gain—not personalized tax advice.
Federal tax ranges below use 2026 brackets with the stated other taxable income. Your filing status, state tax, and NIIT settings will change the totals.
Qualifying sale (sample scenario)
Inputs: 150 shares; grant-date FMV $80; purchase-date FMV $100; paid $68/share; sold $110/share; qualifying disposition; single filer with about $104,000 other taxable income.
Split: about $1,800 ordinary income (§423(c) cap) and $4,500 long-term capital gain before federal tax. Federal total tax in the tool lands near $1,000–$1,200 with 2026 brackets—run the preset to see the full breakdown.
Disqualifying sale (sample scenario)
Inputs: 200 shares; grant-date FMV $60; purchase-date FMV $72; paid $51/share; sold $75/share; disqualifying disposition; married filing jointly with about $148,000 other taxable income.
Split: about $4,200 ordinary income (spread at purchase) and $600 short-term capital gain (price rise after purchase). Estimated federal tax is typically near $1,000–$1,100. The comparison callout shows how much lower tax might be under qualifying rules on the same economics.
Broker basis trap (W-2, 1099-B, and Form 8949)
Brokers frequently report cost basis on Form 1099-B as only what you paid through the ESPP (the discounted price). The IRS expects you to report ordinary income from the ESPP on your W-2 and to increase basis by that amount before computing capital gain on Form 8949 and Schedule D.
If you copy broker basis into tax software without the adjustment, you can overpay capital gains tax on income already taxed as wages. This calculator shows adjusted basis and a plain-language note you can reconcile against Form 3922 and your W-2.
For weighted average cost across non-ESPP lots, use the stock average calculator—then return here only for the ESPP disposition slice.
Numeric basis trap example (qualifying sale)
You paid $68/share for 150 shares ($10,200). §423(c) ordinary income on a qualifying sale is $1,800 (reported as wages).
Wrong: Broker basis $10,200 → software taxes full gain from $68 to sale price as capital gain.
Right: Adjusted basis ≈ $10,200 + $1,800 = $12,000 ($80/share) before capital gain. That is the basis line this calculator displays for Form 8949 planning.
How to report an ESPP sale on your tax return
Reporting is where ESPP sales trip people up—especially when broker cost basis does not match wage income. Use this checklist with your Form 3922, W-2, and 1099-B:
- Form 3922 — confirm grant date, purchase date, shares, and FMVs used for your plan.
- Form W-2 — reconcile Box 1 wages with ordinary income from a disqualifying purchase or any employer-reported ESPP adjustment.
- Form 8949 — report the sale with adjusted basis (purchase price plus ordinary income included in wages for qualifying sales, or purchase-date FMV logic for disqualifying capital gain).
- Schedule D — carry totals from Form 8949; split short-term vs long-term capital gain as applicable.
Tax software often has an ESPP or employee stock wizard—enter Form 3922 fields before accepting broker-imported 1099-B basis. Official overview: About Form 3922 · IRS Publication 525.
How to use this ESPP tax calculator
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.
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.
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 %.
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
Full qualifying and disqualifying walkthroughs with dollar splits are in Worked examples above. The preset buttons load the same inputs into the calculator.
Limitations of this calculator
This is a 2026 federal planning estimate for a single ESPP purchase and sale. It helps you understand ordinary income vs capital gain and avoid broker basis mistakes—it does not replace a CPA, your plan administrator, or tax filing software.
Good for: comparing qualifying vs disqualifying tax on the same numbers, sanity-checking Form 3922 FMVs, estimating bracket-based federal tax, and exporting a summary for your records.
Not modeled here:
- Single §423 batch — no multi-lot FIFO, multiple offering periods, or wash sales
- Manual disposition — you choose qualifying vs disqualifying; holding periods are not derived from purchase or sale dates you enter
- State and local tax — optional state layer is simplified; no city taxes or full conformity rules
- §423(b)(8) $25k accrual cap, payroll FICA on disqualifying spreads, RSU/ISO plans, or AMT (Form 6251)
- Disqualifying long-term capital gain when you held more than one year after purchase (defaults to short-term without sale dates)
- Not tax, legal, or investment advice — verify all figures before filing
Official references: IRS Pub 525 · Form 3922. Complex plans, international tax, or large concentrated positions warrant professional review.
More free tools
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.