ESPP Tax Calculator: Sell Now or Wait for a Qualifying Disposition?
Your employee stock purchase plan gave you shares at a discount. Now the question is whether to sell right away or hold long enough for a qualifying disposition and a lower tax bill. Enter the numbers from your Form 3922, and this calculator shows the tax and what you keep for each choice, how far the stock could fall before waiting stops paying off, and the cost-basis fix that keeps you from paying tax twice.
Unlock this free calculator
Join my email list to use this tool and every other calculator on the site. You’ll also get plain-English tax and money tips, and a note when I add a new tool.
Free. One email list for every tool on the site; unsubscribe anytime. Already signed up on this browser? The tools unlock automatically.
Have years of ESPP lots to sort out? Michael Jones, EA, CFP®, can fix the cost basis on past returns, plan which lots to sell first, and cut down a concentrated position without a surprise tax bill.
Book a free 15-minute callQualifying vs. disqualifying at a glance
| Disqualifying (sold early) | Qualifying (held long enough) | |
|---|---|---|
| Holding period | Either test not met | More than 2 years from offering and more than 1 year from purchase |
| Ordinary income | Market price at purchase minus what you paid | The smaller of the discount at the offering date or your actual gain |
| Sold at a loss | Ordinary income still owed, plus a capital loss | No ordinary income; a capital loss |
| The rest of the gain | Short- or long-term capital gain | Long-term capital gain |
Worked example
Dana’s offering period started January 1, 2026, at $40 a share. On June 30, the price was $50, and with a 15% discount and a lookback she paid $34 for 200 shares. In November it’s $55. If she sells now, $3,200 is ordinary income and $1,000 is a short-term gain: about $924 of tax in the 22% bracket. If she waits until January 2, 2028, for a qualifying sale at the same price, only $1,200 is ordinary income and $3,000 is a long-term gain at 15%: about $714. Waiting saves $210, but a drop of just 2.2% in the share price wipes that out, so for Dana, selling now and diversifying is hard to argue with. Either way, her broker will likely report a $6,800 basis. If she sells now, her real basis is $10,000, and fixing it on Form 8949 saves her about $704.
Have RSUs too? The RSU withholding gap calculator shows whether the 22% withheld covers your bill. For incentive stock options, see the ISO AMT calculator.
Frequently asked questions
What is a qualifying disposition of ESPP shares?
A sale more than two years after the offering (grant) date and more than one year after the purchase date. Only the smaller of the plan discount at the offering date or your actual gain is ordinary income; the rest is a long-term capital gain.
What is a disqualifying disposition?
Any sale before both holding periods are met. The whole difference between the market price on the purchase date and the price you paid is ordinary income, even if you sell at a loss. The gain or loss after the purchase date is a capital gain or loss, long-term only if you held more than a year after purchase.
Why does my 1099-B show the wrong cost basis?
Brokers usually report only the price you paid. The ordinary income from the discount is already taxed as pay, so you add it to your basis on Form 8949 with adjustment code B. If you don't, you pay tax on the discount twice.
Is waiting for a qualifying disposition worth it?
Sometimes, but the saving is often small next to the risk of holding one stock for a year or more. Compare the tax you'd save with how far the price could fall, which is what this calculator shows.
Is ESPP income subject to Social Security and Medicare tax?
No. The ordinary income from a qualified Section 423 plan is reported as wages for income tax but isn't subject to Social Security or Medicare tax, and employers usually don't withhold income tax on it either.
What is Form 3922?
The form your employer files for each ESPP purchase. It shows the offering date, purchase date, market prices on both dates, the price you paid and the number of shares, which are exactly what you need for this calculator and your tax return.
Sources
- IRS Publication 525: Employee stock purchase plans
- IRC 423: Employee stock purchase plans
- IRS: About Form 3922
- IRS: Instructions for Form 8949 (adjustment code B)
Reviewed by Michael Jones, EA, CFP®, an Enrolled Agent federally licensed to represent taxpayers before the IRS. This calculator applies flat rates to one lot of a qualified Section 423 plan. It doesn’t model how the extra income moves you between brackets, the $3,000 limit on capital losses, wash sales or nonqualified plans. This is education, not advice for your situation; book a free call for that.
