Wash Sale Across Accounts: The Loss That Vanishes
If you sell a fund for a loss in your taxable brokerage account and any account you control — your IRA, your 401(k), or your spouse’s accounts — buys the same or a substantially identical fund within 30 days before or after, the wash-sale rule (IRC §1091) disallows the loss. And here is the trap almost nobody catches: when the replacement shares sit inside an IRA, the disallowed loss is not deferred into a higher basis the way it normally is. It vanishes permanently. A $20,000 harvested loss worth roughly $4,760 at the 23.8% federal LTCG-plus-NIIT rate can be destroyed by a single automatic 401(k) rebalance you never even saw happen.
Daniel and Priya, both 44, file jointly and live in Austin, Texas. In November, Daniel sold his Vanguard S&P 500 index fund (VFIAX) in his taxable brokerage account for a $20,000 long-term loss, planning to harvest it against gains and carry the rest forward. The plan was sound. The execution was not. Eleven days earlier, Priya’s 401(k) target-date fund had auto-rebalanced and purchased an S&P 500 index fund — substantially identical to what Daniel sold. Neither of them touched a button. At filing, their CPA disallowed the entire $20,000 loss under IRC §1091. Because the triggering purchase sat in a retirement account, the loss did not roll into a higher basis. It was gone — permanently. At the 23.8% top federal long-term capital gains plus NIIT rate, that is $4,760 of tax benefit they will never recover.
Most tax-loss-harvesting guides stop at “don’t rebuy the same fund for 30 days.” That advice is incomplete in a way that costs real money. The wash-sale rule does not look only at the account where you sold. It reaches across every account you and your spouse control, and one specific version of the trap — the replacement landing in an IRA — converts a temporary deferral into a permanent loss of the deduction. This is the silent killer of harvested losses.
What the wash-sale rule actually prohibits
IRC §1091 disallows a loss on the sale of stock or securities if, within a 61-day window — 30 days before the sale through 30 days after — you acquire substantially identical stock or securities. The disallowance is not partial. If you sold 1,000 shares at a loss and repurchased 1,000 substantially identical shares inside the window, the whole loss is disallowed.
Two things make §1091 dangerous rather than merely inconvenient:
- It does not require intent. An automatic dividend reinvestment, a robo-advisor rebalance, or a 401(k) glide-path adjustment triggers the rule exactly as a deliberate repurchase would. The IRS does not ask whether you meant to do it.
- It looks across accounts and across spouses. The “you” in §1091 is not one brokerage account. Per IRS Pub. 550 and Rev. Rul. 2008-5, it includes your IRAs, your spouse, and entities you control.
Note one carve-out that matters: per MoneyMap’s stats reference (Section 15), §1091 applies to stocks, mutual funds, and ETFs, but the IRS has not extended it to crypto. Digital-asset losses can be harvested and repurchased immediately — the cross-account trap below is a stocks-and-funds problem only.
The cross-account reach: IRA, 401(k), and your spouse
IRS Pub. 550 instructs that a wash sale occurs if you sell at a loss in your taxable account and buy substantially identical securities in your traditional or Roth IRA. Rev. Rul. 2008-5 made this explicit and added the brutal twist on basis (covered below). The same logic extends to employer plans: if your 401(k) buys the identical index fund inside the window, that purchase counts.
The spousal reach is just as real and far more often missed. The IRS treats married spouses as related parties for §1091 purposes. A loss you harvest in your account is disallowed if your spouse buys substantially identical securities in any of their accounts — taxable, IRA, or 401(k) — within the 61-day window. And filing status does not save you: married filing separately does not sever the relationship, because the link is marriage, not the joint return.
| You sell at a loss in… | Replacement bought in… | Wash sale? | Loss recoverable later? |
|---|---|---|---|
| Your taxable brokerage | Your taxable brokerage | Yes | Yes — added to replacement basis |
| Your taxable brokerage | Your traditional or Roth IRA | Yes | No — lost permanently |
| Your taxable brokerage | Your 401(k) | Yes | No — lost permanently |
| Your taxable brokerage | Spouse’s taxable account | Yes | Yes — added to spouse’s basis |
| Your taxable brokerage | Spouse’s IRA or 401(k) | Yes | No — lost permanently |
Why an IRA replacement destroys the loss forever
In a normal wash sale, the disallowed loss is not gone — it is deferred. Under IRC §1091(d), the loss you couldn’t deduct gets added to the cost basis of the replacement shares. When you eventually sell those replacement shares, the higher basis produces a larger loss (or smaller gain), and you recover the benefit. The timing is delayed; the dollars are not lost.
Rev. Rul. 2008-5 broke that recovery mechanism for IRAs. The ruling holds two things:
- A loss sold in your taxable account is disallowed under §1091 when the replacement is bought in your IRA. The IRA counts as a related acquisition.
- The disallowed loss is not added to the basis of the IRA shares. IRA assets do not carry an outside cost basis that adjusts gains the way taxable shares do — growth inside the IRA is tax-deferred (or tax-free for Roth) regardless of basis. There is nowhere for the disallowed loss to attach.
The result: the deduction is denied, and there is no future event that gives it back. You paid the economic loss in your taxable account and received zero tax benefit for it. This is the only common scenario where a wash sale is a true, permanent forfeiture rather than a deferral. It is why an IRA or 401(k) auto-purchase is far more damaging than an accidental repurchase in your own taxable account.
Worked example: a $20,000 loss erased by a 401(k) rebalance
Return to Daniel and Priya. Daniel’s combined federal marginal picture puts long-term gains at the top federal rate band, and their MAGI exceeds the $250,000 MFJ threshold for the Net Investment Income Tax, so the relevant rate on his harvested loss is the full 23.8% (20% LTCG + 3.8% NIIT, per stats Section 2). Texas has no state income tax, so there is no state layer.
| Item | Amount |
|---|---|
| Long-term loss harvested (VFIAX, taxable account) | $20,000 |
| Substantially identical purchase (Priya’s 401(k) auto-rebalance, day −11) | S&P 500 index fund |
| Inside 61-day window? | Yes (11 days before sale) |
| Loss allowed under §1091 | $0 |
| Basis added to replacement (IRA/401(k) — Rev. Rul. 2008-5) | $0 (no add-back) |
| Tax benefit recovered in any future year | $0 |
| Permanent tax cost (23.8% × $20,000) | $4,760 |
Had Priya’s replacement purchase instead landed in her taxable account, Daniel’s $20,000 disallowed loss would have been added to the basis of her replacement shares under §1091(d). The benefit would have been deferred, not destroyed — they would recover it whenever she sold. The single fact that turned a deferral into a $4,760 forfeiture was the account type: the replacement sat inside a 401(k).
What most people miss: automation is the actual culprit
Deliberate same-day repurchases are rare among informed investors — they know the 30-day rule. The losses that actually vanish are almost always triggered by trades the investor never personally placed:
- Target-date funds. A target-date or balanced fund inside a 401(k) rebalances its underlying holdings on its own schedule. If it holds an S&P 500 sleeve and adds to it during your harvest window, that is a substantially identical purchase you did not authorize and cannot see on a trade confirmation.
- Dividend reinvestment (DRIP). If the same index fund is held in your IRA or your spouse’s account with DRIP turned on, a dividend paid inside the window reinvests into more shares — a textbook wash-sale trigger.
- Robo-advisor and managed-account rebalancing. Automated platforms rebalance on thresholds or calendars. If one account harvests while another rebalances into the same exposure, the two collide.
- Recurring auto-investments. A biweekly automatic contribution buying the identical fund will land inside almost any 61-day window.
The deeper miss is that brokerages only police wash sales within a single account at a single firm. Your 1099-B will flag a wash sale if you rebuy in the same taxable account. It will not flag a sale in your Schwab taxable account against a purchase in your spouse’s Fidelity 401(k). Cross-firm and cross-spouse tracking is entirely on you. The IRS rule applies regardless; the reporting that would warn you does not exist.
How to harvest cleanly across every account
The defense is procedural, and it is reliable if you treat the household as one system rather than a stack of separate accounts. Run this checklist before every harvest:
- Inventory the identical fund across the whole household. Before selling VFIAX at a loss, ask: does the same fund (or another S&P 500 index fund) exist in your IRA, your 401(k), your spouse’s IRA, their 401(k), or any taxable account either of you holds? Different ticker, same index, still substantially identical.
- Buy a genuinely different replacement. The clean swap is to a fund tracking a different index — sell an S&P 500 fund, buy a total-market or Russell 1000 fund. Different underlying index is the IRS-respected line for “not substantially identical.” This keeps you in the market while the window runs.
- Pause every automatic feature for the full 61 days. Turn off DRIP, recurring contributions, and auto-rebalancing on the identical fund in all household accounts — including your spouse’s — for 30 days before through 30 days after the sale.
- Coordinate target-date fund timing. If a 401(k) holds a target-date fund with overlapping exposure, you cannot control its internal rebalances. Either avoid harvesting the overlapping index, or move the taxable harvest to a fund the target-date fund does not hold.
- Keep your own cross-account log. Because no broker tracks this for you, maintain a household trade calendar covering all accounts and both spouses. It is the only record that proves you stayed clean.
Filing separately does not help — coordination does
A common instinct is to file married-filing-separately to break the spousal link. It does not work. The related-party status under §1091 flows from being married, not from how the return is filed, and MFS usually costs more in lost credits and compressed brackets than any harvest is worth. The genuine fix is operational: decide which spouse holds which core index funds so the household is not buying and selling the same exposure in parallel, and pause automation around any harvest.
One more boundary worth knowing: the wash-sale rule covers stocks and securities, not all assets. Per stats Section 15, §1091 has not been extended to crypto, so a digital-asset loss can be harvested and the position rebought immediately with no disallowance — the exact strategy that is forbidden for an index fund. Know which asset class you are in before you act.
Key takeaways
- IRC §1091 disallows a loss if substantially identical securities are bought within 61 days (30 before, 30 after) in any account you control — your IRA, your 401(k), or your spouse’s accounts (IRS Pub. 550).
- Per Rev. Rul. 2008-5, when the replacement is bought in an IRA (or 401(k)), the disallowed loss is not added to basis — it is lost permanently, unlike a normal wash sale that merely defers the deduction.
- A $20,000 harvested loss forfeited this way costs $4,760 at the 23.8% top federal LTCG-plus-NIIT rate (stats Section 2) — with no future recovery.
- The usual trigger is automation no one watched: 401(k) target-date rebalances, DRIP, robo-rebalancing, and recurring contributions. Brokers do not track wash sales across firms or across spouses.
- Married filing separately does not break the spousal wash-sale link. The lever is household coordination: buy a different-index replacement, and pause DRIP, auto-investing, and rebalancing on the identical fund in every household account for the full 61-day window.
Join the 2026 tax newsletter
Decision checklists + key 2026 federal/state numbers. Free, one click.
Frequently asked
Yes. IRS Rev. Rul. 2008-5 confirms a loss sold in your taxable brokerage account is disallowed under IRC §1091 if you buy substantially identical shares in your traditional or Roth IRA within the 61-day window (30 days before through 30 days after). The accounts are treated as one taxpayer.
Yes. The IRS treats married spouses as related parties for §1091. Under IRS Pub. 550, a replacement purchase by your spouse — in any account, including their 401(k) or IRA — within the 61-day window triggers a wash sale on your sale. Filing jointly or separately does not change this.
The loss is disallowed and, per Rev. Rul. 2008-5, it is lost permanently. Normally a disallowed wash-sale loss is added to the basis of the replacement shares. But IRAs have no outside cost basis that tracks gains, so the disallowed loss cannot attach anywhere. A $20,000 loss simply disappears.
No. This is the core trap. With taxable replacement shares, the disallowed loss increases their basis so you recover it later. Rev. Rul. 2008-5 holds that no basis increase occurs for shares purchased in your IRA — the deduction is permanently denied, with no offsetting future benefit.
It can. If your 401(k) target-date fund or auto-rebalance feature buys a fund substantially identical to one you sold at a loss in taxable within 30 days, §1091 applies. The IRS has not carved out automated trades. Most investors never see the trade, then lose the deduction at filing.
Buy a not-substantially-identical replacement (a different index — e.g., sell S&P 500, buy a total-market or Russell 1000 fund), and pause automatic investing, DRIP, and rebalancing in your IRA, 401(k), and your spouse's accounts for the full 61-day window around the harvest.
No. The spousal wash-sale relationship under §1091 and Pub. 550 is based on marriage, not on how you file. Married filing separately does not break the related-party link. The only fix is coordinating which funds each spouse holds and pausing their automatic purchases during the window.
Related guides
Equity Compensation Planning
Tax-loss harvesting, wash sales, and concentrated-position management are core to handling RSUs, ESPP shares, and option exercises. See how the equity-comp planning vertical fits the cross-account wash-sale trap into a broader portfolio tax strategy.
Learn Hub
Browse the full library of decision-stage cluster guides with calculators — capital gains, retirement accounts, and tax-loss harvesting frameworks that connect to the §1091 cross-account rules covered here.
Tax-Loss Harvesting at the Mutual-Fund Level: The Substantially-Identical Test
Before you worry about which accounts you bought in, you have to know whether the replacement fund is 'substantially identical' at all. This guide walks the fund-level test that decides whether §1091 is even in play.
Crypto Tax-Loss Harvesting 2026
The wash-sale rule does NOT apply to crypto — the IRS has not extended §1091 to digital assets. That gap lets you harvest crypto losses and repurchase immediately, the exact opposite of the stock-and-fund trap described here.
Direct Indexing for Tax-Loss Harvesting: Wealthfront vs. Schwab
Direct-indexing platforms automate loss harvesting at the individual-stock level — but if those automated buys overlap with your IRA or spouse's holdings, the same cross-account wash-sale rules can quietly disallow the harvested losses.
Join the Life Money USA newsletter
Decision checklists, 2026 federal + state numbers, and our glossary. One click, free.
Join the newsletter