Skip to content
Edward Jones Investments logo

The Edward Jones Investments Guide to the Wash Sale Rule for RSU Vests and ESPP Purchases

By Elena Rodriguez, CFA | Reviewed by Aisha Bello, CFP | October 14, 2026
Woman at kitchen table marking a paper calendar beside financial folders

The wash sale rule treats an RSU vest or ESPP purchase as buying the stock, so you should time loss sales at least 31 days from any vest or purchase on either side. That is true even though you never clicked buy.

Here is the number to check. If 300 new shares arrive within 30 days of selling 1,000 shares at a $30 loss each, $9,000 of the $30,000 loss is disallowed and added to the cost basis of the 300 new shares. How much gets caught depends on the smaller of shares sold and shares acquired in the window.

Edward Jones Investments wrote this for tech employees whose pay arrives as stock options, RSUs and shares from an employee stock purchase plan, and whose wealth now leans heavily on a single employer's stock. It looks only at the loss side, and only through a tax-efficiency lens: what actually lowers the bill, and what just moves it to another year.

The example is Glenn, a hypothetical 57-year-old engineer whose ESPP bought shares 12 days after he sold at a loss. His spending playbook for age 60 set the order of his sales, and the article follows that order.

Count every share that arrives 30 days either side of the sale. One 300-share ESPP purchase is enough to defer $9,000 of a $30,000 loss.

CPA and Tax Director, Edward Jones Investments

Check Form 3922 against your sale dates. Brokers only flag wash sales inside one account, and your stock plan account is often a different one.

Senior Financial Planner, Edward Jones Investments

If the sale funds your withdrawals at age 60, don't wait for a perfect window. A deferred loss costs less than a concentrated position that keeps falling.

CFP® and Lead Advisor, Edward Jones Investments

Does an RSU vest or ESPP purchase count as buying the stock?

Yes. Shares delivered at an RSU vest and shares bought on an ESPP purchase date are acquisitions of substantially identical stock under Section 1091 of the tax code. Any of them landing 30 days before or 30 days after a loss sale, a 61-day window that includes the sale day, disallows part or all of the loss.

Financial Planning OverviewKey financial planning considerationsFinancial Planning OverviewAssessmentReview your current financial situation1StrategyDevelop a personalized plan2ImplementationPut your plan into action3MonitoringReview and adjust regularly4Key Areas of Financial PlanningA structured approach helps you stay on trackEdward Jones Investments

Drop four assumptions about wash sales on employer stock

"It only applies to trades I place." It doesn't. Automatic RSU vests, ESPP purchases and reinvested dividends all count, and so do purchases by your spouse (IRS Publication 550 covers this). You can trip the rule without touching a keyboard.

"The loss is gone." Usually it isn't. The disallowed amount moves into the basis of the replacement shares and comes back when you sell them. The exception is replacement shares bought inside an IRA or Roth IRA: under Revenue Ruling 2008-5, that loss is gone for good.

"My broker will flag it." Only partly. Brokers must report wash sales only for identical securities in the same account, so a vest in your stock plan account and a sale at another broker can go unreported. The tax return is still yours.

"Selling a different lot avoids it." No. Every lot of one company's common stock is substantially identical, whatever its purchase date or price. An S&P 500 index fund, on the other hand, is not substantially identical to one company's stock.

What did one ESPP purchase do to Glenn's $30,000 loss?

Glenn (hypothetical), 57, is divorced and a principal engineer at a large public software firm. He holds $900,000 in his employer's shares, bought or vested at a combined cost basis near $200,000, plus $1.1 million in his 401(k). He wants to stop working at age 60 and take about $120,000 annually in withdrawals.

Edward Jones Investments starts from that spending playbook: the stock has to shrink before age 60, so the question is the order of sales, not whether to sell.

His move: sell 1,000 ESPP shares bought about 2 years ago that now sit $30 a share below cost. That's a $30,000 capital loss (hypothetical, round numbers), meant to offset $30,000 of gain from trimming his oldest low-basis lots. The only way to come out ahead here is to pair the loss with gains he has to realize anyway.

Before: he sells, and 12 days later the ESPP buys 300 shares. Those 300 shares times $30 is $9,000 disallowed. The allowed loss is $30,000 minus $9,000, or $21,000. At a 15% rate, for illustration only, the $9,000 costs him $1,350 more tax this year, and he recovers it only when he sells those 300 shares.

After: he sells 31 days after the purchase date, when the next purchase is months away and no RSUs vest in between. Nothing lands in the window, and the full $30,000 offsets the $30,000 gain. Whatever he buys with the proceeds can still fall in price, and he could get back less than he put in. The tax result is one input to the sale, and the spending plan for age 60 sets how much drop he can absorb.

The calculator on this site runs the same arithmetic with your own share counts and loss per share.

Before: the sale 12 days ahead of the purchase

After: the sale 31 days behind it

Quick test: before selling any lot of employer stock at a loss, count every share you, your spouse or any IRA will acquire from 30 days before to 30 days after the sale. Above zero means move the sale or accept the deferral (or, for IRA buys, the loss).

Work out your disallowed loss in 3 steps

Step 1: list every acquisition of the stock from 30 days before to 30 days after the planned sale date. That means vests, ESPP purchases, dividend reinvestments, a spouse's buys and any IRA buys. Step 2: disallowed shares equal the smaller of shares sold and shares acquired in the window. Step 3: disallowed loss equals disallowed shares times loss per share.

For Glenn, the smaller of 1,000 and 300 is 300, and 300 times $30 is $9,000. A wash sale defers tax; it doesn't create it. His $9,000 returns as extra basis on the 300 new shares. Harvesting saves real tax only when the loss offsets gains you would realize anyway, or up to $3,000 of ordinary income annually, with the rest carried forward.

How do marriage, lot size and a retirement date change the 61-day window?

A spouse's purchases count toward your window, a small loss sale can be wiped out by one vest, and your last day of work ends new acquisitions. Each of these shifts how much of a loss survives. A former spouse's purchases do not count, which helps Glenn, who is divorced.

If you're married and both of you work at the same employer, you have two ESPP and vest calendars to clear. Check both before you sell.

Lot size matters most. Look at the Sell 1,000 shares column first, since that's Glenn. When replacement shares are a fixed 300, a 300-share sale loses the whole $9,000 to deferral, while a 3,000-share sale keeps $81,000 of $90,000. Small loss sales are the ones a single vest wipes out.

Retirement date matters too. Once Glenn stops working at age 60, no more ESPP purchases or vests arrive, so a loss lot sold more than 30 days after his last acquisition is clean. Someone retiring early can plan the last loss sales for that point. Someone working 10 more years has to schedule around every purchase period.

Married, divorced or both working at one employer

What a retirement date does to the window

Hypothetical: $30 loss per share, ESPP buys 300 shares 12 days after the sale, 15% tax rate for illustration
ItemSell 300 sharesSell 1,000 shares (Glenn)Sell 3,000 shares
Loss harvested$9,000$30,000$90,000
Shares bought in window300300300
Loss disallowed$9,000$9,000$9,000
Loss allowed now$0$21,000$81,000
Tax deferred at 15%$1,350$1,350$1,350

Check the Form 1099-B against your stock plan account

Glenn moved older lots to a separate brokerage account, so the Form 1099-B from that account showed the full $30,000 loss and no wash sale code. His son, who prepares the return with tax software, imported it as is. The return overstated the loss by $9,000, about $1,350 of tax at an illustrative 15%, plus interest if the IRS adjusts it.

To catch this, match every loss sale date against the stock plan account's vest and purchase history. Form 3922 lists ESPP purchase dates. Report any wash sale the broker missed on Form 8949 with adjustment code W.

A second easy slip is buying the stock back in an IRA within 30 days. The loss is disallowed and is not added to any IRA basis, so the full $30,000 would be lost, not deferred.

Clear the calendar before you sell a losing lot

First, pull the vest schedule and the next 2 ESPP purchase dates from the stock plan portal, and mark 30 days on each side. Second, turn off dividend reinvestment on the stock in every account, including any IRA, and ask a spouse to hold off on buying it.

Third, sell loss lots only in a clean window, pair them with gain lots you planned to sell for diversification, and keep the trade confirmations for the preparer. If no clean window exists before a sale you need for the spending playbook, sell anyway and accept the deferral. Our ESPP selling strategy service and the article on ESPP mistakes cover the purchase side.

Which parts you can handle alone, and where Edward Jones Investments adds a check

You can map the 61-day windows and do the 3-step math yourself. Edward Jones Investments is worth a conversation when the loss sale is one piece of a larger sell-down schedule tied to your withdrawals, across several accounts, where an unreported wash sale or an IRA repurchase costs real money. Waiting for a clean window isn't worth it if it delays a sale the playbook needs, because a wash sale only defers the deduction while a concentrated position stays at risk.

A wash sale defers tax; it doesn't create it, and a loss only saves money when it offsets gains you were going to realize anyway.

What people ask about a wash sale rule rsu

Can I fix a wash sale later by selling the replacement ESPP shares?

Selling the replacement shares releases the deferred loss, because it sits in their basis. You can't undo the wash sale itself, but the $9,000 in Glenn's case reappears when those 300 shares are sold, as long as that later sale isn't also in a wash window.

What happens if I sell at a loss and my RSUs vest 25 days later?

The vest falls inside the 30-day window after your sale, so the loss is disallowed on as many shares as vested, up to the shares you sold. The disallowed amount is added to the basis of the vested shares and returns when you sell them.

Is harvesting a loss on company stock worth it if the wash sale only delays the deduction?

It's worth it when a clean window exists and the loss offsets gains you must realize anyway, or up to $3,000 of ordinary income annually. If a wash sale defers the loss, you've lost time only, and the sale may still be right for reducing concentration.

Does the wash sale rule apply when I sell employer stock at a gain?

No. The wash sale rule only disallows losses. Lots sold at a gain are taxed normally, whatever vests or purchases happen around them. That's why pairing a loss lot with gain lots in a clean window works well.

Can I pause ESPP contributions to keep a purchase out of the 30-day window?

Often yes, but check your plan's rules on when changes take effect, since many plans lock contributions for the current period. Pausing also gives up the plan's discount, so compare that cost with simply picking a sale date 31 days after a purchase.

Does buying an S&P 500 index fund after selling my employer stock count as a wash sale?

Generally no. A broad S&P 500 index fund is not substantially identical to one company's stock, so buying it right after a loss sale doesn't trigger the rule. That lets you keep market exposure while the 61-day window passes.

Official references

This material is general information only and does not address any individual's investment, tax or legal situation. Investing involves risk, including possible loss of principal. Before acting on any information here, speak with a financial advisor, tax professional or attorney about your circumstances.

Request a conversation