Does buying stock in a Roth IRA trigger a wash sale?
Yes, buying substantially identical stock in a Roth IRA within 30 days before or after selling it at a loss in a taxable account triggers a wash sale. The Internal Revenue Service (IRS) formally established this rule in Revenue Ruling 2008-5.
Under Section 1091 of the Internal Revenue Code, a wash sale occurs whenever an investor sells a security at a loss and acquires substantially identical securities within a 61-day window. This window includes the 30 days before the sale, the day of the sale itself, and the 30 days after the sale.
Some investors once believed they could bypass this rule by selling shares in a regular brokerage account to harvest a tax deduction, then immediately repurchasing those same shares in an Individual Retirement Account (IRA). The IRS closed this loophole by clarifying that the taxpayer controls both accounts. Because you direct the trades in your retirement account, the purchase is legally treated as an indirect acquisition by you.
Why is an IRA wash sale permanently lost?
In a standard taxable account, a wash sale merely delays your tax break, but inside an IRA, the tax break is destroyed permanently. This distinction makes an IRA wash sale one of the most punitive tax traps in portfolio management.
When a wash sale occurs between two taxable accounts, Section 1091(d) adds the disallowed loss to the cost basis of the newly purchased shares. When you eventually sell those replacement shares, that higher cost basis reduces your future capital gain or increases your future capital loss. The loss is deferred, not eliminated.
Revenue Ruling 2008-5 explicitly states that Section 1091(d) does not apply to an IRA or Roth IRA. You cannot increase your tax basis inside an IRA because individual stock basis does not exist for retirement account tax reporting. Qualified withdrawals from a Roth IRA are already completely tax-free, and traditional IRA withdrawals are taxed as ordinary income regardless of underlying trading gains or losses. Because the basis cannot be adjusted, the disallowed deduction disappears forever.
| Feature | Standard Wash Sale (Taxable to Taxable) | IRA Wash Sale (Taxable to IRA) |
|---|---|---|
| Current Tax Deduction | Disallowed on current year return | Disallowed on current year return |
| Basis Adjustment | Added to replacement shares | None allowed under Rev. Rul. 2008-5 |
| Tax Loss Status | Deferred until replacement shares sell | Permanently forfeited |
| Future Tax Benefit | Preserved via higher cost basis | Zero |
| Broker 1099-B Reporting | Usually automated if in same account | Not reported across accounts |
Worked math: regular wash sale vs IRA wash sale
To understand the financial penalty, consider an investor who bought 100 shares of Company ABC for $100 per share, representing a total investment of $10,000.
The stock drops to $60 per share. The investor decides to sell all 100 shares for $6,000 in their taxable brokerage account, realizing a $4,000 capital loss. Under normal circumstances, this loss would offset other capital gains or up to $3,000 of ordinary income on Form 1040.
Scenario A: Repurchasing in a taxable account
Five days after the sale, the investor repurchases 100 shares of ABC at $60 in another taxable account.
- The $4,000 loss is disallowed for the current tax year.
- The cost basis of the new shares is adjusted upward: $6,000 purchase price plus the $4,000 disallowed loss equals a new basis of $10,000 ($100 per share).
- One year later, the stock rises to $110 per share, and the investor sells for $11,000.
- The taxable gain is $1,000 ($11,000 proceeds minus $10,000 basis). The original $4,000 loss effectively shielded $4,000 of gains from taxes.
Scenario B: Repurchasing in a Roth IRA
Five days after the sale, the investor repurchases 100 shares of ABC at $60 inside their Roth IRA for $6,000.
- The $4,000 loss in the taxable account is disallowed under Section 1091(a).
- The cost basis inside the Roth IRA remains strictly $6,000. Under Revenue Ruling 2008-5, basis cannot be increased to $10,000.
- The investor gets no deduction on their current tax return and can never use that $4,000 loss in any future year. The tax benefit of the loss is permanently erased.
At a 15% long-term capital gains tax rate, that mistake costs the investor $600 in forfeited tax savings. At a 20% rate plus the 3.8% Net Investment Income Tax, the unrecoverable loss costs $952 in cash.
Does your broker track wash sales across different accounts?
No, brokerage firms do not automatically track wash sales between separate accounts or between different financial institutions. Federal regulations only require brokers to calculate and report wash sales on Form 1099-B when identical shares are sold and bought within the exact same account using the same Committee on Uniform Securities Identification Procedures (CUSIP) number.
If you sell stock at a loss in a taxable account at one broker and buy the same stock in a Roth IRA at another broker, your taxable Form 1099-B will show the full loss in Box 1d and leave Box 1g (wash sale loss disallowed) completely blank. Even if both accounts sit at the same brokerage firm, most brokerage software platforms do not combine taxable and retirement accounts for 1099-B wash sale tracking.
This lack of reporting does not make the transaction legal. Tax law places full responsibility on the individual taxpayer to identify cross-account wash sales. You must manually adjust the transaction on Form 8949 (Sales and Other Dispositions of Capital Assets) using code "W" in column (f) and listing the disallowed loss in column (g). Failing to report it exposes you to back taxes, interest charges, and accuracy-related penalties if audited by the IRS.
How automated dividend reinvestment creates accidental wash sales
One of the most common ways investors trigger an unintentional IRA wash sale is through automated dividend reinvestment plans, often called DRIP.
Suppose you own shares of an exchange-traded fund (ETF) in your taxable account and also in your Roth IRA. On November 15, you execute a strategy for tax-loss harvesting in your taxable account, selling your ETF shares at a $2,000 loss.
If that same ETF pays a quarterly dividend on November 25, and your Roth IRA is set to automatically reinvest dividends, your IRA purchases new fractional shares of the ETF just 10 days after your taxable sale. Because that purchase occurred within the 30-day window following the sale, it triggers a wash sale for a portion of the shares sold. The loss associated with the number of shares repurchased through the dividend reinvestment is permanently disallowed.
Investors who practice regular dollar-cost averaging in their retirement accounts face the same risk. A scheduled biweekly or monthly contribution that buys a targeted stock or fund inside your Roth IRA can quietly ruin a tax loss harvested in your brokerage account.
When does the wash sale rule not apply?
The wash sale rule applies specifically to losses, identical replacement assets, and specific time limits. You can avoid the penalty entirely under the following conditions:
1. Selling at a gain
There is no such thing as a wash sale on a profitable trade. If you sell a stock at a gain in your taxable account and repurchase it the same minute in your Roth IRA, you simply report and pay taxes on the capital gain. The wash sale rules only disallow losses.
2. Trading entirely within retirement accounts
If you sell a stock for a loss inside a Traditional IRA or Roth IRA and immediately buy it back in that same account, the wash sale rule does not apply. Retirement accounts are tax-deferred or tax-free environments where individual trades do not generate reportable capital gains or losses on your personal tax return. The question of whether you should prioritize a Roth or Traditional 401(k) hinges on tax rates, not wash sale disallowance inside the account.
3. Buying non-identical replacement assets
The wash sale restriction only triggers on "substantially identical" securities. If you sell an individual stock at a loss, you can immediately buy a diversified sector ETF in your Roth IRA without triggering a wash sale. Similarly, selling an S&P 500 index fund from one issuer and purchasing a total stock market fund or an index fund tracking a different benchmark does not meet the legal threshold for substantially identical property under established IRS guidance.
When evaluating replacement companies in the same sector, fundamental tools can help compare potential substitutes. For example, Cluenex covers about 1,000 large US-listed stocks and scores business quality from 0 to 10 against industry peers across profitability, moat, growth, and financial health. Investors running a stock screener checklist can identify industry peers that maintain portfolio exposure without violating IRS identical-asset tests.
4. Waiting past the 61-day window
If you sell at a loss in a taxable account, you can repurchase the identical asset in your Roth IRA on day 31 after the sale date. Once the 30-day post-sale period passes, your taxable loss deduction remains fully intact.
What this means for you
If you manage your own investments across taxable and retirement accounts, small procedural mistakes can destroy valuable tax deductions. Use these practical habits before harvesting losses:
- Check all accounts before selling: Audit your portfolio across every taxable account, Traditional IRA, Roth IRA, and Health Savings Account (HSA) before realizing a tax loss. Remember that the rule also applies to trades executed by your spouse if you file jointly.
- Pause automatic reinvestments: Turn off automated dividend reinvestments and automated recurring purchases for the harvested asset in all retirement accounts for at least 31 days before and after your planned sale date.
- Use clear asset separation: Keep different asset classes or strategies segregated by account type. For example, hold broad-market index funds in your taxable account and individual stock picks in your Roth IRA, or use different benchmark index funds across accounts.
- Keep manual records for Form 8949: Never rely on your broker's Form 1099-B as a complete record of wash sales. Maintain your own trade journal during November and December tax-loss harvesting to document dates and verify that cross-account purchases did not accidentally erase your deductions.