A Wash Sale Usually Just Delays Your Loss. Buying It Back Inside an IRA Destroys It.

Trip the wash sale rule in a taxable account and the loss is deferred, not lost: it moves into the cost basis of the replacement shares. Repurchase inside an IRA or HSA instead and there is no basis to move it to, so the deduction is gone permanently. Your broker will not flag it.

Tech Talk News Editorial9 min read
ShareXLinkedInRedditEmail
A Wash Sale Usually Just Delays Your Loss. Buying It Back Inside an IRA Destroys It.

Key takeaways

  • The wash sale window is 61 days, not 30: the 30 calendar days before the sale, the sale date itself, and the 30 calendar days after, so a purchase made before you sell can trigger it retroactively.
  • In an ordinary taxable-account wash sale the loss is not destroyed, it is deferred, because the disallowed amount is added to the cost basis of the replacement shares and recovered when those are eventually sold.
  • If the replacement purchase happens inside an IRA or HSA, the loss is permanently forfeited rather than deferred, because there is no taxable cost basis in those accounts for the disallowed amount to attach to.
  • The rule applies across every account you control, including accounts at different brokers, retirement accounts, and accounts owned by your spouse.
  • Brokers only track wash sales within a single account at their own firm, so cross-broker and spousal wash sales will not appear on your 1099-B and remain your responsibility to report.
  • Substantially identical means the same stock or the same fund; a different company, or a fund tracking a genuinely different index, generally is not.

Tax loss harvesting is one of the few genuinely free things in investing: sell something that has fallen, book the loss against your gains, keep your market exposure. The wash sale rule is the constraint on it, and it is widely half-understood in a way that costs people money.

The half people know: buy it back too soon and the loss is disallowed.

The half they miss: in a taxable account, “disallowed” almost always means deferred. The loss moves into the cost basis of the replacement shares and you get it back when you sell those.[1] Annoying, not expensive.

Except in one case, where it is expensive and permanent.

61 days
30 before, the sale date, 30 after
Deferred
A normal wash sale, via basis adjustment
Forfeited
If the replacement is bought in an IRA or HSA
Not on 1099-B
Cross-broker and spousal wash sales

It Is 61 Days, and It Looks Backwards

Everyone calls it the 30-day rule. It is 30 days before the sale, the sale date itself, and 30 days after: a 61-day window, counted in calendar days rather than business days.[1]

The backward half is what catches people, because it is not intuitive that a purchase you made before deciding to sell can retroactively disallow the loss. It can. If you bought more of a falling position three weeks ago, averaging down, and then sold the older lot at a loss this week, you have created a wash sale. Nothing about that sequence feels like gaming the tax code, and the rule does not care.

Heads up

The most common accidental trigger is automatic dividend reinvestment. A fund pays a distribution, your account quietly buys a few more shares, and that purchase sits inside your 61-day window. It does not matter that it was $14 and automated. Turn reinvestment off on a holding before you harvest a loss in it, not after.

Why It Is Usually Only a Delay

The mechanism matters, because it is what makes the IRA case different.

When a wash sale is disallowed in a taxable account, the amount does not vanish. It is added to the cost basis of the replacement shares.[1]Higher basis means a smaller taxable gain, or a larger loss, when you eventually sell those shares. The benefit is postponed to that later sale.

Which is why a wash sale inside one taxable account is a bookkeeping irritation rather than a disaster. You lost the timing, not the deduction.

The IRA Case, Where the Loss Actually Dies

Now sell at a loss in your taxable brokerage account and buy the substantially identical security inside your IRA or HSA within the window.

The loss is permanently forfeited.[1]

The reason follows directly from the mechanism above. The rescue works by attaching the disallowed amount to the cost basis of the replacement shares. Shares inside an IRA or HSA have no taxable cost basis, because gains in those accounts are never taxed on sale. There is nothing for the loss to attach to, and no future event that would recover it. It is simply gone.

The basis adjustment is what makes a wash sale survivable. Inside an IRA there is no basis, so there is no adjustment, and no way back.

This is a genuinely easy mistake to make, because it does not look like one. Selling a fund in taxable and buying the same fund in your IRA feels like tidying up: same exposure, better account. It is also the one version of this rule that costs you the entire deduction.

It Follows You. Your Broker Does Not.

The rule applies across every account you control: accounts at other brokers, your retirement accounts, and your spouse's accounts.[2]

Your broker's reporting does not. Each firm tracks wash sales within its own account and has no visibility into what you did at another broker or what your spouse did anywhere.[2] So a cross-broker or spousal wash sale will not appear on any 1099-B, no software will warn you, and the obligation to report it is still yours.

The practical shape of the trap: harvest a loss at broker A, and your automatic monthly contribution at broker B buys the same index fund eleven days later. Two systems, each behaving correctly, and a disallowed loss nobody is tracking. This is the same seam-between-correct-components pattern that produces the $0 cost basis error on RSU sales: the reporting is accurate within its own boundary and wrong about your actual situation.

“Substantially Identical” and Where the Line Is

The same stock counts. The same fund counts. A different company generally does not, and a fund tracking a genuinely different index generally does not.[3]

That is what makes harvesting practical: sell a fund tracking one large-cap index at a loss, buy a fund tracking a differentlarge-cap index, keep essentially the same market exposure, book the loss. You have changed the security without meaningfully changing your position.

The uncomfortable middle is two funds from different providers tracking the same index. Economically that is the same thing with a different ticker, and the IRS has never issued a bright-line rule on it. Most practitioners treat it as too close to risk, which seems right: the upside is a slightly tidier swap and the downside is an audited position you cannot defend with anything but the absence of guidance.

How To Do It Without Stepping On It

Turn off dividend reinvestment first, on that holding, in every account. This is the step people skip.

Check your other brokers and your spouse's accounts for automatic contributions or reinvestment into the same fund. Pause them for the window.

Never buy the replacement in a retirement account. If you want that exposure in your IRA, do it outside the 61-day window. This is the only version of the rule with a permanent cost.

Either wait 31 days or switch index. Waiting keeps you out of the market and exposed to a rally; switching to a different index keeps you invested. Most people should switch rather than sit out, because missing an upswing to protect a deduction is the tail wagging the dog.

Know what the loss is actually worth. Losses offset gains without limit, and then only $3,000 a year against ordinary income, with the rest carried forward. That cap has not moved since 1978, which is part of the capital gains picture and it means a very large harvested loss may take years to use.

Takeaway

The window is 61 days and it looks backwards, so a purchase made before you sold can disallow the loss. In a taxable account that is a deferral, because the amount shifts into the replacement shares' cost basis. Buy the replacement inside an IRA or HSA and it is a permanent forfeiture, because there is no basis there to shift it to. And since the rule spans every account you and your spouse control while each broker only sees its own, the wash sales that cost you most are exactly the ones nothing will report.

Sources and further reading

Mechanics current for the 2026 tax year. The IRS is the authority; confirm before filing.

  1. 1.ReportingFidelity, "Wash-sale rules: avoid this tax pitfall". Source for the 61-day window, the basis adjustment that defers a normal wash sale loss, and the permanent forfeiture when the replacement is bought in an IRA.
  2. 2.Reporting"The wash sale rule follows you everywhere. Your broker won't.". Source for the rule spanning accounts at different brokers, retirement accounts and spousal accounts, while broker reporting is limited to a single account.
  3. 3.ReportingTurboTax, "Wash sale rule: what is it, how does it work". Source for what counts as substantially identical, including that a fund tracking a different index generally does not.
  4. 4.PrimaryIRS Publication 550, "Investment Income and Expenses". The authoritative treatment of wash sales under IRC section 1091, including the basis and holding-period adjustments.

Frequently asked questions

What is the wash sale rule?
It disallows a tax loss if you buy the same security, or a substantially identical one, within 30 days before or after selling it at a loss. Counting the sale date itself, that is a 61-day window measured in calendar days rather than business days.
Is a wash sale loss gone forever?
Usually no. In a taxable account the disallowed loss is added to the cost basis of the replacement shares, so it reduces your taxable gain when you eventually sell those, which makes it a deferral rather than a forfeiture. The exception is when the replacement is bought inside an IRA or HSA, where the loss is permanently lost.
Why does buying in an IRA permanently destroy the loss?
Because the mechanism that normally rescues the loss does not exist there. A wash sale works by moving the disallowed amount into the cost basis of the replacement shares, and shares held in an IRA or HSA have no taxable cost basis to move it to, so there is nothing to recover it against later and the deduction simply disappears.
Does the wash sale rule apply across different brokers?
Yes, and this is where most accidental wash sales happen. The rule applies to every account you control, including accounts at other firms, retirement accounts, and your spouse's accounts, while each broker only tracks activity within its own account. Cross-broker and spousal wash sales will not appear on any 1099-B, so nothing will warn you.
What counts as a substantially identical security?
The same stock, or the same fund, clearly does. A different company generally does not, and neither does a fund tracking a genuinely different index. The uncomfortable middle is two funds tracking the same index from different providers, where the IRS has never issued a bright-line rule, so most practitioners treat them as too close to risk.
How do I harvest a loss without triggering a wash sale?
Either wait 31 days before repurchasing, or replace the position with something economically similar but not substantially identical, such as a fund tracking a different index in the same asset class. Also stop any automatic dividend reinvestment in that holding first, since a small reinvested purchase inside the window is enough to trip the rule.

Written by

Tech Talk News Editorial

Computer engineering background. Writes about software, AI, markets, and real estate, and the places where the three meet.

More about the author
ShareXLinkedInRedditEmail