Last reviewed November 2, 2026. For education only, not tax, legal or investment advice.
Most wash sale explainers picture one account and one buy-back order. Real portfolios run on autopilot: dividend reinvestment, an IRA that invests on payday, RSU vests, a spouse trading in an account you never open. The rule counts every one of those buys, and none of them checks your sale date first.
Why the buys you didn’t place are harder to catch
Section 1091 disallows the loss when, within 30 days before or after the sale, you acquire substantially identical stock or securities, or a contract or option to acquire them. It doesn’t ask who placed the order. IRS Publication 550 names a purchase for your IRA or Roth IRA as a trigger, adds purchases by your spouse or a corporation you control, and its second wash-sale example is a bonus award of company stock. Automatic buys are harder to catch for three reasons:
- They run on their own schedule. Dividends, payroll contributions and vests don’t check what you sold last week.
- Half the window is behind you. A reinvestment from three weeks ago can wash today’s loss, and no setting changed today reaches it.
- They’re spread across accounts. Box 1g of your 1099-B shows a wash only when the replacement had the same CUSIP and was bought in the same account. Pub 550 is plain that the loss isn’t deductible either way.
Dividend reinvestment, both halves of the window
A reinvested dividend is a purchase. Pub 550 describes a reinvestment plan as using your dividends to buy more shares, and starts each new share’s holding period the day after it was purchased. If the fund you sold at a loss reinvests within 30 days on either side of the sale, in any account that counts, those shares wash part of the loss, matched share for share.
Take the pillar’s monthly-payer example: a fund paying $0.38 a share each month, and a 300-share lot sold at a $7.50-a-share loss ($2,250). One reinvestment lands five days before the sale (4.000 shares), the next 26 days after it (1.600 shares): 5.6 × $7.50 = $42.00 disallowed, $2,208.00 still deductible. The figure keeps the dates from the pillar’s worked example; the math works on any calendar.
Small money, real bookkeeping: two fractional replacement lots, each with its own basis and holding period, worked out in the dividend reinvestment section of the wash sale guide.
How many reinvestments fit in 61 days
The window is 61 calendar days, so the count depends on how often the fund pays. Taking every trading day as a possible sale date, with pay dates moved off weekends and market holidays:
| Pays | Reinvestments in one window | Why |
|---|---|---|
| Weekly | 8 or 9 | 61 days is 8 weeks and 5 days |
| Monthly | 2 in about 19 windows out of 20; otherwise 1 or 3 | Pay dates sit about a month apart; weekend and holiday shifts move the gaps |
| Quarterly | 0 or 1 | About 2 windows in 3 catch one (61 of every 91 days) |
| Once a year | 0 or 1 | About 1 in 6 for a random sale date; certain within 30 days of the payout |
A weekly payer turns one sale into a stack of tiny lots. You own 1,000 shares of a fund paying $0.10 a share every Friday, reinvested, including a 600-share lot that cost $24.00. The price holds at $20.00, and on a Thursday you sell that lot: a $2,400 loss, $4.00 a share.
- Four Fridays before the sale reinvested 20.151 shares; five after it, on the 420 shares you kept, reinvested 10.609.
- 30.760 replacement shares × $4.00 = $123.04 disallowed; $2,276.96 deductible.
- Nine new lots, each carrying a slice of the loss in its basis.
The look-back reinvestment you can’t switch off after the fact
Switching reinvestment off on the day you sell fixes only the 30 days after. In the weekly example, 20.151 of the 30.760 washed shares were bought before the sale: $80.60 of the $123.04 was locked in before you placed the order. Two things reach that half:
- Selling those shares too. They’re the newest in the position, so a first-in, first-out default leaves them behind. Picked by specific identification and sold in the same order, they bring their share of the loss straight back, as long as nothing replaces them afterward.
- Lead time. The look-back half is empty only if reinvestment was off for all 30 days before the sale: four or five dividends in cash for a weekly payer, usually one for a monthly payer.
Sold every share? The last dividend can still buy some back
Selling every share usually ends the problem: no shares, no dividends. The exception is a sale on or after the ex-dividend date but before the pay date. As the SEC’s Investor.gov explains, when someone buys on the ex-dividend date or later, the seller gets the dividend. That seller is you, and the payment arrives later, usually inside the 30 days after your sale.
Depending on your broker and your reinvestment setting, it can be reinvested in the fund you just sold. On 400 shares, a $0.15 dividend is $60.00, which buys 2.5 shares at $24.00; at a $5.00-a-share loss, $12.50 is disallowed. Small, but it turns a clean line on your 1099-B into a wash sale line and leaves a stray lot behind.
December distributions
Many mutual funds, and plenty of ETFs, pay capital-gain distributions once a year, most often in December. A mid-December payout sits inside the window of every loss sale from mid-November to mid-January, and it can run to several percent of the fund’s price.
Sell 500 of your 800 shares at a $3.00-a-share loss ($1,500) in early December. A $1.50-a-share distribution on the 300 shares you kept is $450.00, which reinvests at $25.00 into 18 shares. Eighteen of 500 washed: $54.00 disallowed, $1,446.00 deductible. Sell in mid-December and a monthly payer’s January reinvestment can land in the window too: a buy dated next year against this year’s loss. Many fund companies publish estimated year-end distribution dates in the fall, so this one can be seen coming.
IRAs and Roth IRAs: the loss is gone
Rev. Rul. 2008-5 shut a move people once made on purpose: sell at a loss in a taxable account, rebuy in the IRA, keep the position and the deduction. An investor sells 100 shares with a $1,000 basis for $600, and the next day has his IRA or Roth IRA buy 100 shares of the same stock. The IRS held the $400 loss disallowed and his basis in the IRA not increased by it. Pub 550 builds that exception into its own instructions: a disallowed loss goes into the new shares’ cost, except when they were bought for your IRA or Roth IRA. So an IRA purchase ends the loss instead of deferring it, whether it’s a click, a contribution that invests itself, or the IRA’s own reinvestment.
The pillar’s example: you sell 200 shares in a taxable account at a $10-a-share loss ($2,000), and eleven days later your IRA’s automatic monthly investment buys 50 shares of the same fund. Fifty of 200 shares washed: $500 disallowed for good, $1,500 deductible. The figure keeps its date.
Bought in your taxable account, those 50 shares would have carried the $500 in their basis. In the IRA it has nowhere to go, and your 1099-B won’t flag it, since the IRA is a different account. The wash sale guide’s reporting section puts this same $500 on Form 8949 with code W.
No contribution needed, either. An IRA holding 1,500 shares of the same fund that reinvests a $0.12 monthly dividend at $30.00 buys 6.000 and 6.024 shares in the window: 12.024 × $10.00 = $120.24 gone, from a setting nobody looked at.
Spouse IRAs and 401(k)s: what’s unsettled
Rev. Rul. 2008-5 rules on your own traditional or Roth IRA and says it addresses nothing else. Two neighbors have no ruling:
- Your spouse’s IRA. Pub 550 counts a spouse’s purchase as yours and the ruling’s reasoning carries over cleanly, so most practitioners treat it as the permanent kind too. No ruling has tested it.
- 401(k) and 403(b) plans. The ruling turns on the investor causing the account to buy, and a participant who picks the plan’s funds fits that uncomfortably well. Payroll buys are frequent (every two weeks means 4 or 5 per window), and plan funds are often collective trusts or institutional share classes, which adds a substantially-identical question on top.
Both are risks, not loopholes.
Employer stock: RSU vests, ESPP purchases, bonus shares
Pub 550’s second wash-sale example isn’t about trading. An employee gets 10 shares of company stock as a bonus, includes their value in income, and later sells them at a loss. If another bonus award of the same stock arrives within 30 days of that sale, the loss is disallowed. Equity pay has the same shape:
- RSU vests. Shares delivered at vest are taxed as pay, much like that bonus. The IRS hasn’t ruled on RSUs directly and practitioners don’t all agree, but most treat a vest inside the window as an acquisition.
- ESPP purchases. The plan buys shares with your payroll deductions at the end of each offering period, a plain purchase dated in box 2 of Form 3922 (“Date option exercised”). The offering’s start (box 1, the option grant) is grayer: the rule also covers entering into an option to acquire, and no IRS guidance applies that to ESPPs.
- Bonus shares. Pub 550’s example, exactly.
Worked through: you sell 400 shares from an earlier vest, basis $55.00 (their value at vest), at $46.00, a $3,600 loss. Nineteen days later a quarterly vest delivers 90 shares at $47.50. Ninety of 400 shares washed: 90 × $9.00 = $810 disallowed, $2,790 deductible. The new shares’ basis becomes $4,275 + $810 = $5,085 ($56.50 a share), with the old shares’ holding period attached.
Schedules are the hard part. A monthly vest leaves no day more than about 16 days from a vest, so every loss sale of company stock has one in its window, usually two. Quarterly vests and ESPP dates are set in plan documents, so they’re easier to see coming. And when the stock plan account sits at a different firm from the one you sold in, neither 1099-B shows the wash.
Your spouse, custodial accounts and companies you control
Pub 550 adds one sentence after its four triggers: if you sell stock and your spouse or a corporation you control buys substantially identical stock, you have a wash sale. Section 1091 itself never mentions spouses; the publication does, with no exception for couples who file separately.
You sell 150 shares of an index fund at a $6.00-a-share loss ($900). Twelve days later your spouse’s $1,000 automatic investment buys 25 shares of the same fund at $40.00. Twenty-five of 150 washed: $150 disallowed, $750 deductible, and neither 1099-B shows it. Around the household:
- Joint accounts: a buy there is yours.
- Your spouse’s accounts: trades, automatic investments and reinvestments all count; their IRA is in the unsettled group above.
- A revocable living trust: treated as you for income tax (IRC §676), so its buys are yours.
- Custodial accounts and trusts you direct: not named in Pub 550, but Rev. Rul. 2008-5 rests partly on a 1933 case, Security First National Bank, that disallowed a loss because a trust the taxpayer controlled made the purchase. The cautious reading treats any account you control as yours.
- A corporation you control: named in Pub 550.
Robo-advisors and direct indexing can’t see your other accounts
A robo-advisor’s harvester sells a fund at a loss and buys a similar one to stay invested. It avoids washing its own losses inside the accounts it runs, and the big platforms’ disclosures say it can’t see past them (as of the review date below):
- Betterment: can’t avoid wash sales tied to accounts held outside Betterment, even ones linked in its app; won’t consider a spouse’s individual Betterment account unless you set up a taxpayer relationship; lists dividend reinvestment among the ways a replacement gets bought.
- Wealthfront: coordinates its automated accounts, but doesn’t actively monitor its Brokerage Account or Stock Investing Account, or accounts at other firms.
- Schwab Intelligent Portfolios: monitors only accounts enrolled in the program, leaves your and your spouse’s other accounts to you, and says its algorithms “are not designed to and cannot avoid all wash sales.”
So the robo’s buys are your buys: a routine rebalance into a fund you just sold at a loss in your own account washes that loss, and your or your spouse’s buys elsewhere can wash a loss the robo harvested. Direct indexing multiplies it. The account holds an index’s stocks individually and harvests losses stock by stock, so RSU or ESPP shares of your employer, a stock you reinvest dividends in at another broker, or a spouse’s trade can wash a harvested loss, and its own buys can wash yours. The engine sees none of it.
Checking a loss sale against the whole household
Every case above comes down to one date range and every buy inside it:
- The window: the loss sale’s trade date, 30 days back and 30 forward.
- Every buy in it, from every account: reinvestments (including a dividend paid after you sold), automatic investments, IRA and 401(k) buys, vests and ESPP purchases, robo rebalances, your spouse’s trades.
- Share-for-share matching: earliest buy first until the shares sold run out, with IRA and Roth IRA shares marked as the ones whose loss doesn’t come back.
The Wash Sale Calculator & Tracker does step 1 free for any trade date, holidays included. With a DRIPCALC plan you can add each buy, tag it Taxable, IRA/Roth, Dividend reinvest or Spouse, and have it checked against the sale. It can’t see accounts you don’t enter, or decide whether two different funds are substantially identical.
Sources
- IRS Publication 550, chapter 4, “Wash Sales,” plus “Dividend Reinvestment Plans” and “Reinvested distributions”: irs.gov/publications/p550
- IRC §1091, loss from wash sales of stock or securities: law.cornell.edu/uscode/text/26/1091
- Rev. Rul. 2008-5, 2008-3 I.R.B. (IRA and Roth IRA repurchases): irs.gov/pub/irs-drop/rr-08-05.pdf
- IRC §676, trusts the grantor can revoke: law.cornell.edu/uscode/text/26/676
- Instructions for Forms 3921 and 3922 (ESPP grant and purchase dates): irs.gov/instructions/i3921
- Investor.gov (SEC), “Ex-Dividend Dates: When Are You Entitled to Stock and Cash Dividends”: investor.gov
- Betterment, “Disclosure for Betterment’s Tax Loss Harvesting+”: betterment.com/tlh-disclosure
- Wealthfront Help Center, “To which accounts does the wash sale rule apply?”: support.wealthfront.com
- Charles Schwab, “Important Tax Loss Harvesting Limitations and Disclosures” (Schwab Intelligent Portfolios): schwab.com
For education only. Not tax, legal, or investment advice. Verify with IRS Publication 550 or a tax professional before acting.
Comments are closed