Article
Financial Planning

How Tax-Loss Harvesting and Direct Indexing Work

Most diversified portfolios rely on Exchange-Traded Funds (ETFs) or mutual funds. For the majority of investors, the standard approach is straightforward: buy, hold, and pay the capital gains tax when the investment is eventually sold. However, for certain high-income brackets or specific portfolio structures, understanding the mechanics of tax-loss harvesting and direct indexing becomes relevant.

The core concept relies on a specific feature of the tax code: an investment that has declined in value can be utilized to reduce a current tax liability.

When an investment is sold for less than its purchase price (its cost basis), the investor realizes a capital loss. The IRS allows these losses to offset capital gains realized in the same tax year. If total losses exceed total gains, individuals can use up to $3,000 of the remaining loss to offset ordinary income ($1,500 if married filing separately). Any losses beyond that limit are carried forward to offset gains in future tax years indefinitely.

The financial impact depends entirely on the investor’s tax bracket. For example, in 2026, long-term capital gains face federal rates of 0%, 15%, or 20%. High earners are also subject to the 3.8% Net Investment Income Tax (NIIT) once adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples. Consequently, a capital loss that offsets a gain taxed at the maximum combined rate of 23.8% provides a higher immediate tax savings than one offsetting a gain at the 15% rate.

The Structural Limitation of Pooled Funds

The math of tax-loss harvesting becomes difficult when using standard index funds.

If an investor owns a single S&P 500 ETF, and the index rises 12% over the year, the value of the ETF increases accordingly. There is no net loss to realize. However, within that index, dozens of individual corporate components likely experienced significant declines during those same twelve months. Because the investor owns a single pooled security rather than the underlying equities, the gains of the winning stocks mask the losses of the losing stocks. The investor cannot isolate and sell only the declining components.

The Mechanics of Direct Indexing

Direct indexing replicates the index by purchasing the underlying fractional or full shares of the individual companies directly within the investor’s personal brokerage account. Instead of owning one fund ticker, the investor owns hundreds of individual stock positions.

This structural difference alters how losses are harvested. In a year where the broad index gains 12%, a direct indexing account will still contain individual stocks currently trading below their purchase price. The strategy involves systematically selling those specific underwater positions to capture the tax loss, while simultaneously purchasing highly correlated replacement securities to maintain the account’s target market exposure.

A common application for this structure involves managing concentrated stock risk. For example, an investor holding a large, low-basis position from a business sale or corporate compensation may want to diversify out of that position over time. Selling the concentrated shares triggers significant capital gains. If paired with a direct indexing account, the systematic losses generated by the broader index can be used to offset those specific gains, lowering the net tax bill for that calendar year.

Rules and Constraints: The Wash-Sale Rule

The IRS prevents investors from claiming a loss if they repurchase the same asset immediately. Under the wash-sale rule, a loss is disallowed if the investor purchases the same security, or one considered “substantially identical,” within a 61-day window—defined as 30 days before the sale, the day of the sale, and 30 days after the sale.

This rule applies across all accounts under the same household, not just the account where the sale occurred. Common triggers for accidental wash sales include:

  • Automated Dividend Reinvestments: If a dividend from the same stock or a related fund automatically reinvests within the 61-day window, the loss is disallowed.
  • Spousal and Joint Accounts: Transactions executed by a spouse in a separate account count toward the household total.
  • IRA Repurchases: If an asset is sold for a loss in a taxable account and bought back inside an Individual Retirement Account (IRA) within the window, the loss is permanently disallowed. Unlike standard taxable accounts where the disallowed loss is added to the basis of the new purchase, an IRA repurchase results in a permanent forfeiture of the tax deduction.

The Tax Implication: Deferral vs. Elimination

Tax-loss harvesting does not eliminate tax liability; it defers it.

When a losing stock is sold and replaced with a similar security to maintain market exposure, the new security carries a lower cost basis. If the market recovers, the eventual sale of that replacement security will trigger a larger capital gain than if the original stock had simply been held.

The strategy effectively trades a current tax obligation for a future tax obligation. The primary financial utility of this trade is twofold:

  1. Time Value of Money: The capital retained by deferring the tax remains invested and compounding.
  2. Tax Bracket Arbitrage: If the future sale occurs during retirement when the investor’s income and marginal tax rate are lower, the tax liability is paid at a reduced rate. If the assets are held until death, the heirs receive a step-up in basis, which eliminates the deferred gain entirely under current tax law.

Conclusion

Direct indexing provides the structural framework necessary to harvest granular losses within an index, a mechanism that standard pooled funds cannot replicate. However, the strategy requires ongoing administrative management to avoid wash sales across household accounts, introduces higher tracking error relative to the benchmark index, and often carries higher management fees than low-cost ETFs. Whether the tax alpha offsets these costs depends on an investor’s specific income tier, cash flow needs, and broader portfolio composition.

Top Posts
May 19, 2026
5 min read
RSUs: The One Tax Fact That Changes How You Think About Them
April 16, 2026
3 min read
Why Your Charitable Donation Didn’t Lower Your Tax Bill
April 20, 2026
4 min read
Retired but Not Taking RMDs Yet? That’s Your Roth Conversion Window