ESPP Tax Calculator
Employee Stock Purchase Plan — Qualifying & Disqualifying Disposition
Enter your ESPP details
Fill in the form and click Calculate Tax to see your full tax breakdown including Qualifying vs Disqualifying comparison.
- ✓ Federal & state tax breakdown
- ✓ Side-by-side Qualifying vs Disqualifying
- ✓ Cost basis reconciliation for IRS filing
- ✓ W-2 Box 1 reconciliation
Your company's Employee Stock Purchase Plan (ESPP) is one of the most valuable benefits on your pay stub. You have the opportunity to buy your employer's stock at a discount, usually 10 to 15% below the fair market value. However, when tax season arrives, many employees either overpay the IRS by using the wrong cost basis or receive an unexpected tax bill because they didn't consider the ordinary income component. This calculator takes care of all the calculations so you can see exactly what you owe, why you owe it, and if holding your shares longer might save you money.
Purchase Price and the Lookback Provision. The first number this calculator calculates is your actual purchase price per share. With a standard 15% discount and no lookback, you pay 85% of the FMV on the purchase date, which is straightforward. However, most Section 423 ESPPs come with a lookback provision, which provides a real benefit. The lookback allows you to use the lower price between the FMV at the start of the offering period and the FMV on the purchase date. If your company's stock was $150 when the offering began and rose to $180 by the purchase date, you don't pay 85% of $180, which would be $153. Instead, you pay 85% of $150, which equals $127.50. That gives you a $25.50 advantage for each share because of the lookback. When you toggle "Lookback Enabled" in the form above, the purchase price field updates in real time.
Qualifying vs. Disqualifying Disposition — The Holding Period Test. Once you buy your shares, two holding periods start that determine how the IRS taxes your eventual sale. A qualifying disposition requires both of these conditions: you must sell more than 2 years after the offering period starts and more than 1 year after the purchase date. If you miss either one — even by a single day — it becomes a disqualifying disposition. In that case, the full difference between FMV at purchase and your purchase price is treated as ordinary income taxed at your marginal rate, which can be as high as 37% federally. If you meet both conditions, the tax treatment is much more favorable. Your ordinary income is limited to the original offering discount, and any amount above that is taxed as a long-term capital gain at rates of 0%, 15%, or 20%, depending on your total income.
Ordinary Income Calculation — What Goes on Your W-2. For a disqualifying disposition, ordinary income is calculated as (FMV at Purchase − Purchase Price) × Shares. For instance, in the above example: ($180 − $127.50) × 100 shares equals $5,250. Your employer automatically adds this amount to your W-2 Box 1 wages, and it appears in your paycheck as compensation income in the year of the sale. For a qualifying disposition, ordinary income is limited to min(FMV at Offering Start × discount%, Sale Price − Purchase Price) × Shares. The "min" function is crucial. It means that if the stock price drops after the offering starts, your ordinary income is limited to what you actually gained, never exceeding that amount. This limited figure is usually much smaller than the disqualifying spread, making qualifying treatment very beneficial when the stock has increased significantly.
Capital Gains — Short-Term vs. Long-Term. Once ordinary income is calculated, any leftover profit from the sale becomes a capital gain. For disqualifying dispositions, the capital gain is calculated as (Sale Price − FMV at Purchase) × Shares. If you sell within 1 year after the purchase, this is treated as a short-term capital gain, which is taxed at your ordinary income rate, just like your salary. If you sell more than 1 year after purchase (but still fail the 2-year offering test), it turns into a long-term capital gain. For qualifying dispositions, the capital gain calculation stays the same — (Sale Price − FMV at Purchase) × Shares — but it is always treated as long-term, regardless of how long you held it. The difference between a 24% short-term rate and a 15% long-term rate on the same $2,000 gain is $180, and for larger ESPP purchases, this difference can be much more substantial.
The 1099-B Cost Basis Problem — The Mistake That Costs Thousands. This is the most frequent ESPP tax mistake in the U.S., caused by a reporting gap between your employer and your broker. Your employer rightly reports the ordinary income ($5,250) on your W-2. Then, your broker issues Form 1099-B showing the sale, but only reports your purchase price ($12,750) as the cost basis, ignoring the IRS-correct adjusted basis ($18,000). If you file using the broker's figure, you report an extra $5,250 of capital gain that doesn't actually exist, which is the same income that was already taxed as wages. You end up paying taxes on it twice. The correct cost basis is the purchase price plus ordinary income already reported on the W-2, equaling the FMV at purchase multiplied by shares. This calculator shows both figures: the broker's reported basis and the correct IRS basis, so you know exactly what to enter on Form 8949 Column (e) when filing Schedule D.
Federal and State Tax — How the Calculator Applies Your Brackets. Ordinary income from your ESPP adds to your existing W-2 salary to determine your federal marginal bracket (10% through 37% based on 2024 IRS thresholds). Short-term capital gains use the same stacked-income marginal rate. Long-term capital gains follow a separate LTCG rate schedule (0%, 15%, or 20%) applied to income stacked on top of ordinary income. State tax is applied at your state's rate to the combined ordinary income and capital gains components. This ranges from 0% in Texas, Nevada, and Florida to 13.3% in California. Enter your annual W-2 income accurately in the form; this will shift your bracket and affect all calculations downstream. The after-tax proceeds figure at the bottom shows what you actually keep after purchase cost, federal tax, and state tax — the true return on your payroll contributions.
FICA Taxes — What Does Not Apply. One important note: the ordinary income part of a Section 423 ESPP is excluded from FICA taxes (Social Security 6.2% and Medicare 1.45%) under IRS tax rules. This differs from RSU (Restricted Stock Unit) income, which is fully subject to FICA at vesting. Your employer should not withhold Social Security or Medicare tax on ESPP ordinary income. If you see FICA deductions on your ESPP purchase confirmation, report this to your payroll team, as it is an error. This calculator does not include FICA because it should not apply to qualifying Section 423 plans.
Frequently Asked Questions
The five questions every ESPP holder eventually asks — answered clearly.
Your broker almost certainly reported only your purchase price as cost basis on 1099-B — not the IRS-correct adjusted basis. The correct cost basis is purchase price + the ordinary income already reported on your W-2 (i.e., the FMV at purchase × shares). If your purchase price was $127.50 and FMV at purchase was $180, your correct basis is $180/share — not $127.50. Using the broker's number inflates your capital gain by the exact amount that was already taxed as wages. Fix this on Form 8949: use the correct basis in column (e), note the adjustment in column (g), and attach an explanation. You are not being taxed less — you are correcting a double-tax error.
No — for Section 423 qualified ESPPs, there is no tax event at purchase. You only owe tax in the year you sell the shares. This is different from RSUs, where the vest date itself is a taxable event. When you purchase ESPP shares, your employer may show a "compensation income" figure in Box 12 of your W-2 — but for a qualifying plan, this is informational only and no income tax is due at purchase time. The actual tax is triggered when you sell, and the holding period from offering start and purchase date at that point determines whether it's a qualifying or disqualifying disposition.
This is a financial decision, not a tax-only decision. Qualifying treatment saves real money — often $1,000–$5,000+ depending on your income and share count — but it requires holding company stock for up to 2+ years, which is concentration risk. If you already receive your salary, bonus, and 401k match in company stock, adding more by holding ESPP shares compounds that exposure. A common approach: use this calculator's side-by-side comparison to see the exact tax savings from qualifying. If the savings are substantial and the stock is stable, holding makes sense. If the stock is volatile or you need the cash, a disqualifying sale with a known tax cost is still better than holding and watching the price drop 30%.
In a disqualifying disposition, your employer adds the ordinary income component (FMV at purchase − purchase price) × shares to your W-2 Box 1 wages automatically — you will see it reflected in your total compensation. Do not add this amount again when filing your return. When you report the sale on Schedule D / Form 8949, use the FMV at purchase × shares as your cost basis — this already accounts for the income that went through Box 1. The capital gain on Schedule D is then only the appreciation above FMV at purchase, not the discount portion. If you see Box 12 Code V on your W-2, that is the FMV at purchase figure your employer is providing for your reference.
No. If you sell at a price below your purchase price, there is zero ordinary income regardless of disposition type. You cannot have a "negative discount" — the ordinary income component is always floored at $0. The entire loss becomes a capital loss, which you can use to offset capital gains elsewhere in your portfolio. If net capital losses exceed gains, you can deduct up to $3,000 per year against ordinary income (e.g., salary), with any remaining losses carried forward to future tax years indefinitely. This is one of the underappreciated benefits of selling at a loss — the capital loss deduction partially offsets the pain.