Under the Section 423 ESPP tax rules, you owe nothing when you buy discounted shares through payroll deduction; all the tax happens when you sell. At that point, part of your profit is treated as ordinary wages and the rest as capital gain, and the split depends on how long you held the stock. Meet both holding periods and most of the appreciation is taxed at long-term capital gains rates. Miss them and a larger slice gets pulled into ordinary income.
No Tax When You Buy the Shares
You fund an ESPP with after-tax payroll deductions, and the discount you receive at purchase is not treated as income in the year of purchase. The bargain element, meaning the gap between the fair market value on the purchase date and the discounted price you paid, stays off your W-2 until you sell.1Internal Revenue Service. Stocks (Options, Splits, Traders) 5 That deferral is what makes a qualified Section 423 plan attractive: the full discount stays invested.
Your employer will send you Form 3922 after the purchase. It is informational only — you do not file it with your return.2Internal Revenue Service. About Form 3922 – Transfer of Stock Acquired Through an Employee Stock Purchase Plan Under Section 423(c) Keep it. It records the grant date, purchase date, fair market value on both dates, the price you paid, and the number of shares transferred, and you will need those numbers to compute your tax when you sell.
Qualifying vs. Disqualifying Disposition
Every ESPP sale falls into one of two categories, and the label controls how much of your profit is taxed as wages versus as capital gain.
Qualifying Disposition
Your sale qualifies for the better tax treatment when you hold the shares for both of the following: at least two years from the grant date (the first day of the offering period) and at least one year from the purchase date.3Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans Both clocks have to run out. With a six-month offering period, the two-year-from-grant test is usually the one that binds.
When you meet both holding periods, the ordinary income you recognize is the lesser of two numbers: the actual gain (sale price minus what you paid), or the discount built into the option on the grant date (grant-date fair market value minus your option price).1Internal Revenue Service. Stocks (Options, Splits, Traders) 5 Everything above that ordinary income amount is long-term capital gain.
A worked example makes the math concrete. Say the stock was $10 on the grant date, your plan gives a 15% discount with a lookback, and by the purchase date the stock had risen to $15. You paid $8.50 per share (85% of the $10 grant-date price). Two and a half years later you sell at $20. Your ordinary income is $1.50 per share, which is the original 15% discount off the $10 grant-date price. The remaining $10 per share is long-term capital gain. The lookback added $5.50 of value at purchase, and all of it flows through at capital gains rates.
Disqualifying Disposition
Sell before either holding period is up and the math shifts against you. The ordinary income component becomes the full spread between the stock’s fair market value on the purchase date and the discounted price you paid.1Internal Revenue Service. Stocks (Options, Splits, Traders) 5 With a lookback, that spread can be much larger than the original grant-date discount.
Same numbers as before: $10 grant-date price, $15 purchase-date price, $8.50 purchase price, $20 sale price. In a disqualifying disposition, ordinary income is $6.50 per share ($15 minus $8.50). The remaining $5 is capital gain, short-term if you held under a year from the purchase date, long-term otherwise. Compared with the qualifying disposition above, an early sale converted $5 per share from capital gains rates to ordinary income rates.
Your employer reports the ordinary income from a disqualifying disposition on your W-2 for the year you sell. The statute does not require income tax withholding on that amount.4Office of the Law Revision Counsel. 26 USC 421 – General Rules So the income shows up in Box 1 without a matching bump in withholding, and you may owe more at tax time than you expect. FICA taxes may still apply to the ordinary income component if you are still employed when you sell.
Selling at a Loss
If the stock falls below your purchase price and you sell in a qualifying disposition, the ordinary income component is zero. You cannot have negative ordinary income. Instead you report a capital loss equal to your sale price minus your purchase price. That loss offsets other capital gains or up to $3,000 of ordinary income per year, with any excess carrying forward.
A disqualifying disposition at a loss works differently and is less forgiving. The ordinary income is still the full spread between the purchase-date fair market value and your discounted price, because that spread existed at the moment of purchase regardless of what the stock did afterward. You then claim a capital loss for the decline from the purchase-date fair market value down to your sale price. You can end up owing ordinary income tax on a discount even though you sold the shares for less than you paid.
Reporting the Sale Without Double-Paying
This is where ESPP participants overpay. When you sell, your broker sends a Form 1099-B showing proceeds and cost basis. The cost basis in Box 1e typically reflects only what you paid — it does not include the ordinary income already reported on your W-2. Copy those numbers straight onto your return and you tax the discount twice: once as wages, once as capital gain.
To fix this, adjust your cost basis upward by the ordinary income amount. Report the sale on Form 8949 with proceeds in column (d) and the broker’s cost basis in column (e), then use column (g) to enter the adjustment reflecting the ordinary income already taxed as wages.5Internal Revenue Service. Instructions for Form 8949 – Sales and Other Dispositions of Capital Assets The adjustment reduces your capital gain (or increases your loss) by exactly the amount already picked up on your W-2. The totals then flow to Schedule D and to your 1040.
Form 3922 gives you every figure you need for the adjustment: the grant-date fair market value, the purchase-date fair market value, and the price you paid.2Internal Revenue Service. About Form 3922 – Transfer of Stock Acquired Through an Employee Stock Purchase Plan Under Section 423(c) File it with your 1099-B.
Wash Sales and Scheduled Purchase Dates
If you sell ESPP shares at a loss and your plan buys new shares within 30 days before or after that sale, the wash sale rule treats the new shares as substantially identical stock and disallows the loss.6Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The disallowed loss is not gone forever; it gets added to the basis of the replacement shares and comes back to you when you eventually sell those. But it can wreck your tax planning for the current year.
Most plans purchase shares on a fixed schedule, often every six months. Selling company stock at a loss within 30 days of a scheduled ESPP purchase can silently trigger the rule. It also reaches across all your accounts, including your brokerage, ESPP, and accounts held by your spouse. Check the calendar for upcoming purchase dates before you sell at a loss.
The $25,000 Annual Limit
Section 423 caps each employee’s purchase rights at $25,000 of stock per calendar year, measured by the stock’s fair market value on the grant date, not the discounted price you actually pay.3Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans Because the ceiling uses the undiscounted price, the shares you actually buy at the discounted price can be worth more than $25,000 at the time of purchase.
The $25,000 is technically an accrual rate. You accrue purchase rights of $25,000 for each calendar year an offering is outstanding. In a standard six-month offering with two purchases per year, this is straightforward. With longer offerings that span multiple calendar years, unused accrual from earlier years can carry forward inside the same offering, sometimes allowing a purchase above $25,000 in one transaction. Each new offering resets the accrual.
Most employers layer on their own limits, commonly capping payroll deductions at 10% to 15% of base pay. Your effective ceiling is whichever is lower: your plan’s percentage cap applied to your salary, or the statutory dollar cap.
What Happens If You Leave or Die
Leave the company before the next purchase date and most plans simply refund your accumulated payroll deductions. Those were after-tax dollars, so the refund itself has no additional tax effect. Some plans may run one last purchase with your accumulated contributions if the plan terms allow it — check with your stock plan administrator when you give notice.
The statute requires you to remain employed from the grant date until within three months of exercising the option.3Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans Leave more than three months before a purchase date and you generally lose the right to buy for that offering period.
Shares you already own stay with you. The qualifying and disqualifying disposition rules still apply when you eventually sell, and the holding period keeps running whether or not you still work there.
If an employee dies while holding ESPP shares, the holding period requirements do not apply. The estate or heir can dispose of the shares without regard to the two-year and one-year tests that would normally determine qualifying versus disqualifying treatment.4Office of the Law Revision Counsel. 26 USC 421 – General Rules Any compensation income built into the shares may still be taxable, but the favorable treatment tied to the holding periods applies automatically.