ToolsBlog Download

ESPP Tax Calculator 2026

Split an employee stock purchase plan sale into ordinary income and capital gain, and compare the tax on a qualifying versus disqualifying disposition.

ESPP Tax Calculator 2026

Share Prices

Every price below is on your Form 3922. Boxes 3, 5, and 4, in that order.

$
$
$
$
Discount applied 15.0%

Key Dates

The offering and purchase dates are Form 3922 boxes 1 and 2. A sale on the exact anniversary still counts as inside the holding period.

Your Tax Rates

Not sure which bracket you are in? Check the Tax Bracket Calculator.

Depends on your taxable income. The Capital Gains Tax Calculator derives it for you.

Model the capital gain half with the Capital Gains Tax Calculator →
Disqualifying disposition

Total Federal Tax
$0.00
on this ESPP sale
Ordinary income (W-2 compensation) $0.00
Ordinary income per share $0.00
Gross sale proceeds $0.00
Capital gain $0.00
Tax on ordinary income $0.00
Tax on capital gain $0.00
Net after-tax proceeds $0.00
Net profit after tax $0.00
Effective tax rate on the sale 0.00%

Estimates only, at 2026 federal rates. No state tax, no 3.8% Net Investment Income Tax, no AMT. Not tax or legal advice.

Form 8949 Basis Correction

Basis your broker reports (1099-B) $0.00
Adjusted cost basis (correct) $0.00
Basis adjustment to enter $0.00

Enter the adjustment on Form 8949 with code B so the compensation income already on your W-2 is not taxed twice.

Both Dispositions, Side by Side

OutcomeQualifyingDisqualifying
Ordinary income$0.00$0.00
Capital gain or loss$0.00$0.00
Gain classificationLong-termLong-term
Total federal tax$0.00$0.00
Net profit after tax$0.00$0.00

The shaded column is your actual sale. The comparison assumes the same sale price per share on both branches, so it only holds if the stock price does not move.

Add Your ESPP Sale in the Tax47 App

Tax47 builds the whole return from your real W-2 and 1099 data, so the compensation income and the capital gain land in the right places and the refund estimate updates as you go.

Qualifying vs. disqualifying ESPP dispositions

An employee stock purchase plan under 26 U.S.C. Section 423 gives you two possible tax outcomes for the same shares. Which one you get depends entirely on the calendar. Section 423(a)(1) says no disposition may be made within 2 years of the grant (offering) date, nor within 1 year of the purchase date. Both tests must pass.

The two holding period tests
TestRequirementIf you miss it
Grant testSell more than 2 years after the offering dateDisqualifying disposition
Purchase testSell more than 1 year after the purchase dateDisqualifying disposition, and the gain is short-term

The word "within" is doing real work. Selling on the exact anniversary is still a sale within the period, so it fails. IRS Publication 525 states the same rule the other way around: you must hold the stock for more than 2 years after the grant date and more than 1 year after the purchase date. One extra day is enough to flip the result, and on a mid-size sale that day can be worth hundreds of dollars.

The combination that trips people up: a disqualifying disposition can still carry a long-term capital gain. If you held more than 1 year past the purchase date but sold before the 2-year grant mark, the sale is disqualifying (so you recognize the full purchase-date spread as compensation) while the leftover gain is long-term and taxed at long-term rates. That is the default scenario loaded above, and it is a common one.

How the ordinary income split is calculated

Disqualifying disposition

Ordinary income is the purchase-date market price minus the price you paid, times your shares, regardless of the sale price (IRS Publication 525). Section 423 has no analogue to the incentive stock option loss cap in Section 422(c)(2), so a sale at a loss does not reduce the compensation income. If you bought at $34 when the stock was worth $50 and later sold at $30, you still report $16 per share of ordinary income and separately claim a capital loss. Importing the incentive stock option rule here is a common mistake.

The ordinary income is then added to your basis: adjusted basis per share equals the purchase price plus the ordinary income per share, which works out to the purchase-date market price whenever there was a spread. Anything above that basis is capital gain, classified short-term or long-term by the same purchase-date test used for the disposition.

Qualifying disposition

Section 423(c) caps the compensation income at the lesser of two amounts: the gain you actually realized (sale price minus what you paid), or the discount measured at the grant date. Floor the result at zero. So a qualifying sale below your purchase price produces zero ordinary income and a pure long-term capital loss. The remaining gain on a qualifying sale is always long-term, because by definition you held the shares more than a year past purchase.

Worked through: grant price $50, you paid $42.50, sold at $75 with both tests passed. The actual gain is $32.50 per share, the grant-date discount is $7.50, so ordinary income is capped at $7.50 per share. Basis becomes $50, and the remaining $25 per share is long-term gain. On 200 shares that is $1,500 of compensation and $5,000 of long-term gain.

The lookback is where this gets interesting. A lookback plan prices your purchase at the discount off the lower of the grant-date and purchase-date price, so the calculator derives your discount percentage from that lower number. But the Section 423(c) cap is still measured against the grant-date price, because the statute treats an option price that is not determinable at grant as if the option had been exercised on the grant date. When the stock fell between grant and purchase, that cap comes out larger than the purchase-date spread, and a qualifying sale can carry more ordinary income than a disqualifying one. In that case waiting for the qualifying window costs money rather than saving it, and the comparison table above says so plainly.

Reporting an ESPP sale: Form 3922, the 1099-B basis trap, and Form 8949

Your employer files Form 3922 in the year of purchase, and it holds every price and date this calculator asks for: box 1 is the grant date, box 2 the purchase date, box 3 the grant-date market price, box 4 the purchase-date market price, and box 5 the price you actually paid. Keep it, because the numbers are not on your W-2 or your 1099-B.

Here is the trap. Your broker reports on Form 1099-B only what you paid for the shares. Your employer has already run the compensation income through your W-2. If you transcribe the broker's basis onto your return, that compensation gets taxed a second time as capital gain, and the overpayment is exactly the ordinary income amount.

The fix is a basis correction on Form 8949 with code B. The three numbers to transcribe are printed together in the basis card above: the basis your broker reports (purchase price times shares), the adjusted basis (purchase price plus ordinary income per share, times shares), and the difference between them.

What this calculator assumes

This is a single-lot estimator for a US federal return, and the simplifications are deliberate:

  • One lot of shares from one qualified Section 423 plan, sold in one transaction.
  • Federal tax only. No state or local income tax.
  • No 3.8% Net Investment Income Tax. High earners should add it on top with the NIIT Calculator.
  • No alternative minimum tax. (AMT is an incentive stock option concern, not an ESPP one, but exercise-year AMT interactions are out of scope here.)
  • No Social Security or Medicare tax, which is correct rather than an omission: 26 U.S.C. Section 3121(a)(22) excludes the Section 423 discount from FICA wages on both branches.
  • Capital losses are shown but not modeled forward. The $3,000 annual offset against ordinary income and the indefinite carryforward are handled by the Tax-Loss Harvesting Calculator.
  • Your marginal ordinary rate and your long-term capital gains rate are chosen by you rather than derived from total income. A single trade cannot know where the rest of your income puts you, and the ESPP income stacks on top of it. Use the Tax Bracket Calculator to find the right one.
  • The qualifying date and the "tax saved by waiting" figure assume the sale price per share is identical on both branches. If the stock moves between now and the qualifying date, the comparison moves with it.

The compensation income belongs on the wage lines and the capital gain on Schedule D, next to your credits and deductions. To see them together, download Tax47 and watch the refund estimate move as you add each form. Everything here is an estimate for planning, not tax or legal advice.

Frequently Asked Questions

Common questions about espp tax calculator 2026

What is the difference between a qualifying and a disqualifying ESPP disposition?

A sale is qualifying only if you held the shares more than 2 years past the offering (grant) date and more than 1 year past the purchase date. Miss either test, including selling on the exact anniversary, and the sale is disqualifying. A qualifying sale caps your ordinary income at the grant-date discount and treats the rest as long-term capital gain. A disqualifying sale taxes the full purchase-date spread as compensation. (26 U.S.C. Section 423(a)(1) and Section 423(c))

How is ESPP income taxed on a disqualifying disposition?

The purchase-date market price minus what you paid, multiplied by your shares, is ordinary compensation income, regardless of the sale price. That amount is added to your cost basis, and whatever is left is capital gain or loss. It is short-term or long-term based on how long you held past the purchase date, so a disqualifying sale can still produce a long-term gain. (IRS Publication 525)

Do I owe tax if I sold my ESPP shares at a loss?

On a disqualifying disposition, yes. The purchase-date discount is still ordinary income even when the stock has fallen below what you paid. You get a separate capital loss that can offset other gains, plus up to $3,000 of ordinary income per year, but the compensation income does not go away. There is no incentive stock option style loss cap for Section 423 plans. See the Tax-Loss Harvesting Calculator for what to do with the loss.

Does the 2-year or 1-year clock count the exact anniversary date?

No. Section 423 requires that no disposition be made within 2 years of the grant date or within 1 year of the purchase date, so a sale on the anniversary itself fails the test. You need at least one more day. This calculator uses the strict test, so moving the sale date by a single day can flip the result.

How does the ESPP lookback affect my taxes?

A lookback prices your shares off the lower of the grant-date and purchase-date price. When the stock fell between grant and purchase, the Section 423(c) ordinary-income cap is still measured against the grant-date price, which can make a qualifying sale carry more ordinary income than a disqualifying one. The calculator derives the discount from your three prices and handles that case automatically.

Why is my 1099-B cost basis wrong for ESPP shares?

Brokers report only what you actually paid, so the compensation income already reported on your W-2 gets taxed a second time as capital gain unless you correct it. Use Form 3922 to compute the adjusted basis (purchase price plus the ordinary income per share) and report the correction on Form 8949 with code B. The calculator prints the broker basis, the adjusted basis, and the adjustment amount.

Do I pay Social Security and Medicare tax on my ESPP discount?

No. The discount under a Section 423 plan is not treated as FICA wages on either a qualifying or a disqualifying disposition (26 U.S.C. Section 3121(a)(22)), so the same dollar of ESPP discount costs you less in tax than a dollar of cash or restricted stock pay. That is why this calculator does not add payroll tax.

Does the 3.8% Net Investment Income Tax apply to my ESPP gain?

It can. The capital gain portion counts as net investment income once your modified AGI passes $200,000 for single filers or $250,000 for married filing jointly. This calculator leaves NIIT out so the two dispositions stay directly comparable. Add it separately with the NIIT Calculator if you are above the threshold.