Tuesday, November 17, 2026Tue, Nov 17 Updated

Mergers, acquisitions and startup deals, and what they mean.

Wash-Sale Rule and RSUs: How a Vest Can Disallow Your Loss

A wash sale happens when you sell company stock at a loss and an RSU vest adds shares within 30 days. How the loss shifts and how to plan around it.

Top view of financial papers with a calculator, pencils, and a note saying 'Need help?' indicating tax or accounting assistance.
Photo: Nataliya Vaitkevich / Pexels

The wash-sale rule disallows a tax loss when you sell a stock at a loss and acquire the same or a substantially identical stock within 30 days before or after the sale. An RSU vest counts as an acquisition, so if you sell company shares at a loss and a vest delivers new shares inside that 61-day window (the sale date, 30 days before and 30 days after), some or all of the loss is disallowed for now.

The loss is not erased. It is added to the cost basis of the replacement shares, which defers the tax benefit until you sell those shares.

What is the wash-sale rule?

The wash-sale rule is an Internal Revenue Service (IRS) rule that stops investors from claiming a loss on a stock while effectively keeping their position. It applies when you sell a security at a loss and, within the 61-day window around the sale, buy or otherwise acquire the same security or one that is substantially identical.

The rule covers shares you acquire in several ways: a purchase in a brokerage account, a dividend reinvestment, an employee stock purchase plan (ESPP) purchase, a stock option exercise and an RSU vest. The IRS explains wash sales in IRS Publication 550, which covers investment income and expenses.

Why does an RSU vest trigger a wash sale?

A restricted stock unit (RSU) is a promise of company shares that you receive on a vesting date. When it vests, you take ownership of shares, and that counts as acquiring stock even though you did not place a trade.

This catches many employees by surprise because vests follow a schedule you do not control. You can sell shares at a loss in a taxable account, and a quarterly vest two weeks later can bring the sale inside the window. A vest 20 days before your sale does the same, because the window looks backward as well as forward.

The same logic applies to other equity pay. Exercising options can trigger the rule too, and the stock options guide on acquisitions covers how option holders are treated when a company is bought.

How much of the loss is disallowed?

The disallowed amount depends on how many replacement shares you acquire. If the new shares cover the whole sale, the whole loss is disallowed. If they cover only part of it, only that proportion is disallowed.

Here is a hypothetical example with round numbers:

  • You sell 100 shares at $50 that you bought at $60. The loss is $1,000.
  • Ten days later, 25 RSUs vest and deliver 25 new shares.
  • The loss on 25 of the 100 shares sold, $250, is disallowed. You can claim the other $750.

The $250 is added to the basis of the 25 new shares. If the shares were valued at $48 each on the vest date, the basis of each share rises by $10, from $48 to $58. Your holding period for those shares also includes the time you held the shares you sold, which can matter for long-term versus short-term treatment.

What does your broker report, and what is left to you?

Brokers report wash sales on Form 1099-B, but only for identical securities bought in the same account. They do not see purchases in another brokerage, an employer plan account, your spouse’s account or an IRA. The tax obligation still applies to you, so the broker form can understate your wash sales.

Wash sales are reported on Form 8949 with the adjustment code W, which is how the disallowed amount is removed from your deductible loss. Compare your 1099-B against your own records of vests and sales, and ask a tax professional if an adjustment looks wrong.

The company stock plan administrator’s records show vest dates and the value of shares at vesting. Those dates tell you whether a sale fell inside a window.

Does the rule apply to sell-to-cover and tax withholding?

Many employers withhold shares at vest to pay taxes, or sell some shares automatically. Either way, you still acquire shares on the vest date, even if you receive fewer than the full grant. A sale at a loss close to that date can still trigger the rule.

The treatment of withheld shares and of the number of replacement shares can get detailed. A tax professional can confirm how your plan’s mechanics affect the calculation.

Does the rule apply to gains or to retirement accounts?

The rule applies only to losses. If you sell stock at a gain, the wash-sale rule does not change the result, and you owe tax on the gain as usual.

Retirement accounts need care. Under IRS guidance, buying the same stock in an IRA within the window can disallow a loss from a taxable account, and in that case the loss is not added to the basis of anything, so it may never be recovered. Spouses and entities you control can also create wash sales, since the rule is not limited to your own account.

How can you avoid a wash sale with company stock?

You cannot stop a vest from happening, but you can plan the timing of a loss sale around it. Common approaches include:

  • Check your vesting schedule before selling at a loss, and list every vest date in the 30 days before and after the sale date you have in mind.
  • Sell when the next vest is more than 30 days away and the last vest was more than 30 days ago.
  • If you want to hold the position, accept that the loss is deferred rather than lost, since it raises the basis of the new shares.
  • Check your employer’s trading window and blackout periods first. The trading windows and blackout periods guide explains when employees can usually sell.

Some investors buy a different security that is similar but not substantially identical during the waiting period. What counts as substantially identical is a judgment call, and the IRS has not drawn a bright line, so confirm with a tax professional before relying on a particular replacement.

What if the company stock becomes worthless?

A different set of rules applies when a company fails. The article on common stock in Chapter 11 explains what usually happens to shareholders in that case.

Quick answers

How long is the wash-sale window?

It is 61 days: 30 days before the sale, the day of the sale and 30 days after.

Is a disallowed loss gone forever?

Usually not. In a taxable account, the disallowed amount is added to the basis of the replacement shares, so it reduces your gain or increases your loss when you eventually sell them. The exception is a replacement purchase in an IRA, where the loss may not be recovered.

Do I have to track this myself?

Your broker reports some wash sales, but the form can miss purchases in other accounts and vests handled by a stock plan administrator. You are responsible for the correct return, so keep your own record of sales and vest dates.

Is this tax advice?

No. This is general information. Your plan terms and tax situation can change the result, so a tax professional can check the details.