Tax-Loss Harvesting Explained: Save Money on Your Investment Taxes
Investing

Tax-Loss Harvesting Explained: Save Money on Your Investment Taxes

By David Chen|March 16, 2026|7 min read

Tax-Loss Harvesting Explained: Save Money on Your Investment Taxes

Nobody likes paying more taxes than they have to, especially on their investments. Yet every year, millions of investors leave money on the table by ignoring one of the most powerful (and perfectly legal) strategies available: tax-loss harvesting.

If you've ever sold an investment at a loss and felt bad about it, here's the silver lining. That loss can actually put money back in your pocket at tax time. Let's break down exactly how it works, walk through a real-numbers example, and cover the rules you need to know.

What Is Tax-Loss Harvesting?

Tax-loss harvesting (TLH) is the practice of selling investments that have dropped in value to realize a capital loss. You then use that loss to offset capital gains you've earned elsewhere in your portfolio, reducing your overall tax bill.

Here's the key insight: you don't have to sit on the sidelines after selling. You can immediately reinvest the proceeds into a similar (but not identical) investment, keeping your portfolio strategy on track while locking in the tax benefit.

Think of it as turning lemons into lemonade. The market gave you a loss, and the tax code lets you use it.

A Step-by-Step Example With Real Numbers

Let's say you're in the 24% federal tax bracket and you have the following situation in your taxable brokerage account this year:

  1. You sold Fund A for a $10,000 gain. Without any offsetting losses, you'd owe $1,500 in long-term capital gains tax (at the 15% rate) or $2,400 in short-term capital gains tax (at your 24% ordinary income rate).

  2. Fund B is currently down $8,000 from what you paid for it. You still believe in the broader market, but this particular fund has underperformed.

Here's where TLH comes in:

  • Step 1: Sell Fund B, realizing the $8,000 loss.
  • Step 2: Immediately buy a similar but not identical fund (for example, if Fund B tracked the S&P 500, you could buy a fund tracking the total U.S. stock market).
  • Step 3: At tax time, use the $8,000 loss to offset your $10,000 gain.

The result: Instead of paying taxes on $10,000 in gains, you only pay taxes on $2,000 ($10,000 - $8,000). If those were long-term gains, your tax bill drops from $1,500 to just $300. That's $1,200 back in your pocket from a single harvest.

And your portfolio? It's still fully invested in a diversified U.S. stock fund. You didn't miss a beat.

The $3,000 Deduction Against Ordinary Income

What happens if your losses exceed your gains? This is where TLH gets even more interesting.

If you have more capital losses than capital gains in a given year, you can deduct up to $3,000 of the excess losses against your ordinary income ($1,500 if married filing separately). Any remaining losses carry forward to future tax years indefinitely.

Here's why that matters: Ordinary income is typically taxed at a higher rate than capital gains. If you're in the 24% bracket, that $3,000 deduction saves you $720 in taxes, compared to $450 if it were only offsetting long-term capital gains.

Example: You have $5,000 in capital losses and $0 in capital gains this year. You can deduct $3,000 against your salary income and carry the remaining $2,000 forward to offset gains next year. Nothing is wasted.

The Wash Sale Rule: The One Rule You Cannot Break

The IRS isn't going to let you sell a fund, claim the loss, and buy the exact same thing right back. That's where the wash sale rule comes in, and it's the most important rule in tax-loss harvesting.

How It Works

The wash sale rule says that if you sell an investment at a loss and buy a "substantially identical" security within 30 days before or after the sale, the loss is disallowed. That means you can't claim it on your taxes.

The 30-day window works in both directions, creating a 61-day total window (30 days before, the sale date, and 30 days after) where you need to avoid repurchasing the same security.

What Counts as "Substantially Identical"

This is where it gets nuanced:

  • Definitely triggers a wash sale: Selling shares of Vanguard S&P 500 ETF (VOO) and buying them back within 30 days.
  • Also triggers it: Buying the same security in a different account, including your IRA or your spouse's account.
  • Generally safe: Selling an S&P 500 index fund and buying a total stock market index fund. They're similar but not substantially identical.

How to Navigate It

The simplest approach is to swap into a comparable but different fund when you harvest losses. Sell your large-cap growth fund and buy a different large-cap growth fund from another provider. Wait at least 31 days if you want to switch back to your original holding.

Automated Tax-Loss Harvesting Through Robo-Advisors

If all of this sounds like a lot to keep track of, you're right. The good news is that robo-advisors have made tax-loss harvesting accessible to everyday investors.

Services like Wealthfront, Betterment, and Schwab Intelligent Portfolios automatically monitor your portfolio daily for TLH opportunities. They handle the selling, the replacement purchases, and the wash sale rule tracking for you.

Studies from these platforms suggest that automated TLH can add 0.5% to 1.5% in after-tax returns annually, depending on your tax bracket, portfolio size, and market volatility. On a $200,000 portfolio, that could mean $1,000 to $3,000 in tax savings per year without lifting a finger.

Even if you prefer managing your own investments, it's worth considering a robo-advisor for your taxable account specifically because of this feature.

Who Benefits Most From Tax-Loss Harvesting?

TLH isn't equally valuable for everyone. You'll get the most benefit if you:

  • Have a taxable brokerage account. TLH only works in taxable accounts, not in IRAs or 401(k)s, because those accounts are already tax-advantaged.
  • Are in a higher tax bracket. The higher your rate, the more each dollar of harvested loss saves you. Someone in the 32% bracket saves roughly twice as much as someone in the 12% bracket.
  • Have significant capital gains to offset. If you've sold property, stock options, or other appreciated assets, TLH can shield some of those gains from tax.
  • Invest in broad index funds or ETFs. These make it easy to find "similar but not identical" replacement funds.
  • Have a long time horizon. TLH is most powerful when losses are harvested early and allowed to compound through deferred taxes over many years.

On the other hand, TLH may not move the needle much if you're in a low tax bracket, only invest inside retirement accounts, or have a very small portfolio.

Common Mistakes to Avoid

  • Forgetting the wash sale rule across accounts. Buying the same fund in your IRA within 30 days of selling it in your taxable account still triggers a wash sale.
  • Letting the tax tail wag the investment dog. Never sell a great investment solely for a small tax benefit if it derails your long-term strategy.
  • Ignoring state taxes. Most states follow federal capital gains rules, so your TLH savings may be even larger than you think.
  • Not tracking your cost basis. Make sure your brokerage is set to the correct cost basis method (specific identification gives you the most control) so you know which lots to sell.

The Bottom Line

Tax-loss harvesting is one of the few strategies that genuinely creates value from the inevitable ups and downs of the market. You're not changing your investment approach or taking on more risk. You're simply being smart about when you realize losses and using the tax code to your advantage.

Your action step: Log into your taxable brokerage account this week and look for any positions that are currently in the red. If you find losses worth harvesting, identify a suitable replacement fund, execute the swap, and make a note to track the 30-day wash sale window. If you'd rather automate the process, explore a robo-advisor that offers built-in TLH. Either way, stop leaving money on the table.

Tags

tax-loss harvestinginvestment taxescapital gainstax strategy