This article reflects federal rules and California state rules as of June 2026 and covers tax year 2025 (the 2026 filing season). Tax law changes — confirm current figures before you file. This guide is educational and is not a substitute for advice from a licensed CPA or tax attorney for your specific situation.
Quick Answer
No. Buying the same security in your IRA does not dodge a wash sale — it makes it worse. Under IRS Revenue Ruling 2008-5, the loss is disallowed and your IRA basis is not increased. The loss is gone permanently, not just deferred.
This is one of the most expensive traps in tax-loss harvesting, and most people walk into it by accident. You sell a stock or fund at a loss in your regular brokerage account, then buy it back in your IRA or Roth IRA — maybe through an automatic contribution or a dividend reinvestment — and you assume the IRA “shields” the trade. It does the opposite. A normal wash sale just delays your loss; an IRA wash sale erases it forever, with no later payback.
The stakes are real and the timing window is tight. The rule reaches across all of your accounts and even your spouse’s, and the danger zone runs for 61 days around every loss sale. According to Fidelity’s wash-sale guidance, the rule covers a window that stretches 30 days before and 30 days after the sale. Miss it by one day and you can owe tax on a year you actually lost money.
Here is what you will learn:
- 🚫 Why an IRA purchase triggers a wash sale instead of avoiding one
- 💸 How Rev. Rul. 2008-5 makes the loss permanent, with worked dollar examples
- 🗓️ The exact 61-day window and which accounts it covers
- 🧾 How to report it on Form 8949 using code “W”
- ✅ The legal ways to actually harvest a loss without tripping the rule
What the Wash Sale Rule Actually Says
The wash sale rule lives in Internal Revenue Code Section 1091. In plain words, it stops you from claiming a tax loss on a security if you buy that same security — or one that is “substantially identical” — within a short window around the sale. The IRS does not want you to deduct a “loss” when you never really left the investment.
The window is the heart of the rule. It runs 30 days before the sale and 30 days after the sale. Add the day of the sale and you get a 61-day danger zone, as the TaxAct wash-sale guide explains. People remember “30 days” and forget the rule also looks backward, which is why surprise wash sales happen.
IRS Publication 550 lists four ways you can trigger it within that window. You trigger a wash sale if you buy substantially identical stock, acquire it in a fully taxable trade, acquire a contract or option to buy it, or acquire it inside your traditional IRA or Roth IRA. That fourth item is the trap this article is about.
The consequence of a normal wash sale is a deferral, not a loss. Per Publication 550, the disallowed loss gets added to the cost basis of the replacement shares. You eventually claim the loss when you sell the replacement — as long as you do not trigger another wash sale. So in a taxable account, the wash sale rule usually just slows you down.
A common misconception is that a wash sale “destroys” your money. It normally does not in a taxable account — the loss is parked in your new basis and waits for you. The real danger appears only in special cases, and the IRA case is the worst of them.
What you should do about it: before you sell anything at a loss, map your 61-day window and check every account — taxable, IRA, Roth, and your spouse’s — for any purchase of the same security.
Why the IRA Is the One Place You Can’t Park the Loss
In a normal wash sale, the disallowed loss rides along on the basis of the replacement shares. That is the mechanism that lets you recover it later. The IRA breaks that mechanism, and that is what makes it dangerous.
Revenue Ruling 2008-5, effective for sales after December 2007, settled the question directly. The IRS ruled that when you sell stock at a loss in a taxable account and buy substantially identical stock in your IRA or Roth IRA within the window, the loss is disallowed under Section 1091 — and your basis in the IRA is not increased under Section 1091(d).
Read those two pieces together and you see the trap. The loss is disallowed, so you cannot deduct it this year. But because your IRA basis does not go up, there is no replacement basis holding your loss for later. The Financial Planning Association’s analysis describes how the ruling expands the wash sale rule to reach IRA purchases. The loss is permanently disallowed — it simply vanishes.
There is a one-way logic to remember. The loss must occur in the taxable account, and the replacement purchase happens in the IRA. If you lose money inside an IRA, there is no wash sale to report, because IRA gains and losses are not taxable events in the first place. The trap only springs when a taxable loss meets an IRA buy.
The consequence in dollars can be brutal. You can end up reporting a taxable gain in a year you actually lost money, because permanently disallowed losses cannot offset your other gains.
What you should do about it: never let an IRA contribution, automatic investment, or dividend reinvestment land on a security you just sold at a loss — or are about to sell at a loss — anywhere in your household.
Which Situation Applies to You?
The wash sale rule hits different investors in very different ways. Find yourself below, then read the section that fits.
- You are a year-end tax-loss harvester. Your risk is selling a fund in December for the deduction, then having a January IRA contribution or a December dividend reinvestment buy it back. Focus on the timing and the “do this instead” section.
- You are an active trader with a taxable account and an IRA. Your risk is high-volume. You may close a losing trade in your taxable account and re-enter the same ticker in your IRA the same week without thinking. Focus on the permanent-loss math and the reporting section.
- You are a buy-and-hold investor with automatic features on. Your risk is silent. Dividend reinvestment (DRIP) and automatic IRA contributions buy shares on a schedule you may have forgotten. Focus on the mistakes list.
- You are married and file jointly or separately. Your risk doubles. A purchase in your spouse’s accounts can trigger your wash sale, as noted in Wikipedia’s summary of IRC 1091. Focus on the “accounts covered” details below.
- You live in a state with income tax (like California). Your loss may be disallowed at the state level too. Skip to the federal-vs-state section.
Worked Example: The Permanent Loss in Dollars
Numbers make this real. Here is the full math, step by step, so you can copy it for your own situation. All figures are for tax year 2025.
Imagine you bought 100 shares of a tech fund for $10,000 in your taxable account. The price drops, and on December 10, 2025, you sell all 100 shares for $7,000. You have a $3,000 realized loss and you plan to deduct it.
On December 20, 2025 — ten days later, inside the 61-day window — your Roth IRA makes its scheduled monthly purchase and buys the same fund. You did not push a button; the automatic investment did. You have now triggered the wash sale described in Publication 550, item four.
Here is the damage:
- Normal wash sale (taxable replacement): $3,000 loss disallowed this year, but $3,000 added to the new shares’ basis. You recover it later. Net long-term cost: zero, just a delay.
- IRA wash sale (Rev. Rul. 2008-5): $3,000 loss disallowed this year, and $0 added to your Roth IRA basis. You recover nothing, ever. Net cost: the entire $3,000 deduction.
Now stack on the consequence the Motley Fool warned about back in 2008. Say you had $2,500 in other net realized losses for 2025, but $3,500 of disallowed IRA wash-sale losses. Instead of a deductible loss, you now show a $1,000 taxable gain for a year in which you genuinely lost money. At a 24% federal bracket, that is roughly $240 of tax you owe purely because of the trap.
Three Common Scenarios and Their Outcomes
These three patterns cause the most accidental IRA wash sales. Each is shown as the move you made and what it costs you.
Scenario 1 — The December harvest meets the January contribution
| Your Move | What It Costs You |
|---|---|
| Sell Fund X at a $4,000 loss in your brokerage on Dec 28, 2025, then make your prior-year IRA contribution into Fund X on Jan 15, 2026 | The Jan 15 buy is inside the 30-days-after window, so the $4,000 loss is permanently disallowed under Rev. Rul. 2008-5 — no basis bump, no recovery |
Scenario 2 — The dividend reinvestment you forgot about
| Your Move | What It Costs You |
|---|---|
| Sell an ETF at a $1,200 loss in your taxable account, while your Roth IRA holds the same ETF with DRIP turned on | The reinvested dividend buys shares inside the window, triggering a partial IRA wash sale; that slice of the $1,200 loss is gone for good |
Scenario 3 — The active trader’s same-week re-entry
| Your Move | What It Costs You |
|---|---|
| Close a losing $6,000 stock position in your taxable account Monday, then buy the same ticker in your IRA on Thursday | Same-security purchase in the IRA within 30 days disallows the full $6,000 permanently, per Publication 550 item four |
Three Named Examples
Maria, the year-end harvester. Maria sells her index fund on December 12, 2025, locking in a $5,000 loss to offset a stock gain. She forgets her Roth IRA auto-invests on the 15th into the same fund. The $5,000 loss is permanently disallowed, and her planned offset disappears. She owes tax on the full gain she was trying to shelter.
James, the day trader. James runs a taxable trading account and a traditional IRA. He closes a chip-stock trade at a $9,000 loss on a Tuesday, then re-enters the same ticker in his IRA on Friday for a “fresh start.” Because of Rev. Rul. 2008-5, the $9,000 is gone — not deferred — and it cannot offset his other trading gains.
The Nguyens, a married couple. Linh sells a fund at a $2,000 loss in her individual brokerage account. Three days later her husband’s Roth IRA buys the same fund. Because the rule reaches a spouse’s purchases, as Wikipedia’s IRC 1091 summary notes, Linh’s $2,000 loss is disallowed with no basis recovery anywhere.
How to Report an IRA Wash Sale on Form 8949
You report capital sales on Form 8949, which feeds into Schedule D. A wash sale needs a special code and a special adjustment so the IRS sees that the loss is disallowed.
You mark the transaction with code “W” in column (f). Then you enter the nondeductible loss as a positive number in column (g), as the IRS VITA reference for Form 8949 codes instructs. That positive adjustment cancels out the loss so it is not deducted.
Your broker may pre-flag a wash sale on Form 1099-B in Box 1g, “wash sale loss disallowed.” But here is the critical gap: brokers follow different rules than taxpayers do. A broker only tracks wash sales within that one account. It will not see the cross-account IRA trigger, because the IRA sits at a different account — sometimes a different firm — and IRAs are not reported on 1099-B at all.
The consequence is that the cross-account IRA wash sale is your job to catch and report. If your 1099-B is missing the disallowed amount, you must correct it on Form 8949 and enter the right nondeductible figure in column (g), as the TaxAct adjustment-code guidance explains.
For the deeper mechanics of these forms, see our companion guides on how to fill out Form 8949 and how Schedule D works.
Deadlines, Costs, and Timing
The reporting deadline is your normal return due date — April 15, 2026, for tax year 2025, or October 15, 2026, with an extension. Missing the adjustment means an inaccurate return and possible penalties if the IRS recomputes your gains. A DIY fix on Form 8949 costs nothing but your time; a CPA cleaning up tangled cross-account wash sales for an active trader often runs $300 to $1,000 depending on volume.
Federal vs. State: Does Your State Disallow It Too?
The wash sale rule is federal, but most income-tax states “conform” to it, meaning the disallowed federal loss is also disallowed on your state return. You must check your own state — never assume.
California is the clearest example of full conformity. The Reed Corporation’s tax-loss harvesting guide confirms California conforms to the federal wash sale rule under IRC Section 1091, so a loss disallowed federally is also disallowed for California. California updated its general IRC conformity date through Senate Bill 711, signed in October 2025, but its wash-sale treatment continues to mirror the federal rule. You can verify the broad framework on the FTB’s conformity page.
No-income-tax states are the simplest case. If you live in Florida, Texas, Nevada, Washington, South Dakota, Wyoming, Alaska, or Tennessee, there is no state income tax on this gain at all, so the state wash-sale question never arises. That answer is complete — there is nothing to disallow at the state level.
Here is the federal-vs-state picture side by side.
| Jurisdiction | How the IRA Wash Sale Is Treated |
|---|---|
| Federal (IRC §1091) | Loss permanently disallowed; no IRA basis increase, per Rev. Rul. 2008-5 |
| California (full conformity) | Same as federal — loss disallowed for state too, per the Reed Corp guide |
| No-income-tax states (FL, TX, NV, etc.) | No state income tax, so no state-level disallowance to worry about |
What you should do about it: confirm your state’s conformity on your state tax agency’s website before you rely on a harvested loss, because a state add-back can change your refund.
The Legal Ways to Harvest a Loss Without the Trap
You can harvest losses safely. The goal is to claim the loss without buying something “substantially identical” inside the window — in any account, including your IRA.
The cleanest method is to wait. If you stay out of the security for the full 31 days after your sale — in every account — the wash sale rule does not apply, and your loss is fully deductible. Turn off DRIP and pause IRA auto-investments for that ticker during the window.
A second method is to swap into a similar-but-not-identical investment. Investopedia’s legal-wash-sale guide describes buying a fund that tracks a different index from a different provider so you keep market exposure without holding the identical security. A 2026 wash-sale and asset-location overview walks through ETF swap examples that keep you invested while sidestepping the rule.
A third method is the partial sale. As Investopedia notes, if you sell more shares than you repurchase within the window, a partial loss deduction can still apply to the shares you did not replace.
The “substantially identical” line is gray. Two S&P 500 funds from different companies are widely treated as a defensible swap; the IRS has never issued a bright-line list. When the amounts are large, a CPA’s read on your specific swap is worth the fee.
Mistakes to Avoid
- Leaving DRIP on during the window. A reinvested dividend in your IRA quietly buys the same fund and permanently kills part of your loss.
- Forgetting the 30 days before the sale. The window looks backward too, so an earlier IRA buy can taint a later loss sale.
- Making a prior-year IRA contribution into a fund you just sold. A January contribution can reach back into a December loss and disallow it.
- Ignoring your spouse’s accounts. A spouse’s purchase triggers your wash sale, so the loss is disallowed with no recovery.
- Trusting your 1099-B to catch IRA wash sales. Brokers track only one account and never report IRA buys, so cross-account triggers are missed.
- Assuming the loss is just deferred. With an IRA replacement, the loss is permanent — there is no basis to recover it later.
- Re-entering the same ticker in your IRA “for a clean slate.” That is the exact move Rev. Rul. 2008-5 punishes most harshly.
- Forgetting state conformity. A loss disallowed federally is often disallowed by your state too, raising your state tax bill.
Do’s and Don’ts
- Do map your full 61-day window before any loss sale, because the rule reaches 30 days each way.
- Do pause IRA auto-investments and DRIP for that security, because automatic buys trigger the trap silently.
- Do check every household account, because spouse and IRA purchases both count.
- Do use a similar-but-not-identical fund if you want to stay invested, because that keeps exposure without a wash sale.
- Do keep written records of your buy and sell dates, because you must self-report cross-account wash sales.
- Don’t buy the same security in your IRA within the window, because the loss becomes permanent.
- Don’t rely on your broker’s 1099-B for IRA triggers, because brokers follow different rules than taxpayers.
- Don’t assume your state ignores it, because conformity states like California disallow it too.
- Don’t treat an IRA wash sale like a normal one, because there is no later deduction to recover.
- Don’t guess on “substantially identical,” because the IRS gives no bright-line list and the stakes are real.
Pros and Cons of Using an IRA Around Loss Harvesting
- Pro: IRAs grow tax-deferred or tax-free, which is valuable for long-term holdings regardless of wash sales.
- Pro: Losses inside an IRA need no wash-sale tracking, because IRA trades are not taxable events.
- Pro: Keeping harvested funds out of the IRA window is simple once you pause auto-features.
- Pro: Using a non-identical fund in the IRA lets you stay invested without tainting a taxable loss.
- Pro: Awareness of the rule turns a hidden risk into a routine checklist item.
- Con: An IRA purchase permanently destroys a taxable loss, the harshest wash-sale outcome.
- Con: Automatic IRA contributions and DRIP make accidental triggers easy.
- Con: Your 1099-B will not flag the cross-account trigger, so errors slip through.
- Con: You can owe tax in a losing year, as the permanently disallowed loss cannot offset gains.
- Con: Untangling cross-account wash sales can require a paid professional for active traders.
What to Do Next
- List every account you and your spouse own — taxable, traditional IRA, Roth IRA, and any 401(k) you self-direct.
- Mark your 61-day window around any planned loss sale: 30 days before through 30 days after.
- Turn off DRIP and pause IRA auto-investments for that security through the entire window.
- Sell, then either wait 31 days or buy a non-identical replacement to keep market exposure safely.
- Gather your trade confirmations showing exact buy and sell dates for your records.
- Report correctly on Form 8949 with code “W” and the disallowed amount in column (g) by April 15, 2026.
- Call a CPA if you are an active trader, the dollars are large, or your accounts span multiple firms.
FAQs
Can I avoid a wash sale by buying the stock in my IRA instead of my taxable account? No. Buying it in your IRA triggers the wash sale and, under Rev. Rul. 2008-5, permanently disallows the loss with no basis recovery. It is the worst place to repurchase.
Is an IRA wash sale loss deferred or lost forever? Lost forever. Unlike a normal wash sale, your IRA basis is not increased, so there is no replacement basis to recover the loss later. The deduction simply disappears.
How long is the wash sale window? 61 days. It runs 30 days before the sale, the day of the sale, and 30 days after, per Publication 550. Many people forget it also looks backward.
Does a wash sale inside my IRA need to be reported? No. Losses inside an IRA are not taxable events, so there is nothing to report. The trap only springs when a taxable loss meets an IRA purchase.
Can my spouse’s IRA purchase trigger my wash sale? Yes. A purchase by your spouse of substantially identical stock counts, as the IRC 1091 summary confirms. The rule covers the household, not just one account.
What code do I use on Form 8949 for a wash sale? Code “W.” Enter it in column (f) and put the disallowed loss as a positive number in column (g), per the IRS Form 8949 codes reference.
Will my broker catch an IRA wash sale on my 1099-B? No. Brokers track wash sales only within one account and do not report IRA buys, so cross-account IRA triggers are your responsibility to catch and report.
Does California disallow an IRA wash sale loss too? Yes. California conforms to the federal wash sale rule under IRC §1091, so a federally disallowed loss is also disallowed for California, per the Reed Corp guide.
Can I sell and rebuy a different fund to avoid the rule? Yes. Buying a fund that is not “substantially identical” — a different index from a different provider — keeps you invested without a wash sale, as Investopedia explains.
How long must I wait to rebuy the same security safely? 31 days. Stay out of the security in every account for the full 30 days after your sale, and the wash sale rule will not apply to that loss.
Can dividend reinvestment cause an IRA wash sale? Yes. A reinvested dividend that buys the same security in your IRA within the window triggers a partial wash sale, permanently killing that slice of the loss. Pause DRIP during the window.
Does the rule apply to a 401(k) too? Yes, by extension. The IRS reasoning in Rev. Rul. 2008-5 targets IRAs directly, and most advisors treat self-directed retirement-account purchases of identical securities as risky. Avoid repurchasing in any retirement account within the window.
Word count: approximately 2,950 words of body content excluding tables and headers — this YMYL topic is intentionally focused; expanding further would require padding rather than added value.
Related reading
- Can a Wash Sale Happen If You Rebuy Before Selling? (w/Examples) + FAQs
- Can a Wash Sale Raise Your Tax Bill? (w/Examples) + FAQs
- Does a Wash Sale Make You Lose the Loss Forever? (w/Examples) + FAQs
- Does Your IRA Trigger a Wash Sale on Your Taxable Account? (w/Examples) + FAQs
- What Happens to a Disallowed Wash Sale Loss? (w/Examples) + FAQs
- What’s the Penalty for a Wash Sale? (w/Examples) + FAQs