ESPP Tax: How Your Employee Stock Purchase Plan Is Actually Taxed
The discount, the two holding-period clocks, the qualifying vs disqualifying math with real numbers, and the 1099-B basis trap that makes people pay tax on the same dollars twice.
A guide by Taxstra Tax & Accounting · CPA-led tax strategy for business owners
Written by Bryan Martin, CPA, Managing Partner and Founder of Taxstra. Last reviewed July 17, 2026.
An ESPP is the rare benefit where the tax question is not whether you owe, but when and at what rate. The discount your employer gives you is always taxed as ordinary income eventually. What changes, based on two holding-period clocks, is how much of your total profit gets ordinary treatment versus long-term capital gain rates. This page walks the mechanics, runs the numbers on both paths, and covers the reporting trap that quietly double-taxes more ESPP sellers than any other mistake.
How ESPP Taxation Works
One discount, three possible tax moments
An employee stock purchase plan lets you buy employer stock through payroll deductions, usually at a discount of up to 15% off the market price. Money comes out of each paycheck during an offering period, then the plan buys shares for you on a purchase date, typically every six months. Many plans sweeten this with a lookback: the discount applies to the lower of the price at the start of the offering period or the price on the purchase date, so a rising stock can push your effective discount well past 15%.
For a qualified plan, the tax timeline has three moments, and only the last one triggers tax:
1. Offering (grant) date. The offering period starts. No tax. But this date starts the two-year clock that later decides your treatment, and it fixes the offering-date price used in the qualifying-disposition math.
2. Purchase date. Your accumulated payroll deductions buy shares at the discounted price. In a qualified Section 423 plan, there is still no tax, even though you just bought $100 bills for $85. Your employer files Form 3922 recording the dates, prices, and values; save it, because every number you need at sale time is on it.
3. Sale date. Everything settles here. Your total profit gets split between ordinary income (taxed like salary, up to 37% federal in 2026) and capital gain (0%, 15%, or 20% if long-term). The split depends entirely on whether the sale is a qualifying or disqualifying disposition, which is the subject of section 3.
Qualified vs Nonqualified ESPPs
Section 423 rules decide when the discount hits your W-2
Almost everything on this page assumes a qualified plan, meaning one that meets the requirements of Section 423 of the tax code. Most large-company ESPPs are qualified, but not all, and the difference changes when you pay tax.
A qualified plan must offer the same deal broadly to employees, cap the discount at 15%, exclude anyone who owns 5% or more of the company, and limit each employee to $25,000 of stock per calendar year measured at the offering-date market value. That $25,000 limit is measured at full value, not what you pay: with a 15% discount you can contribute at most about $21,250 in a year, and your plan may cap contributions lower, commonly 10% to 15% of pay.
A nonqualified ESPP skips the Section 423 rulebook. The trade: your discount is taxed as compensation on the purchase date, exactly like a cash bonus, with income tax and payroll tax withholding, and your basis starts at the full market value on that date. There are no holding-period games to play afterward; any later movement is ordinary capital gain or loss.
| Feature | Qualified (Section 423) | Nonqualified ESPP |
|---|---|---|
| Maximum discount | 15% | Whatever the plan says |
| Annual purchase limit | $25,000 at grant-date value | Plan-defined |
| Tax at purchase | None | Discount taxed as wages |
| Payroll (FICA) tax on discount | No | Yes |
| Long-term capital gain opportunity on the discount | Partially, via qualifying disposition | No, only on post-purchase growth |
| Reporting at purchase | Form 3922 | W-2 wages |
If you are not sure which type you have, the answer is in the plan prospectus, and the tell is withholding: if taxes come out when shares are purchased, you are almost certainly in a nonqualified plan. The rest of this page covers the qualified kind, where the interesting decisions live.
Qualifying vs Disqualifying Dispositions
Two clocks, one lesser-of rule, and a very different W-2
A sale is a qualifying disposition only if it happens more than two years after the offering date and more than one year after the purchase date. Both. The two-year clock starts at the beginning of the offering period, which trips people up: shares bought at the end of a six-month offering only need roughly eighteen more months to satisfy it.
The Two Clocks That Decide Your Tax Bill
Starts when the offering period begins, not when you buy.
Starts when the shares actually land in your account.
Beat BOTH clocks before selling = qualifying disposition. Miss either = disqualifying.
Both holding periods come from Section 423(a): more than two years from the grant (offering) date and more than one year from the purchase date.
In a qualifying disposition, ordinary income equals the lesser of two numbers: the discount computed at the offering-date price (for a 15% plan, 15% of the offering-date value), or your actual gain on the sale. Everything above that is long-term capital gain. And if you sell at a loss, the lesser-of rule means zero ordinary income; the whole result is a capital loss.
In a disqualifying disposition, the spread between the purchase-date market value and what you paid is ordinary income, period. It lands on your W-2 in the year of sale, regardless of the sale price, even if the stock has since fallen. Your basis then steps up to the purchase-date value, and any difference between that and your sale price is capital gain or loss, short-term or long-term by the normal one-year rule.
One more nuance worth naming: a disqualifying disposition is not a penalty box. It is simply the default outcome of the most risk-averse strategy, selling immediately at purchase. When you sell right away, the ordinary income roughly equals your total profit anyway, so the "worse" tax treatment costs little, and you have converted a paper discount into cash with almost no market exposure.
The Worked Example: One Lot, Both Paths
$50 offering price, 15% lookback discount, $80 sale
Worked example (hypothetical, illustrative round numbers)
The setup: a 15% plan with a lookback. Stock is $50 on the offering date and $60 on the purchase date. The lookback applies the discount to the lower price, so the employee pays 85% of $50, or $42.50 per share, for stock worth $60 that day. She buys 200 shares for $8,500, worth $12,000 at purchase, and later sells all 200 at $80, for $16,000. Total profit: $7,500, or $37.50 per share.
Path A, disqualifying disposition (sold within a year of purchase). Ordinary income is the purchase-date spread: $60 minus $42.50 = $17.50 per share, so $3,500 hits the W-2 at her marginal rate. At an illustrative 32% bracket, that is $1,120 of federal tax. Her basis steps up to $60; the remaining $20 per share ($4,000) is capital gain, short-term if sold within a year of purchase, taxed here at the same 32% for another $1,280. Total federal tax: about $2,400.
Path B, qualifying disposition (held past both clocks). Ordinary income is the lesser of the offering-date discount (15% of $50 = $7.50 per share, $1,500 total) or the actual gain ($7,500). The lesser is $1,500, taxed at 32% for $480. The remaining $30 per share ($6,000) is long-term capital gain at 15%, another $900. Total federal tax: about $1,380.
Holding saved roughly $1,020 of federal tax on this lot, about 14% of the profit. It also meant holding 200 shares of one company for an extra year-plus. If the stock had slid from $60 back to $42.50 during that wait, the entire $3,500 discount profit would have evaporated to save that $1,020. That is the actual trade, and it is a portfolio decision wearing a tax costume.
Same $37.50 Per-Share Gain, Two Very Different Splits
Hypothetical example from the worked math below: $50 offering price, 15% discount with lookback, $60 purchase-date value, $80 sale price. Illustrative round numbers.
The pattern to internalize: the tax benefit of a qualifying disposition is real but bounded (it converts part of your gain from your W-2 rate to the long-term rate), while the market risk of waiting is unbounded in both directions. High earners near the 3.8% net investment income tax threshold should also note that the capital-gain slice, unlike the W-2 slice, can pick up NIIT.
Sitting on ESPP lots and not sure which to sell?
A free initial consultation maps your lots, both holding-period clocks, and the actual tax cost of each path before you place the trade.
Book a Free 30-Minute ConsultationThe Double-Tax Trap: Your 1099-B Basis Is Wrong
The W-2 and the broker report the same dollars, and only you reconcile them
Here is the most expensive ESPP mistake, and it happens at tax-filing time, not trade time. When you sell, two documents describe the same transaction. Your W-2 includes the ordinary-income piece of your profit as wages. Your broker's Form 1099-B reports the sale with a cost basis that, under the reporting rules, is generally just the discounted price you paid, with no credit for the income already on your W-2.
Copy the 1099-B onto your return unadjusted and you will report a capital gain that includes the discount you already paid W-2 tax on. Same dollars, taxed twice, and no IRS notice will ever tell you, because you overpaid.
The fix is mechanical: on Form 8949, adjust the basis upward by the ordinary income recognized, using the adjustment column with code B. In the worked example above, Path A's correct basis is $60 per share (the $42.50 paid plus the $17.50 of W-2 income), not the $42.50 the broker reported. Form 3922 has every number you need to prove it.
The same trap, with the same fix, applies to RSU and option shares, which is one reason equity-comp returns deserve a preparer who has seen the pattern. Our guide to RSU tax withholding covers the vest-time version of the same reconciliation problem.
Planning Angles Worth Knowing
Where the actual decisions are
1. Max the contribution if cash flow allows, and decide the sale strategy in advance.
A 15% lookback discount is roughly a 17.6% return on each contribution at purchase, earned in months. Very little available to a W-2 employee beats it on a risk-adjusted basis, provided you are not forced to hold. Decide before enrollment whether you are a sell-immediately household or a qualifying-disposition household, and automate it. Deciding lot by lot, in the moment, is how people end up with five years of accumulated employer stock they never chose to hold.
2. Watch total employer-stock exposure across programs.
ESPP shares stack on top of RSUs and options from the same company. Your salary, your bonus, and your equity already depend on one employer; the ESPP question is whether the discount justifies adding more. If you also hold RSUs or options, weigh the pile together, and see our comparison of RSUs vs stock options for how the risk profiles differ.
3. Coordinate sale years with your bracket.
Because a qualifying disposition's capital-gain slice rides on your taxable income, the same sale can cost 15% in one year and 20% plus 3.8% NIIT in another. Sabbatical years, job-change years, and the year after a big RSU vest are natural windows for realizing ESPP gains cheaply.
4. Remember estimated taxes in big sale years.
With no withholding on qualified-plan disposition income, a large sale can trigger an underpayment penalty even when you pay in full by April. The safe harbors (90% of the current year's tax, or 100% of last year's, 110% if your prior-year AGI topped $150,000) are cheap insurance.
If equity compensation is a recurring feature of your pay, not a one-time event, this is exactly the terrain our stock compensation planning service covers, and tech employees juggling ESPP, RSUs, and options together can start with our CPA for tech employees page.
Frequently Asked Questions
ESPP taxation, dispositions, and reporting
Get Your ESPP Strategy Priced Before You Sell
A free initial consultation covers your lots, the holding-period math, the basis fix, and how the ESPP fits alongside your RSUs and options.
Book a Free 30-Minute Consultation