Wash sale rules do apply to IRA accounts, but only in one direction that matters. Trading inside an IRA cannot create a wash sale, because gains and losses on individual securities in an IRA are never recognized for tax purposes. The dangerous case is the reverse: if you sell a security at a loss in a taxable brokerage account and then buy substantially identical shares in any IRA within a 61-day window, IRS Revenue Ruling 2008-5 disallows the loss, and unlike an ordinary wash sale, the loss is permanently destroyed rather than deferred.1Internal Revenue Service. Rev. Rul. 2008-5
The 61-Day Window in Plain Terms
Section 1091 of the Internal Revenue Code blocks a capital loss if you buy substantially identical securities within 30 days before or 30 days after the sale. Count the sale date itself and you have 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
Between two taxable accounts, a wash sale is annoying but survivable. The disallowed loss is added to the cost basis of the replacement shares, and the replacement shares inherit the original holding period. You recover the deduction eventually, when you sell the replacement shares. The timing of the tax benefit shifts; the benefit itself does not disappear.
That mechanism is exactly what breaks when an IRA is on the other side of the trade.
What “Substantially Identical” Means
The tax code does not define the phrase, and the IRS treats it as a facts-and-circumstances question. Buying back the exact same security clearly qualifies. Stocks of one corporation are ordinarily not substantially identical to those of another. Bonds or preferred stock of a company are ordinarily not substantially identical to that company’s common stock, unless they are convertible and trade at prices closely tracking the conversion ratio.3Internal Revenue Service. Publication 550 (2025), Investment Income and Expenses
Index funds and ETFs sit in the murkiest area. The IRS has never ruled on whether two ETFs from different providers tracking the same index are substantially identical. Two S&P 500 index funds hold nearly identical portfolios, which makes the argument for substantial identity strong. An S&P 500 fund and an actively managed large-cap fund with different holdings almost certainly are not substantially identical, even if their returns look similar. The rule also reaches contracts and options: a call option or a deep-in-the-money put on the stock you just sold at a loss can trigger it.2Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities
Trades Inside an IRA Don’t Trigger the Rule
When you buy and sell entirely within a single IRA, the wash sale rule has nothing to operate on. Traditional and Roth IRAs do not generate deductible capital losses on individual transactions in the first place. Selling a stock at a loss inside your Roth IRA and repurchasing it the next day has no tax consequences. Nothing appears on Schedule D. No Form 8949 reporting is required. Roth distributions remain tax-free when qualified, and Traditional IRA distributions are taxed as ordinary income regardless of what happened to individual positions along the way.
Selling at a Loss in a Taxable Account, Then Buying in an IRA
This is where investors get hurt. Revenue Ruling 2008-5 made the position explicit: when you sell at a loss in a taxable account and cause your IRA to acquire substantially identical shares within the 61-day window, the taxable loss is disallowed under Section 1091. The ruling applies equally to Traditional IRAs and Roth IRAs.1Internal Revenue Service. Rev. Rul. 2008-5
The IRS reasoning is that Section 1091 disallows the loss when “the taxpayer” acquires substantially identical stock within the window, and directing your IRA to buy the stock counts as an acquisition by you, even though the IRA is a separate tax-exempt trust.
Now the destructive part. In a normal wash sale between two taxable accounts, the disallowed loss is added to the basis of the replacement shares, so you eventually recover it. Revenue Ruling 2008-5 confirms that an IRA’s basis is not increased by the disallowed loss.1Internal Revenue Service. Rev. Rul. 2008-5 The loss is not deferred. It is not recoverable when you eventually take distributions. It is gone.
A concrete example. You sell 100 shares of a stock for a $2,000 loss in your brokerage account on June 1. On June 10, your Roth IRA buys 100 shares of the same stock. The $2,000 loss is permanently disallowed, and nothing about the IRA position preserves it.
Spouses, 401(k)s, and Automatic Contributions
The IRS treats spouses as a single economic unit for this rule. If you sell a stock at a loss and your spouse buys substantially identical shares in their IRA within the window, expect the same permanent loss outcome.
Revenue Ruling 2008-5 addressed IRAs and Roth IRAs specifically and stated it “does not address any issues other than those specifically addressed herein.” It did not rule on 401(k), 403(b), or other employer-sponsored plans. The underlying logic reaches further, though, and many tax professionals treat purchases in those plans the same way. The IRS has indicated it views tax-deferred accounts similarly for this purpose.
That creates a quiet trap for anyone with automatic retirement contributions. 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 automatic purchase can pull the trigger. The contribution happens whether you are thinking about it or not.
Your Broker Will Not Catch This
Federal regulations only require brokers to identify and report wash sales when both transactions occur in the same account. 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 are also not required to decide whether two different securities are substantially identical; their automated systems match CUSIP numbers, so a sale of one ETF and a purchase of a substantially identical ETF with a different CUSIP will not show up as a wash sale anywhere.
The burden falls on you. During tax season, review trading activity across every account you and your spouse control, including IRAs and employer retirement plans, and look for any purchase of the same or a substantially identical security within 30 days on either side of a harvested loss.
How to Report a Disallowed Loss
Even though the loss is permanently gone, you still have to report it. The taxable-account sale goes on Form 8949 with Code “W” in column (f) to flag the wash sale, and the nondeductible loss amount is entered as a positive number in column (g), which 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 transaction. Copying the 1099-B straight onto your return, without adding the wash sale code and adjustment, claims a loss the IRS says you can’t take. When the IRS matches the 1099-B against your Schedule D, the discrepancy can produce a notice or an audit.
Claiming a disallowed loss creates an underpayment, and the IRS can add a 20% accuracy-related penalty on the underpayment 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 a 20% penalty adds $240 on top. Larger losses and higher brackets scale the damage up.
How to Harvest Losses Without Setting Off the Rule
The simplest fix is to never buy the same security in an IRA that you just sold at a loss in a taxable account. In practice that takes a little planning, especially when automatic contributions are involved.
- Hold different funds in your taxable and retirement accounts. If your taxable account holds an S&P 500 index fund, consider a total stock market fund or an actively managed large-cap fund in the IRA. Different composition means they are almost certainly not substantially identical.
- Pause or redirect automatic contributions. If your IRA or 401(k) is set to buy the fund you’re selling at a loss, stop or redirect those purchases for the 61-day window and resume afterward.
- Replace with a similar but not substantially identical fund in the taxable account. Sell the losing position and immediately buy something like a Russell 1000 fund in place of an S&P 500 fund to keep market exposure. After 31 days you can switch back if you prefer the original.
- Wait 31 days. The most conservative approach. Sell the position and hold off on repurchasing anywhere for at least 31 days, accepting the risk that the market moves against you in 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. A December 28 sale that settles December 30 works. But an early-January IRA purchase of the same fund still sits inside the 30-day post-sale window and creates the wash sale problem. The 61-day window does not respect the calendar year.
One Boundary: Cryptocurrency
As of 2026, Section 1091 applies to stocks and securities. Cryptocurrency is classified as property for federal tax purposes, not as a stock or security, so the wash sale rule does not currently apply to crypto trades. Selling Bitcoin at a loss and repurchasing it immediately does not trigger a wash sale under current law. Legislative proposals have sought to extend the rule to digital assets but none have been enacted. If that changes, the same IRA-related problem described above would apply to crypto held in self-directed retirement accounts.