How ESPPs Are Taxed by the IRS: Dispositions, Forms, and Basis

Shares bought through an Employee Stock Purchase Plan are taxed on the discount you received, but a qualified plan under Section 423 defers that tax until you sell and splits the eventual gain between ordinary income and long-term capital gain if you hold long enough. A non-qualified plan taxes the discount as wages at purchase. How ESPPs are taxed, then, depends on two things: whether the plan is qualified, and how long you hold the shares after buying them.

Qualified and Non-Qualified Plans Are Taxed Differently at Purchase

A qualified ESPP meets every requirement in Section 423 of the Internal Revenue Code, including a discount capped at 15%, broad employee eligibility, and a $25,000 annual purchase limit per participant measured at grant-date fair market value.1Office of the Law Revision Counsel. 26 U.S. Code 423 – Employee Stock Purchase Plans Miss any requirement and the plan is non-qualified.

For a qualified plan, buying shares is not a taxable event. Your cost basis is the discounted price you paid, and everything waits until you sell.1Office of the Law Revision Counsel. 26 U.S. Code 423 – Employee Stock Purchase Plans

For a non-qualified plan, the spread between the stock’s fair market value on the purchase date and the price you paid is compensation income in the year of purchase, whether or not you sell. Your employer adds it to your W-2 wages, and your cost basis steps up to the full market value on the purchase date.

Look-Back Provisions Increase the Effective Discount

Many qualified plans include a look-back that applies the 15% discount to the lower of the stock price on the offering date or the purchase date. If the stock ran from $50 at the start of the offering period to $60 at purchase, the plan prices your shares at 85% of $50, or $42.50. On a $60 stock, that is a 29% effective discount from a 15% plan.

Qualifying Dispositions: Meeting Both Holding Periods

To get the favorable tax treatment on a qualified ESPP, you must hold the shares at least two years after the offering date and at least one year after the purchase date.1Office of the Law Revision Counsel. 26 U.S. Code 423 – Employee Stock Purchase Plans Both clocks have to run out. Miss either and the sale becomes a disqualifying disposition.

When you meet both holding periods, the total gain splits in two. The ordinary income portion equals the lesser of the discount calculated using the offering-date stock price, or the actual gain from the sale.2Internal Revenue Service. Publication 525 – Taxable and Nontaxable Income Everything above that is long-term capital gain, taxed at preferential rates.

Take the same $50 offering-date price, $60 purchase-date price, and $42.50 purchase price. You hold more than two years from the offering date and sell at $70.

  • Total gain: $27.50 ($70 minus $42.50)
  • Ordinary income: the lesser of the offering-date discount ($50 × 15% = $7.50) or the total gain ($27.50), so $7.50
  • Long-term capital gain: $20.00 ($27.50 minus $7.50)

The $7.50 is taxed at your marginal rate. The $20.00 is taxed at your long-term capital gains rate.

Disqualifying Dispositions: Selling Too Soon

Sell before meeting either holding period and the entire spread between the purchase-date fair market value and what you paid becomes ordinary income, reported on your W-2 for the year of sale.2Internal Revenue Service. Publication 525 – Taxable and Nontaxable Income Your employer is not required to withhold federal income tax on this amount, which catches many people at filing time.3Office of the Law Revision Counsel. 26 USC 421 – General Rules

Your adjusted cost basis becomes the purchase price plus the ordinary income you recognized, which equals the purchase-date fair market value. Any gain or loss above that is capital, short-term or long-term depending on how long you held from the purchase date.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Same numbers, but sold six months after purchase at $70:

  • Ordinary income: $17.50 ($60 minus $42.50)
  • Adjusted basis: $60.00 ($42.50 plus $17.50)
  • Short-term capital gain: $10.00 ($70 minus $60)

Both the $17.50 and the $10.00 are taxed at ordinary rates, because short-term gains match ordinary income rates. On the same $27.50 profit, the qualifying disposition put only $7.50 at ordinary rates and the rest at long-term rates.

Selling at a Loss Behaves Differently

The rules shift when the stock drops, and the split depends on whether you cleared the holding periods.

Qualifying Disposition at a Loss

If you held long enough to qualify and sold below your purchase price, the ordinary income component is zero. The whole loss is a capital loss, and you recognize no compensation income at all.2Internal Revenue Service. Publication 525 – Taxable and Nontaxable Income That loss can offset other capital gains, or up to $3,000 of ordinary income per year if you have no gains to offset.

Disqualifying Disposition at a Loss

This is where ESPP tax gets painful. Sell before meeting the holding periods with the stock below the purchase-date fair market value and you still owe ordinary income on the full spread at purchase. The IRS is explicit that the ordinary income on a disqualifying disposition is not limited to your actual gain.2Internal Revenue Service. Publication 525 – Taxable and Nontaxable Income

Same example, but sold six months after purchase at $55 instead of $70. The ordinary income is still $17.50. Your adjusted basis is $60, leaving a $5 short-term capital loss. You owe tax on $17.50 of compensation income and report a $5 capital loss against it. You made $12.50 on the stock but owe tax on $17.50 of income, partially offset by the loss. Holding to qualify would have avoided the mismatch.

Non-Qualified Plan Sales

Non-qualified plan math is simpler because the discount was already taxed as compensation at purchase. Your basis was stepped up to the full purchase-date fair market value at that time. When you sell, the entire gain or loss is capital, and the holding period from the purchase date decides whether it is short-term or long-term.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Payroll Taxes and the Net Investment Income Tax

Compensation income from a qualified ESPP, whether from a qualifying or disqualifying disposition, is generally not subject to Social Security and Medicare taxes. That is a real benefit over non-qualified plans, where the bargain element at purchase is subject to FICA like regular wages.

If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), the capital gain portion of an ESPP sale may also be subject to the 3.8% Net Investment Income Tax on top of the regular capital gains rate.5Internal Revenue Service. Net Investment Income Tax

Forms and the Cost-Basis Trap

ESPP transactions touch several forms, and the interplay is where most reporting errors happen. The usual result of a mistake is overpaying.

Form 3922

Your employer files Form 3922 after each qualified ESPP purchase. It reports the offering date, the purchase date, the fair market value on both dates, and the price you paid.6Internal Revenue Service. About Form 3922, Transfer of Stock Acquired Through an Employee Stock Purchase Plan Under Section 423(c) Keep it. Every number on it feeds your ordinary income and adjusted basis when you sell. The form itself does not trigger any immediate filing.

Form W-2

When ESPP compensation income is recognized, it lands in Box 1 as part of total wages. For non-qualified plans, that happens in the year of purchase. For qualified plans with a disqualifying disposition, it happens in the year of sale. No federal income tax is withheld on that disqualifying disposition amount, so the income shows up in Box 1 without matching withholding.

Form 1099-B, Form 8949, and Schedule D

Your brokerage issues Form 1099-B on the sale, reporting the sale date and gross proceeds.7Internal Revenue Service. About Form 1099-B, Proceeds from Broker and Barter Exchange Transactions Here is the costliest common mistake: the broker typically reports your original discounted purchase price as the cost basis. That figure is wrong for a disqualifying disposition because it ignores the ordinary income you already recognized and paid tax on. Use the broker’s basis as-is and you pay tax twice on the same income.

Fix it on Form 8949: use the proceeds from the 1099-B, then enter an adjustment in column (g) to increase the cost basis by the ordinary income already included on your W-2.8Internal Revenue Service. Instructions for Form 1099-B (2026) The corrected gain or loss flows to Schedule D, categorized by holding period. The IRS will not flag the omission, because the unadjusted version just means you owe more.

Estimated Tax After a Large Sale

Because employers do not withhold income tax on the compensation portion of a disqualifying disposition, a large sale can leave an unexpected bill. If you expect to owe $1,000 or more after all withholding and credits, the IRS generally requires quarterly estimated payments. You avoid the penalty if your withholding covers at least 90% of your current-year tax or 100% of the prior year’s tax (110% if your prior-year adjusted gross income exceeded $150,000).9Internal Revenue Service. Estimated Tax for Individuals (Form 1040-ES)

A practical workaround after a large sale is to ask your employer to raise your W-2 withholding for the rest of the year. The IRS treats all W-2 withholding as paid evenly throughout the year, so a late-year bump can plug an earlier estimated tax gap without an underpayment penalty.

Leaving the Company Does Not Reset the Clock

Shares you already bought are yours whether you stay or leave. There is no vesting period for ESPP shares, and quitting does not change the tax rules or the holding period deadlines. Buy in January, quit in March, and the two-year and one-year clocks keep running on the same schedule.

The planning point is straightforward: departure does not accelerate the qualifying disposition thresholds. If you sell shares that have not cleared both holding periods, you trigger a disqualifying disposition and the full spread at purchase becomes ordinary income. Before a job change, check whether your shares are close to clearing both dates before deciding when to sell.