Do wash sales apply to IRA accounts?

So I sold some tech shares in my brokerage account at a loss last month, then bought the same stock inside my Roth IRA about two weeks later. My 1099-B from last year had a wash sale flagged (code W on Form 8949) for something similar and I just assumed that only counted when both trades were in the same taxable account. Now I'm reading conflicting things online. Do wash sales apply to IRA situations like this? I want to make sure I'm reporting the loss correctly on Form 8949 and not accidentally triggering a disallowed loss again. I already tried reading through the broker's FAQ and it didn't really clarify the IRA angle.

31 comments

Yes, the IRA purchase absolutely triggers a wash sale on the taxable loss. The rule in Publication 550 covers it explicitly: buying substantially identical stock in your IRA or Roth IRA within 30 days before or after a sale at a loss in a taxable account disallows that loss. The really painful part is that unlike a wash sale between two taxable accounts, the disallowed loss can't be added to the basis of the IRA shares. It's just gone permanently.

Claire S.

Author

Ugh, so my Roth purchase two weeks later is exactly the problem. So the loss just disappears entirely, no carryforward, nothing?

Correct. When the replacement purchase is inside an IRA the disallowed loss isn't added to the new shares' cost basis. Publication 550 says that explicitly. It's one of the worst outcomes of the wash sale rule.

Ran into this exact scenario last filing season. I uploaded my brokerage statements and 1099-B to taxr.ai and it flagged three wash sale situations I hadn't caught, including one where the repurchase was in my traditional IRA. It read through the transaction dates, matched the CUSIP numbers and laid out which losses were permanently disallowed versus which ones just carried the basis forward into new shares. Really helped me figure out what to enter in columns (f) and (g) on Form 8949.

Claire S.

Author

Did it catch the IRA wash sale even though that transaction wouldn't show on the 1099-B at all?

Yes, because I gave it both the brokerage statement and the IRA confirmation. It compared the dates and tickers across both documents. The 1099-B won't show it, but the rule still applies and you still have to report the loss as disallowed.

My broker never shows the wash sale on the 1099-B when the repurchase happened in a different account. So people assume it isn't flagged and they deduct the loss anyway. That's the trap. Publication 550 is clear that you can't deduct a wash sale loss even if it doesn't appear in box 1g of your 1099-B.

No, that's right. The IRS doesn't require brokers to report cross-account wash sales, so it falls on you to track it yourself.

To put the reporting piece concretely: if the loss is on a covered security you'll have a 1099-B but box 1g may show zero because the broker didn't track the IRA repurchase. You still enter code W in column (f) of Form 8949 and the disallowed loss amount as a positive number in column (g). The loss won't flow to Schedule D. And unlike the normal wash sale, nothing gets added to basis anywhere because the replacement shares are in a tax-deferred account.

Similar thing happened to me in a year I was tax-loss harvesting aggressively. I pasted my trade history into Taxr and it built a wash sale worksheet showing which sales were affected by repurchases across my accounts, including my IRA. It even drafted the column (g) adjustments I needed for Form 8949. Saved me from deducting a loss that was permanently disallowed under the IRA rule.

Claire S.

Author

Did it separate the permanently disallowed IRA ones from the ones where basis just shifts to the new shares?

Yes, it split them out. Regular wash sales where you rebuy in a taxable account get the basis added to the new shares. IRA repurchases don't, so those losses are just dead. It made the distinction clearly in the worksheet.

I want to push back slightly on the idea that the 30-day window is always obvious. The rule is 30 days before or after the sale. So if you bought the stock in the IRA and then sold at a loss in your taxable account within 30 days after that IRA purchase, it's still a wash sale. The window goes both directions.

Yes, confirmed. The rule in Publication 550 covers purchases within 30 days before or after the loss sale, not just after.

Claire S.

Author

That's a really important clarification, I was only thinking about purchases after the sale.

The spouse angle also matters. Publication 550 says the wash sale rules apply if your spouse buys substantially identical stock in the same window, even in a separate account. If your spouse holds an IRA and bought the same stock, that counts too.

I keep seeing people say to just avoid selling at a loss if you're going to buy the same thing in an IRA. That's one way to handle it but you can also just wait the 31 days before rebuying in the IRA if you want to harvest the loss in the taxable account.

Yes, that works. 31 days after the sale clears the window and you can then buy in the IRA without triggering the rule.

Right, just be aware the 31-day gap means you're out of the market for that period, which is a different kind of risk.

One thing I got wrong the first time: I thought using a different but similar ETF in the IRA would be fine. The rule says substantially identical, so moving to a genuinely different fund (different index, different issuer) should be safe. But swapping between two S&P 500 ETFs from different providers is debated territory and I'd want a CPA or enrolled agent to weigh in before assuming that's clean.

No clear IRS guidance defines substantially identical for ETFs, so yes, that one really does call for a professional if the amounts are significant.

Also worth noting: a corporation you control counts under the wash sale rules too, not just IRAs and spouses. If your business buys the substantially identical shares within that window it's still a wash sale. Mentioned because a lot of people with S-corps or LLCs holding investments don't realize this.

I sold shares at a loss in October and genuinely forgot I had a dividend reinvestment plan on the same stock in my IRA that purchased shares automatically a week later. DRIP purchases inside an IRA still count. Ended up with a permanently disallowed loss I couldn't do anything about.

Claire S.

Author

Ouch. I hadn't even thought about automatic DRIP purchases creating a wash sale. That's a good warning.

Yes, it's worth turning off DRIP in the IRA for any stock you're planning to sell at a loss in a taxable account, at least for that 61-day window.

Just to confirm the basis point one more time because it comes up a lot: when a wash sale is triggered by an IRA or Roth IRA repurchase, the disallowed loss is not added to the cost basis of the IRA shares. That's specifically what Publication 550 says. It differs from a wash sale within or between taxable accounts, where the loss does get added to the new shares' basis and preserved until you eventually sell those shares.

The holding period rule is also worth knowing for regular (non-IRA) wash sales: when a loss is disallowed and the basis carries over to the new shares, the holding period of the shares sold is tacked onto the holding period of the new shares. That matters for whether your eventual gain or loss on the replacement shares is long-term or short-term. Doesn't apply to the IRA situation since there's no basis carryover there, but good to know for any repurchases in taxable accounts.

Yes, that tacking rule can turn what looks like a short-term holding into a long-term one when you eventually sell the replacement shares.

For anyone trying to track this manually: the 61-day window is 30 days before the sale, the day of the sale, and 30 days after. If you can document that your IRA purchase fell outside that window you don't have a wash sale. Keep the trade confirmations from both accounts as your records.

If the amounts are large enough that a permanently disallowed loss meaningfully affects your tax situation, it's worth talking to an enrolled agent or CPA before year end. They can help you decide whether to close positions, adjust your IRA contributions strategy or anything else. Once the loss is permanently disallowed there's nothing to file to recover it.

Claire S.

Author

Makes sense. I think for my situation the amount is small enough I can handle the Form 8949 entry myself, but good to know when to escalate.