Login Create Free Account

Employee Stock Purchase Plans (ESPPs): A Tax Guide

By Eric Etu, Founder, AlwaysOnTax.com · Last updated

What is an ESPP?

An Employee Stock Purchase Plan (ESPP) is a benefit that lets eligible employees buy company stock at a discount through automatic payroll deductions. ESPPs are extremely common at large public-company employers, particularly in tech.

From the employer’s perspective, an ESPP is a piece of compensation tied directly to company stock performance — meant to align employees with shareholders and incentivize driving up the company’s value.

Most ESPPs are structured as qualified plans under Section 423 of the Internal Revenue Code, which is what gives them favorable tax treatment compared to a plain stock purchase. The rest of this guide focuses on §423 plans.

How ESPPs Work: Offering Period, Discount, and Look-Back

Three mechanics define how an ESPP delivers value:

1. The offering period and purchase period

An ESPP runs in offering periods — typically 6 to 24 months long. Within each offering period, there are usually one or more purchase periods (often six months each). During each purchase period, you contribute via after-tax payroll deduction. At the end of the period, the accumulated cash buys company shares automatically.

2. The discount (up to 15%)

Section 423 caps the discount at 15% off the relevant share price. Most ESPPs offer the maximum 15%, though some offer 5% or 10%.

3. The look-back feature

This is where ESPPs get genuinely valuable. Many plans include a look-back provision that calculates your purchase price at 15% off the lower of:

  • The share price at the start of the offering period, or
  • The share price on the purchase date

In a rising market, the look-back can produce an effective discount far above the nominal 15%. Example: offering price of $100 on Jan 1, share price of $200 by purchase date June 30. With a look-back, your purchase price is 0.85 × $100 = $85, even though the shares are worth $200 — an effective discount of more than 57% on the purchase day.

The $25,000 Annual Limit

Section 423 caps how much stock you can buy through any combination of qualified ESPPs. The limit: up to $25,000 of fair market value (FMV) at the offering date per calendar year. Many plans also cap participation at a percentage of salary (often 10–15%).

This cap is on FMV at the offering date, not on contributions, so the actual dollar value of shares you can buy can exceed $25,000 in a rising market thanks to the discount and look-back.

The Withholding Twist

ESPP withholding works very differently from RSU withholding, and the difference catches a lot of employees off guard.

  • Contributions are after-tax payroll deductions. Unlike a 401(k), your ESPP contributions come out of your paycheck after income tax has already been withheld. So you’ve already paid tax on the cash that buys your shares.
  • At purchase, most plans don’t withhold income tax. The discount you receive is technically a form of compensation, but for income tax purposes, the favorable §423 treatment depends on what you do later (whether you hold or sell). So plans typically wait to see how the disposition plays out.
  • At sale, the broker or employer often handles withholding — particularly for disqualifying dispositions (defined below). This is where the share-withholding mechanic comes in: the broker may sell some of your ESPP shares immediately to cover federal and state income tax, FICA, and Medicare, and you receive the net proceeds. The amount withheld then appears on your W-2 (for the sale year) as additional compensation income.
  • For qualifying dispositions, no income tax is withheld at sale — you’re responsible for reporting and paying the tax yourself when you file.

The practical takeaway: don’t assume your ESPP “covers itself” the way RSU withholding does. Be ready to set aside cash for taxes — especially on qualifying-disposition sales, where nothing is withheld at the source.

Qualifying vs. Disqualifying Dispositions

The single most important concept in ESPP taxation is the disposition type, which is determined by how long you hold the shares before selling.

Qualifying disposition

A sale is a qualifying disposition if you’ve held the shares for both:

  • More than 2 years from the offering date, and
  • More than 1 year from the purchase date

Tax treatment:

  • Ordinary income is the lesser of:
  • The discount calculated using the FMV at the offering date (e.g., 15% × offering-date price), or
  • The actual gain at sale (sale price − purchase price)
  • The remainder is long-term capital gain.

The “lesser of” rule is the key insight: it caps your ordinary income at the offering-date discount, no matter how much the stock has appreciated since. Everything above that is LTCG.

Disqualifying disposition

If you sell before meeting both holding-period tests, it’s a disqualifying disposition:

  • Ordinary income = FMV at purchase date − purchase price (the bargain element on the day shares hit your account)
  • Capital gain or loss = sale price − FMV at purchase date (long-term or short-term depending on holding period from purchase)

The ordinary income on a disqualifying sale is generally larger than on a qualifying sale of the same shares — because it captures the discount plus any appreciation between offering and purchase, rather than just the discount.

A Concrete Example

Same setup for both scenarios:

  • Offering date: Jan 1, 2024. FMV = $100/share.
  • Purchase date: June 30, 2024. FMV = $150/share. Purchase price (15% discount on the lower offering-date price, with look-back) = $85.

Scenario 1: Qualifying disposition

Sale on Feb 1, 2026 at $200/share. (Held more than 2 years from offering and more than 1 year from purchase.)

  • Ordinary income = lesser of:
  • 15% × $100 (offering FMV) = $15
  • $200 − $85 = $115 (actual gain)
  • Lesser → ordinary income = $15
  • Long-term capital gain = $200 − $85 − $15 = $100

Scenario 2: Disqualifying disposition

Sale on Sep 30, 2024 at $160/share. (Held only 3 months from purchase.)

  • Ordinary income = $150 (FMV at purchase) − $85 (purchase price) = $65
  • Short-term capital gain = $160 − $150 = $10

The qualifying sale converts $50 per share of would-be ordinary income into LTCG. For 100 shares at top federal rates, that’s roughly the difference between 37% and 23.8% on $5,000 — about $660 saved per 100 shares, before state tax.

The Common W-2 Trap

For disqualifying dispositions, your employer typically reports the ordinary-income portion on your W-2 (and your broker adjusts the cost basis on the 1099-B accordingly). For qualifying dispositions, the ordinary income portion does not appear on your W-2. You’re responsible for reporting it on your tax return — and adjusting your cost basis upward by the same amount on Form 8949 to avoid being double-taxed.

This is one of the most common ESPP filing mistakes: brokers often report the cost basis as just the purchase price ($85 in the example above), without including the $15 of ordinary income that becomes part of basis. If you don’t add it back, you end up paying ordinary income tax on the $15 and capital gains tax on the same $15 — double taxation. Always check that your reported cost basis matches the purchase price plus the ordinary income recognized.

Hold for the Qualifying Discount, or Sell Immediately?

This is the practical question most ESPP participants face every six months. There’s no single right answer, but the trade-offs are worth understanding:

Arguments for selling immediately (disqualifying):

  • Lock in the discount as cash. The discount is real money the day you receive the shares; selling immediately captures it without market risk.
  • Diversification. Employees may additionally hold stock options and/or RSUs with their employer; ESPP shares may further concentrate employees in their employer’s equity.
  • Liquidity. The cash can be redeployed: paying down debt, funding a tax-advantaged account, investing in a diversified portfolio.
  • The tax cost is bounded. The “penalty” for a disqualifying disposition is limited to the difference in ordinary-income recognition between the two scenarios, which is often a few thousand dollars per cycle — meaningful but not enormous.

Arguments for holding for qualifying treatment:

  • Lower ordinary income — your ordinary income is capped at the offering-date discount, with the rest of any appreciation flowing through as LTCG.
  • LTCG rates (15% / 20%) are usually lower than your marginal rate (often 32%–37% for ESPP-eligible high earners).
  • Conviction. If you genuinely believe the company’s shares will continue to appreciate, you’d want to own them anyway.

A common default: sell immediately. For many employees, the diversification benefit and predictable cash outweigh the modest tax savings of holding. The discount itself is the value of the ESPP — you don’t have to also bet on the stock to capture it. But if you have low concentration risk (e.g., you already sold your RSUs at vest) and strong conviction in the company, holding for qualifying treatment can pay.

A subtle risk worth flagging: in a disqualifying disposition where the stock has declined since purchase, you still owe ordinary income tax on the original bargain element — even though the shares are now underwater. This can leave you paying tax on phantom income while sitting on a paper loss. One reason “sell immediately” is often the safer default: it eliminates the timing mismatch.

The Takeaway

An ESPP is a payroll-funded purchase of company stock at a discount of up to 15%, often with a look-back feature that magnifies the effective discount in a rising market. The §423 limit is $25,000 of offering-date FMV per calendar year. Withholding works very differently from RSUs — your contributions are already after-tax, and withholding at sale depends on disposition type. The two-tier holding period (2 years from offering, 1 year from purchase) determines whether the sale is qualifying or disqualifying — which substantially changes how much of the gain is ordinary income vs. LTCG. For most participants, selling immediately and pocketing the discount is the cleanest play; holding for qualifying treatment makes sense mainly when concentration risk is low and conviction in the stock is high.

This guide is for educational purposes only and does not constitute tax, legal, or investment advice. Tax outcomes depend on your individual circumstances and may change based on future legislation or IRS guidance. AlwaysOnTax does not address state or local tax planning. Consult a qualified tax professional before acting on any strategy discussed here.