No one enjoys watching their investments drop. But there is a silver lining hiding inside every losing position: a tax deduction. Tax-loss harvesting is the practice of selling investments that have lost value, locking in the loss, and using it to offset taxes on your gains. It does not make a losing investment a winner, but it reduces the pain, and done regularly it can save you thousands in taxes over a lifetime without changing your investment strategy.
How Tax-Loss Harvesting Works
When you sell an investment for less than you paid, the loss is real for tax purposes. That loss can offset capital gains from other sales, dollar for dollar. If you have more losses than gains, up to $3,000 of the remainder can offset ordinary income each year, and any leftover carries forward to future years indefinitely.
A $5,000 realized loss can wipe out $5,000 of gains, saving you $750 to $1,000 in taxes if you are in the 15 to 20 percent long-term capital gains bracket, plus it may reduce your state tax. The strategy is legal, common, and explicitly encouraged by the tax code. Even the IRS knows investors need a consolation prize for down years.

Why You Can Sell and Buy Right Back
The natural worry is that selling means giving up the position. The tax code has a rule, the wash sale rule, that prevents you from claiming a loss if you buy a “substantially identical” security within 30 days before or after the sale. But the rule does not require you to stay out of the market. You can sell an S&P 500 index fund at a loss and immediately buy a different S&P 500 fund or a total market fund. The exposure is nearly identical, your portfolio stays invested, and the loss is banked.
That is the core trick of harvesting: you keep your market position while realizing a loss you can use. Over time, as the market recovers, you have a stockpile of realized losses that shelter future gains, including gains from selling winners or rebalancing.
How to Do It Without Overcomplicating
The simplest version requires almost no effort. Once a year, usually in December, review your taxable brokerage account for positions trading below your cost basis. Sell any losers you are happy to replace, buy a similar-but-not-identical fund, and record the loss. Repeat in any year with significant gains.
For more aggressive investors, harvesting can happen whenever a position drops by a meaningful amount, and the tax benefit is larger because you capture losses at higher rates. The key is keeping records: your cost basis, the sale date, and the replacement purchase, because the wash sale math gets complex when you harvest frequently.
Where Harvesting Does Not Apply
Tax-loss harvesting only matters in taxable accounts. Inside a 401(k), IRA, or Roth IRA, gains and losses have no immediate tax consequence, so harvesting is pointless and the wash sale rule can even complicate things if you harvest in taxable and rebuy in a retirement account. Keep your harvesting to taxable dollars.
It also makes no sense to sell a position you want to hold permanently just for the deduction if you cannot find a suitable replacement. And remember what the loss actually is: harvesting converts an unrealized loss into a realized one. Your net worth does not change on the day you harvest. The benefit arrives later, as lower taxes, and that benefit depends on you staying invested through the dip.
The Bottom Line
Tax-loss harvesting is one of the few free lunches in investing, a tax break for doing exactly what you would do anyway: owning diversified index funds and riding out volatility. It is not about timing the market; it is about turning the market’s timing against the taxman. Automate a year-end review, keep your records clean, and let the losses you have already suffered pay you back in lower taxes for years to come.

