Do RSU vests or ESPP purchases trigger a wash sale?
By Wash-Sale Guardian (who's behind it) · Published 2026-11-01 · Last updated 2026-11-14 · How the checker works
The closest IRS text points to yes, and no primary source we read settles it. If you sell company stock at a loss and a vest or an ESPP purchase delivers more of that stock within 30 days before or after the sale, expect to lose the deduction on that many shares for now. IRS Publication 550 names neither, but its closest example is a stock bonus, and it ends: "If you receive another bonus award of substantially identical stock within 30 days of the sale, you cannot deduct your loss on the sale." The disallowed amount generally moves into the new shares' basis, and your 1099-B isn't required to show it when the shares sit in a different account.
What the IRS example says
Pub 550, Wash Sales, Example 2, in full:
"You are an employee of a corporation with an incentive pay plan. Under this plan, you are given 10 shares of the corporation's stock as a bonus award. You include the fair market value of the stock in your gross income as additional pay. You later sell these shares at a loss. If you receive another bonus award of substantially identical stock within 30 days of the sale, you cannot deduct your loss on the sale."
Our reading is that an RSU vest fits closely: the shares arrive as pay and you include their value in income. The example doesn't say RSU, though. IRC §1091 applies when you have "acquired (by purchase or by an exchange on which the entire amount of gain or loss was recognized by law), or [have] entered into a contract or option so to acquire" substantially identical stock. Neither it nor Treas. Reg. §1.1091-1 says how "purchase" applies to shares received as pay, and some tax writers argue it doesn't reach them. Pub 550 is the IRS's published position, not the statute. If a lot rides on it, ask a CPA or EA.
ESPP purchases
An ESPP purchase is the plainer case, because you pay for the shares and Pub 550's list begins with "Buy substantially identical stock or securities". Pub 525 calls them stock "acquired by exercising an option granted under an employee stock purchase plan". It ties basis to "the option price at the time you exercised your option and acquired the stock", and in its example the holding period "begins the day after the option is exercised, even though the money used to purchase the shares was deducted from Adrian’s pay on 48 separate days". That points to the exercise date over each payroll deduction. Those are basis and holding-period statements, though, and Pub 525 never mentions wash sales.
Selling at a loss near a vest
- Both directions count. A vest in the 30 days before your sale or in the 30 days after it is inside the 61-day window.
- Monthly vests leave no gap. With a vest every month, every sale date falls within 30 days of one.
- Quarterly vests leave about a month. With vests on August 15 and November 15, a sale from September 15 through October 15 is more than 30 days from both, though any other buy of that stock still counts.
- The sale date is usually the one you control. The calculator compares one sale date with one vest or purchase date at a time.
A worked example: a partial wash
A vest smaller than your sale washes only part of the loss. Pub 550 finds the shares affected by "matching the shares bought with an equal number of the shares sold. Match the shares bought in the same order that you bought them, beginning with the first shares bought." Made-up trades in a made-up ticker, with every share you sell at one basis:
- March 2, 2026: 100 shares of BRAMBLE reach your taxable brokerage account with a basis of $50 a share, $5,000 in all.
- Friday, October 30, 2026: your ESPP buys 40 shares at $34, for $1,360, in a plan account at another firm.
- Monday, November 16, 2026: you sell the 100 at $40, for $4,000. That's a $1,000 loss, $10 a share.
- Tuesday, December 1, 2026: 25 RSUs vest in the plan account, worth $42 a share, $1,050 counted as pay.
The window for a November 16 sale runs from October 17 through December 16. October 30 is 17 days before the sale and December 1 is 15 days after, so both are inside. They add up to 65 shares, fewer than the 100 sold.
The loss on those 65 shares, $650, is disallowed: $400 matched to the 40 ESPP shares and $250 to the 25 vested shares. The other $350 isn't washed by either. On Form 8949 your sale would show code W and $650 in column (g), turning the $1,000 loss into a $350 loss.
Pub 550 says to add the disallowed loss to the cost of the new stock, which "postpones the loss deduction until the disposition of the new stock or securities". That makes the ESPP shares $1,360 + $400 = $1,760 and the vested shares $1,050 + $250 = $1,300. Pub 525 can add ordinary income to the ESPP basis too: the purchase-date discount when the plan's holding period isn't met ("Increase your basis in the stock by the amount of this ordinary income"), and, for an option granted at a discount, the lesser-of amount when it is met (its Example 10 reports $200 of a $1,000 gain as wages and $800 as capital gain).
With all the rows imported as buys and sells in taxable accounts, the checker gives the same $400 and $250, shows the $350 loss on the year-end row, and shows the $1,760 and $1,300 bases once those shares are sold. Without the plan account's rows it shows the whole $1,000 as a loss, because it never saw either acquisition.
Your 1099-B isn't required to show it
The Form 1099-B instructions tell brokers: "You must report any loss disallowed under section 1091 if both the sale and purchase transactions occur in the same account with respect to covered securities with the same CUSIP number." They add: "You are permitted but are not required to report in box 1g all loss disallowed under section 1091." A plan account and a personal brokerage account are different accounts, often at different firms, so check what box 1g shows. Pub 550 says "you cannot deduct a loss from a wash sale even if it is not reported on Form 1099-B." For what it leaves out, see how code W works.
A separate trap can hide the loss itself. Brokers can't "increase initial basis for income recognized upon the exercise of a compensatory option or the vesting or exercise of other equity-based compensation arrangements granted or acquired after 2013." So a 1099-B's basis for plan shares may leave out income already counted as pay. The Form 8949 instructions correct a wrong basis with code B, in one of two ways. In box A or D (basis reported to the IRS), column (e) keeps the basis the 1099-B shows and column (g) corrects it. In box B or E (basis not reported), column (e) takes the correct basis and column (g) takes -0-.
What the sources we read don't settle
We read IRC §1091, Treas. Reg. §1.1091-1, Pub 550, Pub 525, Topic 427 and the Form 1099-B, Form 8949 and Form 3922 instructions. None of them connects an RSU or an ESPP to the wash-sale rule by name. Commentators also cite two older IRS rulings, Rev. Rul. 73-329 on bonus stock and Rev. Rul. 56-452 on employee stock options. We couldn't get their full text, so we don't describe them here. Ask a CPA or EA to read them against your facts. These also need a CPA or EA:
- Which ESPP date counts. Form 3922, if you get one, shows "Date option granted", "Date option exercised" and "Date legal title transferred". Nothing we read says which sets the window.
- Whether a grant or enrollment counts by itself. §1091 also reaches a "contract or option so to acquire". We found nothing on whether an ESPP grant, an ESPP enrollment or an RSU grant inside the window is one.
- Which RSU date counts. The vest date and the day shares are delivered can differ. Pub 525's restricted property section starts the holding period when property "becomes substantially vested", but that isn't a wash-sale rule, and that section doesn't name RSUs.
- Tax-withheld shares. If your employer keeps 40 of 100 vesting shares for tax, nothing we read says whether you acquired 100 or 60. Planning on the larger number is the cautious reading.
- Shares sold to cover taxes. A sale at vest can show a small loss. Nothing we read says whether that vest or a nearby one washes it.
- A spouse's vest. Pub 550's spouse sentence says "buys". We found nothing on a spouse's shares received as pay.
What the free checker does with a vest
The free checker reads CSV exports from the brokers it supports, in your browser, with nothing uploaded and no broker login. A vest is a purchase to it, and its limits matter here:
- A vest counts only as a buy, from a file you imported or one you type in. Such a row is treated like any other purchase, at the quantity and price it shows, so a row net of withheld shares counts only those shares.
- It may not be there. A vest, a payroll ESPP buy or a 401(k) purchase that isn't in a file isn't seen. You can list a plan account under "Accounts I haven't added": answers it could affect say "Can't tell" until you import it or remove it.
- A stock-plan or transfer row isn't a buy. The checker withholds every verdict and year-end row for that stock and names the row.
- Sales with no purchase behind them are withheld. If a file doesn't show vested shares arriving before you sell them, the checker reports incomplete history for that stock.
- You can add a vest a file leaves out. "Add a trade manually" takes a ticker, quantity, price and date. "Can I buy it?" tests a planned purchase of shares against your files, so an upcoming vest can go there. Neither lifts the withhold from a stock-plan or transfer row: that stock's verdicts stay withheld and "Can I buy it?" says "Can't tell".
- "Add employee stock (RSU or ESPP)" takes a vest, an ESPP purchase or a line of a stock-plan 1099-B. It is under "Your data", next to "Add a trade manually". A vest or ESPP purchase you type counts like any other purchase, and which kind you pick changes no figure and no wash-sale verdict in the free checker, with one exception: when ESPP shares you typed are sold without the adjusted cost basis from your plan's supplemental statement, the checker withholds that stock, because their basis includes ordinary income it can't work out. A sale line you type sells the shares acquired on its box 1b date first, not the oldest shares, and if you also type the adjusted cost basis from your plan's supplemental statement and every share sold is of a vest or ESPP purchase you typed for that date, the checker uses it as their basis before any wash-sale adjustment. The box, box 1e and box 1g you type on a sale line change no figure and no wash-sale verdict in the free checker. What the kind and box 1g can change is whether the year-end summary marks a row "CPA check": it marks the rows of a sale whose Form 8949 row Guardian Pro's worksheet holds back for an employee-stock reason (a loss an RSU vest washed, an adjusted cost basis that may already include a wash-sale adjustment, a sale line whose shares don't line up with the vest or purchase it names, a box 1g that differs from the wash sale the checker finds, or vest shares sold without their 1099-B line; for an RSU vest, only the row of the loss it washed), and every row whose basis, across your accounts or as your 1099-B likely shows it, holds loss disallowed on such a sale. A trade from a file or a backup, or typed with "Add a trade manually", in the same account as an entry you type, of the same stock, on the same side (bought or sold) and on the same trade date isn't counted, and that stock is withheld, until you answer the notice: say it's a separate trade, and it counts, or that it's the same shares as your entry, and the entry counts in its place (refused when the shares don't add up). The checker never decides this by itself; when a trade's shares and price match an entry's, the notice says so and can link all such pairs at once. To type the 1099-B line of a sale you imported, choose that sale for the line with "Use this one" (for each line, when the 1099-B splits the sale; "Use this one too" adds another fill of that date), so it counts once. Your answers are kept on the entry, the list of manual entries shows them with an Unlink, and editing the entry clears them. A broker row dated on another day than your entry, such as a deposit date, isn't compared with it, so both count: give the entry the row's date. Imports and restores keep every trade. A backup with entries can't be restored into an older version of the checker, which refuses it. Typing entries doesn't lift the withhold from a stock-plan or transfer row in an imported file. The methodology has the details.
- It doesn't count a purchase sold again before your loss sale. Read literally, the rule counts any purchase in the 30 days before the sale, so if you sold a vest before the loss sale, ask a CPA or EA.
- It compares the same ticker and options on it, so a share class under another ticker isn't compared (where the line is). It doesn't model Section 475. Its methodology lists the rest.
Where Guardian Pro comes in
Guardian Pro's Form 8949 worksheet works from the vests, ESPP purchases and stock-plan 1099-B sale lines you type under "Employee stock". It marks a loss that an RSU vest washes as a CPA check, and for each sale line that lines up with a vest or purchase you typed it corrects the basis your stock-plan 1099-B may leave out. An ESPP purchase you type washes a loss like any other purchase: the worksheet gives that loss the usual code W row unless another check applies. The methodology says how each line is worked out and what it leaves out; for the unsettled parts above, ask a CPA or EA.
Frequently asked questions
Does an RSU vest trigger a wash sale?
The closest IRS text points to yes if the shares reach you within 30 days before or after a loss sale of the same stock. Pub 550 doesn’t name RSUs, but its closest example is a stock bonus: "If you receive another bonus award of substantially identical stock within 30 days of the sale, you cannot deduct your loss on the sale." IRC §1091 says "by purchase", and no primary source we read applies those words to an RSU, so ask a CPA or EA if the amount matters.
Does an ESPP purchase trigger a wash sale?
The closest IRS text points to yes. You pay for the shares, and Pub 550’s list begins with "Buy substantially identical stock or securities". No primary source we read says whether the grant date, the exercise date or the transfer date sets the window. Pub 525 ties acquiring the stock to the exercise date, in a passage about basis. Ask a CPA or EA about the others.
Can I still deduct the loss for 21 shares (27 minus the 6 I purchased in the 30 day window)?
Those 6 shares wash the loss on 6 of the 27, and they don’t wash the other 21. Pub 550 says to match "the shares bought with an equal number of the shares sold". Any other purchase in the window counts too. If the shares lost different amounts, the dollars depend on which ones are matched; the checker takes the ones bought first.
Will my 1099-B show a wash sale caused by a vest?
It isn’t required to, even in the same account. A broker has to apply the wash-sale rule only when "both the sale and purchase transactions are of covered securities" (Treas. Reg. §1.6045-1(d)(6)(iii)(A)), and the same regulation’s Example 10 says stock an employer grants is not a covered security, because it isn’t acquired for cash. Nor is a broker required to when the shares sit in a different account, though it may report more than it must. Check what your 1099-B shows. Pub 550 says "you cannot deduct a loss from a wash sale even if it is not reported on Form 1099-B."
Will the free checker see my vests?
Only if they appear as buys in a file you import or that you type in, and they may not. A plan account you haven’t imported isn’t seen. A stock-plan or transfer row doesn’t import as a buy, so the checker withholds that stock’s verdicts and names the row.