The RSU Double-Tax Trap: Fixing Your 1099-B Cost Basis
Every spring, employees who sold RSU shares run into the same scare: the 1099-B from their broker shows a cost basis of $0 and a five-figure "gain" on shares they already paid tax on when the shares vested. Report that form exactly as shown and you pay tax on the same income twice. The fix is a single adjustment code on Form 8949 — but nobody tells you it's there. This guide walks through it with real numbers.
You already paid tax on this money once
When RSUs vest, the fair market value (FMV) of the shares is ordinary wage income, reported in Box 1 of your W-2 and taxed like salary (IRS Publication 525 covers compensation income of this kind). That same amount becomes your cost basis in the shares: under the basis rules in IRS Publication 550, stock you receive for services takes a basis equal to the amount you included in income. From the vest date forward, you owe capital gains tax only on movement after vesting — as we explain in our guide to how RSUs are taxed.
So if 500 shares vest at $160, your W-2 picks up $80,000 of wages and your basis is $80,000. Sell later at $175 and your true gain is only the $15 per share that happened after vesting. The tax system knows this. Your broker's form, often, does not.
Why the 1099-B shows $0
For shares acquired through an employer's equity plan, the basis a broker reports to the IRS on Form 1099-B is generally not required to include the compensation element — the part you already took into income. Many brokers therefore report a basis of $0 (or leave the compensation out in other ways), and print the correct adjusted cost basis only on a supplemental statement that is never sent to the IRS. The form isn't exactly wrong; it's incomplete by design, and the reconciliation is left to you.
You sell all 500 shares in November 2026 at $175 → proceeds $87,500.
Your real gain: $87,500 − $80,000 = $7,500 (short-term).
But the 1099-B shows proceeds of $87,500 and a cost basis of $0 — an apparent gain of $87,500. Filed as shown, you would pay tax on $80,000 of phantom gain: about $19,200 of extra federal tax at a 24% marginal rate, plus state tax on top.
The fix: Form 8949, adjustment code B
The IRS has a specific mechanism for exactly this situation. Per the Instructions for Form 8949, when the basis shown on your 1099-B is incorrect, you report the sale as shown and then correct it with adjustment code B. Step by step, using the example:
- Find your real basis. It's the vest-date FMV times the shares sold — the same dollar amount your employer put in W-2 Box 1 for that vest ($80,000 here). Your broker's supplemental statement usually lists it per lot as "adjusted cost basis."
- Report the sale exactly as the 1099-B shows it on Form 8949: proceeds of $87,500 in column (d), basis of $0 in column (e). Because the broker reported that basis to the IRS, the sale goes in the part of Form 8949 for transactions with basis reported (Box A for a short-term sale).
- Enter code B in column (f) and the correction, −$80,000, in column (g). Column (h) now shows the true gain: $7,500, which flows to Schedule D.
Two variations worth knowing. If your 1099-B says the basis was not reported to the IRS (a "noncovered" sale, Form 8949 Box B for short-term), skip the code entirely and simply enter the correct $80,000 basis in column (e) — there is nothing to reconcile against. And don't just overwrite a reported $0 basis with $80,000 and no code: the IRS matching program compares your return to the 1099-B it received, and an unexplained difference is what triggers a CP2000 notice proposing tax on the full proceeds. The code B trail is what makes your correction explain itself.
Selling in many lots? Attach a summary instead
If you sell RSU shares from several vests, each lot has its own vest-date basis and its own code B adjustment. Form 8949 allows an exception (Exception 2 in the form instructions) under which you can enter summary totals on the form and attach a statement with the per-lot detail instead of typing every sale. Our Tax-Time Prep Pack generates those Form 8949 summary statements from your sale records, split by box (A, B, D, E), with the basis adjustments worked in — it exists precisely for this RSU and ESPP situation. Either way, keep the broker's supplemental basis statement with your tax records; it is your evidence if the IRS ever asks.
ESPP shares have the same trap, in miniature
The mirror-image problem hits ESPP sales: the 1099-B typically shows your basis as the discounted price you paid, ignoring the discount amount that was already taxed as wages on your W-2 when you sold. The fix is identical in spirit — adjust the basis upward by the amount already taxed as compensation, using code B when the broker reported the unadjusted basis to the IRS. Our ESPP disposition guide covers that basis trap in its W-2 section.
Already filed with the $0 basis?
You can amend. File Form 1040-X with a corrected Form 8949 and Schedule D; per the Form 1040-X instructions, a refund claim is generally available within 3 years of the date you filed the original return. Attach or keep ready the documents that prove the basis — the W-2 showing the vest income and the broker's supplemental basis statement. Amended returns take months to process, but $80,000 of phantom gain is worth the wait.
RSU 1099-B basis FAQ
My 1099-B already shows the correct basis. Do I still need code B?
No. If the basis on the official form already equals your vest-date FMV, report the sale as shown — there is nothing to adjust. The trap is the mismatch, not the form itself. Check the supplemental pages before assuming either way.
Where do I find the vest-date price years later?
Three places: your broker's supplemental "adjusted cost basis" statement, your employer's equity portal (vest history shows the FMV used), or your W-2 — divide the wages attributable to that vest by the shares that vested. Note that Form 3921 is issued for ISO exercises, not RSUs, so don't go looking for one.
What if I sold shares from several different vests?
Each lot carries the basis of its own vest date, so each lot gets its own adjustment on Form 8949 — or attach one Exception 2 summary statement covering all of them. Brokers' supplemental statements normally list the adjusted basis lot by lot, which does most of the work for you.
Doesn't the IRS already know my real basis?
No — the IRS receives the same incomplete 1099-B you do. If you report the corrected, lower gain without the code B adjustment, expect a CP2000 notice proposing tax on the unadjusted amount. The adjustment line is how you answer the question before it's asked. (If a notice does arrive, don't panic: respond with the W-2 and the supplemental basis statement showing the income was already taxed.)
Know your real numbers before you file.
Run your vest through the RSU calculator — see the withholding, the tax you'll actually owe, and the gain you should be reporting.
Try the free RSU tax calculatorPrivacy note: TaxMyVest calculators run entirely in your browser. Nothing you enter is saved, sent, or stored anywhere.
