Stock & ETF Taxes

Wash Sales Across Multiple Accounts (Including Your IRA)

Last updated: October 25, 2026 · Applies to the 2026 tax year (returns filed in 2027)

The wash sale rule doesn’t care which account you use. If you sell a fund at a loss in your brokerage account and the same fund is bought within 30 days in your IRA, your 401(k)-linked account at another broker, or your spouse’s account, the loss can be disallowed. Your broker won’t flag it, because it can only see one account. And when the repurchase happens in an IRA, the loss isn’t just deferred: it’s gone for good. Here’s how cross-account wash sales work and how to avoid them.

Key takeaways

  • The wash sale rule applies to purchases in any account you control, and to purchases by your spouse.
  • A loss sale in a taxable account followed by a purchase in your IRA or Roth IRA within 30 days permanently disallows the loss (Revenue Ruling 2008-5).
  • Brokers only report wash sales of identical securities within the same account; you’re responsible for the rest.
  • Automatic contributions, dividend reinvestment and robo-advisor rebalancing are the most common accidental triggers.
  • Report cross-account wash sales yourself on Form 8949 with adjustment code W.

Which purchases count

Where the repurchase happensWash sale?What happens to the loss
Same accountYesAdded to new shares’ basis; broker reports it in box 1g
Another taxable account you own (any broker)YesAdded to new shares’ basis; you must adjust it yourself
Your spouse’s accountYesAdded to the replacement shares’ basis
Your traditional or Roth IRAYesPermanently disallowed
Your 401(k) or other employer planUnclearNo direct IRS ruling; many advisers treat it like an IRA to be safe
A trust or business entity you controlPossiblyDepends on the facts

The IRA trap

In Revenue Ruling 2008-5, the IRS said that if you sell stock at a loss and your IRA or Roth IRA buys substantially identical stock within the 61-day window, the loss is disallowed. Normally the disallowed loss is added to the replacement shares’ basis, but IRA assets don’t have a basis that benefits you in the same way. So the ruling says your IRA basis is not increased. The loss simply disappears.

Worked example

Laura holds an S&P 500 ETF in her taxable account, bought for $20,000. On November 20, 2026, she sells it for $15,000 to harvest a $5,000 loss. She plans to buy a different fund for 31 days. But on December 1, her monthly automatic Roth IRA contribution of $500 buys the same S&P 500 ETF.

  • The Roth IRA bought $500 of the same ETF within 30 days, about 3.3% of the shares she sold.
  • That portion of her loss, about $167, is permanently disallowed.
  • The other $4,833 remains deductible, assuming no other repurchases.
  • Had her Roth IRA bought the full $15,000 within the window, the entire $5,000 loss would have been lost forever, worth about $1,100 at a 22% rate.

Her broker’s 1099-B won’t show any of this, because the Roth IRA is a separate account. Laura reports the sale on Form 8949 with code W and a $167 adjustment.

Accidental triggers to watch

  • Automatic investments into IRAs, 401(k)s or taxable accounts that buy the same fund.
  • Dividend reinvestment in any account holding the same security.
  • Robo-advisors that harvest losses in one account while you, or a second robo-advisor, buy the same funds elsewhere. Each service only sees its own accounts.
  • Your spouse buying the same stock or fund, even in their own name.
  • Target-date or model portfolios that rebalance into the same ETF you just sold.

How to avoid cross-account wash sales

  1. List every account you and your spouse own before harvesting a loss: taxable, IRAs, Roth IRAs, 401(k)s and HSAs.
  2. Use different funds in different accounts. For example, an S&P 500 fund in your IRA and a total market fund in your taxable account. Then selling one never matches the other.
  3. Pause automatic purchases and dividend reinvestment of the same fund for 30 days before and after the sale.
  4. Keep a simple log of loss sales and their 61-day windows.
  5. Check after the fact. Before filing, compare all purchases within 30 days of each loss sale across all accounts.

Reporting a cross-account wash sale

Report the sale on Form 8949 using the 1099-B figures, enter code W in column (f), and enter the disallowed loss as a positive adjustment in column (g). If the replacement was in a taxable account, add the same amount to the basis of the replacement shares in your own records, because that broker won’t know about it. See Form 8949 instructions.

Frequently asked questions

Does selling in my IRA at a loss and buying in my taxable account count?

Losses inside an IRA aren’t deductible in the first place, so there’s no loss for the wash sale rule to disallow.

Does the rule apply if my spouse and I file separately?

The statute covers purchases by a spouse, and the IRS has generally applied it regardless of filing status. If you’re married, assume your spouse’s trades count.

Does it apply to crypto across wallets?

Not to crypto held directly, as of 2026, because the rule applies only to stock and securities. It does apply to crypto ETFs. See crypto tax-loss harvesting.

Sources

This article is for educational purposes only and is not tax, legal or investment advice. Tax rules depend on your individual situation; consult a qualified tax professional before filing.