Tax guide
RSUs and ESPP Shares: How to Avoid Paying Tax Twice When You Sell
Part of what you make on RSUs and employee stock purchase plan (ESPP) shares is taxed as wages. When you sell, a wrong cost basis on your 1099-B can tax that same income again.
RSUs
When RSUs vest, their value is added to your W-2 and taxed as wages. When you later sell the shares, your broker’s 1099-B often shows a cost basis of zero or too low. If the return uses that number, the same income gets taxed a second time as a capital gain.
The fix is an adjustment on Form 8949 to report the correct basis, which is the value already taxed on your W-2.
RSU income can also lead to underpayment penalties, since withholding at vest is often too low. Extra withholding later in the year counts as if it was paid evenly all year. If most of your RSUs vested late in the year, the annualized income method on Form 2210 can reduce the penalty.
ESPP shares
An ESPP lets you buy your employer’s stock through payroll deductions, usually at a discount of up to 15%. With a plan that meets the tax code’s rules, which most do, you aren’t taxed when you buy the shares. The tax comes when you sell.
When you sell, part of your profit is taxed as wages and the rest as a capital gain. The split depends on how long you held the shares.
| Type of sale | When it applies | What is taxed as wages |
|---|---|---|
| Qualifying sale | You sell more than two years after the option was granted, which is usually the first day of the offering period, and more than one year after you bought the shares. | The discount measured on the grant date, or your actual gain if that is less. The rest is a long-term capital gain. |
| Disqualifying sale | You sell before meeting both holding periods. | The discount measured on the day you bought the shares: their value that day less what you paid. It is taxed as wages even if you sell at a loss. The rest is a capital gain or loss. |
A quick example: the stock is worth $40 a share on the grant date and $50 on the day you buy. The plan gives 15% off the lower price, so you pay $34. You later sell at $60, a profit of $26 a share.
| Per share | Qualifying sale | Disqualifying sale |
|---|---|---|
| Taxed as wages | $6 | $16 |
| Capital gain | $20 | $10 |
| Total profit | $26 | $26 |
In a qualifying sale, the $6 is the grant-date discount: $40 less the $34 you paid. In a disqualifying sale, the $16 is the purchase-date discount: $50 less $34. Either way, the capital gain is whatever is left of the $26.
The basis problem is the same as with RSUs. Your 1099-B usually shows only what you paid for the shares. The amount taxed as wages is already on your W-2, so it has to be added to your basis on Form 8949, or it gets taxed twice. Your employer sends Form 3922 after you buy the shares. It has the dates and prices needed to figure this.
Employers generally don’t withhold income tax on ESPP income, so a sale can leave a balance due when you file.
When to check
- RSUs: After a large vest, and again in October or November, while there is still time to raise your withholding or make an estimated payment.
- ESPP shares: Before you sell. Find the first date a sale would qualify and compare the tax both ways. Waiting can lower the tax, but the share price can fall while you wait. That part is an investment decision, not a tax one.
- Either one: When your 1099-B arrives, before your return is filed, so the basis can be corrected.
How we help
For RSUs, we compare the tax on your vests with what was withheld and tell you how much more to pay in, and by when. For ESPP shares, we compare the tax on selling now with waiting for a qualifying sale. If we prepare your return, we correct the basis on Form 8949. See investment sales and stock compensation.
Sources: IRS: Topic no. 427, Stock options, IRS: Publication 525 (stock options and ESPPs), IRS: About Form 3922, IRS: About Form 8949, IRC §423 (employee stock purchase plans).
Last reviewed: November 2026. This guide is general information, not advice for your situation. Federal, state, and local tax rules change often, and the right answer depends on your facts. Don’t rely on it alone to make a decision. Contact us or another tax professional to confirm the current rules before you act.
Related services
Have a question about your return?
Tell us what’s going on and we’ll be in touch soon. Your first 15-minute call is free.