PRETAXED

RSU sale tax

Which RSU shares should I sell first?

The tax on selling RSU shares depends on which vest they came from.

Shares that vested near today's price have little gain, so selling them raises the same cash for less tax this year.

The tax on the shares you keep is put off, not erased: their gain is taxed when you sell them later.

A worked example

Cash to raise
$40,000
Share price today
$100
Filing status
Single
Wages this year
$220,000
State
California
VestedSharesVest priceGain a shareHeld
2021300$30$70Over 1 yr
2024300$80$20Over 1 yr
2025300$96$4Over 1 yr

Selling the oldest shares first, which is what happens if you do not choose, means 300 shares from the 2021 vest and 100 shares from the 2024 vest. That realizes $23,000 of gain and is $6,463 of tax.

Selling 300 shares from the 2025 vest and 100 shares from the 2024 vest raises the same $40,000. That realizes $3,200 of gain and is $899 of tax.

$5,564 less tax this year on the same $40,000.

The tax is put off, not erased. After the second sale, the shares you still hold carry $25,000 of gain instead of $5,200, and that gain is taxed when you sell them.

Both sales are taxed at the same rate here, 28.1 percent of the gain. That is the federal long-term rate, the 3.8 percent net investment income tax, and California tax together. The only difference is how much gain each sale realizes.

Tax year 2026. Computed by the same engine the app uses, when this page was built on November 25, 2026.

Income tax only: Social Security and Medicare tax are not included. Assumes your wages are your only other income and you take the standard deduction; itemizing, especially state and local taxes, changes these figures.

How it is calculated

  1. Each vest is its own group of shares. Its cost basis is the vest-day value, already taxed as wages. (Publication 525, Restricted property)
  2. The gain on a sale is the sale price minus that basis, worked out vest by vest. (Form 8949 instructions)
  3. Shares held more than one year after the vest get the lower long-term rates. Newer shares are taxed at your ordinary rates. (Publication 550, Holding period)
  4. You can choose which shares to sell by telling your broker when you place the sale. The broker must confirm it in writing. (Publication 550, Identifying stock or bonds sold)
  5. If you do not choose, the oldest shares count as sold first. (Publication 550, Identifying stock or bonds sold)
  6. At higher incomes, the 3.8 percent net investment income tax is added on the gain. (Form 8960 instructions)

What changes the answer

  • Shares held a year or less. A recent vest with a large gain costs the most to sell, at your ordinary rates.
  • Shares below their vest price. Selling them gives a loss that offsets gains, unless another vest lands within 30 days either side.
  • What you sell next. Gain you put off is taxed in the year you sell the rest.
  • How much of one company's stock to keep. That is an investment choice, and this page does not make it.

See it for your own shares

Your vests are in your broker's export. Drop it into the app and it shows the tax on a sale before you make it. Seeing the tax on any sale is free.

The 2026 Plan ($99 once) picks which shares to sell for the cash you need, at the least tax.

Not sure whether to sell at all? Selling RSUs when they vest.

Common questions

Can I choose which shares I sell?

Yes, if you tell your broker which shares when you place the sale and the broker confirms it in writing.

If you do not choose, the oldest shares count as sold first. Many brokers let you pick the shares on the order screen.

Source: IRS Publication 550, Capital gains and losses

Does selling the shares with the smallest gain avoid the tax?

No. It moves the tax to the day you sell the rest.

The shares you keep still hold their gain, and it is taxed when you sell them.

Source: IRS Publication 550, Capital gains and losses

What is the cost basis of an RSU share?

The share value on the day it vested, which was taxed as wages that year.

Some brokers report a basis of zero. Use the vest-day value on Form 8949, or you pay tax on the same income twice.

Source: IRS Instructions for Form 8949

Do recently vested shares cost more to sell?

Only on the gain since the vest. That gain is taxed at your ordinary rates until you have held the shares more than one year.

The holding period starts the day after the shares vest, not at the grant date.

Source: IRS Publication 550, Capital gains and losses

What if some of my shares are below their vest price?

Selling them gives a capital loss, which offsets capital gains first and then a limited amount of other income each year.

A vest or ESPP purchase of the same stock within 30 days either side defers the loss as a wash sale.

Source: IRS Publication 550, Capital gains and losses

Why trust these numbers

One deterministic engine computed every figure on this page, the same engine the app uses. AI never calculates. Tax math runs in your browser. See how we verify it.

Not tax or investment advice. Estimates only. Your own figures will differ.