Tax-Loss Harvesting, Explained

Tax-loss harvesting sounds like alchemy: lose money on purpose, pay less tax. Robo-advisors market it as a sophisticated edge, and the phrase gets dropped in year-end money articles like everyone should be doing it daily. The reality is more mundane and more useful. It's a legitimate, IRS-recognized technique for reducing the taxes on your investments — but it only works in specific accounts, it's easy to neutralize by accident, and for most people the benefit is modest. This guide explains the mechanics, the famous wash-sale trap, and who should actually bother.

The short version

Tax-loss harvesting means selling investments at a loss in a taxable brokerage account so the losses offset your taxable gains (and a limited amount of ordinary income), reducing this year's tax bill. The catch is the wash-sale rule: buy the same or a "substantially identical" security within 30 days before or after the sale, and the loss is disallowed. It doesn't work in IRAs or 401(k)s (no taxable gains there to offset). It's real tax planning, not a loophole — but think of it as tax smoothing, since harvested losses lower your cost basis and increase future gains. Useful, not magical.

How the mechanics work

In a taxable brokerage account, selling an investment for more than you paid creates a taxable capital gain. Selling for less creates a capital loss — and the tax code lets those losses offset gains. Harvesting is simply doing this deliberately: near year-end (or whenever), you look at positions trading below what you paid, sell them to "realize" the loss, and use it to cancel out gains you realized elsewhere.

A simple example: you sold Fund A for a $5,000 gain and Fund B sits at a $3,000 unrealized loss. Sell Fund B, and your net taxable gain drops to $2,000. If losses exceed gains, the excess can offset a limited amount of ordinary income each year, with the remainder carried forward to future years. The IRS sets that annual ordinary-income offset limit — verify the current figure, as tax parameters change.

Two things people get wrong immediately. First, you must actually sell — paper losses on positions you still hold do nothing for your taxes. Second, this only matters in taxable accounts. Inside an IRA or 401(k), gains aren't taxed year to year, so there's nothing to offset. Harvesting in a retirement account is pure theater — worse, as we'll see, it can actively destroy harvesting you do elsewhere.

The wash-sale rule: the trap that eats the benefit

The IRS anticipated the obvious abuse: sell a fund at a loss on December 30th, buy it right back on January 2nd, claim the deduction while changing nothing economically. The wash-sale rule blocks this. If you buy a "substantially identical" security within 30 days before or after the loss sale — a 61-day window — the loss is disallowed for current-year purposes.

"Substantially identical" is where judgment lives. Selling one S&P 500 index fund to buy a different company's S&P 500 index fund is the classic gray area most practitioners consider acceptable — same index, different fund, different legal entity. Selling a stock and buying it back is clearly a wash. Selling a mutual fund and buying its ETF share class is clearly a wash. When in doubt, the conservative move is a fund tracking a different index with similar exposure.

The disallowed loss isn't destroyed — it's added to the cost basis of the replacement shares, which reduces your future gain. So a wash sale defers the benefit rather than erasing it. But deferral defeats the purpose of harvesting, which was to use the loss now.

The nastiest version of this trap crosses accounts: harvest a loss in your taxable account, but your 401(k)'s automatic contributions buy the same fund within the window — wash sale, loss disallowed, and because the replacement shares are in a tax-sheltered account, the basis adjustment is worthless. The loss effectively vanishes. If you harvest, you must coordinate all your accounts, including automatic dividend reinvestment.

Who actually benefits (and who shouldn't bother)

Clear beneficiaries: investors with large taxable accounts who regularly realize gains — from rebalancing, selling a business or property, or trimming concentrated positions. High earners in high tax brackets get more value per harvested dollar, since the offset shields income taxed at higher rates. For these folks, an annual harvesting review is genuine tax planning.

Marginal cases: buy-and-hold index investors with modest taxable accounts. If you rarely sell anything, there are few gains to offset, and the benefit shrinks to the annual ordinary-income offset — real, but small relative to the attention required. Doing it once a year in December captures most of the value; daily automation is overkill at this scale.

Shouldn't bother: anyone whose investments live entirely in IRAs and 401(k)s (nothing to harvest against), and anyone tempted to let harvesting drive investment decisions. The classic error is selling a good long-term holding just for the loss, replacing it with something worse, and calling it clever. The tax tail should never wag the investment dog — a principle that applies doubly here, since the benefit is a deferral, not a windfall.

One more honest note: harvesting lowers your cost basis, which means higher taxable gains later when you eventually sell. You're shifting taxes through time, not eliminating them. That's still valuable — a dollar of tax deferred for decades is worth real money — but anyone selling harvesting as "free money" is skipping the second half of the story.

Doing it without shooting yourself in the foot

Turn off automatic dividend reinvestment in the taxable account before harvesting season, or at least for the specific securities involved. An automatic reinvestment inside the 61-day window triggers a wash sale on autopilot — the most common self-inflicted version of this mistake.

Map all your accounts first. List every account — taxable, IRA, 401(k), spouse's accounts — holding the security or anything substantially identical. The wash-sale rule looks across all of them. Ten minutes with a spreadsheet prevents the vanishing-loss scenario.

Choose replacements deliberately. If you still want the market exposure, swap into a fund tracking a different index (total market instead of S&P 500, for instance). You stay invested — important, because sitting in cash for 31 days to "be safe" means missing whatever the market does next, which historically costs more than the harvest saves.

Don't harvest at the expense of your plan. If the losing position is something you intended to sell anyway, harvest away. If it's a core holding you'd keep for decades, think hard about whether the tax benefit justifies the churn, the bid-ask spreads, and the risk of messing up the wash-sale window. Often the best harvest is the one attached to a sale you were making regardless.

Keep records. Your brokerage tracks cost basis, but wash-sale adjustments across accounts are partly your responsibility to get right at tax time. When in doubt, a tax professional earns their fee here — the rules have more edge cases than any single article can cover.

A final framing note: tax law changes, and the specific limits, rates, and definitions referenced here reflect general principles, not a snapshot of current code. Verify the current figures with the IRS or a tax professional before acting — especially the annual loss-offset limits and what counts as substantially identical, where guidance evolves.

Frequently asked questions

What is the wash-sale rule?

The wash-sale rule disallows the tax loss if you buy a "substantially identical" security within 30 days before or after the sale that generated the loss — a 61-day window total. The disallowed loss isn't gone forever; it's added to the cost basis of the replacement shares, deferring the benefit. But it kills the immediate deduction you were harvesting for.

Does tax-loss harvesting work in an IRA or 401(k)?

No — and this is the most common misunderstanding. Tax-loss harvesting only matters in taxable brokerage accounts, because IRAs and 401(k)s don't tax gains year to year in the first place. There's nothing to offset. Worse, buying the same security in your IRA within the wash-sale window can permanently disallow a loss harvested in your taxable account.

How much can tax-loss harvesting save me?

It depends on your tax bracket, the size of your losses, and whether you have gains to offset. The mechanism is real but modest for most people — it defers taxes more than it eliminates them, since harvested losses lower your cost basis and raise future gains. Think of it as tax smoothing, not a windfall.

Is tax-loss harvesting worth doing manually?

For most investors, doing it once or twice a year around major life events (like selling a business or rebalancing) captures most of the value. Daily automated harvesting — the kind robo-advisors advertise — adds complexity for diminishing returns at smaller balances. The bigger wins are avoiding the wash-sale trap and not letting the tax tail wag the investment dog.

Educational content only — not financial advice.