Tax-Loss Harvesting Before Year-End: How to Turn Portfolio Losses Into Tax Savings

Tax-Loss Harvesting Before Year-End: How to Turn Portfolio Losses Into Tax Savings

Every autumn, a quiet money-saving habit comes back into fashion. Investors open their brokerage statements, spot a few positions trading below what they paid, and ask a smart question: could those losers do something useful for my tax bill? The technique is called tax-loss harvesting, and with the final weeks of 2026 approaching, it is worth understanding before the year-end rush. Done carefully, it can turn a disappointing holding into a tax benefit. Done carelessly, it can backfire. Here is a plain-English guide to how it works, where the traps are, and a simple plan you can follow.

What tax-loss harvesting actually is

Tax-loss harvesting means selling an investment for less than you paid for it, which creates a capital loss. That loss can then offset capital gains you realized elsewhere. In plain terms, it lets a paper loss do real work on your tax return.

The idea is not to chase losses for their own sake. A loss is still a loss. The goal is to take a setback you already have and reduce its sting by using it to lower taxes on other gains, while keeping your overall investment plan intact.

How the rules work

Three rules matter most, according to educational material from LPL Financial:

  • Losses offset gains. Capital losses can be used against capital gains.
  • A $3,000 annual deduction. You may deduct up to $3,000 of capital losses in excess of capital gains on your federal return each year.
  • Carryforward. Losses above that annual limit can be carried into future years to potentially offset later gains.

That carryforward is easy to overlook. A large loss in one year is not wasted if you cannot use it all immediately. It can follow you into later years, which is one reason some investors keep careful records of harvested losses.

The wash-sale rule: the trap to avoid

The most important restriction is the wash-sale rule. You cannot claim a loss on a security if you buy the same or a “substantially identical” security within 30 days before or after the sale. Because the window runs in both directions, it can effectively span 61 days around the sale date.

In practice, this means that selling a stock on December 10 and buying it back on December 20 does not produce a usable loss. The same caution applies to purchases made shortly before you sell. Automatic reinvestment of dividends may also buy shares inside the window, so it is worth checking your settings and asking a professional.

What counts as “substantially identical” can be a gray area, and the sources we reviewed do not define it exhaustively. If you are unsure whether a replacement holding qualifies, ask a tax professional before you trade.

Where it works, and where it does not

Tax-loss harvesting applies only to taxable brokerage accounts. Tax-advantaged accounts, such as IRAs and 401(k)s, are not eligible for this strategy. If most of your money sits in retirement accounts, harvesting may be a small part of your picture. Our recent guide to 2026 retirement contribution limits covers how to make the most of those accounts instead.

State tax treatment also varies, so the benefit you see on your federal return may differ at the state level.

A hypothetical example

This is a hypothetical illustration with made-up numbers, not a recommendation or a prediction.

Imagine an investor, Jordan, who sold a fund earlier this year and realized a $10,000 capital gain. Jordan also holds a stock bought for $8,000 that is now worth $5,000, an unrealized loss of $3,000.

  • Without harvesting: Jordan owes tax on the full $10,000 gain.
  • With harvesting: Jordan sells the stock, realizes the $3,000 loss, and reduces the net taxable gain to $7,000.

Now suppose Jordan wants to stay invested in that market segment. Rather than rebuying the same stock within 30 days, Jordan might buy a different holding with similar exposure, and confirm with a tax professional that it is not “substantially identical.” Jordan keeps the investment plan while capturing the tax effect.

If, instead, Jordan had $14,000 of losses and only $10,000 of gains, the first $10,000 of losses would cancel the gains. Up to $3,000 more could be deducted, and the remaining $1,000 could carry forward. The exact tax saved depends on Jordan’s own tax situation, which is why we avoid quoting a dollar figure.

A step-by-step year-end routine

  • Total your realized gains. Include fund distributions, stock sales and any other taxable events so far this year.
  • List positions with unrealized losses. Look only at taxable accounts.
  • Ask whether you still believe in each holding. If the reason you bought it has changed, selling may make sense on its own merits.
  • Pick a replacement plan. Decide whether to hold cash, move to a similar but not identical investment, or wait out the 30-day window.
  • Mind the calendar. Confirm with your broker how trade dates apply to the tax year, and do not leave this for the last trading day.
  • Document everything. Keep trade confirmations and a record of any carryforward.

Costs and trade-offs to weigh

Tax savings are not free money. Consider these trade-offs:

  • Market risk while out. If you sell and wait 31 days, the investment could rise while you are on the sidelines.
  • Lower cost basis later. Harvesting often means you hold a replacement bought at a lower price, which can mean larger gains down the road. The benefit may be partly a deferral, not an elimination.
  • Trading costs and complexity. Even in a world of commission-free trading, spreads, tracking differences and record keeping add friction.
  • Portfolio drift. Swapping holdings can change your allocation. A refresher on portfolio rebalancing can help you keep your target mix.

LPL notes that selling may not suit a portfolio built for the long term, and that the strategy can be considered year-round, not just near year-end. That second point matters: markets do not wait for December to hand out opportunities.

When harvesting may not be worth the effort

Not every loss deserves action. If your loss is tiny, the benefit may not justify the time, the new position, or the paperwork. If you have no realized gains and a modest loss, the $3,000 annual deduction limit caps the immediate benefit, though the carryforward keeps unused losses alive for later years.

It may also be a poor fit if you plan to sell the replacement soon, or if the holding is part of a long-term plan you are not willing to change. A good rule of thumb is to ask one question first: would I make this trade if there were no tax angle at all? If the answer is a firm no, step back. The tax benefit is a bonus on top of a sound decision, not a reason to make a weak one.

Questions to bring to a tax professional

  • How does the wash-sale rule apply across all of my accounts, including those held by a spouse?
  • Which replacement investments are safely different from the ones I sold?
  • How will my state treat the losses I realize?
  • Do I already have carried-forward losses I should be using?

Common mistakes

  • Letting the tax tail wag the dog. Never hold or sell an investment solely for tax reasons if it conflicts with your goals.
  • Forgetting reinvested dividends. Automatic purchases may create an accidental wash sale.
  • Ignoring other accounts. Purchases elsewhere may matter, so ask a professional how the rule applies across your accounts.
  • Waiting until the final day. Rushed trades invite errors.

Key takeaways

  • Tax-loss harvesting means selling at a loss to offset capital gains, and it applies only to taxable accounts.
  • You may deduct up to $3,000 of capital losses in excess of gains each year, with extra losses carried forward.
  • The wash-sale rule blocks the loss if you buy the same or a substantially identical security within 30 days before or after the sale.
  • Harvesting often defers taxes rather than erasing them, and it should never override your investment plan.
  • Start early, keep records, and confirm details with a tax professional.

Frequently asked questions

Can I use tax-loss harvesting in my IRA or 401(k)?
No. The strategy applies to taxable accounts. Tax-advantaged accounts are ineligible.

What happens if I accidentally trigger the wash-sale rule?
You generally cannot claim the loss on that sale. Review your trade history and dividend reinvestment settings, and speak with a tax professional about how to handle the situation.

Do I have to wait until December?
No. The strategy can be considered at any time of year. Many investors review in the fall so there is time to trade calmly and settle before year-end.

Sources

This article is for educational purposes only and is not tax or investment advice; consult a qualified tax professional about your own situation.

Leave a Reply

Your email address will not be published. Required fields are marked *