Tax-Loss Harvesting: Turn Investment Losses Into Tax Savings

Learn how tax-loss harvesting works, the wash-sale rule, how to use harvested losses to offset gains and income, and when this strategy makes the most sense.

The InfoNexus Editorial TeamMay 16, 20269 min read

The Strategy That Profits From Paper Losses

In 2022, the S&P 500 fell over 18%. For most investors, that was painful. For tax-aware investors, it was an opportunity worth tens of thousands of dollars. Tax-loss harvesting — strategically selling investments at a loss to generate tax benefits — is one of the few techniques that can turn a portfolio decline into a measurable financial gain. Studies suggest consistent tax-loss harvesting can add 0.5% to 1.5% in after-tax returns annually.

The Mechanics: How It Actually Works

The process involves three steps:

  • Step 1 — Identify: Find investments in your taxable account sitting at a loss relative to your cost basis (what you paid for them).
  • Step 2 — Sell: Realize the loss by selling those securities. This locks in the tax loss on paper into an actual recognized loss.
  • Step 3 — Replace: Immediately reinvest the proceeds into a similar (but not substantially identical) security to maintain your market exposure while the loss is being recognized.

The IRS treats capital losses as first offsetting capital gains of the same type (short-term against short-term, long-term against long-term). After netting gains and losses within each category, net losses can offset gains in the other category. Any remaining net loss offsets up to $3,000 of ordinary income per year. Losses beyond $3,000 carry forward indefinitely to future tax years.

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

Loss TypeHeld Less Than 1 YearHeld More Than 1 Year
What it offsets firstShort-term capital gains (taxed as ordinary income)Long-term capital gains (preferential tax rates)
Tax rate offsetUp to 37% (depending on income bracket)Up to 20% (plus 3.8% NIIT for high earners)
Value of $10,000 lossUp to $3,700 in tax savingsUp to $2,380 in tax savings

Short-term losses are generally more valuable because they offset income taxed at higher ordinary rates. Prioritize harvesting short-term losses against short-term gains whenever possible.

The Wash-Sale Rule: The Critical Restriction

The IRS wash-sale rule prohibits claiming a tax loss if you buy a "substantially identical" security within 30 days before or after the sale — a 61-day window total. This prevents investors from selling an investment purely for the tax loss and immediately buying it back.

Violations of the wash-sale rule don't eliminate the loss — they defer it. The disallowed loss is added to the cost basis of the repurchased security, meaning you'll eventually recognize it when you sell that security. But in the meantime, you lose the current-year tax benefit.

How to Stay Compliant While Maintaining Exposure

  • Sell Vanguard S&P 500 ETF (VOO) and buy iShares S&P 500 ETF (IVV) — different funds tracking the same index are not substantially identical
  • Sell a Total US Market fund and buy an S&P 500 fund — covers approximately the same stocks but is a different fund
  • Sell individual stock and buy a sector ETF — eliminates concentration but maintains sector exposure
  • Wait 31 days and repurchase the original security

Mutual funds from the same family tracking the same index (e.g., two Vanguard S&P 500 funds) could be considered substantially identical. Use different fund families or ETFs vs. mutual funds to be safe.

Tax-Loss Harvesting in Practice: A Scenario

An investor has the following situation in November:

  • Realized short-term gains: $25,000 (from selling appreciated stock earlier in the year)
  • Taxable income bracket: 32%
  • Portfolio holding: Technology ETF purchased for $80,000, now worth $60,000 (a $20,000 unrealized loss)

By selling the technology ETF and purchasing a different-but-similar technology ETF immediately:

  • $20,000 loss offsets $20,000 of short-term gains
  • Tax saving: $20,000 × 32% = $6,400
  • Market exposure maintained through similar fund
  • Cost basis in new fund: $60,000 (the loss is deferred, not eliminated)

When Tax-Loss Harvesting Makes the Most Sense

SituationHigh Value?Reason
High ordinary income year with short-term lossesVery HighMaximum rate offset
Large realized capital gains in same yearVery HighDirect dollar-for-dollar offset
Low income year approachingLowerFuture losses may offset higher-rate gains
Tax-deferred accounts (IRA, 401k)Not ApplicableNo taxable gains or losses in these accounts
Securities held at a gainNot ApplicableCan't harvest gains as losses

Robo-Advisors and Automated Harvesting

Platforms like Betterment, Wealthfront, and Schwab Intelligent Portfolios offer automated daily tax-loss harvesting. Algorithms scan portfolios daily for harvesting opportunities, execute trades, and replace with similar securities — far more frequently than most individuals do manually. For high-net-worth taxable accounts, this automation can add meaningful after-tax value over time.

The limitation: automated systems still require users to avoid wash-sale violations in other accounts (traditional or Roth IRA, 401k) holding the same or substantially identical securities.

Disclaimer: Tax-loss harvesting has specific IRS rules and tax implications that vary by situation. This article is for educational purposes only. Consult a qualified tax professional before implementing any tax strategy.

taxesinvestingtax strategyfinance

Related Articles