Nobody enjoys opening a brokerage account and finding red numbers. Most investors respond the same way: look away, hope for a recovery, and wait. That instinct is human, and it leaves something on the table. A loss you actually realize is not just a disappointment. It is a tax asset, and the calendar is quietly running out on the current year’s supply.
The technique is called tax-loss harvesting. It sounds like something reserved for people with accountants on speed dial, but the mechanics fit on an index card. It also comes with a trap that catches careful investors every single year. With about nine weeks left in 2026, this is the right moment to understand both.
What a loss is actually worth
Start with how the tax code treats investment results. When you sell something held in a regular taxable brokerage account, you realize a capital gain or a capital loss, measured against what you paid. Losses and gains are sorted by how long you held the investment, short-term or long-term, and then netted against each other. Short-term losses offset short-term gains, long-term losses offset long-term gains, and a net loss in one bucket can then be applied against gains in the other.
That netting is where the value lives. If you sold a winner this year and owe tax on the profit, a realized loss elsewhere in your portfolio can reduce or erase that bill. Think of it as a coupon your own portfolio hands you, redeemable only if you cash it in.
What if your losses exceed your gains? You are not stuck. The general rule lets you deduct up to $3,000 of the net loss against other income, such as wages, in a single year. The limit is $1,500 if you are married filing separately. Anything beyond that carries forward to future years with no expiration, where it can offset gains first and then up to $3,000 of other income annually until it is used up. So a large loss is never wasted. It is stretched across years.
Notice what this does not do. It does not make a loss good news. You still lost money. Harvesting simply makes sure the loss does some useful work instead of sitting idle on a statement.
Why you cannot just sell and buy it right back
Here is where the index card gets crowded. Suppose you own a fund that has fallen, and you like the long-term idea but want the tax loss. The obvious move is to sell it Monday and buy it back Tuesday. Same investment, same exposure, and a loss in your pocket. It feels too easy, and it is. The IRS anticipated this.
The wash-sale rule disallows your loss if you buy the same or a substantially identical security within a 61-day window: the 30 days before the sale, the day of the sale, and the 30 days after. Notice the part about 30 days before. If you added to a position in October and then sell some of it at a loss in November, you may have triggered the rule without ever buying anything after the sale.
A disallowed loss is not erased in the ordinary case. It gets added to the cost basis of the replacement shares, and the holding period carries over, so the tax benefit is postponed rather than destroyed. That is cold comfort if you wanted the deduction this year, but it is not a disaster either.
The versions of this mistake that actually bite
The cleanest wash sales are the ones nobody sees coming. Reinvested dividends count as purchases. If your fund quietly buys more shares with a distribution inside the window, part of your loss can be disallowed. Many investors turn off automatic reinvestment on the position they are harvesting for exactly this reason.
Your spouse’s purchases can count too. So can purchases in any of your other accounts, even at a different brokerage, or by a corporation you control. And this is the one that surprises people most: buying the replacement inside an IRA does not save you. Under IRS Revenue Ruling 2008-5, a wash sale triggered by an IRA purchase still disallows the loss, and because the IRA’s basis is not adjusted upward, the loss is effectively gone for good rather than postponed. A sale in your taxable account paired with a purchase in your IRA or Roth IRA can turn a harvest into a permanent giveaway.
Then there is the fuzzy part. The law says “substantially identical” and never defines it with a bright line. Selling one S&P 500 index fund and buying a different provider’s S&P 500 fund is a gray area that careful people debate. Swapping into something that tracks a clearly different index is on firmer ground, though still not guaranteed. Because the IRS decides whether a given transaction crosses the line, anyone doing this with real money and real dollars at stake should confirm the specifics with a tax professional or read IRS Publication 550 directly.
The cost of being too clever
There is a failure mode on the other side as well, and it is behavioral. Tax-driven decisions have a way of overriding investment judgment. People sell a holding they believe in, park the money somewhere they do not understand, and then forget to ever go back. A tax break of a few hundred dollars is a poor reward for ending up with a portfolio you no longer recognize.
Harvesting also changes your cost basis. A replacement bought at today’s lower price has a lower basis than the shares you sold, which means a bigger taxable gain down the road if the investment recovers. In many cases you are deferring tax rather than eliminating it. Deferral still has value, since money not paid today stays invested, but it is a different thing than a free lunch. Be honest with yourself about which one you are getting.
None of this harvesting works inside a 401(k), an IRA, or a Roth account, though as noted above, purchases in an IRA still count against you for the wash-sale rule. Gains and losses in those accounts are not taxed or deducted on an annual basis the way they are in a taxable account, so there is nothing to harvest. This is a taxable-account tool, full stop.
A year-end habit worth building
If you hold investments in a taxable account, the useful exercise is not to rush into trades. It is to look. Pull up your holdings and see which positions are below what you paid. Check whether you have realized any gains this year, including capital gain distributions that many funds pay out in late November and December. Look at what you bought in the last month, since that affects the wash-sale window. Then decide whether a loss is worth realizing and what you would hold in the meantime.
Some investors do this every year as routine maintenance, the way you might rotate tires. Others do it once after a rough stretch in the market. Either approach is reasonable. What does not make sense is leaving it to chance, because losses that could have been used this year do not disappear, but the chance to apply them against this year’s gains does.
The broader lesson is one that runs through all of personal finance. What you keep matters as much as what you earn, and the rules around taxes reward people who understand them a little ahead of the deadline. A losing position is still a losing position. But with a clear head and a calendar, it can at least be made to pay something back.
This article is written for educational and informational purposes only and does not constitute financial or legal advice. The views and analytical frameworks presented draw on publicly available information and reported commentary from industry participants. Readers are encouraged to consult primary sources and form their own informed views on these complex topics.





