Direct Indexing Advisor Match

Wash Sale Rule and Direct Indexing: The Cross-Account Risk That Erases Your Losses

Tax-loss harvesting in a direct indexing portfolio generates real tax alpha — but only if harvested losses are actually deductible. The wash sale rule under IRC §1091 applies across every account you own, including IRAs and your spouse's accounts. When a disallowed loss lands in an IRA, it's gone permanently. This guide explains exactly how the rule applies in a DI context and what it takes to prevent it.

The §1091 wash sale rule: the 61-day window

Under IRC §1091, if you sell stock or securities at a loss and you (or your spouse, or any account you control) purchase "substantially identical" stock or securities within 30 days before or after the sale, the loss is disallowed.1 The disallowed loss isn't erased in a taxable-to-taxable wash sale — it's added to the cost basis of the replacement securities and deferred until you eventually sell them. But when the replacement purchase happens in a tax-advantaged account (IRA, Roth IRA, 401(k), 403(b)), you get no basis adjustment, and the loss disappears permanently.

The window is 61 days total: 30 days before the sale through 30 days after. Any purchase of substantially identical securities anywhere in that window, in any account you or your spouse own, triggers the rule.

The critical asymmetry. A wash sale between two taxable accounts is recoverable — the deferred loss shows up when you sell the replacement position. A wash sale that routes into an IRA, Roth IRA, or 401(k) is not — the basis can't be tracked in a tax-advantaged account, so the IRS permanently loses that deduction. IRS Revenue Ruling 2008-5 confirmed this explicitly.2

Direct indexing's structural advantage over ETF tax-loss harvesting

The wash sale rule is actually one of the reasons direct indexing outperforms ETF-based tax-loss harvesting in the taxable account itself. Here's the distinction:

ETF-based TLH replaces one fund with another. Selling SPY (S&P 500 ETF) at a loss and immediately buying IVV (another S&P 500 ETF) is arguably a wash sale — both track the same index, same holdings. Most practitioners instead substitute a different but correlated index (sell S&P 500, buy total market). That introduces tracking error during the 30-day wait period, and the IRS has not issued bright-line guidance on when two ETFs become "substantially identical."

Direct indexing TLH sells individual stocks and replaces them with other individual stocks in the same sector. Selling Apple at a loss and immediately buying Microsoft and Alphabet — all tech-sector, similar market exposure — does not trigger the wash sale rule. Apple, Microsoft, and Alphabet are clearly not substantially identical securities. No 30-day wait. No tracking error. No ambiguity about whether the substitution is compliant.

This is the core structural reason DI captures more tax-loss harvesting opportunities than ETF swaps: you can replace in the same sector on the same day without wash-sale risk.

The cross-account problem

The structural advantage above applies to harvesting within the DI portfolio itself. The problem emerges when you look at your full account picture.

Direct indexing investors typically hold assets in multiple accounts:

The DI platform harvests a loss in the taxable account by selling, say, 200 shares of Microsoft that have declined since purchase. Three days earlier, your IRA's automatic rebalance triggered a purchase of a tech-heavy index fund that holds Microsoft as a component. Under §1091, if the IRS determines those purchases are "substantially identical," your $18,000 loss is disallowed. At the 23.8% combined LTCG+NIIT rate,3 that's $4,284 in federal tax savings — gone, permanently, because your IRA's rebalancing algorithm couldn't see your taxable account harvest.

The root cause: no platform sees across custodians. Each brokerage maintains its own account view. Wealthfront doesn't know what Fidelity holds. Schwab SPI doesn't know what's in your Vanguard IRA. Frec doesn't know about your 401(k). Each platform's wash-sale algorithm is scoped to its own accounts — not your household.

The IRA trap: permanent, unrecoverable loss

A wash sale between two taxable brokerage accounts is bad but recoverable. The disallowed loss carries over into the replacement position's cost basis. When you eventually sell the replacement, you effectively realize the original loss. You've lost the timing of the deduction, not the deduction itself.

A wash sale into an IRA is different. IRS Revenue Ruling 2008-5 addressed this directly:2 when you sell a security at a loss in a taxable account and purchase substantially identical securities within an IRA or Roth IRA during the wash-sale window, the loss is disallowed — and because IRAs don't track cost basis for tax purposes, no basis adjustment is made to the IRA holding. The deduction is permanently eliminated.

The mechanics:

  1. You sell 500 shares of stock XYZ in your taxable DI account at a $25,000 loss
  2. Your IRA auto-rebalances and purchases XYZ (or a fund holding enough XYZ to be "substantially identical") within the 61-day window
  3. The wash sale rule disallows your $25,000 loss
  4. In a normal taxable wash sale: that $25,000 gets added to your IRA's XYZ cost basis, partially preserving value — except IRA basis for these purposes means nothing, because IRA withdrawals are taxed as ordinary income regardless of what the underlying securities did
  5. The $25,000 loss deduction is simply gone. At 23.8%, that's $5,950 permanently lost

This scenario is not hypothetical. It's one of the most common unintentional errors in self-managed DI portfolios with outside retirement accounts.

Spouse accounts: the extension most investors miss

IRC §1091 applies to the taxpayer and their spouse as a single unit. If you sell stock at a loss and your spouse's IRA — or your spouse's taxable account — purchases substantially identical stock within the 61-day window, your loss is disallowed.4

This creates wash-sale exposure across two sets of retirement accounts:

AccountWash-sale risk to taxable DI?Permanent loss if triggered?
Your IRA or Roth IRAYesYes — IRS Rev. Rul. 2008-5
Your 401(k) / 403(b)YesLikely yes — no basis tracking in plan
Your spouse's IRA or Roth IRAYesYes
Your spouse's 401(k) / 403(b)YesLikely yes
Your spouse's taxable accountYesNo — loss deferred to replacement basis (recoverable)
A second taxable account you ownYesNo — recoverable via basis adjustment
Trust account you controlCase-by-caseDepends on grantor trust status

For couples who each have separate IRAs, 401(k)s, and taxable accounts — which is typical for high-income households — the wash-sale surface area is large. A direct indexing algorithm watching only the taxable DI account sees, at most, 20–25% of the household's total equity position.

The 401(k) problem

The 401(k) is particularly difficult because you often have limited control over when purchases happen. If your 401(k) automatically invests payroll contributions in a broad equity index fund every two weeks, and that fund holds many of the same stocks your DI portfolio just harvested, you have a recurring 61-day wash-sale problem built into your payroll schedule.

The standard advisory solution: map the 401(k)'s holdings against the active harvest list before executing DI harvests, and exclude securities from harvesting during any pay-period window when the 401(k) is purchasing funds with substantial overlap. This requires knowing what's in the 401(k) — something no direct-indexing platform algorithm can access automatically.

An alternative for some investors: shift the 401(k) allocation to a bond fund, a non-correlated equity strategy, or a money market during active DI harvest periods. This temporarily breaks the investment coordination but eliminates the wash-sale risk.

What direct indexing platforms can and cannot do

PlatformWash-sale monitoring scopeCross-account protection?
Wealthfront US Direct IndexingWealthfront accounts onlyNo — outside accounts invisible
Schwab Personalized IndexingSPI taxable account onlyNo — 401(k) and IRA at Schwab may have limited coordination; outside accounts none
FrecFrec account onlyNo
FidFolios / Fidelity Tax-ManagedFidelity account scopeLimited — Fidelity accounts; outside IRAs and 401(k)s not protected
Vanguard Personalized IndexingVPI taxable account; advisor can coordinateAdvisor-dependent — requires active account mapping
Parametric Custom CoreTaxable account; advisor provides dataYes, if advisor provides full account picture — Parametric's algorithm can incorporate exclusion lists
Aperio (BlackRock)Taxable account; advisor provides dataYes, if advisor provides full account picture — Aperio supports custom exclusion overlays

The institutional platforms (Parametric, Aperio) have the architecture to accept exclusion lists and cross-account data. But that architecture only works if your advisor is actively building and maintaining the account map — collecting IRA and 401(k) holdings, running the conflict check before harvest runs, and feeding that data back into the platform's exclusion logic. The technology is necessary but not sufficient. The process around it is what determines whether cross-account wash sales actually get caught.

How advisor coordination prevents cross-account wash sales

A specialist direct indexing advisor builds a household account map that includes every account you and your spouse own — taxable, IRA, Roth, 401(k), 403(b), HSA. Before executing harvest runs, they run a conflict check: which securities are being harvested, and which of those securities (or substantially similar ones) are being purchased in any other account within the 61-day window?

In practice this looks like:

  1. Account inventory. Your advisor collects and maintains read-only access (or periodic statements) for all accounts — including your employer 401(k) and spouse's accounts.
  2. Pre-harvest conflict scan. Before running a harvest, the advisor's process identifies which positions are targeted and checks for purchase activity in the prior 30 days across all accounts, and projects forward 30 days for known scheduled purchases (payroll contributions, rebalancing events).
  3. Exclusion list update. Positions with active wash-sale conflicts are excluded from that harvest cycle. The platform algorithm (Parametric, Aperio, VPI) is updated with the exclusion overlay.
  4. IRA rebalancing coordination. If your IRA is due for a rebalance, the advisor coordinates timing so the IRA doesn't purchase into securities your DI account just harvested.
  5. Payroll contribution management. For recurring 401(k) contributions, the advisor identifies which funds receive contributions and excludes their major holdings from active harvest targets during contribution periods.

This process is operationally intensive. It's why tax-loss harvesting advisors earn their fee — not from platform access, but from the coordination work that prevents permanently-lost deductions.

The math on preventing one IRA wash sale. A typical DI portfolio at $2M might harvest 1.0%/year — $20,000 in annual losses. At the 23.8% combined LTCG+NIIT rate, that's $4,760/year in tax savings. A single undetected IRA wash sale on a $50,000 stock position eliminates $11,900 in permanently-lost deductions. One event erases three years of harvesting gains. A specialist advisor who prevents that once has paid for themselves many times over.

Common wash-sale scenarios in DI portfolios

ScenarioWash-sale triggered?Loss recoverable?Prevention
DI sells Apple at a loss; DI buys Microsoft + Alphabet in the same weekNo — not substantially identical individual stocksN/A — no disallowanceNo action needed
DI sells Apple at a loss; IRA's index fund auto-rebalances into Apple within 30 daysYes — same securityNo — permanent via IRA (Rev. Rul. 2008-5)Advisor-coordinated harvest exclusion
DI sells SPY (if held as an ETF) at a loss; IRA holds IVV (also S&P 500)Probably yes — same-index ETFs likely "substantially identical"No — permanentUse individual-stock DI (not ETF-level); or substitute to different index in IRA
DI harvests a batch of tech stocks; 401(k) auto-contributes to a tech-heavy index fund the next weekPossibly — depends on whether the fund's tech holdings overlap enough to be "substantially identical"No — permanentPre-harvest 401(k) holding review; consider temporary 401(k) allocation shift
DI harvests a stock; you buy the same stock in a second taxable account the same dayYes — same securityYes — deferred to replacement basis (recoverable)Advisor cross-account scan; or separate taxable accounts at same custodian
DI harvests a stock; your spouse buys the same stock in their IRA within 30 daysYes — spousal attribution appliesNo — permanentHousehold-level account map covering spouse's accounts
DI harvests losing positions in December; RSU vest buys employer stock in January (different stock than harvested)No — RSU vest acquires different securityN/A — no disallowanceNo action needed if stocks differ

Frequently asked questions

Does the wash sale rule apply to IRAs?

Yes — and the consequence is worse than in taxable accounts. If you sell a stock at a loss in a taxable account and repurchase substantially identical stock in an IRA or Roth IRA within 30 days before or after the sale, the loss is permanently disallowed. In a taxable-to-taxable wash sale, the disallowed loss is added to the new position's cost basis (deferred, not eliminated). In a taxable-to-IRA wash sale, there is no basis adjustment in the IRA — the deduction is gone forever. IRS Revenue Ruling 2008-5 confirmed this explicitly.

What counts as "substantially identical" for direct indexing purposes?

Two securities are substantially identical if they are essentially the same economic instrument. Individual stocks in the same sector are not substantially identical — selling Apple and buying Microsoft avoids the wash sale rule. This is the core structural advantage of direct indexing over ETF tax-loss harvesting. Where it gets complex: two ETFs tracking the same index (SPY and IVV) may be substantially identical. Different-index ETFs — S&P 500 vs. total market — generally are not, but IRS guidance is not definitive. Direct indexing sidesteps this ambiguity entirely by substituting individual stocks, not ETFs.

Does the wash sale rule apply to my spouse's accounts?

Yes. IRC §1091 applies to the taxpayer and their spouse as a unit. If you sell a stock at a loss and your spouse purchases substantially identical stock in their IRA, Roth IRA, or taxable account within the 61-day window, your loss is disallowed. The loss permanently disappears if the replacement purchase is in your spouse's IRA or Roth IRA. This means a household-level account map — covering both spouses' retirement and taxable accounts — is necessary for genuine wash-sale protection.

Can direct indexing platforms prevent cross-account wash sales?

Self-service platforms (Wealthfront, Schwab SPI, Frec, FidFolios) monitor only the accounts on their own platform. They have no visibility into your IRA at another custodian, your 401(k), your spouse's accounts, or outside positions. Advisor-coordinated platforms (Parametric, Aperio, Vanguard Personalized Indexing) can incorporate exclusion lists and account data from multiple custodians — but only if your advisor actively provides that information. The platform technology is only as good as the coordination process your advisor runs around it.

How do I avoid the IRA wash sale trap with a direct indexing portfolio?

Three approaches reduce the risk: (1) Replace your IRA's broad equity index fund with an index different enough to avoid "substantially identical" classification; (2) Ask your advisor to exclude securities being actively harvested from your IRA's rebalancing activity during the 61-day window; (3) Work with an advisor-coordinated platform (Parametric, Aperio, VPI) that maintains household-level account maps and runs pre-harvest conflict checks. For most investors with $1M+ in taxable assets and multiple retirement accounts, option 3 — advisor-coordinated cross-account monitoring — provides the most systematic protection.

Is a 401(k) subject to the wash sale rule?

Yes. The IRS applies §1091 to purchases in any taxpayer account, including 401(k), 403(b), and similar employer-sponsored plans. Purchases in your 401(k) within the 30-day window around a taxable harvest trigger disallowance — and likely without a recoverable basis adjustment. Most direct indexing platforms have no visibility into employer plan holdings. For investors with active 401(k) payroll contributions that purchase broad equity index funds, advisor-coordinated pre-harvest exclusion mapping is essential to avoid recurring conflicts.

Get matched with a direct indexing specialist

Advisor-coordinated platforms provide household-level wash-sale protection — covering your IRAs, 401(k), spouse's accounts, and taxable DI portfolio. Self-service platforms can't do this. Find a fee-only specialist with institutional platform access and a defined cross-account coordination process.

Fee-only · No commissions · Free match · No obligation

  1. IRC §1091 — Loss from Wash Sales of Stock or Securities (Cornell LII). Disallows loss deduction when substantially identical stock or securities are purchased within 30 days before or after the sale. Applies to all accounts of the taxpayer, including spouses, and extends to IRAs and employer retirement plans.
  2. IRS Revenue Ruling 2008-5. Confirms that when a taxpayer sells stock at a loss in a taxable account and an IRA or Roth IRA purchases substantially identical stock within the wash-sale window, the loss is disallowed under §1091 and no basis adjustment is made to the IRA — making the loss permanently unrecoverable.
  3. IRS Rev. Proc. 2025-32 — 2026 Tax Inflation Adjustments. The 20% long-term capital gains rate applies above $545,500 (single) / $613,700 (MFJ). NIIT of 3.8% per IRC §1411 applies above $200,000 (single) / $250,000 (MFJ). Combined 23.8% rate at top brackets.
  4. Fidelity — Wash-Sale Rules: Avoid This Tax Pitfall. Overview of wash-sale rule application to spouses, IRAs, and multiple-account households. Wash-sale rule applies to purchases by the taxpayer or their spouse, regardless of whose name is on the account.
  5. IRS Publication 550 — Investment Income and Expenses. Comprehensive guidance on wash sales, substantially identical securities, basis adjustment rules, and the 61-day window calculation.

Tax values per IRS Rev. Proc. 2025-32 (2026). IRA wash-sale treatment per IRS Rev. Rul. 2008-5. IRC sections per Cornell Law School LII. Values verified May 2026.