Employee stock purchase plans are taxed on the discount you receive and on any gain when you sell, but the timing, the amount treated as wages, and the tax rate all depend on whether the plan is qualified under Section 423 and how long you hold the shares. A qualified plan defers all tax until sale; a non-qualified plan taxes the discount as wages the moment you buy. After that, the sale itself splits your gain between ordinary income and capital gain according to rules that reward patience and punish early sales.
Qualified and Non-Qualified Plans
The tax code draws a hard line between the two. A qualified plan meets every requirement in Section 423: the discount is capped at 15% of fair market value, enrollment is open to most employees on equal terms, and each participant is limited to $25,000 worth of stock per calendar year measured by fair market value on the grant date.1Office of the Law Revision Counsel. 26 U.S. Code 423 – Employee Stock Purchase Plans Plans that skip any of these are non-qualified and carry less favorable tax treatment.
Tax at Purchase
For a qualified ESPP, buying the shares is not a taxable event. Your cost basis is simply 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
Non-qualified plans work differently. 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 that amount to your W-2 wages, and your basis is stepped up to full market value on the purchase date. When you later sell, the whole gain or loss is a capital gain or loss.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Selling After Meeting Both Holding Periods
A qualifying disposition of shares from a qualified ESPP requires two clocks to run out: at least two years from the offering date and at least one year from the purchase date.1Office of the Law Revision Counsel. 26 U.S. Code 423 – Employee Stock Purchase Plans Both must be satisfied. Miss either and the sale is a disqualifying disposition with worse tax treatment.
When you meet both, the gain splits in two. Ordinary income equals the lesser of the discount calculated using the offering-date stock price or the actual gain on the sale.3Internal Revenue Service. Publication 525 – Taxable and Nontaxable Income Everything above that ordinary income amount is a long-term capital gain, taxed at preferential rates.
A worked example. The stock is $50 on the offering date and $60 on the purchase date. With a 15% look-back discount, the plan applies the discount to the lower of the two prices, so you pay $42.50 per share. You hold more than two years from the offering date and sell at $70.
- Total gain: $27.50 ($70 minus $42.50)
- Ordinary income: 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 the long-term capital gains rate, which for most filers in 2026 is 15%.
Selling Before Meeting the Holding Periods
Sell early and you trigger a disqualifying disposition. The entire spread between the purchase-date fair market value and the price you paid becomes ordinary income, reported on your W-2 for the year of the sale.3Internal Revenue Service. Publication 525 – Taxable and Nontaxable Income Your employer is not required to withhold federal income tax on that amount, which catches many people off guard at filing time.4Office of the Law Revision Counsel. 26 USC 421 – General Rules
Your adjusted basis becomes the purchase price plus the ordinary income you recognized, which in effect equals the purchase-date fair market value. Any further gain or loss above that adjusted basis is a capital gain or loss, short-term or long-term based on how long you held from the purchase date.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Same numbers, but you sell six months after purchase at $70:
- Ordinary income: $17.50 ($60 purchase-date FMV minus $42.50 purchase price)
- Adjusted basis: $60.00 ($42.50 plus $17.50)
- Short-term capital gain: $10.00 ($70 minus $60)
Both amounts are taxed at ordinary rates because short-term gains carry the ordinary rate. Compare that to the qualifying disposition, where only $7.50 of the same $27.50 was ordinary and $20.00 was long-term. The difference on identical economics is substantial.
What Happens If the Stock Drops
The rules turn on whether you met the holding periods. If you held long enough and then sold for less than you paid, the ordinary income component is zero and the entire loss is a capital loss.3Internal 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.
Selling early at a loss is worse. The IRS is explicit that ordinary income on a disqualifying disposition is not limited to your actual gain from the sale.3Internal Revenue Service. Publication 525 – Taxable and Nontaxable Income Using the same purchase but selling six months later at $55, ordinary income is still $17.50, adjusted basis is $60, and you have a $5 short-term capital loss. You owe tax on $17.50 of compensation income while reporting a $5 capital loss. You made $12.50 economically and are taxed on more than that.
Payroll Taxes and the Net Investment Income Tax
Compensation income from a qualified ESPP, whether recognized in a qualifying or disqualifying disposition, is generally not subject to Social Security and Medicare taxes. Non-qualified plans do not get that break: the bargain element at purchase is subject to FICA like regular wages.
Separately, if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), the capital gain portion of your sale may 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
Several forms move through an ESPP sale, and the interplay is where most reporting errors happen. Getting it wrong usually means overpaying.
Form 3922
Your employer files Form 3922 after each qualified-ESPP purchase. It reports the offering date, purchase date, 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. You will need every number on it to calculate ordinary income and adjusted basis when you sell. The form itself creates no immediate filing obligation.
W-2
When ESPP compensation is recognized, it appears in Box 1 of your W-2 as part of total wages. Some employers also break out the ESPP amount in Box 14 for information, though the format varies. For non-qualified plans, this happens in the year of purchase; for qualified plans with a disqualifying disposition, in the year of sale. Because no federal income tax is withheld on the disqualifying disposition amount, the income lands in Box 1 without matching withholding.
1099-B, Form 8949, and Schedule D
Your brokerage issues Form 1099-B when you sell, reporting sale date and gross proceeds.7Internal Revenue Service. About Form 1099-B, Proceeds from Broker and Barter Exchange Transactions Here is where the costliest mistake happens: the broker typically reports your original discounted purchase price as the cost basis. That basis is wrong for a disqualifying disposition because it ignores the ordinary income already on your W-2. Use the broker’s number as-is and you pay tax twice on the same money.
Report the sale on Form 8949 using 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 as short-term or long-term based on your holding period from the purchase date. The IRS will not flag the omission, because failing to adjust simply means you overpay.
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 you with an unexpected bill. If you expect to owe $1,000 or more for the year after all withholding and credits, the IRS generally requires quarterly estimated payments. You avoid the underpayment penalty if withholding covers at least 90% of the current year’s tax or 100% of the prior year’s tax, and 110% if your prior-year adjusted gross income exceeded $150,000.9Internal Revenue Service. Estimated Tax for Individuals (Form 1040-ES)
A practical workaround: ask your employer to increase your W-2 withholding for the rest of the year. The IRS treats W-2 withholding as paid evenly across the year, so a late-year increase can cover an earlier shortfall without a penalty. That is often simpler than filing quarterly vouchers.
Leaving the Company
Shares you already bought are yours. There is no vesting period, and leaving does not change the tax rules or the holding-period clocks. If you bought in January and quit in March, the two-year and one-year clocks keep running exactly as before.
If you leave mid-purchase-period before the next purchase date, most plans disenroll you automatically and refund the accumulated payroll contributions, typically without interest. Some plans allow a departing employee to complete the current purchase with funds already contributed, but no further deductions occur and enrollment in future offering periods ends.
The planning point: leaving does not reset or accelerate the deadlines. Sell shares that have not yet cleared both thresholds and you trigger a disqualifying disposition, turning the full spread at purchase into ordinary income. If a job change is coming, it is worth checking whether your shares are close to clearing both holding periods before you decide when to sell.