← Back to Blog

The RSU Wash Sale Rule, Explained: Why Your Tax-Loss Sale Might Not Count

RSU vesting and ESPP purchases can trigger the wash sale rule on a loss sale, even though you never technically bought anything. Here's how the window works.

By Zaman Ishtiyaq · Founder, Offer XRay · 2026-11-30
Share:
On this page

Yes, the wash sale rule can apply to RSUs. Sell shares at a loss and new RSUs vest, or an ESPP purchase lands, within 30 days before or after, and the IRS can disallow the loss even though you never "bought" anything — a vest still counts as an acquisition under the rule. That catch-all trips up exactly the people trying to do the responsible thing: harvest a loss before year-end.

What the Wash Sale Rule Actually Says

The wash sale rule, created by Internal Revenue Code Section 1091, disallows a tax loss on a security sale if you acquire a "substantially identical" security within a 61-day window: 30 days before the sale through 30 days after it. The loss doesn't disappear forever — it gets added to the cost basis of the replacement shares, deferring it rather than destroying it, as Kiplinger's rule summary lays out.

The 61-Day Window, Not 30

People remember "30 days" and stop there. The window runs both directions around your sale date: 30 days before and 30 days after, for 61 days total. An RSU vest that already happened a month before you sell at a loss can trigger the rule just as easily as one that vests afterward.

What "Substantially Identical" Means

The term isn't defined in the statute or in Treasury regulations. Courts and IRS guidance generally treat shares of the same company as substantially identical to each other, while stock in two different companies normally isn't, per secondary analysis summarized by ThinkAdvisor's Tax Facts. For this post, that means your company's RSU shares and the shares you're selling are the same security — no gray area.

Accounts Don't Insulate You

The rule applies across every account you hold, not just the one where the sale happened. A loss in a taxable brokerage account can still be disallowed if a matching purchase happens in your IRA, your spouse's account, or a separate brokerage — spouses count as a single taxpayer for this rule.

Why RSU Vesting Counts as a "Purchase"

This is the part that surprises people, because nothing about receiving RSUs feels like buying stock. You didn't pay for the shares or place an order, and the vest date is set by a schedule you don't control.

The IRS Doesn't Care How You Got the Shares

The test is whether you acquired a substantially identical security in the window, not whether you paid cash for it. An RSU vest puts new shares of company stock in your account on a specific date, and that's an acquisition. Tax preparers, including guidance surfaced in TurboTax's community discussions on RSU wash sales, generally treat each vest the same as a market purchase for this rule, even though it's taxed as ordinary income rather than as a capital transaction everywhere else.

This isn't settled by a single, unambiguous piece of IRS guidance naming RSU vesting directly — it's the majority position, though a few argue a vest is compensation, not a purchase. Assume the conservative reading unless your CPA says otherwise.

Sell-to-Cover Can Trigger Its Own Wash Sale

Most RSU vests use sell-to-cover: your broker automatically sells a slice of the newly vested shares to pay withholding taxes. That forced sale can itself become a wash sale if it happens at a loss and another vest or purchase lands nearby. Schwab's RSU and performance stock tax guide walks through a worked example where sell-to-cover produced a short-term loss separate from any loss the employee intended to realize.

Only the Matching Shares Are Affected

A wash sale doesn't void your entire loss sale — only the portion matching the acquired shares. Sell 500 shares at a loss with 150 vesting in the surrounding window, and the disallowance generally applies to roughly 150 shares' worth, not all 500. The rest of the loss still counts, which a lot of forum discussion glosses over.

ESPPs Have the Same Problem, More Often

If your offer includes an employee stock purchase plan, you're buying company stock automatically on a recurring schedule, often every six months. Every one of those purchases is a potential wash sale trigger for a loss sale in the same company's stock.

Recurring Purchases Create a Moving Target

Because ESPP purchases land on a fixed calendar rather than reacting to the market, you can end up with a wash sale you didn't see coming: you sell older shares at a loss in November expecting to harvest it, and a scheduled ESPP purchase weeks later resets part of that loss into the new shares' basis instead. Schwab's ESPP tax guide and H&R Block's ESPP tax overview both note ESPP cost basis already needs a manual adjustment for the ordinary-income portion of the discount — a wash sale stacks a second correction on top.

The Basis Adjustment Compounds

When a wash sale disallows part of your loss, that amount gets added to the basis of the shares that caused the disallowance. If those shares are part of a recurring vest or purchase cycle, the adjusted basis can carry forward through several more transactions before you sell those particular shares for good.

How This Shows Up on Your Tax Forms

A disallowed wash sale doesn't just vanish quietly. It shows up as a specific adjustment, and knowing where to look prevents a surprise when you file.

Form 8949, Code W

Brokers report wash sale adjustments on Form 8949 using code "W," with the disallowed amount added back to the gain or loss calculation. Code W on a 1099-B tied to RSU or ESPP shares is the rule in action, not a broker error.

Your Broker's 1099-B May Not Catch Everything

Brokers only track wash sales within the same account and the same CUSIP (ticker-level security identifier) — they generally don't see purchases in your other accounts, your spouse's accounts, or a different broker, so your 1099-B can understate what you actually owe. The rule itself has no such limit; only the reporting does.

Cross-Year Wash Sales Need Manual Tracking

A sale in late December and a vest in early January can still trigger a wash sale, since the 61-day window crosses the calendar boundary. Brokers often miss this because the two transactions land on different 1099-B forms for different tax years — the most common way a year-end loss quietly gets disallowed.

What This Means If You're Evaluating a New Offer

None of this changes what an RSU grant is worth on paper, but it does change how cleanly you can use equity losses to offset gains elsewhere in your portfolio, especially with a plan that includes an ESPP. A heavier vesting cadence, like monthly instead of quarterly, scatters more acquisition dates through the year — more windows where a wash sale can attach itself to a loss sale you were counting on.

Frequently Asked Questions

Does the wash sale rule apply to RSUs?

Yes, in the view most tax preparers take: an RSU vest is treated as an acquisition of substantially identical stock, even though you didn't pay cash for the shares. Sell shares of the same company at a loss within 30 days before or after a vest, and part or all of that loss can be disallowed.

Does selling RSU shares to cover taxes count as a wash sale trigger?

Yes. A sell-to-cover transaction is itself a sale, and if it happens at a loss, it can be disallowed if another vest or purchase falls within the surrounding 61-day window.

How many days do I need to wait to avoid a wash sale after selling RSU shares at a loss?

A clean 30 days on either side of your sale date, for 61 days total. Since vest and ESPP purchase dates are fixed in advance, check your plan's calendar before timing a loss sale.

Can a wash sale permanently cost me the tax benefit of a loss?

No. It defers the loss — the disallowed amount is added to the cost basis of the triggering shares, so you recover the benefit when you eventually sell those (assuming they aren't caught in another wash sale).

Does the wash sale rule apply across my IRA or my spouse's account?

Yes. It applies across all your accounts and your spouse's, not just the one where the loss sale happened.

Key Takeaways

  • The wash sale rule disallows a loss if you acquire substantially identical stock within 30 days before or after the sale — a 61-day window in total.
  • Most tax preparers treat an RSU vest, and an ESPP purchase, as an "acquisition" for this rule, even though you didn't pay for the shares.
  • Only the portion of your loss matching the acquired share count gets disallowed; the rest still counts.
  • The disallowed loss isn't gone — it's added to the basis of the triggering shares, deferring the benefit rather than eliminating it.
  • Your 1099-B may not catch wash sales across multiple accounts, brokers, or the December-to-January boundary, so manual tracking matters near year-end.

This post explains how the wash sale rule intersects with equity compensation in general terms — it isn't tax advice for your specific situation, and the "substantially identical" and cross-account questions can turn on facts a general explainer can't account for. If you're timing a loss sale around vesting or ESPP purchases, run the specifics by a CPA before you file. And if you're still sizing up a new offer's equity terms before any of this matters yet, Offer XRay breaks down vesting schedules, ESPP terms, and other equity mechanics automatically when you upload an offer letter — pricing starts at $4.99 for two analysis credits.

Share:
Analyze Your Offer Letter

Check your own offer

Free · about 60 seconds

Analyze free