Table of Contents
ToggleKey Takeaways
- Tax-loss harvesting means selling investments at a loss to offset capital gains (and some ordinary income) and lower your tax bill.
- Realized losses first offset realized gains; up to $3,000 of excess loss can offset ordinary income per year, with the rest carried forward.
- The wash-sale rule blocks the deduction if you rebuy the same or a “substantially identical” security within 30 days.
- It mainly helps in taxable brokerage accounts—not tax-advantaged accounts like IRAs or 401(k)s.
Tax-loss harvesting is the strategy of selling investments that have dropped in value to “realize” a loss, then using that loss to offset capital gains—and up to $3,000 of ordinary income a year—to reduce your taxes. It turns a paper loss into a tangible tax benefit without necessarily changing your overall investment plan. Done right, it’s a legitimate way to keep more of your returns; done carelessly, it can trigger the wash-sale rule and cost you the benefit.
The core insight is that your investment losses, while unpleasant, have a silver lining the tax code actually rewards—if you harvest them deliberately rather than just watching the red numbers.
How it works, step by step
The mechanics are straightforward. During the year, some investments will rise, and some will fall. If you sell a winner, you owe tax on the capital gain. Tax-loss harvesting also means selling a loser so its loss offsets some of that gain. Losses first offset gains of the same type (short-term against short-term, long-term against long-term), then across types. If your losses exceed your gains, you can deduct up to $3,000 of the excess against ordinary income in a year, and carry any remainder forward to future years indefinitely.
“You can’t control the market’s losses, but you can decide whether they’re wasted or put to work against your tax bill. Harvesting is just refusing to waste them.”
— A tax-aware investing principle
Watch out for the wash-sale rule
Here’s the trap. The IRS wash-sale rule disallows the loss if you buy the same—or a “substantially identical”—security within 30 days before or after the sale. The point is to stop people from selling purely for the tax break and instantly rebuying. According to the IRS, violating it defers the loss rather than allowing you to claim it. The common workaround is to reinvest the proceeds in a similar but not identical investment (for example, a different broad index fund tracking a comparable but distinct index), so you stay in the market while still claiming the loss.
Where it helps—and where it doesn’t
Tax-loss harvesting matters only in a taxable brokerage account, where gains and losses are taxed. It does nothing in tax-advantaged accounts like IRAs and 401(k)s, where you don’t pay tax on annual gains anyway. It’s most valuable for investors in higher tax brackets with meaningful taxable gains to offset. For someone with no taxable account or no gains, the benefit is limited to that $3,000 income offset.
A realistic example
Consider an illustrative case. Jordan sold a stock in her taxable account for a $7,000 long-term gain. Elsewhere in the account, an index fund was down $5,000. Rather than let that loss sit, she sold the fund (harvesting the $5,000 loss) and immediately bought a different broad-market fund tracking a comparable index—keeping her market exposure while avoiding a wash sale. The $5,000 loss offset most of her $7,000 gain, so she owed tax on just $2,000 instead of $7,000. She didn’t change her investment strategy in any meaningful way; she simply used a down position to shrink her tax bill.
A few cautions
Harvesting shouldn’t drive your whole strategy—never sell a great long-term holding purely for a tax break, and remember that selling resets your cost basis, which can mean larger gains later. Many robo-advisors automate tax-loss harvesting, which can be convenient, though the benefit varies by situation.
Think of it as a useful optimization layered on top of sound investing, not a substitute for it—chasing tax moves at the expense of good decisions is one of the quieter investing mistakes. And as with all investing, keep an eye on costs like the expense ratio of any replacement fund and your overall portfolio risk. (This is general information, not tax advice—consult a tax professional.)
Frequently Asked Questions
What is tax-loss harvesting in simple terms?
It’s selling an investment that’s down to lock in a loss, then using that loss to offset taxable gains (and up to $3,000 of ordinary income a year). It lowers your tax bill while letting you stay invested in something similar.
What is the wash-sale rule?
It disallows a harvested loss if you buy the same or a substantially identical security within 30 days before or after the sale. To stay invested without violating it, people often buy a similar but not identical fund instead.
How much can tax-loss harvesting save me?
It depends on your gains and tax bracket. Losses offset gains dollar-for-dollar, and you can offset up to $3,000 of excess loss against ordinary income each year, with the rest carried forward. The higher your bracket and taxable gains, the more it’s worth.
Does tax-loss harvesting work in an IRA?
No. IRAs and 401(k)s are tax-advantaged, so you don’t pay tax on annual gains there—meaning there’s nothing to offset. Tax-loss harvesting only helps in taxable brokerage accounts.
The Bottom Line
Tax-loss harvesting turns investment losses into a tax benefit: sell losers to offset your gains and up to $3,000 of income, carry forward the rest, and avoid the wash-sale rule by reinvesting in something similar but not identical. It only helps in taxable accounts, and it should complement—never override—a sound long-term strategy. Used wisely, it’s a simple way to keep more of what you earn.
Image Credit: ROCKETMANN TEAM; Pexels







