Tax-loss harvesting means selling an investment that has dropped below what you paid, using that loss to offset capital gains elsewhere, and reinvesting right away in a similar holding so your market exposure doesn't change. Done systematically, it turns ordinary market volatility into a lower tax bill. Done through direct indexing, it becomes one of the most useful tools in high-net-worth tax planning. This guide covers the rules, the year-end deadline, when to harvest gains instead, and how direct indexing scales the strategy.

The Mechanics: What Tax Loss Harvesting Actually Does

When you sell an investment for less than its cost basis, you realize a capital loss, and the IRS lets that loss offset capital gains dollar for dollar. Losses first offset gains of the same type (short-term against short-term, long-term against long-term), and any remainder then offsets the other type. If $50,000 of harvested losses meets $50,000 of gains from a property sale or a concentrated stock position, the federal tax on those gains is gone for the year. If losses exceed gains, up to $3,000 ($1,500 if married filing separately) can offset ordinary income, and the rest carries forward indefinitely, keeping its short- or long-term character.

The key constraint is the wash-sale rule: if you buy the same security, or a "substantially identical" one, within 30 days before or after the sale, the loss is disallowed. That makes a 61-day window around every harvest. The rule reaches beyond the account you sold from: purchases in your IRA or Roth IRA, purchases by your spouse, and automatic dividend reinvestments all count. In practice you sell the losing position, immediately buy a correlated but not identical substitute, and wait at least 31 days before moving back to the original holding, if you want to at all.

For an investor holding individual stocks, this is straightforward. Sold Apple at a loss? Buy Microsoft or a broad tech ETF for the 30-day window. The complication arises with mutual funds and ETFs: if you own an S&P 500 index fund, selling it to harvest a loss means finding a substitute index that is similar enough to maintain exposure but different enough to avoid wash-sale status. Two nearly identical S&P 500 funds from different providers generally satisfy the rule; two funds tracking the exact same index from the same provider do not.

0.5–1.5%
Estimated annual after-tax alpha from standard TLH in volatile markets
$3,000
Annual limit for applying excess losses against ordinary income (unlimited carryforward)

Tax-Loss Harvesting Rules at a Glance

  • Netting order. Short-term losses offset short-term gains first and long-term losses offset long-term gains first; any net loss then crosses over to the other type.
  • Annual limit against income. Up to $3,000 of net capital loss ($1,500 married filing separately) can offset ordinary income each year.
  • Carryforward. Unused federal losses carry forward indefinitely. Losses still unused at death can be used on the final return but do not pass to heirs.
  • Wash-sale window. No purchase of the same or a substantially identical security from 30 days before to 30 days after the sale, across all your accounts and your spouse's.
  • IRA purchases are the costly mistake. A wash sale triggered outside an IRA defers the loss by adding it to the replacement shares' basis. A replacement bought inside an IRA or Roth IRA disallows the loss permanently.
  • Specific-lot identification. If you bought a position at different times, tell your custodian which lots to sell, usually the highest-cost ones, at the time of the trade. Many custodians otherwise default to first-in, first-out, which often sells your cheapest shares.
  • Deadline. A loss counts in the year the trade executes, not when it settles. For 2026, the sale has to execute by the close of trading on Thursday, December 31.

The IRS has never published a precise definition of "substantially identical." Swapping one company's stock for a different company in the same industry, or an S&P 500 fund for a total-market fund, is common practice. Swapping between two share classes of the same fund is not. Read the rules in IRS Publication 550, and when the replacement is close, ask your tax advisor before you trade.

The Problem with Fund-Based Portfolios

Owning a portfolio of mutual funds or ETFs severely limits tax loss harvesting opportunities. When the broad market declines, all of your funds likely decline together — you can harvest a loss on one and swap to a similar fund, but the opportunity is limited and coarse. More importantly, within the fund, individual stocks are moving in many directions. On any given day, even in an up-market, dozens of individual securities within an index may be down 10%, 20%, or more. A fund investor sees none of those opportunities — the losses inside the fund are invisible and unharvested.

But the tax problem with funds runs deeper than missed harvesting opportunities. Mutual funds are required by law to distribute realized capital gains to shareholders annually — and you receive those distributions regardless of whether the fund produced a positive return in that year. A fund manager who sold appreciated positions to rebalance, respond to redemptions, or pursue new opportunities triggers taxable events inside the fund. Those gains flow through to every shareholder as a year-end capital gains distribution, generating a tax bill even for investors who never sold a single share and may actually be sitting on an unrealized loss in the fund itself.

As T. Rowe Price explains, "it is possible for a fund to distribute net gains, even in a year when the portfolio declines in value overall." The investor who bought in at the beginning of a bad year can end the year with a lower account value and a capital gains tax bill — a doubly punishing outcome that direct indexing eliminates entirely, since you control every individual sale decision.

This is the core insight behind direct indexing: owning the individual securities gives you visibility and control over each position, which means you can harvest losses at the security level rather than only at the fund level — and you never receive an unwanted gain distribution because a portfolio manager made a trading decision you didn't authorize.

"Inside any index, on any given day, dozens of stocks are down double digits — even in an up-market. Fund investors see none of those harvesting opportunities. Direct indexing makes every one of them accessible."

Direct Indexing: Systematic Harvesting at Scale

Direct indexing means owning the individual securities that comprise a benchmark index — rather than buying a fund that holds them. A direct index replicating the S&P 500, for example, holds some or all of the 500 underlying stocks in their index weights, directly in the investor's taxable account.

The harvesting advantage is significant. With 500 individual positions, it is virtually certain that at any given point, a meaningful number of them have declined from their cost basis. A direct indexing manager monitors every position daily — often continuously — and harvests losses as they appear, immediately replacing each sold position with a correlated substitute to maintain index-like exposure while satisfying the wash-sale rule.

Over time, this generates a steady stream of realized losses that can offset gains elsewhere. For an investor regularly realizing capital gains — through business sales, real estate transactions, concentrated stock liquidations, or active management in other accounts — this loss generation is extraordinarily valuable. The harvested losses in the direct index function as a tax offset engine, running continuously in the background.

What Direct Indexing Is Not

Direct indexing is not active management. The goal is not to select better stocks — it is to hold the index while systematically harvesting the tax benefits that fund ownership prevents. Tracking error relative to the benchmark is intentionally kept small. The investment thesis is market exposure; the value-add is purely in the tax dimension.

Direct indexing also enables personalization beyond tax: you can exclude specific securities (a company you work for, a sector you're overexposed to elsewhere, or holdings that conflict with personal values) without abandoning the index strategy. This flexibility is not possible inside a fund.

Why Harvesting Slows Down Over Time

A new direct index harvests heavily in its first few years, because every position starts at today's price and any decline produces a loss. In a rising market, most lots eventually sit well above their cost basis, and new losses become scarce unless fresh cash is added. Harvesting also lowers your basis as it goes, so the portfolio builds an embedded gain over time. That gain is deferred, not forgiven: it is eliminated only if the shares are donated to charity or held until death, when heirs generally receive a step-up in basis on each lot. A good direct indexing plan accounts for this from the start, including how and when the portfolio will eventually be gifted, unwound or left to heirs.

Harvesting Potential: Fund vs. Direct Index
Approach
Annual Harvest Opportunities
Est. Annual Tax Alpha
Customization
Mutual Fund / ETF
Limited to fund-level moves
0–0.3%
None
Direct Index (Long-Only)
Daily, security-level
0.5–1.5%
Exclusions, tilts
Long/Short Direct Index
Both sides, amplified
Higher; varies widely
Full
Tax alpha ranges are illustrative estimates based on industry research and tend to be highest in a portfolio's early years. Actual results depend on market conditions, portfolio size, turnover, cash flows, and individual tax circumstances. Not a guarantee of future results.

Long/Short Direct Indexing: The Advanced Strategy

Standard direct indexing can only harvest from the long side: a loss exists only when a stock you own falls below its cost. Once the portfolio has risen for a few years, those opportunities thin out.

Long/short direct indexing adds a book of short positions, often in a 130/30 structure or a more leveraged one. The short side creates a second source of losses. A long position produces a harvestable loss when its price falls; a short position produces one when its price rises. With both books in place, almost any market move leaves some positions under water and available to harvest.

The manager closes losing positions on either side, replaces them with similar exposure, and lets winning positions run, which defers those gains. Net market exposure stays close to the benchmark (130% long minus 30% short is 100% net), so the portfolio still behaves broadly like the index while realizing far more losses than a long-only account. The trade-offs are margin, borrowing costs, higher fees, and a growing deferred gain that eventually needs a plan: gifting, a step-up at death, or a deliberate unwind.

Long-Only Direct Indexing
Best for: Taxable accounts with $250K–$2M; ongoing capital gains to offset
The portfolio holds individual securities in index-like weights. Daily monitoring identifies positions that have declined from cost basis and harvests those losses, immediately substituting correlated replacements to maintain market exposure. Best suited for investors with existing capital gains (business sales, real estate, concentrated positions) who need a steady source of realized losses. Minimum account sizes typically begin around $250,000–$500,000, where the number of positions is large enough to generate meaningful harvesting opportunities.
Long/Short Direct Indexing
Best for: Portfolios of $1M+; investors with large, recurring gain events
Adds a short book alongside the long direct index, dramatically expanding the universe of harvesting opportunities. Because losses can be generated from both rising and falling individual securities (via short positions), total annual loss realization is substantially higher. This approach requires margin capability and is typically appropriate for investors with $1M or more in taxable assets who face significant recurring capital gains — such as business owners, executives with large equity compensation, or investors actively liquidating a concentrated position over time. The net market exposure remains broadly index-like despite the added complexity.

At the most aggressive end of the spectrum, providers like BlackRock's Aperio offer leveraged long/short structures — such as a 200/100 portfolio (200% long exposure, 100% short) — that can realize losses equal to a large share of portfolio value in the early years. This creates an extraordinary pool of harvestable losses that an investor can deploy against capital gains from business sales, concentrated position liquidations, or other large taxable events. These structures are typically reserved for ultra-high-net-worth investors with multi-million-dollar taxable portfolios and significant, recurring gain events to offset. Learn more about Aperio's long/short approach →

Who Benefits Most — and Minimum Scale Requirements

Tax loss harvesting delivers maximum value to investors in high tax brackets with ongoing capital gains events. The math is straightforward: if you're in the 37% ordinary income bracket and the 20% long-term capital gains bracket (plus the 3.8% net investment income tax), every dollar of harvested loss used against long-term gains saves 23.8 cents of federal tax, and every dollar used against short-term gains saves up to 40.8 cents (37% plus 3.8%). Only $3,000 a year can offset ordinary income. The benefit depends heavily on your tax rate, which is also why harvesting can be worth nothing in a low-income year (see below).

  • Business owners and executives with equity compensation (RSUs, options) who regularly generate short-term gains are among the highest-value candidates. Losses from a young direct index are mostly short-term, and they offset short-term gains first, which are taxed at ordinary rates.
  • Investors with concentrated positions looking to diversify gradually find direct indexing losses invaluable: each tranche of concentrated stock sold generates capital gains that the direct index can systematically offset.
  • Real estate investors who periodically sell appreciated properties face large one-time gain events that a standing loss carryforward from direct indexing can significantly defray.
  • Retirees in the conversion corridor (ages 60–73) doing Roth conversions can use harvested losses to absorb the gains from rebalancing or raising cash in a conversion year, so more of their bracket room goes to the conversion itself. Only $3,000 of net loss offsets the conversion income directly.

Direct indexing requires a meaningful account size because the benefit scales with the number of individual positions — you need enough securities to generate harvesting opportunities and maintain index-like diversification simultaneously. Most programs begin at $250,000–$500,000 for long-only direct indexing; long/short strategies generally require $1M or more. Below those thresholds, the harvesting math doesn't justify the additional complexity and cost relative to simply using ETF pairs for basic loss swaps.

Year-End Tax-Loss Harvesting Checklist

Most harvesting happens in November and December, when the year's gains are mostly known. Work through these before the last trading day:

  • Total your realized gains so far, including mutual fund capital gain distributions. Most funds pay them in December and post estimates in November.
  • Check last year's return for carryforward losses (Schedule D) before harvesting more than you need.
  • Match losses to the gains you actually have. Short-term losses are most valuable against short-term gains.
  • Turn off dividend reinvestment and automatic purchases in the same securities across every household account, including IRAs and your spouse's accounts, for the 30 days on either side of each sale.
  • Choose replacement holdings in advance so you stay invested through the wash-sale window.
  • Sell losing positions and donate winning ones. Give appreciated shares to charity or a donor-advised fund instead of selling them, and never donate shares that are below cost: sell those, take the loss, and donate the cash.
  • Avoid buying a mutual fund in early December in a taxable account, just before its distribution. You would owe tax on gains you didn't earn.
  • Pennsylvania residents: harvest with this year's gains in mind, since Pennsylvania losses cannot carry forward (see the worked example below).
  • Trade by December 31, 2026. The trade date controls, but leave a few days so you aren't trading illiquid positions on the last afternoon of the year.

When to Harvest Gains Instead of Losses

In a low-income year, the better move is often the opposite one. For 2026, long-term capital gains are taxed at a 0% federal rate for married couples with taxable income up to $98,900 ($49,450 for single filers). Retirees who haven't started Social Security or required minimum distributions, business owners in a slow year, and anyone between jobs can sell appreciated positions in that range, buy them right back (the wash-sale rule applies only to losses), and reset their cost basis higher at no federal tax.

Harvesting losses in that same year can waste them: a loss used against gains that would have been taxed at 0% saves nothing federally. Gain harvesting has its own cautions. The gain raises your adjusted gross income, which can affect Medicare IRMAA surcharges two years later, ACA premium credits, and how much of your Social Security is taxed. Pennsylvania still taxes the gain at 3.07%. See our 2026 tax planning thresholds for the full set of numbers.

The Tax Drag Problem: What You're Paying Without Knowing It

Tax drag is the performance penalty that taxable investors pay each year through dividends, interest, and realized gains inside their portfolios. It is often invisible — it doesn't show up as a line item on a statement — but it compounds meaningfully over time. A portfolio with 1% of annual tax drag over 20 years at a 7% gross return ends with roughly 17% less wealth than the same portfolio managed to minimize drag. That is not a rounding error; it is a structural disadvantage that accumulates silently.

Tax loss harvesting, and direct indexing specifically, is one of the most effective tools to reduce this drag. The losses generated offset taxable distributions and rebalancing gains, deferring the tax and, in many cases, eliminating it permanently through the step-up in basis at death or charitable gifts of appreciated shares.

Estimate Your Portfolio's Annual Tax Drag

Our Tax Drag Estimator shows you how much your taxable account is losing to taxes each year — and what systematic harvesting could recover. It takes under two minutes.

Open the Tax Drag Estimator

Worked example: a Pennsylvania investor

A Pennsylvania investor holds a $2,000,000 direct-indexed portfolio. The index finishes the year roughly flat, but individual stocks move in both directions, and systematic harvesting captures $120,000 of losses. The same year, the investor trims a concentrated stock position, realizing $120,000 of long-term gains.

Amount
Gains offset by harvested losses$120,000
Federal tax avoided this year (20% + 3.8% NIIT)$28,560
Pennsylvania tax avoided this year (3.07%)$3,684

Two details make Pennsylvania different. First, Pennsylvania has no capital loss carryforward: a net loss that is not used against gains in the same year is lost for state purposes, so harvesting is most valuable in a year when you also realize gains. Federal losses, by contrast, carry forward indefinitely and can offset up to $3,000 of ordinary income a year. Second, harvesting lowers your cost basis, so the tax is often deferred rather than erased, unless the shares are later donated or held until death.

Hypothetical and simplified for illustration; actual harvesting results vary with market conditions and are not guaranteed. Wash-sale rules apply.

The Rubiq Approach to Tax-Efficient Investing

At Rubiq, we view tax management as an integral part of investment management — not an afterthought. For clients in high tax brackets with substantial taxable assets, we evaluate direct indexing as part of the portfolio architecture from the outset, not as an add-on considered after the fact.

Our process begins with an analysis of your complete tax picture: current marginal rates, the nature and timing of anticipated capital gains events, existing loss carryforwards, and the composition of assets across taxable and tax-advantaged accounts. We then model the expected annual loss generation under both long-only and long/short direct indexing approaches to quantify the benefit before recommending a strategy.

To identify tax drag and surface multi-year harvesting opportunities systematically, we use Holistiplan — a professional tax planning platform that pulls directly from a client's tax return to map bracket utilization, projected future liability, and the magnitude of unrealized gains and losses across accounts. Rather than working from a one-year snapshot, Holistiplan allows us to model harvesting and conversion strategies across multi-year cycles, identifying the optimal sequencing of loss realization relative to anticipated income events.

For clients approaching or in retirement, the tax picture intersects directly with withdrawal strategy and Medicare costs. We use IncomeLab to model the tax and IRMAA impact of different withdrawal sequences — quantifying exactly how much each incremental dollar of income costs in both federal tax and Medicare premium surcharges before any distribution is taken. This is particularly valuable for retirees managing Roth conversions, required minimum distributions, and harvesting simultaneously, where the interaction effects are substantial and a change in sequencing can save tens of thousands of dollars.

For clients with concentrated stock positions, we pair direct indexing with a systematic diversification plan — using the loss stream from the direct index to fund gradual liquidation of the concentrated holding without triggering a large tax bill in any single year. This coordination between tax loss harvesting, portfolio rebalancing, and concentrated position management is where the real compounding value lies.

The result, over a full market cycle, is a portfolio that tracks its benchmark closely on a pre-tax basis while generating meaningfully better outcomes on an after-tax basis — the only number that actually matters.

Tax-Loss Harvesting FAQ

What is the deadline for tax-loss harvesting in 2026?

A loss counts in the year the sale executes, not when it settles. For 2026, the trade must execute by the close of trading on Thursday, December 31, 2026. Leave a few days of cushion for less liquid positions.

Can I buy the same stock back after harvesting a loss?

Yes, if you wait at least 31 days. Buying the same or a substantially identical security within 30 days before or after the sale triggers the wash-sale rule and disallows the loss. To stay invested in the meantime, buy a similar but not identical holding, such as another company in the same industry or a fund that tracks a different index.

Does the wash-sale rule apply to my IRA or my spouse's account?

Yes. A purchase of the same security in your IRA or Roth IRA, or by your spouse, within the 61-day window counts as a wash sale. When the replacement is bought inside an IRA, the loss is disallowed permanently rather than added to the new shares' basis.

How much of a capital loss can I deduct in one year?

Capital losses offset capital gains without limit. If losses exceed gains, up to $3,000 of the net loss ($1,500 if married filing separately) can offset ordinary income each year, and the remainder carries forward to future years for federal purposes.

Do capital loss carryforwards expire?

Federal capital loss carryforwards do not expire during your lifetime, but any loss still unused at death can be used only on the final income tax return and does not pass to heirs. Pennsylvania does not allow capital losses to carry forward at all.

Do heirs get a step-up in basis on every lot in a direct-indexing account?

Generally yes. At death, each lot in a taxable account generally steps up to its market value, which erases the deferred gain built up by years of harvesting. Unused capital loss carryforwards, however, die with the account owner.

What is specific-lot identification and why does it matter for harvesting?

Specific-lot identification lets you choose which purchase lots you sell, typically the ones with the highest cost basis, to realize the largest loss or smallest gain. You have to designate the lots at the time of the trade. Many custodians otherwise default to first-in, first-out, which often sells the lowest-basis shares.

When should I harvest gains instead of losses?

In a year when your taxable income falls within the 0% long-term capital gains bracket (up to $98,900 for married couples filing jointly in 2026), selling appreciated positions and buying them back resets your cost basis higher with no federal tax. Harvesting losses that year can waste them, since they would offset gains taxed at 0%.

What is direct indexing and how does it improve tax-loss harvesting?

Direct indexing owns the individual stocks in an index instead of a fund that holds them. Because each stock has its own cost basis, losses can be harvested on individual positions even when the overall index is up. The benefit is largest in the early years and for investors with recurring capital gains to offset.

What is long/short direct indexing?

Long/short direct indexing adds short positions to a long direct index, often in a 130/30 or more leveraged structure. Long positions produce harvestable losses when prices fall and short positions produce them when prices rise, so the strategy can keep realizing losses in markets where a long-only account would run dry. It requires margin and carries higher costs, and it suits investors with large taxable portfolios and recurring gains.