Tax-Loss Harvesting: Turn Losing Investments Into Tax Savings

You work hard to grow your investments, so watching a position drop in value stings. But here is something most casual investors never think about: that losing position has real monetary value you can capture right now, before you ever sell at a profit elsewhere.

woman doing taxes

Tax-loss harvesting is a strategy that lets you sell investments at a loss to offset capital gains taxes you owe on your winners. Done correctly, it can save you thousands of dollars in a single tax year without meaningfully changing your portfolio’s long-term direction.

In this guide, you will learn exactly how the strategy works, the rules you cannot afford to ignore, and whether it actually makes sense for your situation.

What Is Tax-Loss Harvesting?

Tax-loss harvesting is the practice of selling an investment that has lost value to generate a realized capital loss, then using that loss to reduce your taxable capital gains. The IRS allows investors to subtract investment losses from investment gains before calculating what they owe, which directly lowers your tax bill.

It is worth being clear about one thing upfront: tax-loss harvesting does not make your losses disappear or permanently eliminate taxes. It defers them.

When you eventually sell the replacement investment you buy after harvesting, you will owe taxes on a larger gain because your cost basis is lower. The benefit is that you hold onto that tax money longer and potentially pay it at a lower rate in the future.

A Quick Example of Tax-Loss Harvesting in Action

Say you sell Stock A for a $5,000 gain and Stock B for a $3,000 loss in the same tax year. Without harvesting, you owe taxes on the full $5,000 gain. With harvesting, you only owe taxes on $2,000. At a 15% long-term capital gains rate, that is $450 you keep.

If your losses exceed your gains, you can also use up to $3,000 of the remaining loss to offset ordinary income. Anything beyond that carries forward to future tax years indefinitely.

How Tax-Loss Harvesting Works Step by Step

The mechanics are straightforward, but the details matter. Each step below has a specific implication for how much benefit you actually capture.

Step 1: Identify Losing Positions in Taxable Accounts

Tax-loss harvesting only works in taxable brokerage accounts. You cannot use it in tax-advantaged accounts like a 401(k) or IRA because those accounts do not generate taxable gains or losses in the first place. Look for positions where your current market value is below what you originally paid (your cost basis).

Step 2: Sell the Losing Asset and Classify the Loss

When you sell, the IRS classifies your loss as either short-term (held less than one year) or long-term (held more than one year). This matters because short-term losses first offset short-term gains, which are taxed at your ordinary income rate.

Long-term losses first offset long-term gains. Short-term losses tend to deliver more tax relief because ordinary income rates are higher than capital gains rates for most investors.

Step 3: Apply the Loss to Offset Gains

The IRS requires a specific order for applying losses. Short-term losses offset short-term gains first, and long-term losses offset long-term gains first. Any excess can cross over. If your total losses still exceed your total gains, you can apply up to $3,000 to reduce ordinary income, with the remainder carried forward to future years.

Step 4: Reinvest to Stay in the Market

After selling, most investors immediately reinvest in a similar asset to maintain market exposure. This is not optional if you want the strategy to work long-term. Sitting in cash for 31 days while waiting to repurchase your original holding means missing potential gains. The key is choosing a replacement that is similar but not substantially identical, which leads directly to the most important rule in tax-loss harvesting.

The Wash Sale Rule: The Mistake That Cancels Your Tax Benefit

The wash sale rule is the one rule that trips up most investors. If you sell a security at a loss and buy a “substantially identical” security within 30 days before or after the sale, the IRS disallows the loss entirely. It gets added back to the cost basis of your new position, so you do not lose it permanently, but you lose the current-year tax benefit.

What counts as substantially identical is narrower than most people assume. The same stock or the same mutual fund clearly qualifies. However, two different ETFs that track the same index but are issued by different providers generally do not, which is why many investors swap, for example, from one S&P 500 ETF to a comparable one from a different issuer. The 31-day window passes, the loss is preserved, and the portfolio stays fully invested.

Short-Term vs. Long-Term Losses: Why the Type of Loss Matters

Not all harvested losses deliver equal value. A short-term capital loss offsets a short-term capital gain, which is taxed as ordinary income. Depending on your bracket, that rate can be as high as 37%. A long-term capital loss offsets a long-term capital gain taxed at 0%, 15%, or 20%.

That means a $10,000 short-term loss can be worth up to $3,700 in tax savings for a high earner, while the same $10,000 long-term loss might only save $2,000. The type of loss you harvest is not something you always control, but it is worth factoring in when prioritizing which positions to sell.

Here are the 2026 long-term capital gains tax rates by income for reference:

  • 0%: Single filers with taxable income up to $49,450; married filing jointly up to $98,900
  • 15%: Single filers with taxable income from $49,451 to $566,700; married filing jointly up to $566,700
  • 20%: Single filers and married filers with taxable income above those thresholds

Who Benefits Most From Tax-Loss Harvesting

The strategy delivers the most value to specific types of investors. Before spending time on it, it helps to know whether you are likely to see a meaningful return.

Tax-loss harvesting tends to benefit investors who fit these profiles:

  • High earners: Those in the 22% bracket or above get the most mileage from offsetting gains, especially short-term ones.
  • Active rebalancers: Investors who regularly rebalance a taxable portfolio generate more opportunities to harvest losses along the way.
  • Investors with large realized gains: If you sold a business, property, or concentrated stock position, harvesting losses in your portfolio can directly offset that event.

Who Probably Should Not Bother

Tax-loss harvesting is not worth the effort for everyone. If your taxable income falls at or below $49,450 as a single filer (or $98,900 for married filing jointly), you fall into the 0% capital gains bracket and likely have little to gain from the strategy. Investors who hold all their assets in IRAs, 401(k)s, or other tax-sheltered accounts also gain nothing from it.

Tax-Loss Harvesting Rules and Annual Limits

A few firm IRS rules govern how this strategy plays out each year. The $3,000 limit on deducting losses against ordinary income is one of the most misunderstood. Many investors assume it caps how much you can harvest, but it only caps the portion applied to ordinary income. There is no dollar limit on how much capital gain you can offset.

Unused losses carry forward to future tax years without expiration. If you harvest $50,000 in losses but only have $10,000 in gains and use the $3,000 ordinary income deduction, you carry $37,000 forward. That amount can offset future gains in any subsequent year, which makes loss harvesting in a down market especially powerful.

One additional consideration: state taxes. Some states do not conform to federal rules, meaning your federal loss may not reduce your state tax liability. California, for example, taxes capital gains as ordinary income and has its own rules around loss deductions. It is worth checking your state’s treatment before expecting identical savings at the state level.

Manual Tax-Loss Harvesting vs. Automated Harvesting

You have two main approaches here, and the right one depends on how large your portfolio is and how much time you want to spend on it.

Doing It Yourself

Manual harvesting works best for investors with straightforward portfolios, a limited number of holdings, and the willingness to monitor regularly. The workload increases during volatile markets, when the most opportunities arise. You also need to track your cost basis accurately and manage the wash sale window yourself, since errors can negate the tax benefit entirely.

Using a Robo-Advisor

Robo-advisors like Wealthfront, Betterment, and Schwab Intelligent Portfolios automate tax-loss harvesting daily across diversified portfolios. They monitor every position, execute harvests when thresholds are met, and reinvest in pre-approved substitute funds to avoid wash sales.

The value proposition is strongest when you have a large taxable account, because the tax savings generated can exceed the management fees by a meaningful margin.

Tax-Loss Harvesting vs. Tax-Gain Harvesting

These two strategies sit on opposite ends of the same idea. Tax-loss harvesting reduces gains to lower your current tax bill. Tax-gain harvesting intentionally realizes gains in a year when your income is low enough to fall into the 0% capital gains bracket.

If you expect your income to rise significantly in future years, realizing gains now at 0% can make more sense than deferring them to a year when you will owe 15% or 20%. The two strategies are not mutually exclusive; some investors use both in the same year on different parts of their portfolio.

Common Misconceptions About Tax-Loss Harvesting

A few persistent myths stop investors from taking action or cause them to make costly mistakes. Here are the ones worth clearing up.

The most common misunderstanding is that harvesting locks in your losses permanently. It does not. You sell the losing asset and immediately reinvest in a comparable one, so your portfolio exposure stays roughly the same. The loss is realized on paper for tax purposes, but your investment thesis remains intact.

Another misconception is that tax-loss harvesting is only useful at year-end. December is the deadline, but losses can be harvested any time during the year. Waiting until December means missing opportunities that arise in January, March, or August. Markets are unpredictable, and losses do not always wait for a convenient moment.

Finally, some investors assume robo-advisors always outperform DIY harvesting. That is only true if the fee is lower than the tax savings generated. For smaller accounts, the math may not work in your favor.

Is Tax-Loss Harvesting Worth It?

For high-income investors with meaningful taxable accounts, the answer is usually yes. The math is direct: a $10,000 short-term loss at a 32% marginal rate saves $3,200 in taxes. That is real money, and it compounds when reinvested.

The strategy adds complexity, and complexity creates room for errors. Wash sale violations, incorrect cost basis tracking, and ignoring state taxes can all reduce or eliminate the benefit. For investors with small accounts or those in low tax brackets, the effort may not justify the return.

A tax professional or fee-only financial advisor can help you run the numbers for your specific situation. The strategy is well-established and widely used, but how much it benefits you depends on your income, account size, and how much gain you have to offset in a given year.

Bottom Line

Tax-loss harvesting is one of the few legal strategies that lets you turn a losing investment into a concrete financial benefit. By selling underperforming assets, offsetting your gains, and reinvesting strategically, you reduce your tax bill without abandoning your investment plan.

The two things to keep in mind above everything else: the wash sale rule can wipe out your benefit if you are not careful, and the strategy works best for investors with meaningful gains to offset in a taxable account. If that describes you, this is worth adding to your year-round financial routine, not just your December checklist.

Jake Caldwell
Meet the author

Jake is a personal finance writer with a background in consumer lending and credit counseling. He specializes in credit education, debt management, and helping readers understand the financial systems that affect their daily lives. His goal is simple: cut through the jargon and give people the information they actually need.