See your real ESPP gain and tax bill before you sell.
Enter your offering and purchase prices, what you paid, and your sale to see the ordinary income, capital gain, and total tax — with the qualifying vs. disqualifying split done for you.
Why it matters: An ESPP discount is a built-in discount at purchase, but your final return isn't guaranteed — selling triggers a mix of ordinary income and capital gains that varies by holding period. See the estimated split before you sell.
Tax year: 2026Last reviewed: July 17, 2026Source: IRS Rev. Proc. 2025-32 & IRS NIIT guidance
Figures are an educational federal estimate. Deductions, credits, carryovers, the alternative minimum tax, special asset rules and state taxes can change your actual result. ESPP tax treatment also depends on your plan type and holding period; see your W-2 and IRS Form 3922 for the figures needed to file.
Example calculation
Suppose your stock was $100 at the offering date and $120 on the purchase date. With a 15% lookback discount you pay $85 per share for 100 shares ($8,500), then sell at $130 ($13,000) — a $4,500 gain.
Sell right away and it's a disqualifying disposition: the $35/share spread between the $120 purchase-date price and your $85 cost — $3,500 — is ordinary income on your W-2, and the remaining $1,000 is a short-term capital gain.
Hold more than two years from offering and one from purchase and it becomes a qualifying disposition: only the $1,500 offering-date discount (15% × $100 × 100) is ordinary income, and the other $3,000 is taxed at the lower long-term capital-gains rate.
How to use this ESPP calculator
Enter your offering date price, the FMV on your purchase date, the actual price you paid (usually 85% of the lower of the two), how many shares you bought, and what you sold (or plan to sell) them for. The calculator automatically determines whether your sale is a qualifying or disqualifying disposition and shows an estimated tax breakdown — estimated ordinary-income and capital-gain components, plus payroll and state estimates — so you can see your net profit and effective tax rate before you act.
What is an ESPP?
An Employee Stock Purchase Plan (ESPP) lets you buy company stock at a discount — typically 15% — through payroll deductions. Most plans use a "lookback" feature: you pay 85% of the lower of the stock price at the start of the offering period or the end (purchase date). This means you can profit even if the stock falls, which is what makes a Section 423 ESPP one of the most reliable benefits offered by public companies.
Qualified (Section 423) vs non-qualified plans
Use the plan type selector to match your plan. Most large U.S. public-company ESPPs are qualified Section 423 plans: the discount income is reported on your W-2 but is generally not subject to FICA (Social Security and Medicare), even in a disqualifying disposition, and holding long enough unlocks the qualifying-disposition tax break. A non-qualified ESPP works differently — the entire purchase-date discount is ordinary income at purchase and is subject to FICA, with no qualifying-disposition treatment. The calculator applies the correct rules for whichever plan you choose.
Qualifying vs. disqualifying dispositions: tax impact
How you are taxed on ESPP shares depends almost entirely on when you sell.
Qualifying disposition (QD)
You must hold shares for more than 2 years from the offering date AND more than 1 year from the purchase date. Ordinary income is generally limited to the lesser of the offering-date discount determined under the plan or the actual gain on the sale — not always the full discount. Any remaining gain is generally long-term capital gain (0%, 15%, or 20%). If the shares are sold at a loss, there is generally no ordinary income and the loss is a capital loss.
Disqualifying disposition (DQ)
If you sell before meeting both holding requirements, the spread between your purchase price and the FMV on the purchase date is taxed as ordinary income (and shows up on your W-2). Only gains above that purchase-date FMV may qualify as capital gains — short-term if you held the shares a year or less after purchase.
Should you sell ESPP shares immediately?
A 15% purchase discount provides a built-in discount at purchase, but the final realized return is not guaranteed because the share price can change before the shares are sold and plan or trading restrictions may delay the sale. If shares could be sold immediately at unchanged fair market value, paying 85% of fair value would represent approximately a 17.65% gain on the amount paid before taxes, fees and price movement. Selling promptly can reduce employer stock concentration risk. The trade-off: an immediate sale is a disqualifying disposition, so the purchase-date discount is taxed as ordinary income.
If you believe in your employer's stock and are in a low bracket, holding for a qualifying disposition can result in lower total taxes. Use the "what if you had held?" comparison in the calculator above to see the dollar difference in your specific situation — and weigh it against the market risk of staying concentrated in a single stock.
What this calculator does not include
This is a simplified educational estimate. It applies your marginal bracket to the ordinary-income portion and an approximate 0/15/20% long-term rate based on your income, but it does not model the Net Investment Income Tax, the alternative minimum tax, or the precise interaction of your other deductions and credits. Payroll-tax (FICA) treatment can depend on the plan and the transaction — qualified Section 423 discount income is generally not subject to FICA, while non-qualified ESPP income generally is — and this calculator does not fully model the Social Security wage base or all payroll-tax circumstances. State rules vary widely and the state figure is a simplified effective-rate estimate. Treat the result as an estimate and confirm specifics with a qualified tax professional before you sell.
Sources: IRS Publication 525 (ESPP compensation treatment) and the IRS Section 423 stock-plan FAQ.
Keep going — related calculators
Answer your next investing question in under a minute.
What are my RSUs really worth after taxes?
Model the long-term value of base salary, RSUs, vesting, stock growth, taxes, and inflation.
Gross • After-tax • Present value
Is this gain short-term or long-term?
Stocks held for one year or less are taxed at ordinary-income rates. Estimate your short-term capital gains tax.
Ordinary rate • vs long-term • What you'd save
What's my long-term capital gains rate?
Stocks held for more than one year qualify for lower 0%, 15%, or 20% federal rates. Estimate your long-term tax.
0% / 15% / 20% tier • NIIT • After-tax
Frequently asked questions
Educational use only — not financial advice
StockLeo is for educational purposes only and does not provide financial, investment, legal, or tax advice. Calculations are estimates and may not reflect your full tax or financial situation. Consult a qualified professional before making financial decisions.