Understanding the Wash-Sale Rule and Its Impact on Equity Compensation
On an episode of my podcast, Do More With Your Money, I covered the wash-sale rule and how it touches equity compensation. It’s one of the easiest tax rules to trip over when your company keeps handing you new shares.
What the wash-sale rule is
A wash sale happens when you sell a stock at a loss and buy the same or a substantially identical stock within 30 days before or after the sale. That’s a 61-day window centered on the sale date.
With equity comp, the “purchase” can happen automatically. All of these can count:
- RSUs vesting
- An ESPP purchase
- Exercising stock options
- Dividends reinvested in company stock
What happens if you trigger one
The loss is disallowed for now. You can’t use it to offset gains or income that year. Instead, it’s added to the cost basis of the replacement shares, and their holding period carries over. You get the benefit later, when you sell those shares.
There’s no penalty, but it makes your cost basis harder to track and can undo a tax-loss harvesting plan.
A worked example
On March 1 you sell 100 shares of company stock for a $5,000 loss ($50 a share). On March 15, 40 RSU shares vest.
- The loss on 40 shares ($2,000) is disallowed and added to the basis of the 40 new shares.
- The loss on the other 60 shares ($3,000) still counts this year.
Only the number of shares you replaced is affected, so a small vest doesn’t wipe out a large loss.
Traps people miss
- Your IRA. If company stock (or a substantially identical investment) is bought in your IRA within the window, the loss is generally lost for good. It isn’t added to the IRA shares’ basis.
- Your spouse’s accounts. A purchase by your spouse can also trigger a wash sale.
- Multiple accounts. Your broker tracks wash sales within one account. If your RSUs land at one broker and you sell at another, you’re responsible for catching it.
- Dividend reinvestment. Automatic reinvestment of a small dividend can disallow part of a loss. Consider turning it off on shares you plan to sell.
When to watch for it
It comes up most when you’re selling company stock at a loss to reduce concentration, often during an open trading window, while new shares are vesting or being bought through an ESPP around the same time.
Ways to keep it clean:
- Map your vest dates and ESPP purchase dates before you sell
- Sell loss shares more than 30 days away from any vest or purchase when you can
- Sell lots with gains, or small losses, near vest dates instead
- Pause dividend reinvestment on the stock
Common questions about wash sales and equity comp
Does an RSU vest count as buying shares?
Yes. Shares delivered at vest are treated as acquired on the vest date, so a vest within 30 days of a loss sale can trigger a wash sale.
Does the wash-sale rule apply to gains?
No. It only applies to losses. Selling company stock at a gain right after a vest is fine.
Do ESPP purchases trigger wash sales?
They can. An ESPP purchase within 30 days before or after you sell company stock at a loss can disallow part of that loss.
Is a disallowed loss gone forever?
Usually not. It’s added to the basis of the replacement shares and used when you sell them. The main exception is when the replacement shares are bought in an IRA.
How do I know if I had a wash sale?
Your broker reports wash sales it can see on Form 1099-B. It can’t see purchases at other brokers or in your spouse’s or IRA accounts, so review those yourself or with your tax preparer.
Getting help
Equity comp has a lot of moving parts. A sales plan that accounts for vest dates, ESPP purchases and taxes avoids most of these problems before they happen.
Related reading: