Stock & ETF Taxes

How RSUs and ESPP Shares Are Taxed

Last updated: October 27, 2026 · Applies to the 2026 tax year (returns filed in 2027)

Restricted stock units (RSUs) and employee stock purchase plans (ESPPs) are the two most common ways employees receive company stock. Both create two layers of tax: ordinary income on the value you receive from your employer, and a capital gain or loss when you sell. The two mistakes people make most are under-withholding on RSUs and paying tax twice on ESPP and RSU shares because the broker’s cost basis is too low.

Key takeaways

  • RSUs are taxed as wages when they vest, at the shares’ market value that day. That value becomes your cost basis.
  • Employers usually withhold federal tax on RSUs at a flat 22% (37% on supplemental wages over $1 million), which is often too little.
  • ESPP shares bought at a discount aren’t taxed at purchase; tax is due when you sell.
  • A “qualifying” ESPP sale, held 2 years from the offering date and 1 year from purchase, keeps most of the profit as a long-term capital gain.
  • Brokers often report a cost basis that excludes the income already on your W-2. Correct it on Form 8949 to avoid paying tax twice.

RSUs vs ESPP at a glance

RSUsESPP (qualified, section 423)
What you payNothingPurchase price, often 15% below market
When income is taxedAt vestingWhen you sell
Type of incomeWages on your W-2Part ordinary income, part capital gain
Your cost basisMarket value at vestingPurchase price plus any ordinary income reported
Tax form from employerW-2Form 3922 (purchase details), then W-2 when sold

How RSUs are taxed

When RSUs vest, the full market value of the shares is added to your wages, subject to income tax, Social Security and Medicare. Most employers “sell to cover”, selling part of the shares to pay the withholding. After that, the shares you keep work like any other stock: if you sell them, your gain or loss is measured from the vesting-date value. Hold them more than a year after vesting for long-term rates. See short-term vs long-term capital gains.

Example: the withholding gap

Kevin is single and in the 32% bracket. In 2026, 200 RSUs vest at $80, adding $16,000 to his wages. His employer withholds the flat 22% federal rate: $3,520.

  • Actual federal tax on the RSUs: 32% × $16,000 = $5,120.
  • Shortfall: $5,120 − $3,520 = $1,600 owed at tax time.
  • If several vests happen during the year, the shortfall adds up quickly. Kevin can increase his W-4 withholding or make an estimated payment to avoid an underpayment penalty.

How ESPP shares are taxed

Under a qualified (section 423) ESPP, you buy shares through payroll deductions at a discount of up to 15%, often on the lower of the price at the start of the offering period or on the purchase date (a “lookback”). The discount isn’t taxed when you buy. When you sell, how it’s taxed depends on how long you held:

  • Qualifying disposition: sold at least 2 years after the offering date and 1 year after the purchase date. Ordinary income is the lesser of your actual gain or the discount measured at the offering date. The rest is a long-term capital gain.
  • Disqualifying disposition: sold earlier. Ordinary income is the full spread on the purchase date (market value minus what you paid). Any further change in price is a capital gain or loss.

Example: qualifying vs disqualifying

Sara’s ESPP has a 15% discount and a lookback. The stock was $40 at the start of the offering and $50 on the purchase date, so she buys 100 shares at 85% of $40 = $34, paying $3,400.

Disqualifying: sells 6 months later at $55Qualifying: sells 2 years later at $70
Ordinary income($50 − $34) × 100 = $1,600Lesser of $3,600 gain or 15% × $40 × 100 = $600
Adjusted basis$3,400 + $1,600 = $5,000$3,400 + $600 = $4,000
Capital gain$5,500 − $5,000 = $500 short-term$7,000 − $4,000 = $3,000 long-term

In the qualifying sale, only $600 is taxed at Sara’s ordinary rate and $3,000 at the lower long-term rate. Whether waiting is worth it depends on the risk of holding a single stock; the tax benefit is real but limited.

Fixing your cost basis on Form 8949

Your broker’s 1099-B often shows the basis as $0 for RSUs, or just the purchase price for ESPP shares. The ordinary income was already taxed through your W-2, so you must add it back. On Form 8949, report the 1099-B figures, enter code B in column (f) and the correction in column (g). Many brokers provide a supplemental statement with the adjusted basis. See how to read your 1099-B, which includes a worked RSU example, and Form 8949 instructions.

Frequently asked questions

Should I sell RSUs as soon as they vest?

From a tax point of view, selling immediately creates little or no extra gain, because your basis equals the vesting value. Holding is an investment decision: it’s the same as buying your employer’s stock with the cash.

Can I make an 83(b) election on RSUs?

No. An 83(b) election applies to restricted stock that you own at grant, not to RSUs, which are only a promise to deliver shares later.

What is Form 3922?

Your employer sends it after each ESPP purchase. It shows the offering date, purchase date, prices and number of shares, which you need to calculate ordinary income and basis when you sell. Keep every copy.

Sources

This article is for educational purposes only and is not tax, legal or investment advice. Tax rules depend on your individual situation; consult a qualified tax professional before filing.