RSUs are wages, not stock trades
On the day your restricted stock units vest, the full fair market value of those shares becomes ordinary compensation. It appears in Box 1 of your W-2 alongside salary, and it is subject to income tax plus Social Security and Medicare. Nothing about the transaction resembles a capital gain: you did not buy the shares, so there is no purchase price to subtract. The vest-date value becomes your cost basis for later, and only the movement in price after that day produces a capital gain or loss.
This distinction is the source of nearly every RSU tax surprise. People see "stock" and assume favourable long-term treatment, then discover in April that the entire vest was taxed as salary.
Why withholding usually falls short
Employers do not compute your marginal rate on a vest. They apply a flat statutory supplemental withholding rate to the value, and a second, higher flat rate once your cumulative supplemental wages exceed the annual threshold. That flat rate is convenient for payroll systems, but if your marginal bracket exceeds it, the withholding covers only part of what you owe.
The gap grows with the size of the vest. A modest grant at a middle bracket may be roughly covered. A large vest that pushes you into a top bracket can leave a shortfall running into five figures, payable when you file. The Withholding shortfall figure above is the number worth acting on: either set that cash aside, make an estimated tax payment, or increase withholding on your regular paycheck for the rest of the year.
Sell-to-cover and share counting
Most plans default to sell-to-cover, meaning the broker sells enough vested shares to satisfy withholding and delivers the remainder. The Shares likely sold to cover line estimates that count. Because the sale happens at or near the vest price, it usually generates a negligible capital gain or loss — sometimes a small loss after commissions, which is still reportable.
If your plan instead offers net share settlement, the mechanics differ but the tax result is the same.
Concentration risk sits behind the tax question
Holding vested shares is economically identical to receiving cash and immediately buying your employer's stock. Very few people would choose to put a large fraction of net worth into a single stock that also pays their salary. The tax calculation above tells you what you keep; the harder question is whether you want to keep it in that particular company.
What this estimator will not tell you
It does not run the federal bracket table, apply deductions or credits, model the alternative minimum tax, or handle state-specific rules such as multi-state allocation for shares earned while working in another state. Treat the output as a planning figure that tells you the order of magnitude of the cash you need to reserve, and confirm the final number with a preparer if the vest is large.