Investing offers very few genuine free lunches, but tax-loss harvesting comes close to one: it is a way to turn a losing investment into a real tax benefit. When a holding in your account has fallen below what you paid for it, that paper loss can be put to work—used to lower the taxes you owe—while you stay fully invested. It sounds almost too clever, and it does have rules and limits, but it is a legitimate, widely used technique that can add meaningfully to your after-tax returns over time. Here is how it works and how to use it without tripping over the fine print.
A word of framing first: tax-loss harvesting does not make losing money good. It simply softens the blow of a loss you already have by extracting a tax benefit from it, and that benefit, reinvested, compounds like any other.
What tax-loss harvesting is
In a taxable account, when you sell an investment for more than you paid, the profit is a taxable capital gain. When you sell for less than you paid, the difference is a capital loss—and the tax code lets you use realized losses to offset realized gains. Tax-loss harvesting is the deliberate practice of selling an investment that is down in order to “realize” that loss, so it can cancel out gains elsewhere and reduce your tax bill. You are harvesting the loss for its tax value, turning a decline on paper into a concrete reduction in what you owe.
How the offset works
The mechanics are straightforward. Your realized losses first offset your realized gains, dollar for dollar—so a $5,000 loss wipes out $5,000 of taxable gains. If your losses exceed your gains, you can typically use a limited amount of the excess—a few thousand dollars a year—to offset ordinary income, such as your salary, which is often taxed at a higher rate. And if you still have losses left over beyond that, they generally carry forward to future years, banked to offset gains or income down the road. A harvested loss, in other words, rarely goes to waste; it either helps this year or waits to help later.
The key move: stay invested
Here is the part that makes the strategy practical rather than self-defeating. If you sell a losing investment, you presumably still want that exposure—you do not want to be sitting in cash and miss a recovery. So the standard approach is to immediately reinvest the proceeds into a similar but not identical investment: sell one broad stock fund at a loss and buy a different broad stock fund that tracks a comparable market. You capture the tax loss while keeping your money working and your overall allocation intact. You have banked the tax benefit without ever really leaving the market.
The wash-sale rule
This is the rule you must not break. Tax authorities disallow the loss if you buy back the same—or a “substantially identical”—investment within a short window around the sale, commonly thirty days before or after. This is the wash-sale rule, and it exists to stop people from selling purely for the tax break and instantly rebuying the exact same thing. The workaround is simple and legitimate: replace the sold investment with a similar-but-not-identical one, so you keep comparable market exposure without repurchasing the specific security you sold. Understanding this rule is essential, because a wash sale erases the very loss you were trying to harvest.
Why it is worth doing
The value comes from what you do with the tax you save. Reducing this year’s tax bill leaves more money in your pocket, and that money, reinvested, compounds over time—so a series of harvested losses over the years can quietly lift your long-term, after-tax returns. There is a subtlety worth being honest about: harvesting a loss lowers your cost basis in the replacement investment, which can mean a larger taxable gain when you eventually sell. So part of the benefit is a deferral—paying tax later rather than now—rather than pure elimination. But deferring taxes is itself valuable, because the money you would have paid keeps working for you in the meantime, and in some cases the gain is taxed at a lower rate later or avoided entirely through later planning.
Where it applies—and where it doesn’t
Tax-loss harvesting only works in a regular taxable account. It does nothing in tax-advantaged accounts like IRAs or 401(k)s, because those accounts are not taxed on gains along the way, so there is no tax to offset—the entire concept is irrelevant there. It also tends to be most valuable for people in higher tax brackets, for whom each dollar of offset saves more. For a beginner with modest taxable investments, the benefit may be small; for a higher earner with substantial taxable holdings, it can add up meaningfully year after year.
When to harvest
Opportunities to harvest losses appear whenever markets fall, which is one small silver lining of a downturn: a declining market scatters harvestable losses across portfolios. Many investors look for opportunities during market slumps and again toward the end of the tax year, when they can assess their gains and losses for the year and offset accordingly. Some do it opportunistically whenever a holding drops meaningfully. The common thread is that a market decline, painful as it is, is precisely when this technique has the most to offer.
Don’t let the tax tail wag the dog
One caution ties it all together. The purpose of tax-loss harvesting is to improve the after-tax return of a portfolio you already wanted—not to drive your investment decisions. Never sell a good long-term investment, or drift from your chosen allocation, purely to chase a tax break; letting the tax consideration override sound investing is a classic mistake known as letting the tax tail wag the dog. Harvest losses when it fits naturally within your plan, keep your allocation intact by reinvesting in something comparable, and—if the record-keeping feels daunting—know that some brokerages and automated advisors now perform this for you. Used sensibly, it is a quiet, legitimate edge; pursued obsessively, it becomes a distraction from what actually builds wealth.
Key takeaways
- Tax-loss harvesting sells a losing investment to realize the loss, which offsets taxable gains and a limited amount of ordinary income.
- Stay invested by reinvesting in a similar-but-not-identical holding—while avoiding the wash-sale rule (don’t rebuy the same thing within the window).
- It works only in taxable accounts and is most valuable for higher earners; part of the benefit is deferral, not pure savings.
- Don’t let the tax tail wag the dog—harvest within your plan, never abandon a sound investment just for the break.
Related reading
Disclaimer: This article is for educational purposes only and does not constitute financial, investment, or tax advice. Tax rules are complex and change; consult a qualified tax professional about your specific situation.