RSUs and ESPP: how to avoid paying tax twice on your shares
On this page
- RSUs are taxed as wages when they vest, on your W-2.
- Your 1099-B often shows a zero or missing cost basis for vested shares.
- Reporting the right basis on Form 8949 stops the same income being taxed twice.
RSUs: taxed at vesting
When restricted stock units vest, the market value of the shares is wages. It is included on your W-2, and your employer usually sells some shares to cover withholding. That value becomes your cost basis in the shares.
Where the double tax comes from
When you later sell, your broker issues a Form 1099-B. For shares from equity compensation, the broker often reports the cost basis as zero or leaves it blank. If the return uses that figure, the whole sale price looks like gain, and income already taxed on your W-2 is taxed again.
| Example | Wrong (basis 0) | Right |
|---|---|---|
| Value at vest, already on W-2 | $20,000 | $20,000 |
| Sale price | $21,000 | $21,000 |
| Reported basis | $0 | $20,000 |
| Capital gain | $21,000 | $1,000 |
How it is fixed
The correct basis comes from your broker's supplemental statement or your vesting records. It is entered on Form 8949 with an adjustment code, and the totals flow to Schedule D.
ESPP
With an employee stock purchase plan you buy shares at a discount. The tax depends on how long you hold them:
- Qualifying disposition: held more than two years from the offering date and more than one year from purchase. Part of the discount is ordinary income; the rest is capital gain.
- Disqualifying disposition: sold sooner. The full discount at purchase is ordinary income, usually on your W-2.
Either way, the 1099-B basis is often too low. The same Form 8949 fix applies.
Indian residents with US shares
If you vested shares while working in India and later moved, the cost basis and holding period need care. Bring your Indian payslips or Form 16 showing the perquisite value.
Sources
This article is general information for tax year 2026, not advice for your situation. Rules change; your preparer applies the rules in force when your return is filed.