Direct Indexing Against a Concentrated Stock Position
By VestedGrant Editorial · Updated · Tax year 2026 · 6 min read
George Inness, Catskill Mountains, 1870 Direct indexing holds an index's stocks individually in a separately managed account, sells holdings that fall below cost to realize losses, and buys similar but not substantially identical stocks to keep tracking the index. The realized losses offset gains from selling a concentrated position; at the 2026 top federal long-term rate of 23.8%, each $10,000 of harvested loss used against gain saves $2,380. The wash-sale rule and higher fees than an index fund are the main constraints.
Facts checked November 21, 2026 · Figures for tax year 2026 · 15 sources
Key takeaways
- Capital losses offset capital gains dollar for dollar, and up to $3,000 of net loss a year offsets ordinary income, with unused losses carried forward.
- The wash-sale rule disallows a loss if substantially identical stock is acquired within 30 days before or after the sale, including purchases inside the investor's IRA or Roth IRA.
- IRS Publication 550 says stock of one corporation is ordinarily not substantially identical to stock of another, which is what lets a direct-indexing manager swap one company for a similar one.
- Harvested losses lower the basis of the indexed account, so much of the benefit is deferral rather than permanent savings, unless the shares are later donated or held until death.
- A $3 million account that harvested $80,000 of losses against $1.8 million of gain in 2026 would save about $19,040 of federal tax at 23.8%, plus about $10,640 for a California resident.
On this page (show sections)
- What does direct indexing actually do?
- How much loss can direct indexing harvest?
- How does the wash-sale rule shape direct indexing?
- How do fees compare with an index fund?
- When does direct indexing fit, and when does it not?
- What other benefits does direct indexing offer?
- What does a direct-indexing plan need to work?
- Questions people ask next
- Sources
Direct indexing holds the individual stocks of an index in a separately managed account instead of owning an index fund. The goal is to match the index’s return closely while realizing losses on individual stocks that fall below their purchase price. Those realized losses offset capital gains elsewhere, most often gains from selling down a concentrated single-stock position.
For a tech employee with a large embedded gain in employer stock, that changes the arithmetic of diversifying. A straight sale taxes the whole gain, at up to 23.8% federal for 2026 plus any state tax. Paired with direct indexing, part of the gain each year is offset by harvested losses. The amount depends on market conditions and the age of the account, so the figures below are illustrations, not forecasts.
This guide covers how direct indexing works, the loss-harvesting arithmetic, the wash-sale rule, fees compared with index funds, and when the approach fits.
What does direct indexing actually do?
A direct-indexed portfolio replicates an index, such as the S&P 500, a total-market index or a custom index, by holding most of its stocks directly. An account of a few million dollars might hold several hundred of the index’s constituents, weighted to keep its returns close to the index.
The account is held at a custodian and run by a direct-indexing manager who handles trading, rebalancing and loss harvesting. Many large brokerage firms and asset managers offer the service.
On any given day, some stocks in the index are up and some are down. When a holding falls a set amount below its cost, the manager sells it to realize the loss and buys a similar stock, for example a competitor in the same industry or a stock with similar characteristics, to keep the portfolio’s overall exposure close to the index. The loss counts for tax purposes, while the account’s market exposure is preserved.
Over a year, harvesting happens continuously. In rising markets there are fewer losing positions, but the natural spread between individual stocks still produces some. In falling or volatile markets there are many more.
How much loss can direct indexing harvest?
The amount harvested varies widely with market conditions and with the account’s age, and providers’ own projections differ. As a planning illustration rather than a forecast, the table shows how harvested losses might vary by market environment for an account recently funded with cash.
| Market environment (illustrative) | Assumed harvested loss in a year |
|---|---|
| Strong rising market | 1% to 2% of account value |
| Moderately rising market | 2% to 3% |
| Flat or mildly falling market | 3% to 5% |
| Sharp decline | 5% or more |
Harvesting declines as an account ages. Every holding that has risen since purchase has less room to fall below cost, so after several years most of the early loss potential has been used. New cash contributions extend it.
Take a hypothetical $3 million account funded with cash that harvests $80,000 of losses in its first year. The same holder sells $2 million of concentrated stock with $1.8 million of gain. The losses reduce taxable gain to $1.72 million. At the 23.8% federal rate, that saves about $19,040 of federal tax; for a California resident, who also pays state tax on capital gains at up to 13.3% (the 2026 top rate), the state saving adds about $10,640.
How does the wash-sale rule shape direct indexing?
The wash-sale rule in IRC Section 1091 disallows a loss on the sale of stock if substantially identical stock is acquired within 30 days before or after the sale. Direct indexing depends on selling a losing stock and replacing it with a similar one without triggering that rule.
“Substantially identical” is a facts-and-circumstances test, but IRS Publication 550 says that stock of one corporation is ordinarily not considered substantially identical to stock of another corporation. Selling one company’s shares at a loss and buying a different company in the same industry generally preserves the loss while keeping the exposure.
Two traps matter most for concentrated holders:
- Buying the concentrated stock elsewhere. A loss sale of employer stock is disallowed if the holder acquires employer stock within the 61-day window in another taxable account or in an IRA or Roth IRA; Rev. Rul. 2008-5 applies the rule to IRA purchases. ESPP purchases and RSU vests near the sale date can also create replacement shares.
- The indexed account holding the employer’s stock. If the index includes the employer, the indexed account could buy shares within 30 days of a loss sale of the concentrated stock. Most providers let the investor exclude specific stocks at account setup.
Excluding the employer’s stock from the indexed account is the usual practice for employees running direct indexing alongside a concentrated sell-down. It also avoids adding to the concentration the account is meant to reduce.
How do fees compare with an index fund?
Direct-indexing managers charge an annual fee, usually a percentage of assets, that is well above the expense ratio of a low-cost index fund or ETF. For most investors, the management fee is the main cost to weigh.
Whether the fee pays for itself depends on how much loss is harvested and whether there are gains to offset. As an illustration, assume direct indexing costs 0.25% a year more than the index fund it replaces:
- On a $3 million account, the extra fee is $7,500 a year.
- If the account harvests $70,000 of losses that offset long-term gains, the federal tax saved at 23.8% is $16,660, and a California resident saves another $9,310 at 13.3%.
- The net benefit in that year is about $9,160 for a federal-only taxpayer and about $18,470 for a California resident.
The benefit shrinks when there are no gains to offset. Losses beyond gains offset only $3,000 of ordinary income a year, with the rest carried forward to future years. It also shrinks as the account ages and harvests fewer losses.
When does direct indexing fit, and when does it not?
Direct indexing tends to fit:
- A concentrated holder with a multi-year plan to sell down the position, where harvested losses offset each year’s gains.
- A high-income household with realized gains from other sources, such as private company exits or real estate sales.
- A long-term investor who values tax efficiency and is comfortable with many line items at tax time.
- A charitably inclined investor. Individual lots with large gains can be donated directly to charity or a donor-advised fund, generally for a deduction at fair market value, subject to the 30% of income limit for appreciated stock given to public charities.
Direct indexing tends not to fit:
- Small accounts, where account minimums and fees outweigh the harvested losses.
- Tax-advantaged accounts such as IRAs and 401(k)s, where realized losses have no tax value.
- Investors with no gains to offset, who can use only $3,000 of net losses a year against ordinary income.
- Investors who expect to hold the account until death. Under IRC Section 1014, heirs take a basis equal to value at death, so lowering the basis through harvesting adds little.
What other benefits does direct indexing offer?
Tax efficiency is the main reason most people use direct indexing, but the structure has other features:
- Customization. Specific stocks or industries, such as the employer, its competitors or holdings the investor wants to avoid for personal reasons, can be excluded while staying close to the index.
- Factor tilts. Some providers can tilt the portfolio toward characteristics such as value or quality, usually at modest added cost.
- Charitable giving. Because every holding is a separate lot, the investor can donate the lots with the largest embedded gains to charity, which avoids tax on those gains and leaves higher-basis lots in the account.
- Transparency. The investor sees every holding and every trade, rather than a single fund line.
For most people, harvested losses remain the main benefit and the others are secondary.
What does a direct-indexing plan need to work?
A workable plan pairs the indexed account with a deliberate schedule for selling the concentrated position, so that harvested losses have gains to offset each year. The calculators section includes tools for modeling after-tax outcomes. The key inputs are the size of the cash available to fund the indexed account, the gain to be realized each year, the expected fee difference compared with an index fund, the holder’s federal and state tax rates, and a list of every account where the employer’s stock or the indexed stocks could be bought, so the wash-sale rule can be managed across all of them.
Questions people ask next
Is direct indexing the same as the tax-loss harvesting robo-advisors offer?
Direct indexing applies the same idea at a finer level. Many automated advisors harvest losses by switching between a handful of similar funds. Direct indexing holds hundreds of individual stocks, so even in a rising market some holdings sit below cost and can be sold for a loss. More holdings mean more harvesting opportunities, at the cost of higher fees and more transactions to report.
Could the IRS challenge direct indexing?
Direct indexing relies on ordinary rules rather than a special exemption. A realized loss stands as long as the manager does not acquire substantially identical stock within 30 days before or after the sale, including in the investor's IRA or Roth IRA. IRS Publication 550 says stock of one corporation is ordinarily not substantially identical to another company's stock, which is the basis for swapping between similar companies.
Can direct indexing be done without a provider?
It is possible to hold a few hundred stocks and harvest losses manually, but tracking lots, cost bases, wash-sale windows across every account and index weights takes considerable time and care. Errors, such as repurchasing a sold stock within 30 days in another account, can disallow losses. Providers charge fees mainly for automating this work every day across the whole portfolio.
What happens to the tax benefit when the direct-indexed holdings are sold?
Each harvested loss lowers the basis of the replacement holdings, so selling the indexed account later produces more gain. The benefit is therefore largely a deferral, worth the time value of the tax postponed and any difference between today's rate and the rate at sale. Holdings donated to charity or kept until death avoid that later gain, which turns the deferral into a permanent saving.
How long does a direct-indexed account keep producing losses?
Harvesting opportunities are usually greatest in the first few years after an account is funded with cash, when many holdings sit near their purchase price. As markets rise, more holdings move well above cost and fewer losses are available. New cash contributions, market declines and periodic dispersion between stocks renew the supply, but older accounts generally produce fewer losses per dollar.
Sources
- IRS Topic no. 409, Capital gains and lossesirs.gov
Supporting text
the amount of the excess loss that you can claim to lower your income is the lesser of $3,000 ($1,500 if married filing separately)
- Rev. Proc. 2025-32irs.gov
Supporting text
Heads of Household $66,200 $579,600 All Other Individuals $49,450 $545,500
- IRS Topic no. 559, Net investment income taxirs.gov
Supporting text
A 3.8 percent net investment income tax (NIIT) applies to individuals, estates, and trusts that have net investment income above applicable threshold amounts.
- 26 U.S.C. 170(b)(1)(C)uscode.house.gov
Supporting text
the total amount of contributions of such property which may be taken into account under subsection (a) for any taxable year shall not exceed 30 percent of the taxpayer's contribution base for such year.
- FTB Tax News October 2026 - 2026 Indexingftb.ca.gov
Supporting text
460,927 768,213 39,951.95 + 11.30% of the amount over 460,927 768,213 & OVER 74,675.27 + 12.30% of the amount over 768,213
- FTB 2025 Form 540 Booklet, Schedule CA line 7aftb.ca.gov
Supporting text
California taxes long and short term capital gains as regular income. No special rate for long term capital gains exists.
- FTB 2025 Schedule P (540)ftb.ca.gov
Supporting text
24 Tentative Minimum Tax. Multiply line 23 by 7.0% (.07)
- California Employer's Guide 2026 (DE 44 Rev. 52)edd.ca.gov
Supporting text
Supplemental Wages Percentage Bonuses and stock options 10.23 percent (.1023) Other types (such as overtime pay, commissions, sales awards, severance, and vacation pay) 6.6 percent (.066)
Show 7 more sources
- FTB 2025 Instructions for Schedule D (540), California Capital Gain or Loss Adjustmentftb.ca.gov
Supporting text
Qualified Small Business Stock – California does not conform to the qualified small business stock deferral and gain exclusion under IRC Sections 1045 and 1202. Enter the entire gain realized in column (e).
- FTB 2026 Instructions for Form 540-ES, Behavioral Health Services Taxftb.ca.gov
Supporting text
Less: $(1,000,000) Subtotal Tax rate – 1%: × .01 Behavioral Health Services Tax
- 26 U.S.C. § 1091 (Loss from wash sales of stock or securities)uscode.house.gov
Supporting text
within a period beginning 30 days before the date of such sale or disposition and ending 30 days after such date, the taxpayer has acquired
- IRS Rev. Rul. 2008-5 (Internal Revenue Bulletin 2008-3)irs.gov
Supporting text
if an individual sells stock or securities for a loss and causes his or her IRA or Roth IRA to purchase substantially identical stock or securities within a specified period
- IRS Publication 550, Investment Income and Expenses (substantially identical)irs.gov
Supporting text
Ordinarily, stocks or securities of one corporation are not considered substantially identical to stocks or securities of another corporation.
- 26 U.S.C. § 1212 (Capital loss carrybacks and carryovers)uscode.house.gov
Supporting text
the excess of the net long-term capital loss over the net short-term capital gain for such year shall be a long-term capital loss in the succeeding taxable year
- 26 U.S.C. § 1014 (Basis of property acquired from a decedent)uscode.house.gov
Supporting text
the fair market value of the property at the date of the decedent’s death
Facts checked November 21, 2026 · Tax year 2026
Find a fee-only advisor for your equity
Four questions. You see up to three fee-only advisors listed on Wellspent whose records include equity compensation, right here. Free, no obligation.
- What happens next: your matches appear on this page straight away. Advisors are not sent your details: you open a record and contact the advisor yourself.
- What is shared: your email stays with VestedGrant and is not passed to advisors. The advisor directory (Wellspent) receives your state and topic; an AI model ranks the matches from your answers, without your email. Details in the privacy policy.
Finding fee-only advisors for your answers…
Three advisors picked for your situation
Each is a fee-only advisor listed on Wellspent whose record includes equity compensation. Open a record to see how they work and to contact them directly. No referral fees either way.
No advisor matched those details yet
Try again with "Other / outside the US" as the state, or browse equity-compensation advisors on Wellspent.