Tax-Loss Harvesting: How to Turn Investment Losses Into a Real Tax Break
A plain guide to tax-loss harvesting: how it works, the $3,000 deduction limit, and how to avoid the wash sale rule.
Nobody likes seeing a stock or fund drop in value. But if that investment sits in a regular taxable brokerage account, the loss isn't just bad news. It can lower your tax bill, both this year and in future years. That's the entire point of tax-loss harvesting.
This isn't a loophole or an aggressive tax shelter. It's a standard, IRS-sanctioned strategy that any investor with a taxable account can use. Retirement accounts like a 401(k) or IRA don't qualify, since gains and losses inside those accounts aren't taxed year to year anyway.
What Tax-Loss Harvesting Actually Is
Tax loss harvesting is a category of tax-efficient investment strategies that seeks to accelerate the realization of capital losses, and it occurs when an investor sells a security that has depreciated in value for the tax losses. In plain terms: you sell an investment that's down, lock in the loss on paper, and use that loss to offset gains elsewhere or reduce your taxable income.
Tax-loss harvesting allows you to sell investments that are down, replace them with reasonably similar investments, and then offset realized investment gains with those losses. You're not trying to exit the market. You're swapping into something similar so your money stays invested while you capture the tax benefit.
How the Deduction Actually Works
Capital losses first offset capital gains, dollar for dollar, with no limit on that part of the process. Short-term losses offset short-term gains first, then long-term losses offset long-term gains.
If your losses are bigger than your gains, you can use the leftover to reduce your ordinary income too — but only up to a point. If you have more capital losses than gains, you may be able to use up to $3,000 a year to offset ordinary income on federal income taxes, and carry over the rest to future years. Married couples filing separately are capped at $1,500 instead.
Here's the part people miss: losses that exceed the annual limit are not wasted. Under the tax code, a net capital loss above the annual $3,000 ($1,500 married filing separately) deduction carries forward to later years until it is completely used up. There's no expiration date for individuals. You can keep applying that carryover every year until it's gone.
A Simple Example
| Scenario | Amount |
|---|---|
| Short-term losses realized | $10,000 |
| Short-term gains realized | $4,000 |
| Long-term gains realized | $5,000 |
| Net after offsetting gains | $1,000 net loss |
In this kind of scenario, the short-term losses first wipe out the short-term gains, then the remainder offsets the long-term gains, and any leftover loss can reduce ordinary income up to the annual cap.
The Wash Sale Rule: The Part That Trips People Up
The IRS doesn't let you sell an investment purely to harvest a tax loss and then immediately buy it right back. If you sell stock or securities for a loss, the wash sale rule applies if you acquire substantially identical stock or securities within 30 days before or after the sale.
That window is bigger than most people think. The wash-sale period is defined as 30 days before and 30 days after the sale date, totaling 61 days, including the sale date. Buy back too early on either side of that window, and the loss gets disallowed.
A disallowed loss isn't gone forever — it's deferred. The disallowed loss is added to the cost basis of the new stock or securities. You'll get credit for it eventually, just not this year.
The rule reaches further than a single account. You cannot get around the wash-sale rule by selling an investment at a loss in a taxable account and then buying it back in a tax-advantaged account, and the IRS has stated it believes a stock sold by one spouse at a loss and purchased within the restricted time period by the other spouse is a wash sale. That means your IRA, your spouse's brokerage account, and even automatic dividend reinvestment plans can all trigger it without you realizing.
How to Harvest a Loss Without Sitting Out of the Market
The reason tax-loss harvesting works as a real strategy instead of just a tax trick is the "substantially identical" rule. You can sell a losing investment and immediately buy something similar — just not identical — and stay fully invested while avoiding a wash sale.
One common tax-loss harvesting strategy is to sell an individual stock that has incurred losses and replace it with an ETF or mutual fund that provides exposure to the same asset class. For example, selling a large-cap tech stock at a loss and buying a broad tech sector ETF keeps your market exposure similar without technically repurchasing the same security.
- Sell an individual stock, buy a sector or index ETF covering the same space
- Sell one broad-market index fund, buy a similar but not identical index fund from a different provider
- Avoid repurchasing the exact same fund or stock for at least 31 days to stay clear of the window
Who Benefits Most From This
Tax-loss harvesting matters most if you have a taxable brokerage account (not just retirement accounts), you're in a higher tax bracket, or you have capital gains elsewhere — from selling a rental property, RSU vesting, or a business sale — that you'd like to offset.
It also matters more than it used to for higher earners because of the Net Investment Income Tax. Net investment income tax is a 3.8% surtax on net investment income for individuals whose modified adjusted gross income exceeds IRS thresholds, which in 2026 are $200,000 for single filers, $250,000 for married filing jointly, and $125,000 for married filing separately. Harvesting losses to offset gains can reduce your exposure to that surtax too, since it lowers your net investment income.
Where This Fits Into Your Bigger Financial Picture
Tax-loss harvesting is a tool, not a strategy in itself. It doesn't make a bad investment good, and chasing losses for tax reasons alone can lead to worse decisions than just holding steady. Use it when a position genuinely no longer fits your plan, or when you have gains elsewhere that you want to offset — not as an excuse to sell something you'd otherwise keep.
If you're not sure whether this kind of tax planning even matters at your stage — or whether your money is better spent paying down debt, building an emergency fund, or increasing retirement contributions — running your numbers through Grade My Finance's free check can help you see where the highest-leverage move actually is before you spend time optimizing something smaller.
The Bottom Line
Tax-loss harvesting lets you turn a paper loss into a real, usable tax benefit — up to $3,000 a year against ordinary income, unlimited against capital gains, with the rest carried forward indefinitely. The only real trap is the wash sale rule's 61-day window. Know that window, use similar-but-not-identical replacement investments, and you can capture the benefit without stepping out of the market.
What's your financial grade?
Get a free A–F grade on your finances in under two minutes — no signup required.
Get My Free GradeCan I do tax-loss harvesting in my 401(k) or IRA?
No. The strategy only applies to taxable brokerage accounts. Gains and losses inside a 401(k), traditional IRA, or Roth IRA aren't taxed as they happen, so there's no annual tax loss to harvest.
What happens if I accidentally trigger a wash sale?
The loss isn't lost permanently. It gets added to the cost basis of your replacement shares, which means you'll get the tax benefit later when you eventually sell those shares, as long as no new wash sale occurs at that time.
Does the wash sale rule apply to cryptocurrency?
As of 2026, the wash sale rule generally does not apply to cryptocurrency because it's classified as property rather than a security under current law. That could change if Congress passes new legislation, so it's worth checking current rules before relying on this.
How much can tax-loss harvesting actually save me?
It depends on your tax bracket and how much loss you harvest. Losses first offset any capital gains dollar-for-dollar with no limit, and after that you can deduct up to $3,000 a year against ordinary income, with any excess carried forward to future years.