Tax Loss Harvesting: How to Turn Investment Losses into Tax Savings

Advertisement

Tax loss harvesting is an investment strategy that can reduce how much you owe in taxes without forcing you to give up your long-term goals. By selling securities that have dropped in value, you realize a capital loss that can offset capital gains from other sales—or, up to a point, your ordinary income. The result is a smaller tax bill and more money left to reinvest. This guide explains how tax loss harvesting works, the rules that govern it, and how to decide whether it makes sense for you.

What Is Tax Loss Harvesting?

Tax loss harvesting is the practice of selling an investment at a loss to realize that loss for tax purposes. When you sell a stock, exchange-traded fund (ETF), or mutual fund for less than your cost basis—the price you paid plus any adjustments—the difference is a capital loss. You can use that loss to offset capital gains you earned from other investments. For example, if you sold one stock for a $5,000 profit and another for a $3,000 loss, you net them out and pay tax only on $2,000.

If your losses exceed your gains, you can deduct up to $3,000 of the excess against your ordinary income each year ($1,500 if you're married filing separately). Any remaining losses carry forward to future tax years indefinitely, which can be a valuable tool for managing taxes as your portfolio evolves.

Tax loss harvesting does not change your investment returns directly. Instead, it reduces the tax drag on your portfolio, allowing you to keep more of your after-tax wealth working for you. It's particularly useful in taxable brokerage accounts, where realized gains are taxable events.

How Tax Loss Harvesting Works

The process is straightforward in concept, but it requires careful attention to your portfolio and tax situation. Here are the basic steps:

  1. Identify losing positions. Look for investments in your taxable brokerage account that have fallen below your cost basis. Don't include retirement accounts like 401(k)s or IRAs—losses there don't offset taxable income.
  2. Sell to realize the loss. Once you sell, the loss becomes "realized" for tax purposes.
  3. Replace the investment to maintain your desired asset allocation. You might buy a similar but not identical fund or stock. For example, if you sold an S&P 500 index fund, you could buy a total market fund or a large-cap value fund to stay invested.
  4. Report the loss on your tax return. Use Schedule D of IRS Form 1040 to report capital gains and losses.

A Numerical Example

Suppose you bought 100 shares of XYZ stock at $50 per share, and it's now trading at $30. You decide to sell, realizing a loss of $2,000 (($50 - $30) × 100). You also sold shares of ABC stock earlier in the year for a $5,000 gain. Your net capital gain becomes $3,000 ($5,000 gain - $2,000 loss). Depending on your tax bracket, you could save $400 to $800 or more in federal taxes, plus any state taxes.

If you still want exposure to a stock like XYZ, you can buy a similar company's stock or a sector ETF immediately. To claim the loss, you cannot buy the *same* stock for 30 days after the sale (see the wash-sale rule below).

The Wash Sale Rule and Other Key Limitations

Advertisement

The biggest pitfall in tax loss harvesting is the wash-sale rule. It says you cannot claim a loss if you buy a "substantially identical" security within 30 days before or after the sale. If you do, the loss is disallowed and added to the cost basis of the new position. This prevents investors from selling just to claim a tax loss and immediately buying the same asset.

Substantially identical isn't defined by precise regulations, but it generally includes the same stock, the same options or warrants, and securities issued by the same company. For example, buying the same mutual fund or ETF after selling it triggers the rule. Selling one index fund and buying a different index fund that tracks a different index is usually safe, but you should check with a tax professional if you're unsure.

Other limitations to keep in mind:

How the Wash Sale Rule Applies in Practice

Consider this scenario: You own 100 shares of a technology mutual fund and want to harvest a $3,000 loss. You sell the fund on December 15 and buy a technology sector ETF on December 20. If the IRS deems the ETF "substantially identical" to the fund—which can happen if they track the same index and have similar holdings—your loss claim could be denied. To avoid this, many investors use different asset classes or hold cash for 31 days before re-entering the same market. The key is ensuring the replacement investment is not considered substantially identical.

When to Consider Tax Loss Harvesting

Tax loss harvesting is most valuable when you have capital gains to offset. If you realized a large gain from selling a home, business, or investment, harvesting losses can directly reduce your tax liability. It can also be beneficial if you have little or no gains this year: you can still deduct up to $3,000 against ordinary income.

Here are some scenarios where harvesting makes sense:

But there are times to avoid harvesting:

A common strategy is "harvesting" in December to offset realized gains from earlier in the year. But if you're a disciplined investor, you might harvest throughout the year to avoid market timing concerns and ensure you capture losses before they evaporate. Some robo-advisors now offer automated tax-loss harvesting, which can monitor your portfolio and execute loss sales continuously, reducing the temptation to time the market yourself.

Bottom Line

Tax loss harvesting is one of the few "free lunches" in investing: it lets you convert paper losses into real tax savings while keeping your portfolio on track. But it's not a one-size-fits-all strategy. You must navigate the wash-sale rule, understand your tax bracket, and weigh transaction costs. For most investors, the potential savings are meaningful enough to make it a routine part of annual tax planning. Run the numbers, or consult a tax professional, and you may find that harvesting your losses is one of the smartest moves you can make with a down market.

Advertisement

Frequently Asked Questions

What is tax loss harvesting?

Tax loss harvesting involves selling investments that have lost value to realize a capital loss. These losses can offset capital gains you've earned, and if losses exceed gains, you can deduct up to $3,000 against ordinary income each year. Unused losses carry forward indefinitely.

How long must you wait to buy back a stock after selling it for a tax loss?

Under the wash-sale rule, you cannot buy a substantially identical security within 30 days before or after the sale to claim the loss. If you sell on December 15, you must wait until at least January 15 (31 days after the sale) to repurchase the same stock.

Can you tax loss harvest in a 401(k) or IRA?

No. Losses in tax-advantaged retirement accounts do not offset taxable capital gains or ordinary income. Tax loss harvesting only applies to taxable brokerage accounts.

References

Learn moreHow to File Taxes for Free: A Complete Guide for 2025TaxesNext Article