ESPP contributions are taken out of your paycheck after tax. The money used to buy shares comes out after federal income tax, state income tax, Social Security, and Medicare have already been withheld, so participating in an Employee Stock Purchase Plan does not lower the wages you are taxed on this year. The tax questions that actually matter show up later, when you buy the discounted stock and eventually sell it.1Internal Revenue Service. Topic No. 751 Social Security and Medicare Withholding Rates
How the Paycheck Deduction Works
Every dollar going into your ESPP has already been taxed as regular wages. You get no deduction, no exclusion, and no deferral for putting money into the plan. If you earn $80,000 and contribute $5,000 to your ESPP, your taxable wages are still $80,000.
This is the opposite of how a traditional 401(k) works. A 401(k) contribution reduces your taxable income for the year you make it. An ESPP contribution does not. The financial benefit of an ESPP comes from two other places: the discounted price you pay for the stock, and, if you hold the shares long enough, favorable capital gains treatment on the profit when you sell.
When You Actually Owe Tax
Under a qualified plan, buying the shares is not itself a taxable event. No income is recognized at the time of purchase.2Office of the Law Revision Counsel. 26 U.S. Code 421 – General Rules The tax comes when you sell, and the gain splits into two pieces that are taxed differently:
- The discount your employer gave you is taxed as ordinary income.
- Any additional price appreciation is taxed as a capital gain.
How much of your profit falls into each bucket depends on how long you hold the shares before selling.
Holding Periods and Qualifying Sales
Most large employer plans are “qualified” plans under Section 423 of the Internal Revenue Code. To qualify, the plan must be open to most employees, offer a discount no greater than 15% off market price, and meet several other structural requirements.3Office of the Law Revision Counsel. 26 U.S. Code 423 – Employee Stock Purchase Plans
To get the best tax treatment, you have to hold the shares for at least two years from the grant date and one year from the purchase date. A sale that meets both is called a qualifying disposition.
In a qualifying disposition, the ordinary income you report is the lesser of two numbers: the actual gain on the sale, or the discount calculated using the grant-date stock price.4Internal Revenue Service. Stocks (Options, Splits, Traders) 5 In a plan with a 15% discount, that grant-date discount is the ceiling on your ordinary income. Everything above it is a long-term capital gain.
An example. Suppose the grant-date stock price was $100 and you paid $85 per share. You sell two years later at $130. The grant-date discount is $15 per share. Your total gain is $45 per share. You report $15 as ordinary income and $30 as a long-term capital gain. If instead the stock dropped and you sold at $90, your total gain would be only $5, and since $5 is less than the $15 discount, you would report just $5 as ordinary income and no capital gain at all.
Selling Early: Disqualifying Sales
Selling before either holding period is met triggers a disqualifying disposition, and the math shifts against you. Instead of using the grant-date discount, ordinary income is calculated as the full spread between the stock’s fair market value on the purchase date and the price you paid.4Internal Revenue Service. Stocks (Options, Splits, Traders) 5 Anything left over is a capital gain, short-term if you held less than a year from the purchase date and long-term otherwise.
Your employer reports the ordinary income portion on your W-2 for the year you sell. One detail catches people off guard: for a qualified ESPP, Social Security and Medicare taxes do not apply to this W-2 income. It appears in Box 1 as wages, but FICA is not withheld on it. You will owe regular income tax, but not the additional 7.65% in payroll taxes.
Non-Qualified Plans Work Differently
A non-qualified ESPP is any plan that does not meet the Section 423 requirements. The discount is taxed as ordinary income immediately at the time of purchase, not when you sell. Your employer withholds federal and state income tax, plus Social Security and Medicare, on the discount amount right away.
If the stock is worth $50 and you paid $42.50, you have $7.50 per share of ordinary income, reported on your W-2 for the year of purchase. Your cost basis in the shares becomes $50, the purchase price plus the $7.50 already taxed as compensation. When you sell, any gain or loss above that $50 basis is a capital gain or loss, with the holding period starting on the purchase date.
The Cost Basis Trap on Your Tax Forms
ESPP reporting involves three forms, and a mismatch between two of them is where most people accidentally overpay their taxes.
Your employer files Form 3922 after each purchase, recording the grant date, purchase date, fair market value on both dates, and the price you paid.5Internal Revenue Service. About Form 3922, Transfer of Stock Acquired Through an Employee Stock Purchase Plan You do not attach it to your return, but you need it to calculate your gain correctly when you sell.6Internal Revenue Service. Form 3922 – Transfer of Stock Acquired Through an Employee Stock Purchase Plan
When you sell, your employer adds the ordinary income component to your W-2 in Box 1. You have now paid income tax on the discount through your wages.
Then your brokerage sends Form 1099-B showing the sale proceeds and the cost basis it has on file.7Internal Revenue Service. About Form 1099-B, Proceeds From Broker and Barter Exchange Transactions Here is the problem: the cost basis on the 1099-B is almost always just the discounted price you paid, not the adjusted basis that includes the income already reported on your W-2. If you copy the 1099-B numbers straight into your return, you pay tax on the discount twice, once as wages and again as a capital gain.
The fix is to report the sale on Form 8949 and use the adjustment column to increase the cost basis by the amount of ordinary income already on your W-2. The corrected gain or loss then flows to Schedule D. Skipping this adjustment is probably the single most expensive ESPP mistake, and it is easy to make because each individual form looks correct on its own.
If You Leave Your Job
If you leave before the end of an offering period, most plans automatically refund the payroll deductions sitting in your account. Since those contributions were already taxed as regular wages, the refund is not a taxable event. You are getting your own after-tax money back, typically without interest. A handful of plans let departing employees complete the current purchase with funds already contributed, but that is uncommon, so check your plan documents before your last day.