You can offset capital losses against capital gains without limit, then deduct up to $3,000 of remaining losses against ordinary income each year. Anything left carries forward indefinitely. The wash sale rule blocks the deduction if you buy the same or a substantially identical security within 30 days before or after the sale.
Tax-loss harvesting is one of the few ways to turn a losing investment into a real tax benefit. The idea is simple: sell an investment that’s down, use the loss to offset taxes, and stay invested. Done well it can save thousands; done carelessly it runs straight into the IRS wash-sale rule. Here’s how it works.
The core mechanic
When you sell an investment in a taxable account for less than you paid, you realize a capital loss. That loss first offsets any capital gains you have — dollar for dollar. If your losses exceed your gains, you can use up to $3,000 of net loss per year to offset ordinary income (wages, interest). Anything beyond $3,000 carries forward indefinitely to future years.
So a $10,000 net loss this year could wipe out $10,000 of gains, or — with no gains — cut $3,000 off your ordinary income now and carry the remaining $7,000 forward.
Why it matters: tax deferral and rate arbitrage
Harvesting doesn’t make a loss disappear; it times the tax benefit to when it helps most and lowers your cost basis later. The real edge comes from offsetting short-term gains (taxed at high ordinary rates, up to 37%) with losses, and from deferring tax so your money compounds longer. For many investors it quietly adds a fraction of a percent to after-tax returns every year.
The wash-sale rule — the trap to avoid
The IRS won’t let you claim a loss if you buy back the same or a “substantially identical” security within 30 days before or after the sale (a 61-day window in total). Do that and the loss is disallowed — added to the basis of the replacement shares instead. Key points:
- The rule covers purchases in all your accounts, including your IRA and your spouse’s accounts.
- Automatic dividend reinvestment can accidentally trigger it — watch DRIP settings around a harvest.
- The classic workaround: buy a similar but not identical fund (e.g., swap one broad S&P 500 fund for a total-market fund) so you stay invested without breaching the rule.
Where it does and doesn’t apply
Tax-loss harvesting only works in taxable brokerage accounts — not 401(k)s or IRAs, where gains and losses aren’t taxed year to year. It’s most valuable for investors with taxable gains to offset, those in higher brackets, and anyone rebalancing anyway.
A caution on cost basis
Harvesting lowers the cost basis of your replacement holding, which means a larger taxable gain when you eventually sell. The benefit is real but it’s partly deferral, not pure savings — most powerful when you harvest at a high rate now and sell later at a lower rate (or never, since holdings get a step-up in basis at death).
The takeaway
Sell losers to offset gains plus up to $3,000 of ordinary income a year, carry the rest forward, and stay out of the 30-day wash-sale window by reinvesting in a similar-not-identical fund. It only applies in taxable accounts, and it’s as much about smart timing as outright savings — but over a long horizon it adds up.
About Logan R. Sterling
Logan R. Sterling is the US personal-finance editor at Finance Clearly, covering retirement accounts, taxes, and investing. All figures are verified against IRS guidance.
Important: General information about US tax rules, not personal financial or tax advice. The wash-sale rule and tax treatment can be intricate. Confirm with a qualified CPA before acting.
Finance Clearly is a publication of Edwards Bros (Spaldwick) Ltd. Privacy · Terms
Frequently asked questions
What is tax-loss harvesting?
Selling investments standing at a loss in a taxable account so the realized loss offsets realized gains — and, within limits, ordinary income — then reinvesting to stay in the market. The tax saved is deferred rather than conjured: harvesting lowers your cost basis, shifting tax into the future at what’s ideally a lower rate.
What is the wash-sale rule?
Repurchasing the same or a “substantially identical” security within 30 days before or after the sale disallows the loss. The standard workaround is buying a similar-but-not-identical fund for the window — staying invested without voiding the harvest.
Does it work inside a 401(k) or IRA?
No — gains and losses inside tax-advantaged accounts have no tax consequence, so there’s nothing to harvest. It’s a taxable-brokerage strategy only, and selling at a loss in an IRA can even trigger wash-sale complications against taxable holdings.
US readers: the 0% capital gains bracket runs to $49,450 single and $98,900 joint for 2026.
Work out your own position: 2026 capital gains tax calculator — shows how much of your gain falls in the 0% band.
Codes on your transcript? What 570, 971 and 846 actually mean — and why 570 is not an audit.
About the author. Logan R. Sterling writes Finance Clearly’s US coverage of retirement, small business lending and later-life costs.
General information, not financial or tax advice. Contribution limits, thresholds and rules change; confirm the current position with the IRS or a licensed adviser before acting.