Calculator and financial charts illustrating the wash sale rule IRA trap for tax-loss harvesting

Wash Sale Rule IRA Trap: 5 Myths That Can Erase Your Tax Loss for Good

Sell a fund at a $2,000 loss in December, let your IRA buy the same fund two weeks later, and that loss doesn’t just get postponed. It disappears for good. That is the wash sale rule IRA trap, and it catches careful investors precisely because their brokerage statement never warns them about it.

This post walks through five popular beliefs about how the wash sale rule works across IRAs, spouses, dividend reinvestment and “similar” index funds, explains what the IRS and the brokers actually say, and ends with a practical checklist you can run before you harvest a single loss this year.

This article is part of our Tax Strategy Guide — a comprehensive overview of the topic with related deep dives.

First, the rule itself, in plain English. The SEC’s investor glossary at Investor.gov defines a wash sale as selling securities at a loss and, within 30 days before or after the sale, buying substantially identical securities, acquiring them in a fully taxable trade, or acquiring a contract or option to buy them. Count the sale day plus 30 days on each side and you get a 61-day window. Inside that window, the loss is disallowed.

Normally “disallowed” is a softer word than it sounds. In a regular taxable account the disallowed loss is added to the cost basis of the replacement shares, and the holding period of the old shares carries over, as Kiplinger’s summary of the rule explains. You get the deduction later, when you sell the new shares. The trouble starts when the replacement shares land somewhere that basis can’t follow them.

I ran into this question the first year I got serious about tax-loss harvesting on a small portfolio. I’m a software engineer, so my instinct was to write a quick script that pulled lots from my taxable account and flagged anything underwater. It worked fine, until I realized the script only looked at one account. My IRA was quietly buying the exact same total-market fund every payday through an automatic contribution. The script was “correct” and the strategy was broken. That’s the gap this post is about.

Myth 1: “The Wash Sale Rule Only Applies Inside One Account”

This is the most common belief and the most expensive one. It feels true because your broker’s 1099-B seems to handle wash sales for you. But the broker’s reporting obligation is much narrower than the tax rule.

Under Internal Revenue Code section 6045, as amended by the Emergency Economic Stabilization Act of 2008, brokers report wash sale adjustments only when the transactions occur in the same account and involve identical securities, which for reporting purposes means the same CUSIP number. KPMG’s primer on wash sale reporting spells this out, and Schwab says the same thing from the broker side: regulations require it to track wash sales “on the same CUSIP number within the same account,” and anything across your other accounts is your responsibility. E*TRADE’s tax library carries the same warning that cross-account wash sales “may not be shown” on any individual broker’s 1099-B.

The tax rule itself, section 1091, isn’t limited to one account. It looks at purchases you make, anywhere. So a sale at Broker A and a repurchase at Broker B is still a wash sale. Your 1099-B just won’t say so, and you’re expected to report it yourself on Form 8949.

What to do instead: Before you harvest, list every account that can buy securities in your name: taxable brokerage at every firm, traditional and Roth IRAs, and any account with automatic investments. If you only look at the account where you’re selling, you’re checking the wrong thing.

Myth 2: “Under the Wash Sale Rule, IRA Buys Just Delay the Loss”

This is where the wash sale rule IRA interaction gets harsh. In 2008 the IRS issued Revenue Ruling 2008-5, addressing an investor who sold stock at a loss in a taxable account and had their IRA (or Roth IRA) buy substantially identical stock within 30 days. The IRS held that this is a wash sale, so the loss is disallowed. And because the replacement shares sit inside an IRA, the investor can’t add the disallowed loss to their basis in the IRA. As Michael Kitces explained when the ruling came out, the result is that the loss is permanently forfeited.

Here is how the two outcomes compare for the same $2,000 loss:

Where the replacement shares are bought Loss this year? What happens to the $2,000 Shows on your 1099-B?
Same taxable account, same fund No Added to new shares’ basis; recovered when you sell them Yes (same account, same CUSIP)
Different taxable account or broker No Added to new shares’ basis; recovered later No, you must adjust it yourself
Your traditional or Roth IRA No Permanently lost (Rev. Rul. 2008-5) No
Your spouse’s account No Disallowed under the spouse rule No
A different, not substantially identical fund Yes Deductible now, subject to the annual limit Yes, as a normal loss

Why does a permanently lost loss matter so much? Because harvested losses are worth real dollars. Per IRS Topic 409, net capital losses can offset capital gains and then up to $3,000 of ordinary income per year ($1,500 if married filing separately), with any excess carried forward to later years. For someone in the 22% bracket, a $3,000 ordinary-income offset is worth $660 in federal tax. Losing that because a $250 IRA contribution happened to buy the same fund is a bad trade.

One honest caveat: Rev. Rul. 2008-5 specifically addresses IRAs and Roth IRAs. The IRS hasn’t issued an equivalent ruling naming 401(k) plans, and practitioners disagree about how far it extends. The cautious approach is to avoid buying the same fund in any retirement account during the window, which is easy to do if you plan for it.

Myth 3: “Reinvested Dividends Are Too Small to Count”

The wash sale rule doesn’t have a minimum purchase size. A dividend that automatically reinvests into the same fund is a purchase like any other. Schwab’s guidance on wash sales notes that if you sell part of a position at a loss and then have reinvested dividends, “you could lose some of your tax break.”

The good news is that the disallowance is proportional. If you sell 100 shares at a loss and only 4 replacement shares are bought within the window, only the loss on those 4 shares is disallowed. In a taxable account, that small piece gets added to the basis of the 4 new shares. In an IRA, that small piece is gone. Either way it’s rarely catastrophic, but it creates messy, mismatched tax lots that are a pain to reconcile at filing time.

The bigger risk with small automatic purchases isn’t any single dividend. It’s the combination of a quarterly dividend in the taxable account, a biweekly IRA contribution, and an HSA or 401(k) payroll purchase all quietly buying the same fund. If you hold the same broad index fund everywhere, which plenty of people do after building a simple three-fund portfolio, every one of those automatic buys counts.

What to do instead: Switch the fund you plan to sell to “dividends paid to cash” at least 31 days before you harvest, and pause or redirect automatic purchases of that fund in every account for the 30 days after.

Myth 4: “If It Has a Different Ticker, It Isn’t Substantially Identical”

Here the truth is murkier than either side admits. Congress and the IRS have never defined “substantially identical” for funds. Kiplinger notes that stocks of different companies generally aren’t substantially identical, but ETFs that track the same index may be treated as substantially identical. Schwab gives the example of swapping an S&P 500 ETF for a Russell 1000 ETF, two funds with “similar but not identical assets,” as a common approach.

So the useful question isn’t “is the ticker different?” It’s “would a reasonable person say I just bought back the same thing?” Here’s a rough spectrum based on how most tax practitioners talk about it:

Swap Risk of being substantially identical
Same fund, different share class (e.g., ETF and mutual fund share classes of one fund) High: avoid
Two providers’ funds tracking the exact same index Uncertain: the IRS hasn’t ruled
Funds tracking different indexes in the same asset class (S&P 500 vs. total U.S. market or Russell 1000) Lower: a widely used approach
Individual stock vs. a broad fund that holds it Low

I treat the “uncertain” row as a no. The extra return from a slightly closer replacement fund is tiny, and the downside is a challenged loss. I keep a short pairing list in a spreadsheet: for each fund I hold in taxable, a pre-chosen partner that tracks a different index. When the market drops, I’m not trying to make judgment calls under pressure.

Myth 5: “My Spouse’s Account Is Separate, So Their Buys Don’t Matter”

The rule reaches your household. Kiplinger states that a wash sale exists if your spouse (or a corporation you control) buys substantially identical stock within the 61-day period, and Schwab’s guidance says the rule “extends even to your spouse’s accounts.” That includes your spouse’s IRA, which brings the permanent-loss problem from Myth 2 back into play.

For couples this is mostly a coordination problem, not a math problem. If one of you harvests a loss on a total-market fund on December 10 and the other’s Roth IRA buys that fund on December 20 as part of a planned contribution, you’ve created a wash sale neither of you would have spotted on your own statements. A shared calendar note (“no buys of fund X until January 10”) prevents it.

The Wash Sale Rule IRA Checklist: What to Do Before You Harvest

Every myth above shares one fix: look across all accounts and the full 61-day window, not just at the sale. Here’s the routine I run every time I harvest a loss:

  1. Look back 30 days. Check every account you and your spouse own (taxable, IRA, Roth IRA, and workplace plans) for purchases of the fund you plan to sell, including reinvested dividends. A purchase in the 30 days before the sale counts too.
  2. Turn off reinvestment and automatic buys. Set the fund to pay dividends in cash, and pause recurring purchases of it in every account, including IRA auto-invest.
  3. Pick a replacement that tracks a different index. Use a pre-chosen partner fund so you stay invested without buying back the same thing.
  4. Sell the whole lot you’re harvesting. Partial sales next to automatic buys are where the messy partial wash sales come from.
  5. Mark the date 31 days out. Don’t buy the original fund back anywhere until then. If you want to switch back, do it after the window closes.
  6. Reconcile at tax time. Because brokers only track same-account, same-CUSIP wash sales, compare your own records to each 1099-B and make any cross-account adjustments on Form 8949.

If you’re also planning other year-end moves, sequence matters. Harvesting losses changes how much room you have for tax gain harvesting at the 0% rate, and a large conversion can change which bracket those losses offset. Our case study on pairing tax loss harvesting with a Roth conversion walks through how the two interact. Just don’t let a conversion or contribution into your IRA buy the same fund you sold at a loss in taxable. That’s the wash sale rule IRA scenario in its purest form.

Frequently Asked Questions

Does buying the same fund in my Roth IRA trigger a wash sale?

Yes, if it happens within 30 days before or after you sell the same or a substantially identical fund at a loss in a taxable account. Revenue Ruling 2008-5 treats IRA and Roth IRA purchases as triggering the wash sale rule, and because you can’t add the disallowed loss to your IRA basis, the loss is permanently lost rather than deferred.

Will my broker catch a wash sale between my brokerage account and my IRA?

Generally no. Broker reporting rules under section 6045 only require brokers to track wash sales for identical securities (same CUSIP) within the same account. Wash sales across accounts, brokers, IRAs or a spouse’s accounts are your responsibility to identify and report on Form 8949.

How long do I have to wait before buying the fund back in my IRA?

The window runs 30 days before and 30 days after the sale, 61 days in total. Waiting until the 31st day after the sale to buy the same fund in any of your or your spouse’s accounts keeps you outside the window. Remember that purchases in the 30 days before the sale count too.

This article is for educational purposes and isn’t tax advice. Wash sale questions involving complex positions, options or business accounts are worth running past a CPA or enrolled agent.

Photo by Jakub Żerdzicki on
Unsplash

Chris Steve

Written by Chris Steve

Chris Steve is a software engineer with a deep interest in personal finance, behavioral economics, and AI. He started Money & Planet to share clear, research-backed money guides — the kind that explain the math instead of pushing products. His writing focuses on long-term wealth building, the psychology behind spending and investing decisions, and the practical tools regular people can use to make smarter financial choices.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *