ESPP Sale Calculator | Adam Advisory
Adam Advisory · Equity Compensation Tools

What happens when you sell your ESPP shares?

The tax outcome of an ESPP sale depends on when you sell, not just the price. Enter your plan details below to see how your gain splits between ordinary income and capital gain — and what waiting for a qualifying disposition could change.

Please note: This tool is for general educational purposes only and produces hypothetical estimates based on the figures you enter and simplified flat tax rates. It reflects federal income tax character only and does not account for state or local taxes, payroll taxes, the net investment income tax, alternative minimum tax considerations, or your complete tax situation. It is not financial, tax, investment, or legal advice or a recommendation to take any action. Results should not be the sole basis for any decision, and you should consult a qualified tax professional about your specific situation. See our full disclosures for important information.

Your plan details




How this sale breaks down

Line itemTotal
Your gain, split by tax character
Taxed as ordinary income Taxed as capital gain
Your sale

Disqualifying, short-term

Sold within 1 yr of purchase
Ordinary income
Capital gain
Est. federal tax
Your sale

Disqualifying, long-term

1+ yr from purchase, under 2 yrs from offering
Ordinary income
Capital gain
Est. federal tax
Your sale

Qualifying

Past both holding clocks
Ordinary income
Capital gain
Est. federal tax
!

Tax matters, but diversification is key to managing risk

Getting the tax timing right is worth doing well — but it's only one piece of the picture. Every ESPP purchase deepens your concentration in one company — the same company that already pays your salary, and possibly your RSUs too. Diversifying out of concentrated stock positions is one of the most effective ways to manage that risk.

This tool only models the tax side — how much company stock makes sense to hold, and what to do with the proceeds, are separate questions worth their own conversation.

How the pieces work

Everything the calculator is doing, in plain English. Open any section.

How your purchase price is set (discount and lookback)

Most tax-qualified ESPPs let you buy company stock at a discount — commonly 15% — through payroll deductions collected over an offering period.

If your plan has a lookback, the discount applies to the lower of the stock price at the start of the offering period or the price on the purchase date. When the stock rises during the offering period, the lookback is where much of the value comes from: you're buying at a discount to a price that no longer exists.

Example: offering-date price $100, purchase-date price $120, 15% discount with lookback. Your purchase price is $85 — and the shares are worth $120 the day you get them. That $35 spread is called the bargain element, and how it gets taxed is the whole story of this calculator.

The two holding clocks: qualifying vs. disqualifying

Every ESPP sale is one or the other, based on two clocks that both have to finish:

  • Clock 1: more than 2 years after the offering date
  • Clock 2: more than 1 year after the purchase date

Pass both, and the sale is a qualifying disposition. Miss either one, and it's disqualifying — no partial credit on the ordinary income treatment.

There is a middle rung, though: if you've held more than 1 year from purchase but sell before the 2-year offering clock finishes, the sale is still disqualifying — but the gain above the purchase-date price is at least long-term. That's the "Disqualifying — long-term" column in the comparison, and it's a common real-world scenario for 6-month offering periods, where the purchase clock always finishes well before the offering clock.

The labels sound like a judgment, but they're not. A disqualifying sale isn't a mistake — sometimes taking the money early, paying more tax, and reducing concentration in your employer's stock is exactly the right call. The point of knowing the rules is choosing on purpose.

What counts as ordinary income in each case

This is the part most people get wrong, because the rule flips depending on which side of the clocks you're on.

Disqualifying: the entire spread between the purchase-date price and what you paid is ordinary income — reported on your W-2 in the year you sell — even if the stock has since dropped. Anything above the purchase-date price is capital gain (short- or long-term depending on how long you held after purchase).

Qualifying: ordinary income is the lesser of two numbers — the discount measured against the offering-date price, or your actual profit on the sale. Everything else is long-term capital gain.

That "lesser of" rule is why a qualifying sale after a big run-up is so powerful: the run-up during the offering period, which would have been ordinary income in a disqualifying sale, gets taxed as long-term capital gain instead.

Cost basis and the 1099-B trap (read this before filing)

Your true cost basis in ESPP shares is what you paid plus any amount taxed as ordinary income. That ordinary income raises your basis so the same dollars aren't taxed twice.

The trap: brokers are only required to report your purchase price as basis on Form 1099-B. The ordinary income portion — already on your W-2 — is usually missing. If you copy the 1099-B basis straight onto your return, you pay tax on the same income twice.

The fix is a basis adjustment on Form 8949 (column g, code B) that adds the compensation income back to your basis. It's a routine adjustment, but tax software won't make it for you unless you tell it to — and it's one of the most common errors on returns with ESPP sales.

Keep every purchase confirmation and your Form 3922 (your employer files one for each ESPP purchase). Those documents are how you reconstruct the right basis years later.

What this calculator doesn't cover

This tool models federal income tax character for a Section 423 tax-qualified ESPP with the inputs shown. It deliberately leaves out several things that can matter in your situation:

  • State income tax — treatment and rates vary by state.
  • Net investment income tax (NIIT) — a 3.8% surtax on investment income above certain income thresholds.
  • Your actual brackets — the rate dropdowns are estimates; a large sale can itself push income into higher brackets.
  • Non-qualified ESPPs — plans outside Section 423 tax the full discount at purchase, and this calculator's logic doesn't apply.
  • The $25,000 annual limit, plan-specific rules, blackout windows, and employer trading policies.
  • Concentration risk — the investment question of holding employer stock at all, which is often more important than the tax question.

Your ESPP is one piece of a bigger system

If equity compensation is a meaningful part of your income, the sell-or-hold question deserves a plan — not a guess. That's the work we do.

Important disclosures. This calculator is provided by Adam Advisory, LLC ("Adam Advisory"), an investment adviser registered with the State of Arizona, for educational and informational purposes only. It is a simplified, hypothetical illustration and does not constitute tax, legal, accounting, or investment advice, nor a recommendation to buy, sell, or hold any security. Results assume a Section 423 tax-qualified employee stock purchase plan and reflect only federal income tax character based on the inputs you provide; they exclude state and local taxes, the net investment income tax, payroll taxes, alternative minimum tax considerations, and the effect of your complete tax situation. Tax laws and rates are subject to change. The estimated tax figures use the flat rates you select and will differ from your actual liability. Hypothetical results have inherent limitations and no representation is made that any outcome shown will be achieved. Before making decisions about your equity compensation, consult a qualified tax professional or contact Adam Advisory to discuss your specific circumstances. Registration as an investment adviser does not imply a certain level of skill or training. Additional information about Adam Advisory, including its Form ADV Part 2A, is available at adamadvisoryfp.com/disclosures.