Wash Sales and IRAs: Rules and Complications
Wash Sales and IRAs: Rules and Complications
Individual Retirement Accounts—both traditional and Roth—are subject to wash sale rules, but the consequences are uniquely complicated. Unlike a taxable brokerage account, where a wash sale simply defers a loss and adds it to your cost basis, an IRA loss never generates a deduction in the first place. This creates a peculiar situation: wash sales inside IRAs technically "apply" but do not cause the same economic harm they do in a taxable account. Moreover, when you have both traditional IRAs and Roth IRAs (or multiple accounts of the same type), the IRS applies aggregation rules that can defeat your harvesting strategy. This article clarifies how wash sales interact with IRAs, what the aggregation rules are, and strategies to navigate these complications.
Quick definition: Wash sales apply to trading within IRAs and between IRAs and taxable accounts; the main complication is the IRA aggregation rule, which groups all traditional IRAs and all Roth IRAs separately for determining cost basis and taxable distributions.
Key Takeaways
- Wash sales apply to trades within IRAs (traditional, Roth, SEP, SIMPLE) and between IRAs and taxable accounts; the timing rule remains the 61-day window.
- In a taxable account, a wash sale defers a deduction; in an IRA, there is no deduction to defer (losses in IRAs are not deductible anyway), so the wash sale rule is less immediately harmful.
- The IRA aggregation rule groups all traditional IRAs together and all Roth IRAs together for cost basis purposes—a rule that can trap investors trying to harvest losses strategically.
- Selling at a loss in an IRA and repurchasing in a taxable account (or vice versa) triggers a wash sale disallowance that affects both accounts.
- The pro-rata rule on distributions from aggregated IRAs can make it impossible to withdraw only after-tax contributions without triggering taxation.
The Basic Wash Sale Rule in IRAs
IRAs are investment accounts, and the wash sale rule applies to securities trades within them just as it does in taxable accounts. Here are the rules:
Within a single IRA: If you sell a security at a loss in your traditional IRA and repurchase the same or substantially identical security within 61 days (anywhere within that same IRA), the wash sale rule applies. The loss is disallowed.
Between IRAs of the same type: If you sell a security at a loss in your traditional IRA at Bank A and repurchase it in your traditional IRA at Bank B (a different custodian), the wash sale rule applies. All traditional IRAs are treated as one account for wash sale purposes.
Between IRAs of different types: If you sell at a loss in your traditional IRA and repurchase in your Roth IRA, the wash sale rule applies. The 61-day window covers both types.
Between an IRA and a taxable account: If you sell at a loss in a taxable brokerage account and repurchase in an IRA (or vice versa), the wash sale rule applies across account types.
Why Wash Sales in IRAs Matter Less (Immediately)
Here is where IRA wash sales diverge from taxable account wash sales: losses in IRAs are never deductible anyway. When you invest in an IRA and incur a loss, you do not claim that loss as a deduction on your tax return. The loss stays inside the IRA. This means that a wash sale in an IRA does not cost you a deduction the way it does in a taxable account.
Consider two scenarios:
Scenario A (Taxable Account): You buy Stock X for $10,000. It falls to $7,000. You sell at a loss ($3,000 loss). Within 61 days, you buy Stock X again. Result: Your $3,000 loss is disallowed, and you lose the deduction immediately (a $750 benefit at a 25% tax rate).
Scenario B (IRA): You buy Stock X for $10,000 in your IRA. It falls to $7,000. You sell at a loss ($3,000 loss). Within 61 days, you buy Stock X again. Result: Your $3,000 loss is disallowed, but you never would have claimed a deduction for the loss anyway (because losses in IRAs are not deductible). So the wash sale rule has no immediate impact on your taxes.
This might seem to suggest that wash sales do not matter in IRAs. That is not quite true, as we will see when we examine the cost basis implications.
Cost Basis and the Deferred Loss
Even though you do not lose a deduction, the wash sale rule still affects your cost basis in IRAs. When a wash sale occurs, the disallowed loss is added to the cost basis of the replacement security. Later, when you eventually withdraw the money from the IRA, the higher cost basis affects what happens to the account value.
Here is the subtle complication: In a traditional IRA or SEP-IRA, the cost basis of individual securities does not determine your tax liability when you withdraw the money. Instead, you pay income tax on the entire amount withdrawn, regardless of how much each security cost you to buy. The cost basis of individual securities inside a traditional IRA is largely irrelevant for tax purposes.
In a traditional IRA, the wash sale disallowance of the loss (added to cost basis) does not directly reduce your taxable withdrawal, so the wash sale has minimal practical tax impact within the IRA.
In a Roth IRA, the situation is different. Roth withdrawals are tax-free, so the cost basis of securities within the Roth is also technically irrelevant for tax purposes. However, the wash sale disallowance could theoretically prevent you from harvesting the loss if you ever convert the Roth to a taxable account (which is not a standard transaction).
In practice, wash sales within IRAs have far less immediate tax impact than wash sales in taxable accounts.
The Real Problem: Cross-Account Wash Sales with IRAs
The real trap with IRA wash sales is not the wash sales within the IRA itself, but cross-account wash sales: selling at a loss in a taxable account and repurchasing in an IRA (or vice versa).
Example: You sell 100 shares of Company Z at a $2,000 loss in your taxable brokerage account on August 1. You wanted to lock in the loss deduction. On August 10, as part of your IRA rebalancing strategy, you purchase 100 shares of Company Z in your traditional IRA. The wash sale rule applies because the repurchase in the IRA falls within the 61-day window from the sale in the taxable account.
Result: Your $2,000 loss in the taxable account is disallowed. You lose the $500 deduction (at a 25% rate). The disallowed loss is added to the cost basis of the shares in your IRA, but because cost basis is irrelevant in a traditional IRA, this provides no future tax benefit.
You have effectively lost the ability to deduct the loss while also locking in a higher cost basis in the IRA. This is a genuine economic harm.
The IRA Aggregation Rule
The IRA aggregation rule is one of the most complex and misunderstood aspects of IRA taxation. It states: For purposes of determining taxable distributions from traditional IRAs (including SEP-IRAs and SIMPLE IRAs), you must aggregate all traditional IRAs you own and treat them as a single IRA. Similarly, all Roth IRAs are aggregated separately.
This rule has major implications for harvesting losses or managing Roth conversions, but it does not directly affect wash sales. However, understanding aggregation is important for IRA strategy more broadly, so it is worth explaining.
Here is an example: You have two traditional IRAs:
- IRA 1: $50,000 (basis of contributions: $10,000; gains: $40,000)
- IRA 2: $30,000 (basis of contributions: $15,000; gains: $15,000)
You want to withdraw $30,000 from IRA 1 (hoping to withdraw only the basis and avoid taxing gains). The aggregation rule requires you to compute a single pro-rata tax rate across both IRAs:
- Total value: $80,000
- Total basis: $25,000
- Total gains: $55,000
- Pro-rata basis percentage: $25,000 / $80,000 = 31.25%
When you withdraw $30,000, you are deemed to be withdrawing 31.25% basis and 68.75% taxable gains, or $9,375 of basis and $20,625 of gains. The $20,625 is taxable income.
How this relates to wash sales: The aggregation rule means you cannot use separate IRAs to segregate losses and gains for tax harvesting purposes. You cannot take a loss in IRA 1 and leave gains in IRA 2, treating them separately. The IRS treats all traditional IRAs as one account for distribution purposes.
Strategies to Avoid Unintended IRA Wash Sales
1. Coordinate across accounts
Before selling a security at a loss in a taxable account, verify that you are not about to purchase the same security in an IRA. Maintain a calendar or spreadsheet showing pending trades across all your accounts.
2. Time taxable and IRA contributions separately
If you plan to harvest a loss in a taxable account and also contribute to an IRA, stagger the transactions. Sell the losers in the taxable account on Day 1, then wait 31 days before making the IRA contribution (if the contribution would involve purchasing the same security).
3. Use different securities in IRAs vs. taxable accounts
A simple strategy is to maintain different holdings in your taxable account and your IRAs. For instance, keep broad index funds in your taxable account and individual stocks or sector funds in your IRA. This eliminates cross-account wash sale risk.
4. Consider whether IRA losses matter
Because losses in traditional IRAs do not affect your immediate tax liability, harvesting losses in an IRA is less urgent. If you are managing a traditional IRA, do not stress about trading at losses within the account. The losses stay in the account and eventually reduce your distributions anyway (via lower account values).
5. Roth conversions and pro-rata rule management
If you have both traditional and Roth IRAs and are considering conversions, the aggregation rule creates complications. You cannot convert just the gains from one traditional IRA and leave the losses in another; the pro-rata rule forces you to convert a mix of basis and gains from all traditional IRAs. Understanding this is critical if you are planning a Roth conversion in a year when you harvest a loss.
Special Situations: SEP-IRAs, SIMPLE IRAs, and Solo 401ks
SEP-IRAs and SIMPLE IRAs follow the same wash sale rules as traditional IRAs. The 61-day window applies, and cross-account wash sales are possible.
Solo 401ks are a bit different because they are 401k plans, not traditional IRAs. However, wash sale rules still apply within the plan. If your solo 401k allows trading and you sell a security at a loss and repurchase it within 61 days, the wash sale rule applies.
Real-World Example: The Roth IRA Trap
You have a Roth IRA with $100,000. Over the years, the market has shifted, and some of your holdings are underwater. You decide to harvest losses by selling losing positions within the Roth. You sell 100 shares of Stock Z at a $5,000 loss. A few weeks later, you change your mind and buy 100 shares of Stock Z again within the same Roth.
Result: The wash sale rule applies. Your loss is disallowed, and the $5,000 is added to the cost basis of the new shares. Because Roth withdrawals are tax-free, the cost basis is irrelevant, but you have lost the opportunity to harvest the loss (though, importantly, you were not going to get a tax deduction for the loss anyway, since Roth losses do not generate deductions).
However, if you had sold the Stock Z in a taxable account and then bought it in the Roth, a cross-account wash sale would have occurred, and you would have lost the deduction in the taxable account.
Important Note
The taxation of IRAs is complex, and the interaction between wash sales, aggregation rules, and distribution rules is not settled on all edge cases. As of the mid-2020s, the IRS continues to issue guidance on IRA issues. Before implementing a tax strategy that involves harvesting losses in an IRA or making cross-account trades with IRAs, consult a tax professional who specializes in retirement accounts. Pay particular attention if you have multiple types of IRAs (traditional, SEP, SIMPLE, Roth) or if you are considering a Roth conversion.
Summary
Wash sales apply to trading within IRAs and between IRAs and taxable accounts. Within a traditional IRA, the wash sale rule has minimal direct tax impact (because losses in IRAs are not deductible anyway), but cross-account wash sales—selling at a loss in a taxable account and repurchasing in an IRA—can cost you deductions. The IRA aggregation rule, which groups all traditional IRAs and all Roth IRAs separately for distribution purposes, further complicates planning if you have multiple accounts. Coordinate your trading across accounts, consider using different securities in taxable vs. IRA accounts, and consult a tax professional when executing strategies that involve IRAs and loss harvesting.
Next
→ Disallowed Loss Basis Adjustment