Tax-Loss Harvesting in 2026: How It Cuts Your Tax Bill, the Wash-Sale Rule & 4 Costly Mistakes
Tax-loss harvesting is the deliberate sale of losing investments so realized losses offset taxable gains — and, within limits, ordinary income. Each year you may deduct up to $3,000 of net capital losses against ordinary income, carrying any excess forward indefinitely. The guardrail is the wash-sale rule: repurchasing a substantially identical security within 30 days disallows the loss.
Key Facts
- $3,000 annual limit: net capital losses can offset up to $3,000 of ordinary income per year ($1,500 married filing separately); unused losses carry forward indefinitely.
- 30-day wash-sale window: repurchasing a substantially identical security within 30 days before or after the sale disallows the loss for tax purposes.
- Gains are netted first: harvested losses first offset capital gains dollar-for-dollar, and only the net remainder counts toward the $3,000 ordinary-income limit.
- Rate arbitrage is the prize: short-term gains are taxed as ordinary income, while long-term gains face preferential rates of 0%, 15%, or 20% — losses are most valuable against higher-taxed gains.
- Retirement accounts don't count: harvesting inside an IRA or 401(k) produces no tax benefit, because gains and losses there are not taxed currently anyway.
How the Mechanics Work
Capital losses only help at tax time when they are realized — paper losses on positions you still hold do nothing. When you sell, the IRS nets your gains and losses: short-term losses first offset short-term gains, long-term losses offset long-term gains, and then the pools cross-net. If losses exceed gains, up to $3,000 of the net loss reduces your ordinary income (wages, business income) for the year, and the remainder carries forward to future tax years without expiring. This makes harvesting a multi-year asset — a large loss banked in a bad market year can shelter gains for years to come. The strategy pairs naturally with rebalancing: instead of selling winners and paying tax, trim losers, harvest the loss, and redeploy into a similar-but-not-identical investment to keep your allocation intact. For homeowners sitting on a large property gain, the parallel concept is the home-sale capital gains exclusion of $250,000/$500,000 — different rule, same principle of planning sales around the tax code.
A Worked Hypothetical Example
Consider this clearly labeled hypothetical. You sell a losing stock position and realize $8,000 in capital losses. Earlier in the year you sold a winning position for a $5,000 long-term gain. Netting first: the $8,000 loss wipes out the $5,000 gain entirely, leaving $3,000 of net loss. That $3,000 then offsets ordinary income, up to the annual limit — exactly at the cap, so nothing carries forward in this example. If you are in the 24% federal bracket, the $3,000 ordinary-income offset saves $3,000 × 24% = $720 in tax, and eliminating the $5,000 gain saves whatever tax that gain would have owed at your long-term rate (for instance, 15% × $5,000 = $750). Total federal benefit in this illustration: roughly $1,470, from trades you may have wanted to make anyway. Change the facts and the math changes: had your losses been $12,000 against the same $5,000 gain, $3,000 would offset income this year and $4,000 would carry forward. To place the savings in context, review the 2026 federal tax brackets and thresholds so you know which rate your offset actually beats.
The Wash-Sale Rule, Precisely
The wash-sale rule exists to stop taxpayers from harvesting a loss while keeping the same economic position. If you sell a security at a loss and buy a "substantially identical" security within the 61-day window — 30 days before through 30 days after the sale — the loss is disallowed for the current year. Disallowed does not mean destroyed: the loss is added to the cost basis of the replacement shares, so you may recover it when you later sell those. But the immediate tax benefit vanishes, which defeats the purpose of year-end harvesting. Traps abound: automatic dividend reinvestment can trigger a wash sale without you noticing; buying the same stock in your IRA within the window also triggers it (and worse, the basis adjustment is lost forever in an IRA); and "substantially identical" is judged on economics, so swapping one S&P 500 index fund for another provider's S&P 500 fund is risky, while moving to a total-market fund is generally viewed as different enough. Mark the calendar before you click sell — and check every account you control, including your spouse's.
4 Costly Mistakes to Avoid
Mistake 1 — the wash-sale violation: rebuying too soon, or letting dividend reinvestment rebuy for you, silently disallows the loss. Turn off auto-reinvestment on positions you plan to harvest. Mistake 2 — harvesting in tax-advantaged accounts: selling losers inside an IRA or 401(k) generates no deductible loss at all — the exercise is pure wasted trading. Mistake 3 — ignoring costs and tracking: commissions, bid-ask spreads, and sloppy records can eat the tax benefit, and a disorganized carryforward schedule means losses get forgotten in future years. Mistake 4 — letting the tax tail wag the investment dog: selling a strong long-term holding just to book a small loss, or holding a deteriorating stock to avoid "wasting" a gain, puts taxes ahead of investment merit. Harvesting should fund your allocation, not dictate it. One more planning note: December harvesting that frees up cash can interact with year-end moves like a Roth conversion timed to your brackets — coordinate them rather than stacking surprises.
For more plain-English explainers on taxes and personal finance, visit the Problem Solved channel.
This article is for general information only and is not legal, financial, or tax advice. Consult a qualified professional about your situation.
Who Benefits From This — and Who Does Not
This section shows who gains from tax-loss harvesting under the rules in this article — realized losses, netting first, and the 30-day wash-sale window — and who gains nothing, because the strategy only works in taxable accounts and only when the loss is actually realized.
Who benefits:
- Taxable-account investors with gains to shelter: Harvested losses first offset capital gains dollar-for-dollar, and only the net remainder counts toward the $3,000 annual ordinary-income limit ($1,500 married filing separately), with any excess carrying forward indefinitely. How to use it: sell a losing position you were ready to trim anyway, let the loss net against gains, and bank the remainder as a multi-year carryforward.
- Investors rebalancing anyway: The strategy pairs naturally with rebalancing in this article: trim losers, harvest the loss, and redeploy into a similar-but-not-identical investment to keep your allocation intact, rather than selling winners and paying tax. How to use it: choose the replacement carefully — swapping one S&P 500 index fund for another provider's S&P 500 fund is risky, while moving to a total-market fund is generally viewed as different enough.
- Higher-bracket investors with higher-taxed gains: Short-term gains are taxed as ordinary income, while long-term gains face preferential rates of 0%, 15%, or 20% in this article, so losses are most valuable against higher-taxed gains. How to use it: check which rate your offset actually beats before you harvest.
Who does not benefit:
- Anyone harvesting inside an IRA or 401(k): Selling losers inside an IRA or 401(k) generates no deductible loss at all, because gains and losses there are not taxed currently anyway. Worse, buying the same stock in your IRA within the wash-sale window triggers a wash sale and the basis adjustment is lost forever in an IRA.
- Anyone who rebuys too soon: If you buy a substantially identical security within the 61-day window — 30 days before through 30 days after the sale — the loss is disallowed for the current year. Traps in this article include automatic dividend reinvestment and purchases in your spouse's accounts, so check every account you control and turn off auto-reinvestment on positions you plan to harvest.
- Anyone who lets the tax tail wag the investment dog: Selling a strong long-term holding just to book a small loss, or holding a deteriorating stock to avoid wasting a gain, puts taxes ahead of investment merit. Harvesting should fund your allocation, not dictate it, and commissions, bid-ask spreads, and sloppy carryforward records can eat the benefit.
Related reading: the 2026 federal tax brackets and thresholds.
Frequently Asked Questions
How much capital loss can I deduct each year?
Up to $3,000 of net capital losses against ordinary income per year ($1,500 if married filing separately). Losses first offset capital gains dollar-for-dollar; any excess beyond the limit carries forward indefinitely.
What exactly triggers a wash sale?
Buying a substantially identical security within 30 days before or after selling at a loss — a 61-day window. Dividend reinvestment and purchases in your IRA or spouse's accounts count too.
Do harvested losses expire?
No. Unused capital losses carry forward indefinitely until used up, which is why banking large losses in down years can shelter gains far into the future.
Can I harvest losses inside my IRA?
There is no benefit. Gains and losses inside IRAs and 401(k)s are not taxed currently, so realized losses there are not deductible — and a wash sale involving an IRA can permanently destroy the loss.
Who benefits most from tax-loss harvesting, who does not, and how do I start?
Taxable-account investors with gains to shelter benefit most — losses offset gains dollar-for-dollar, then up to $3,000 of net loss against ordinary income per year, with the excess carrying forward indefinitely — especially investors rebalancing anyway and higher-bracket investors offsetting higher-taxed gains. People harvesting inside an IRA or 401(k) do not benefit at all, nor do people who rebuy within the 61-day wash-sale window, including through dividend reinvestment or a spouse's account. To start: check every account you control, turn off auto-reinvestment on positions you plan to harvest, sell the losing position, redeploy into a similar-but-not-identical investment, and keep a clean carryforward schedule so banked losses are not forgotten in future years.