Today's rates
  • 30Y fixed7.24%
  • 15Y fixed6.60%
  • CPI YoY3.74%
  • Fed funds3.88%
  • 10Y Treasury4.94%
  • 60M new auto7.54%
As of Oct 29, 2026

How ESPP shares are taxed

Buying ESPP shares at a discount is not taxed. The tax comes when you sell: if you sell before the holding periods are met (2 years from the offering date and 1 year from purchase), the whole discount at purchase is taxed as ordinary income. If you wait, ordinary income is limited to the discount on the offering-date price, and the rest of the gain is taxed at lower long-term capital gains rates.

For a single filer earning $150,000 who buys 176 shares at $42.50 while the stock trades at $60, selling at once leaves about $2,341 after federal tax in Texas. Holding to qualify leaves $2,499 if the price is unchanged, so the tax saving is small next to the risk of holding one stock.

How an ESPP works

An employee stock purchase plan lets you buy your employer's stock through payroll deductions. Most plans that offer a discount are "qualified" plans under Section 423 of the tax code, which is what this guide covers. You pick a contribution, often 1% to 15% of pay (the cap is set by the plan, not the law). The money builds up during an offering period, commonly 6 to 24 months, and on each purchase date the plan uses it to buy shares for you.

Section 423 allows a price as low as 15% below market. Many plans add a lookback: the discount applies to the lower of the price on the first day of the offering (the offering or grant date) and the price on the purchase date.

The discount and the lookback, in numbers

Say you earn $150,000 and contribute 10% to a 6-month offering that starts January 1, 2026, at $50 a share. That is $7,500 by the Jul 1, 2026 purchase. Here is what it buys if the stock rises to $60, with and without a lookback, and if it falls to $45:

Rises, lookbackRises, no lookbackFalls
Offering-date price$50.00$50.00$50.00
Purchase-date price$60.00$60.00$45.00
Price you pay$42.50$51.00$38.25
Shares bought176147196
Cost$7,480.00$7,497.00$7,497.00
Market value$10,560.00$8,820.00$8,820.00
Discount gain$3,080.00$1,323.00$1,323.00
Return on cost41.2%17.6%17.6%

Plans buy whole shares; the leftover cash is usually refunded or carried into the next purchase. Return on cost is the market value gained on the purchase date divided by what you paid.

A 15% discount sounds like 15%, but you pay 85 cents for each dollar of stock, so the instant gain on your money is 15/85, or 17.6%. With a lookback and a rising price the gain is much bigger: 41.2% here, because the $60 stock is bought at 85% of the old $50 price. When the price falls, the lookback cannot help, and you get the plain 17.6% on the lower price.

The $25,000 limit. You cannot buy more than $25,000 of stock a year through Section 423 plans, valued at the offering-date price, not what you pay. At $50, that is 500 shares, which cost $21,250 at the discounted price. Someone earning $400,000 who contributes 15% would put in $30,000 in six months but could buy only 500 shares; plans refund the excess. Unused room can carry forward only within an offering that spans more than one calendar year.

Try your own plan: the ESPP calculator shows each purchase, the discount gain, and the tax on selling now or holding.

Open the calculator

Two kinds of sale

Buying the shares is not taxed. What you owe when you sell depends on whether the sale is qualifying: more than 2 years after the offering date and more than 1 year after the purchase date. For the Jul 1, 2026 purchase, the first qualifying day is Jan 2, 2028.

  • Disqualifying sale (sold sooner). The spread on the purchase date, market price minus price paid, is ordinary income: $3,080 on the 176 shares. That holds even if the price falls afterward. Sell in December at $48 and the $3,080 is still ordinary income, with a separate $2,112 short-term capital loss. Your cost basis becomes the purchase-date price, $60.
  • Qualifying sale. Ordinary income is the smaller of your actual gain and the 15% discount on the offering-date price ($7.50 a share, or $1,320 here). Sell at $72 and $1,320 is ordinary income while $3,872 is long-term capital gain. If you sell below what you paid, there is no ordinary income, just a capital loss.

Here is selling on the purchase date compared with holding until Jan 2, 2028 at three prices, for a single filer earning $150,000:

SaleOrdinary incomeCapital gainFederal taxProfit, TexasProfit, California
Sell at purchase, $60$3,080$0$739$2,341$2,054
Hold, falls 20% to $48$968$0$232$736$646
Hold, flat at $60$1,320$1,760$581$2,499$2,213
Hold, rises 20% to $72$1,320$3,872$898$4,294$3,812

Federal and state tax the sale adds to a full return with the standard deduction, at 2026 rates. Profit is sale proceeds minus the $7,480.00 paid minus tax. California taxes capital gains as ordinary income.

At an unchanged price, qualifying turns $1,760 of the spread into long-term gain and saves $158 of federal tax. The break-even is about $58.94 in Texas and $58.81 in California: below that, selling on day one would have left more. In California the saving is federal only, since the state taxes both kinds of income the same. Meanwhile a 20% drop costs $1,605, about 10 times the tax saved. That is why many people sell at purchase and treat the discount as a bonus.

No withholding: covering the tax

Federal law requires no income tax withholding on ESPP income, and ESPP stock is excluded from Social Security and Medicare wages. Your employer should still add the ordinary income to box 1 of your W-2 (if it is missing, you report it as wages yourself), but nothing was taken out for it. Selling the example shares at purchase adds about $739 of federal tax that is due at filing.

  • Form W-4, step 4(c): $739 over the 14 paychecks left after Jul 1, 2026 is about $52.80 extra a check. See how to adjust your W-4.
  • Estimated tax payments to the IRS by the quarterly due dates.

You generally avoid an underpayment penalty if withholding and timely payments cover 90% of this year's tax or 100% of last year's (110% if last year's adjusted gross income was over $150,000), or if you owe less than $1,000.

Form 3922 and the 1099-B basis mistake

By January 31 of the year after you buy shares, your employer sends Form 3922 for that purchase. It records the offering date, the purchase date, the market price on each, the price you paid and the number of shares. With a lookback, box 8 shows the price as if bought on the offering date. You do not file it, but keep it: it is how you work out the ordinary income and your true basis.

When you sell, the broker's 1099-B usually shows only the price you paid as your basis, because for options granted after 2013 brokers are not allowed to add the income taxed as pay. For the sale at purchase, that is $7,480, not the correct $10,560. Filed as is, the $3,080 discount already on your W-2 is taxed again as a short-term gain: about $1,026 of extra federal and California tax in this example.

The fix is on Form 8949: report the basis from the 1099-B in column (e), enter code B in column (f), and a negative adjustment of $3,080 in column (g). Many brokers send a supplemental statement with the adjusted basis. The same problem affects RSUs; see how RSUs are taxed.

Concentration risk

Your paycheck already depends on your employer. Holding ESPP shares for two years, on top of any RSUs, ties more of your savings to the same company. FINRA notes that some experts suggest no more than 10% of investment assets in one stock. If you also receive stock awards, the RSU calculator shows how much they add each year.

Sources

  1. 26 U.S.C. 423, Employee stock purchase plans
  2. 26 U.S.C. 421(b), Effect of disqualifying dispositions (no withholding)
  3. 26 U.S.C. 3121(a)(22), ESPP stock excluded from Social Security and Medicare wages
  4. IRS Publication 525, Taxable and Nontaxable Income: employee stock purchase plans
  5. IRS Instructions for Forms 3921 and 3922
  6. IRS Instructions for Form 1099-B: basis of stock from compensatory options
  7. IRS Instructions for Form 8949: code B and correcting basis
  8. IRS Publication 505 (2026), Tax Withholding and Estimated Tax
  9. FINRA, Love Your Company Stock? Here's What to Know

Questions

Is it better to sell ESPP shares right away or hold them?

Selling on the purchase date locks in the discount with no stock risk. In this guide's example (176 shares bought at $42.50 when the stock is at $60), a single Texas filer earning $150,000 keeps $2,341 after tax by selling at once. Holding until the sale qualifies keeps $2,499 if the price is unchanged, only $158 more, but $736 if the stock falls 20%.

Why does my disqualifying sale show income I never made?

Because the discount at purchase is pay. If you buy at $42.50 when the stock is at $60 and sell months later at $48, the full $3,080 spread on 176 shares is still ordinary income, and the drop after purchase is a separate $2,112 capital loss.

Is tax withheld when I buy ESPP shares?

No. Federal law does not require income tax, Social Security or Medicare withholding on ESPP income, so the tax is due when you file. For the example sale at purchase, that is about $739 of federal tax, or roughly $52.80 extra on each of the 14 paychecks left after Jul 1, 2026 if you add it on Form W-4.

Calculators for this

More guides