Wash sale rules do apply to IRA accounts, but not in the way most investors expect. Trades that happen entirely inside a Traditional or Roth IRA are not affected, because the account doesn’t recognize taxable gains or deductible losses in the first place. The rule bites when you sell a security at a loss in a taxable brokerage account and then buy substantially identical shares in your IRA within a 61-day window. Under IRS Revenue Ruling 2008-5, that loss isn’t just deferred. It’s permanently disallowed, with no basis adjustment to recover it later.1Internal Revenue Service. Rev. Rul. 2008-5
The 61-Day Window and What Counts as Substantially Identical
Section 1091 of the Internal Revenue Code disallows a capital loss if you buy substantially identical securities within 30 days before or 30 days after the sale. Including the sale date itself, that’s a 61-day restricted window. Sell shares at a loss on March 15 and any purchase of the same security between February 13 and April 14 triggers the rule.2Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities
The tax code doesn’t define “substantially identical,” and the IRS treats it as a facts-and-circumstances question. Buying back the exact same stock clearly qualifies. Stocks of two different corporations ordinarily don’t. Bonds or preferred stock of a company aren’t ordinarily substantially identical to that company’s common stock, unless they’re convertible and trade at prices closely tracking the conversion ratio.3Internal Revenue Service. Publication 550 (2025), Investment Income and Expenses
Index funds and ETFs are the murky zone. The IRS has never ruled on whether two S&P 500 funds from different providers are substantially identical. The holdings are nearly the same, which makes the argument strong. An S&P 500 index fund and an actively managed large-cap fund with different holdings are almost certainly not substantially identical, even if their returns look similar. The safest replacement tracks a different index or uses a meaningfully different strategy.
The rule also reaches options and contracts. A call option or a deep-in-the-money put on the same stock you just sold at a loss can trigger a wash sale.2Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities
Trades Entirely Inside an IRA Are Not Affected
Buy and sell securities inside a single IRA all day, and the wash sale rule has nothing to work on. Traditional and Roth IRAs don’t generate deductible capital losses on individual transactions, so there’s no loss to disallow. Selling a stock at a loss in your Roth and repurchasing it the next morning has no tax consequences. Nothing flows to Schedule D, and Form 8949 doesn’t come into play. Roth distributions remain tax-free when qualified, and Traditional IRA distributions are taxed as ordinary income no matter what happened to individual positions along the way.
Selling in a Taxable Account and Buying in Your IRA
This is the trap. Sell a security at a loss in your taxable brokerage account, then purchase substantially identical shares in any IRA within the 61-day window, and Revenue Ruling 2008-5 treats it as a wash sale. The loss on the taxable sale is disallowed under Section 1091, even though the replacement purchase sits inside a tax-exempt account.1Internal Revenue Service. Rev. Rul. 2008-5
The IRS’s reasoning: Section 1091 disallows the loss when “the taxpayer” acquires substantially identical stock in the window. When you direct your IRA to buy the stock, the IRS treats you as the acquirer, even though the IRA is technically a separate tax-exempt trust. The ruling applies to Traditional IRAs and Roth IRAs alike.1Internal Revenue Service. Rev. Rul. 2008-5
Here’s what makes this so much worse than an ordinary wash sale. Between two taxable accounts, a disallowed loss gets added to the cost basis of the replacement shares, and the holding period carries over. You recoup the loss later when you sell those replacement shares. But an IRA doesn’t track cost basis for individual securities the way a taxable account does. Revenue Ruling 2008-5 confirms that the IRA’s basis is not increased by the disallowed loss.1Internal Revenue Service. Rev. Rul. 2008-5
The loss is gone. Not deferred. Not recoverable when you eventually take distributions. Gone.
A concrete example: you sell 100 shares for a $2,000 loss in your brokerage account on June 1, then buy 100 shares of the same stock in your Roth IRA on June 10. The $2,000 loss disappears, and nothing in the Roth compensates you for it.
Spouses and Employer Retirement Plans
The IRS treats a stock sold by one spouse at a loss and repurchased within the 61-day window by the other spouse as a wash sale. Section 1091 refers to acquisitions by “the taxpayer,” but the IRS views spouses as a single economic unit for this purpose. If your spouse buys the same security in their IRA during the window, expect the same permanent-loss outcome.
Revenue Ruling 2008-5 addressed IRAs and Roth IRAs specifically. It didn’t address 401(k) plans, 403(b) plans, or other employer-sponsored accounts, and noted it “does not address any issues other than those specifically addressed herein.” The underlying logic reaches further, though: if you cause any tax-advantaged account to purchase substantially identical securities in the window, the IRS can argue the wash sale rule applies. Many tax professionals treat 401(k) and 403(b) purchases the same way.
Automatic retirement contributions create a quiet version of this trap. If your 401(k) buys an S&P 500 index fund every pay period, and you sell an S&P 500 index fund at a loss in your taxable account, the next automatic purchase can trigger a wash sale. It happens whether you’re paying attention or not.
Your Broker Won’t Catch It
Brokers are only required to identify wash sales when both transactions happen in the same account. There’s no requirement to track wash sales across different accounts, even accounts held at the same firm. A brokerage that holds both your taxable account and your IRA has no obligation to flag a cross-account wash sale on your Form 1099-B.
Brokers also aren’t required to decide whether two different securities are substantially identical. Their systems match by CUSIP. Sell an ETF in one account, buy a substantially identical ETF with a different CUSIP in another, and no automated system will notice.
The burden is yours. During tax season, review trading activity across every account you and your spouse hold. If you harvested a loss in a taxable account, check whether any IRA or retirement plan purchased the same or a substantially identical security in the 30 days before or after that sale. Most investors skip this step, which is how the mistake surfaces later in an IRS notice.
How to Report an IRA-Related Wash Sale
The loss is disallowed, but you still have to report it. Put the original sale from the taxable account on Form 8949 with Code “W” in column (f), and enter the nondeductible loss amount as a positive number in column (g). That zeroes out the loss for the Schedule D calculation.4Internal Revenue Service. Instructions for Form 8949 (2025)
Your 1099-B will show the full loss without any wash sale adjustment, because the broker didn’t see the IRA side of the trade. If you copy the 1099-B onto your return without adding the code and adjustment, you’ll claim a loss the IRS says you can’t take. When the IRS matches your 1099-B against your Schedule D and spots the mismatch, a notice or audit can follow.
Claiming a disallowed loss creates an underpayment. The IRS can add a 20% accuracy-related penalty on the underpayment amount for negligence or disregard of tax rules.5Office of the Law Revision Counsel. 26 US Code 6662 – Imposition of Accuracy-Related Penalty on Underpayments On a $5,000 disallowed loss in the 24% bracket, the underlying tax is $1,200, and the penalty adds $240 on top. Larger losses and higher brackets scale the damage up.
How to Avoid the Trap
The clean rule: don’t buy the same security in your IRA that you just sold at a loss in a taxable account. That’s harder than it sounds with automatic contributions and overlapping holdings, but a few approaches work:
- Hold different funds in your IRA than in your taxable account. If your taxable account holds an S&P 500 index fund, hold a total stock market fund or an actively managed large-cap fund in your IRA. Different holdings mean they’re almost certainly not substantially identical.
- Pause or redirect automatic contributions that buy the same fund you’re selling at a loss. Restart them once the 61-day window closes.
- Replace the losing position in the taxable account with a similar but not substantially identical fund to keep your market exposure. Swap an S&P 500 fund for a Russell 1000 fund, for instance. After 31 days, switch back if you want the original.
- Wait 31 days before repurchasing in any account. The most conservative option, and the one with the most market risk during the gap.
Year-end harvesting deserves extra care. Trades need to settle by December 31 for the loss to count in the current tax year. And the 61-day window doesn’t respect the calendar boundary: a December 28 sale and an early-January IRA purchase of the same fund still creates a wash sale.