What Is Tax-Loss Harvesting?

Tax-loss harvesting (TLH) is the practice of selling an investment that has declined in value to realize a capital loss — then using that loss to offset capital gains elsewhere in your portfolio, reducing your tax bill.

The IRS taxes capital gains. But capital losses cancel out those gains. By strategically timing your losses, you reduce what you owe — without meaningfully changing your long-term market exposure.

Critically, you don't have to stay out of the market. After selling the losing position, you immediately buy a similar (but not identical) investment. Your portfolio stays invested. You just captured a tax benefit from the dip.

Simple Example

You bought 20 shares of VOO at $450 each. It's now at $400.

You sell all 20 shares → you realize a $1,000 capital loss ($50 × 20).

Immediately, you buy 20 shares of IVV (an S&P 500 ETF from a different provider) at $400.

Result: You're still 100% invested in the S&P 500. But you now have a $1,000 loss on the books to offset gains elsewhere.

That $1,000 loss can offset $1,000 of capital gains from another sale — meaning you pay zero tax on those gains. At a 20% long-term capital gains rate, that's $200 in your pocket from one trade.

How It Works: Step-by-Step with Examples

Tax-loss harvesting follows a consistent process:

  1. Scan your portfolio for positions currently worth less than what you paid (unrealized losses).
  2. Sell the losing position to realize the loss.
  3. Immediately reinvest in a correlated but distinct security to maintain your market exposure.
  4. Wait 31 days before buying back the original security (to avoid the wash sale rule).
  5. Report the loss on your taxes to offset realized gains.
Full Year Example

January: You sell Apple stock (held 2+ years) for a $6,000 long-term gain.

March: A market correction hits. Your QQQ position is down $4,200 from your cost basis.

You sell QQQ and buy QQQM (nearly identical Nasdaq ETF, different ticker).

Result: $4,200 loss offsets $4,200 of your $6,000 Apple gain. You only owe tax on $1,800 instead of $6,000.

At 20% LTCG rate: you saved $840 in taxes — for two trades that took 5 minutes.

What happens when losses exceed gains?

If your losses exceed your realized gains, you can deduct up to $3,000 against ordinary income per year (federal). Remaining losses carry forward indefinitely into future tax years.

Carryforward Example

You harvest $8,000 in losses. You only have $3,000 in gains that year.

Year 1: $3,000 offsets gains. Remaining $2,000 offsets ordinary income (saving ~$500 at 24% bracket).

Year 2: $3,000 of carryforward offsets your next year's gains automatically.

The $8,000 loss was fully useful — it just took 2 years to deploy it all.

Short-Term vs. Long-Term: Why It Matters

Not all gains — or losses — are equal. The IRS treats them differently based on how long you held the investment.

Holding Period Tax Treatment Rate (2026) When to Prioritize
Under 1 year Short-term capital gain/loss Ordinary income (10–37%) Use to offset short-term gains first
Over 1 year Long-term capital gain/loss 0%, 15%, or 20% Use to offset long-term gains or carryforward

The IRS netting rules apply in a specific order: Short-term losses offset short-term gains first. Long-term losses offset long-term gains first. Only when one bucket has a net loss does it carry over to offset the other type.

This means a short-term loss is often more valuable than a long-term loss — it offsets income taxed at up to 37% rather than the preferential 0–20% LTCG rate. Harvest short-term losses aggressively when you have short-term gains.

Direct Indexing vs. ETF Approach

There are two primary strategies for implementing TLH, and the right one depends on your portfolio size.

ETF Approach (Most Retail Investors)

You hold ETFs and swap between closely correlated funds during market dips. Example pairs:

Sell This Buy This Instead Tracks
VOO IVV or SPLG S&P 500
QQQ QQQM or ONEQ Nasdaq-100
VTI ITOT or SCHB Total US Market
VEA IEFA or SCHF International Developed
BND AGG or SCHZ Total Bond Market

Pros: Works with any portfolio size. Simple to execute. Two trades per harvest event.

Cons: Limited harvesting opportunities — you can only harvest at the ETF level, not individual securities within it.

Direct Indexing (High Net Worth Investors)

Instead of buying an S&P 500 ETF, you buy all 500 individual stocks directly. This lets you harvest losses on individual positions even when the index itself is up.

Direct Indexing Advantage

The S&P 500 is up 8% this year. VOO holders have no losses to harvest.

A direct indexer owns all 500 stocks. 180 of them are down. They harvest losses on those 180 positions individually — offsetting gains from the 320 winners.

Result: TLH benefit even in a bull market.

Pros: Far more harvesting opportunities. Significantly higher annual tax alpha (often 1–2% per year).

Cons: Historically required $250K–$1M+ minimums and 0.2–0.4% AUM fees. Not available to most retail investors.

Tools like WealthPilotOS bring real-time loss scanning to retail investors at zero cost — giving ETF holders the alert infrastructure that used to require a wealth manager.

The Wash Sale Rule (The Rule You Can't Break)

The IRS created the wash sale rule specifically to prevent people from gaming tax-loss harvesting. Violating it doesn't trigger penalties — but it disallows your tax loss entirely. The loss isn't gone; it adjusts your cost basis, but the timing benefit is destroyed.

What triggers a wash sale?

A wash sale occurs when you sell a security at a loss and, within 30 days before or after the sale, you (or your spouse, or any IRA you control) buy the same or "substantially identical" security.

Wash Sale Violations — Common Traps

❌ Selling VOO at a loss and buying it back 20 days later

❌ Selling an ETF and buying its mutual fund equivalent (e.g., Vanguard Admiral shares of the same index)

❌ Selling in a taxable account and buying the same security in your IRA within 30 days

❌ Your spouse selling and you buying the same security in the same 61-day window

The key phrase is "substantially identical." Two ETFs tracking the same index (VOO and IVV both track the S&P 500) are not considered substantially identical by most tax professionals — they have different underlying legal structures, slight tracking differences, and different fund managers. This is the core mechanism that makes ETF-swap TLH work.

Important Disclaimer

The IRS has never formally defined "substantially identical" for ETFs. Most tax attorneys and CPAs treat VOO↔IVV swaps as safe. However, you should consult a tax professional before executing TLH, especially for large positions or complex situations.

The 61-day window

The window is 30 days BEFORE the sale through 30 days AFTER the sale — 61 days total. You cannot buy the original security (or substantially identical one) in this entire period.

After 31 days post-sale, you're free to buy back the original position. Most investors simply stay in the replacement ETF long-term, since the tax-tracking differences between VOO and IVV are negligible over a lifetime of investing.

Common Mistakes Retail Investors Make

1. Harvesting in tax-advantaged accounts

TLH only works in taxable brokerage accounts. Losses in your 401(k), IRA, or Roth IRA do not generate deductible losses. Selling at a loss inside a retirement account has zero tax benefit.

2. Harvesting losses that are too small to matter

Trading costs (even at zero-commission brokers) and the hassle of tracking aren't worth it for a $50 loss. Most practitioners set a minimum threshold of $500–$1,000 in unrealized loss before executing a harvest. Below that, the tax savings are trivial.

3. Forgetting about carryforwards

Many investors harvest losses, get the deduction that year, and forget about it. But if losses exceeded gains, you have a carryforward loss sitting in your tax return. Check Schedule D every April to understand what carryforward capital losses you're sitting on.

4. Harvesting gains when you shouldn't

TLH is about losses, not gains. Some investors confuse it with "tax gain harvesting" — intentionally realizing gains in low-income years to reset cost basis. These are separate strategies. Mixing them up leads to unnecessary tax bills.

5. Ignoring state taxes

Federal TLH math is clear. But nine states have no income tax and don't tax capital gains at all. And some states don't allow the $3,000 ordinary income deduction. TLH math is state-dependent — run the numbers for your state before assuming federal math applies.

6. Waiting for year-end

Amateur investors harvest losses once in December. Professional investors scan for opportunities continuously — because market dips happen throughout the year. A stock might be down 15% in February and up 5% by December. You miss the opportunity if you wait.

Timing Matters

A position drops 12% in March. You could harvest a $2,400 loss.

You wait until December. The position recovered to -3%. Now you can only harvest a $600 loss.

You left $1,800 in harvestable losses on the table by not monitoring continuously.

When Tax-Loss Harvesting Doesn't Help

TLH isn't universally beneficial. Skip it when:

  • You're in the 0% capital gains bracket. If your taxable income is under ~$47,000 (single) or ~$94,000 (married, 2026), you already pay zero on long-term capital gains. Harvesting losses provides no federal benefit.
  • All your assets are in retirement accounts. Losses inside 401(k)s and IRAs are not deductible. TLH only applies to taxable accounts.
  • The position is in your IRA and you want to contribute more. This is a common misunderstanding — IRAs are tax-advantaged differently; TLH doesn't apply.
  • Transaction costs exceed tax savings. Rare with zero-commission brokers today, but worth confirming.
  • You'll trigger a wash sale you can't avoid. If you have automatic dividend reinvestment (DRIP) turned on, dividends can automatically buy shares and trigger a wash sale when you're trying to harvest. Turn off DRIP before harvesting.

How to Get Started

The mechanics are straightforward. The hard part is identifying opportunities as they happen rather than missing them weeks later.

  1. List your taxable brokerage positions and their cost basis (check your broker's cost basis reporting).
  2. Set a loss threshold — most investors use $500–$1,000 minimum unrealized loss before acting.
  3. Identify your swap pairs ahead of time (VOO↔IVV, QQQ↔QQQM, etc.) so you're not scrambling during a dip.
  4. Monitor continuously or use a tool that alerts you when positions cross your loss threshold.
  5. Track your wash sale windows — maintain a 31-day calendar for each harvest to avoid accidental repurchases.
  6. Record everything for taxes — keep a log of harvest date, sale price, purchase price, and the replacement security bought.

See your current TLH opportunities in real time

Connect your brokerage account and WealthPilotOS scans every position automatically. No spreadsheets. No missed opportunities.

Scan My Portfolio Free →