The short version
Your 1099-B shows zero (or too little) basis for RSU, ESPP, and NSO shares because broker reporting rules generally keep the compensation piece out of the basis they report. That compensation was already taxed on your W-2, so it belongs in your basis.
If you file the 1099-B numbers unchanged, you pay tax on that income a second time as a capital gain. The fix is to report the correct basis on Form 8949, using your broker's supplemental statement. If you already overpaid on a prior return, you can usually amend within three years to get the money back.
Why your 1099-B shows zero basis
Your 1099-B shows zero or partial basis because brokers generally leave out the income you were already taxed on through your paycheck. For shares from stock options and ESPPs acquired since 2014, IRS broker-reporting rules say the reported basis should reflect only what you actually paid (your exercise or purchase price), not the compensation income on your W-2. RSUs cost you nothing, so their reported basis often comes through as $0 or blank.
The reason is administrative, not a rule about what you owe. Your employer reports the compensation on your W-2, and your broker reports the sale on your 1099-B. The two systems do not talk to each other, so the 1099-B is missing half the story.
Your true basis is simple to state:
Correct basis = what you paid for the shares + the amount already taxed as compensation
For RSUs, that works out to the share value on the vesting date, the same number that went on your W-2. I cover the vesting side in more detail in how RSUs are taxed. This page is about the sale side, which is where the mistake actually lands.
Yes, you can pay tax twice: a worked example
If you file a zero-basis 1099-B without correcting it, you pay tax on your RSU income twice: once as wages, and again as a capital gain. Here is how that plays out with round, purely illustrative numbers.
Say 1,000 RSUs vest when the stock is $100. That is $100,000 of wages on your W-2. Your employer sells 400 shares that day at $100 to cover withholding (sell-to-cover). You keep 600 shares and sell them 18 months later at $120. Your broker reports both sales with $0 basis.
| As reported (1099-B) | Correct | |
|---|---|---|
| Sell-to-cover: 400 shares, proceeds | $40,000 | $40,000 |
| Basis | $0 | $40,000 |
| Short-term gain | $40,000 | $0 |
| Later sale: 600 shares, proceeds | $72,000 | $72,000 |
| Basis | $0 | $60,000 |
| Long-term gain | $72,000 | $12,000 |
| Gain overstated by | $100,000 | |
Notice the overstatement is exactly the $100,000 already on your W-2. That is the double count. For someone in the 35% federal bracket, the phantom $40,000 short-term gain costs about $14,000. The phantom $60,000 of long-term gain, at 15% plus the 3.8% net investment income tax, costs about $11,280. California taxes capital gains as ordinary income, so at a 9.3% rate the state adds roughly another $9,300.
All in, that is roughly $34,000 of tax on income that was already taxed once. Your actual numbers will differ, but the shape of the problem is the same for almost everyone with equity compensation.
How to fix it on Form 8949
You fix it by reporting each affected sale on Form 8949 with the correct basis, in the box your 1099-B points you to. The method depends on whether your 1099-B says the basis was reported to the IRS.
- Basis reported to the IRS (Box A short-term, Box D long-term). Enter the basis exactly as shown on the 1099-B in column (e). Enter code B in column (f). In column (g), enter the missing basis as a negative adjustment. The gain in column (h) then comes out right.
- Basis not reported to the IRS (Box B short-term, Box E long-term). These are "noncovered" lots. Enter the correct basis in column (e). If the 1099-B also shows a basis that is wrong, the current instructions ask for code B in column (f) with zero in column (g).
Using the 600-share sale above as a Box D example: $72,000 of proceeds in column (d), $0 basis in column (e), code B in column (f), ($60,000) in column (g), and a $12,000 gain in column (h).
The numbers you need come from your broker's supplemental statement, not the 1099-B itself. E*TRADE from Morgan Stanley, Fidelity, and Schwab each publish some version of a supplemental information page or an "adjusted cost basis" column for stock plan sales. It usually sits at the back of the 1099 PDF or as a separate download in the stock plan account, and lists each lot with the reported basis and the adjusted basis side by side.
One trap: once a sale needs an adjustment, it cannot go straight onto Schedule D as a summary total. It has to be listed on Form 8949. Tax software handles this if you enter the adjusted basis, but the default 1099-B import usually does not.
ESPP and NSO shares: same problem, different math
ESPP and NSO shares have the same missing-basis problem, but the amount to add back is different. In both cases the 1099-B basis usually reflects only the cash you paid.
NSOs. When you exercise a nonqualified option, the spread (value at exercise minus strike price) goes on your W-2. Your correct basis is the strike price plus that spread, which equals the share value on the exercise date. If you exercised 1,000 shares at a $10 strike when the stock was $50, the 1099-B will likely show $10,000 of basis. Your real basis is $50,000. There is more on option mechanics in NSOs vs ISOs.
ESPP. Here the add-back depends on how long you held the shares. A qualifying disposition means you sold more than two years after the offering date and more than one year after purchase. In that case the ordinary income is the lesser of your actual gain or the discount measured at the offering date. Sell earlier and it is a disqualifying disposition, where the ordinary income is the full spread on the purchase date, even if the stock later fell.
The wrinkle with ESPP is that your W-2 may or may not include that income. Many employers include disqualifying disposition income, but qualifying disposition income often is not on the W-2, and you report it yourself. Before you adjust basis, confirm the ordinary income shows up on the return exactly once. My ESPP tax guide walks through both dispositions in detail.
Already filed? You can usually amend
If you filed a prior return with zero-basis sales, you can generally file an amended return (Form 1040-X) and claim a refund within three years of when you filed the original. A return filed early is treated as filed on the April due date. If you paid the tax later, the deadline can instead be two years from when you paid, whichever is later.
As of this writing in September 2026, that generally means tax years 2023 and later are still open. A 2022 return is only still open if it was filed late, for example on extension in October 2023, and that window closes three years after the filing date, which for an October 16, 2023 filing is mid-October 2026. If that is you, act now. If you filed a state return too, California and Oregon have their own amendment rules, so the state refund needs its own filing.
When I review a new client's prior returns, this is one of the first things I check. It is common, the fix is mechanical, and the refund can be meaningful. If you are in the Bay Area with a few years of stock plan sales, it is worth a look. More on how I work with Bay Area equity comp clients.
Where this trips people up
Trusting the 1099-B import
Tax software pulls in whatever basis the broker reported. If that is $0, the software will happily tax your full proceeds. The import is a starting point, not a finished answer.
Forgetting the sell-to-cover sales
Shares sold to cover withholding show up on your 1099-B even though you never placed a trade. They need the same basis fix. Left alone, they create a short-term gain taxed at your highest rates.
Getting ESPP income wrong in the other direction
Adding the ESPP discount to basis is only right if that income is also reported as wages. If it is not on your W-2 and you do not report it yourself, adjusting basis would understate your income. It has to appear exactly once.
Just overwriting the basis
For lots where basis was reported to the IRS, changing column (e) without code B and a column (g) adjustment creates a mismatch with what the broker sent the IRS, which can trigger a notice. Show the reported number and the adjustment.
Letting the amendment window close
The refund clock runs about three years from filing. Once it closes, the overpayment is generally gone for good. If you suspect earlier years were wrong, check them now.
RSU cost basis questions people ask
Why does my 1099-B show zero cost basis for RSUs?
Broker reporting rules generally keep compensation income out of the basis the broker reports, and RSUs cost you nothing to acquire. The value at vesting was already taxed on your W-2, so your real basis is that vesting value, not zero.
Am I paying tax twice on RSUs?
Only if the basis is not corrected. The vesting value is taxed once as wages. If you then report the sale with zero basis, that same value is taxed again as a capital gain. Reporting the correct basis on Form 8949 removes the double count.
How do I adjust cost basis on Form 8949?
If the basis was reported to the IRS (Box A or D), enter the 1099-B basis in column (e), code B in column (f), and the missing basis as a negative number in column (g). If it was not reported (Box B or E), enter the correct basis in column (e).
What is the supplemental information from my broker?
It is an extra statement, often at the end of your 1099 or in your stock plan account, that lists each equity comp sale with the reported basis and the adjusted basis that includes compensation income. It is the source for your Form 8949 corrections.
Do sell-to-cover shares need the same fix?
Yes. Shares sold to cover withholding appear on your 1099-B, usually with zero basis. Their correct basis is the vesting value, so the true gain is typically close to zero.
Can I fix this on a return I already filed?
Usually. You can file Form 1040-X to claim a refund within three years of filing the original return, or two years from paying the tax if later. State returns need their own amendments.
Keep reading
How RSUs are taxed
The vesting side of the story, and why withholding often falls short. →
ESPP taxes
Qualifying vs disqualifying dispositions, and how the discount is taxed. →
NSOs vs ISOs
How the two option types are taxed at exercise and sale. →
When equity loses value
With the right basis, a drop after vesting can be a real capital loss. →
Equity comp deadlines
The dates that matter across a year of vesting, exercising, and filing. →
All resources
Browse every equity-comp explainer in one place. →
Not sure your basis was reported right?
Reconciling stock plan sales against W-2 income, and amending prior years when the numbers were wrong, is routine work for me. If you have RSU, ESPP, or option sales and want a second set of eyes on this year or the last few, here is how to start a conversation.
Become a Client
Andrew Sedlacek, CPA
Founder, OGCPA
Andrew is a Certified Public Accountant and the founder of OGCPA. He built his tax career at a local Bend firm and on Deloitte's tax team before founding the firm in 2019, and began professionally as a licensed financial advisor. He focuses on equity compensation, liquidity events, and the tax side of charitable giving and wealth distribution, and serves as the tax subject-matter expert for a venture-backed AI company. He works with clients across Bend, Oregon and the San Francisco Bay Area.
This article is general information, not tax or legal advice for your specific situation. Tax outcomes depend on your individual facts, and the rules change over time. Talk to a qualified professional (I am happy to be that person) before acting on anything here. Reading this page does not create a client relationship.