To do last-minute tax-loss harvesting before December 31, you sell investments in a taxable account that are worth less than you paid, use those realized losses to cancel out capital gains, then deduct up to $3,000 of any leftover loss against your ordinary income—carrying the rest forward to future years. The catch is the calendar: the sale has to settle as a 2026 transaction, so you can’t wait until January and claim it for this year. And that one deadline is why December is harvesting season.
It’s one of the few tax strategies where a down market actually works in your favor. If some of your positions are in the red, this turns a paper loss into a real, usable tax benefit—without necessarily changing your long-term plan.
Table of Contents
ToggleWhat to sell (and what to leave alone)
Look at your taxable brokerage account, not your IRA or 401(k)—harvesting only matters where gains and losses are taxed. Then focus on:
- Positions trading below your cost basis that you’re comfortable exiting or replacing.
- Funds you’d happily swap for a similar-but-not-identical alternative.
- Short-term losses first, since they offset higher-taxed short-term gains.
Leave alone anything you’d regret selling purely for a tax break. Harvesting should serve your plan, not hijack it.
How the offset actually works
| Situation | What the loss does |
|---|---|
| You have $8,000 in realized gains | $8,000 of losses wipes out the tax on all of it |
| Losses exceed gains by $3,000 or less | Deduct the excess against ordinary income this year |
| Losses exceed gains by more than $3,000 | Deduct $3,000 now; carry the rest forward indefinitely |
Don’t trip the wash-sale rule
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, per IRS Publication 550. The fix most investors use is to reinvest the proceeds in a similar fund that tracks a different index, so they stay in the market without voiding the loss. For the bigger picture on how these taxes work, see our guide to capital gains taxes.
“In this world nothing can be said to be certain, except death and taxes.”
— Benjamin Franklin, Library of Congress
A real-world example
Take Dana, who sold a stock earlier in 2026 for a $6,500 long-term gain. In December she noticed an index fund in the same account was down $5,000. She sold it, immediately bought a comparable fund tracking a slightly different index to avoid a wash sale, and used the $5,000 loss to shrink her taxable gain to $1,500. She stayed fully invested, kept her strategy intact, and cut her tax bill—all from a 15-minute move before the 31st.
Frequently Asked Questions
What’s the deadline for tax-loss harvesting?
December 31 of the tax year. The sale must be executed so it counts as a current-year transaction—waiting until January means it applies to the following year instead.
Does tax-loss harvesting work in a 401(k) or IRA?
No. Those accounts are tax-advantaged, so you don’t pay tax on annual gains and losses there. Harvesting only helps in a taxable brokerage account.
How much can a loss save me?
Losses offset gains dollar-for-dollar, and up to $3,000 of excess loss offsets ordinary income each year. The higher your tax bracket and the larger your gains, the more valuable it is.
A few traps to sidestep
Harvesting is simple, but a few missteps can undo the benefit. The most common is accidentally triggering the wash-sale rule by letting an automatic dividend reinvestment buy back the same fund within the 30-day window—so pause reinvestment on anything you’re harvesting. Another is harvesting tiny losses that barely move your tax bill while racking up trading hassle; focus on positions where the loss is meaningful. And don’t let the tax tail wag the investment dog: selling a holding you actually want to keep, purely for a deduction, can cost you more in missed growth than you save in tax. The point is to capture losses you’re comfortable realizing, reinvest sensibly, and keep your long-term plan intact.
It’s also worth noting that short-term and long-term losses are applied in a specific order—short-term losses offset short-term gains first, long-term against long-term—before any excess crosses over. That’s why selling a short-term loser can be especially valuable if you have short-term gains taxed at your higher ordinary rate. If your situation is at all complicated, a quick conversation with a tax professional before year-end can make sure you’re harvesting in the most efficient order.
The Bottom Line
Last-minute tax-loss harvesting is a rare win from a down market—but only if you act before December 31. Sell your losers in a taxable account, respect the wash-sale rule by reinvesting in something similar, and use the losses to offset gains and income. It’s a simple December chore that can quietly save you real money in April.







