Tax Strategy Investing

Tax-loss harvesting without wrecking your plan

A market dip feels like nothing but bad news — but in a taxable account, a paper loss can be turned into a real, usable tax break, all while you stay fully invested. That’s tax-loss harvesting. Done right, it quietly lowers your tax bill for years; done carelessly, the wash-sale rule wipes out the benefit or nudges your portfolio off course. Here’s exactly how it works, when it’s genuinely worth it, and the traps to sidestep.

$3,000
Losses you can deduct against ordinary income each year
Plus carryforward
61 days
The wash-sale window: 30 days before and after the sale
The trap
Taxable only
Nothing to harvest inside a TSP, IRA, or 401(k)
Where it applies
Stay invested
Reinvest in a similar fund — you never leave the market
The key move

1. Turning a dip into a deduction

When the market drops, most investors feel only the sting of a smaller balance. But if you hold investments in a taxable brokerage account, a downturn hands you a genuine opportunity: the chance to convert a temporary paper loss into a real tax benefit you can use for years — without abandoning your investment plan or trying to time the market. That’s the quiet appeal of tax-loss harvesting, and it’s one of the few silver linings in a red market.

The core idea is elegant. You sell an investment that’s currently worth less than you paid, which “realizes” a capital loss on paper. That loss then goes to work on your taxes — offsetting gains and even some ordinary income. And because you immediately reinvest the money into a similar investment, you stay in the market with essentially the same exposure. You’ve captured a tax deduction while your long-term strategy keeps humming along, unchanged.

But two things separate a smart harvest from a self-inflicted mistake. The first is the wash-sale rule, an IRS trap that can disallow your loss entirely if you rebuy the wrong thing at the wrong time. The second is knowing whether it’s even worth it for you — because harvesting is genuinely valuable in some situations and pointless or counterproductive in others. This guide covers both, so you can use the tool where it helps and skip it where it doesn’t. Like most of tax strategy, the goal isn’t to chase every possible move — it’s to make the ones that actually improve your after-tax outcome.

2. How it actually works

Strip it to the essentials and tax-loss harvesting is three moves: sell at a loss, capture the loss, stay invested. Suppose you bought a broad stock index fund in your taxable account and it’s now worth less than you paid. You sell it, locking in a capital loss equal to the difference between your purchase price (your “cost basis”) and the sale price. That realized loss is the raw material — it’s what you’ll use to reduce your taxes.

The crucial third move is what keeps this from being market timing: you immediately reinvest the proceeds in a similar but not identical investment. Sell one broad U.S. stock index fund and buy a different broad U.S. stock index fund that tracks a slightly different index, and your money is right back in the market with virtually the same risk and return profile — you never stepped out. You’ve harvested the tax loss without changing your actual investment exposure or betting on a rebound.

That’s the whole trick, and it’s why harvesting is often described as “free” in the right circumstances: you end up with the same portfolio you started with, plus a tax loss you can use. The catches — the wash-sale rule that governs what “not identical” means, and the question of whether the benefit is real or just deferred — are what the rest of this guide unpacks. The mechanics themselves are simple; the discipline is in following the rules exactly.

3. The mechanics, step by step

Here’s the sequence a careful harvest follows, from spotting the opportunity to booking the benefit.

THE HARVEST, START TO FINISH 1Spot the loss A taxable holdingnow worth lessthan you paid. 2Sell & realize it Lock in the capitalloss on paper. 3Rebuy similar A different fund,not “identical.”Stay invested. 4Use the loss Offset gains,then $3k income,carry the rest. The 30-days-before-and-after wash-sale window governs step 3: don’t rebuy the identical security. Get that right and your exposure is unchanged — you just added a usable tax loss.
The harvest in four steps. The only technically delicate move is step 3 — reinvesting in something similar but not “substantially identical,” to keep your exposure while satisfying the wash-sale rule.

4. The wash-sale rule

This is the rule that trips people up, so understand it precisely. The wash-sale rule says that if you sell a security at a loss and buy the same or a “substantially identical” security within 30 days before or after the sale, the IRS disallows the loss — it’s a “wash,” and you get no deduction. The window is 61 days in total (30 before, the day of, and 30 after), and it exists specifically to stop people from selling only for the tax break and instantly rebuying the exact same thing.

The workaround is the heart of good harvesting: reinvest in something similar but not substantially identical. Selling one broad U.S. total-market fund and immediately buying a different broad U.S. index fund that tracks a different index (say, an S&P 500 fund in place of a total-market fund) generally keeps you invested with nearly the same exposure while steering clear of the rule. Buying back the identical fund — or, for individual stocks, the same stock — inside the window is what triggers the disallowance.

The trap almost everyone misses

The wash-sale rule applies across all your accounts — including your IRA, and even your spouse’s accounts. Sell a fund at a loss in your taxable account and have it automatically repurchased (via dividend reinvestment or a scheduled buy) in your IRA within the window, and the loss is disallowed. Turn off automatic reinvestment on holdings you’re harvesting, and watch every account — not just the one you sold in.

5. How losses offset gains & income

Once you’ve harvested a loss, here’s how it actually reduces your taxes — in a specific order that determines its value. First, capital losses offset capital gains dollar-for-dollar. Losses net against gains of the same type first (short-term against short-term, long-term against long-term), then across types. This is often where the biggest benefit lives, because it can wipe out short-term gains that would otherwise be taxed at your high ordinary-income rates.

If your losses exceed your gains, the excess does something valuable: up to $3,000 of net capital loss can be deducted against your ordinary income each year — your salary, pension, and other ordinary income — directly lowering your taxable income. And if you still have losses left over beyond that, they don’t vanish: the unused amount carries forward indefinitely to future tax years, available to offset future gains or another $3,000 of income annually, for as long as it takes to use up.

That carryforward is underappreciated. A big harvested loss in a bad market year can become a reservoir you draw on for years — sheltering future gains when you rebalance or sell, or shaving $3,000 off your taxable income every year until it’s gone. It pairs naturally with other tax moves: the losses you bank can offset the gains you generate elsewhere in your plan. Understanding how different income is taxed — ordinary vs. capital gains — is what lets you see exactly where a harvested loss does the most good.

High earners get an extra layer of benefit worth naming. Above certain income thresholds, investment income is hit with an additional 3.8% net investment income tax (NIIT) on top of ordinary capital-gains rates. Because harvested losses reduce your net investment income, they can also trim or eliminate that surtax — a quiet bonus that makes harvesting meaningfully more valuable for high-income households than the headline rates suggest. If your income is in that range, factor it in; our guide to the 3.8% net investment income tax explains who it hits and how offsetting gains helps.

6. It only works in taxable accounts

This is the boundary that catches people, so it deserves to be stated flatly: tax-loss harvesting only applies to taxable brokerage accounts. There is nothing to harvest inside a TSP, IRA, 401(k), or any other tax-sheltered account, because gains and losses inside those accounts aren’t taxed as they happen — you’re taxed (or not, for Roth) only when money comes out. A loss inside your TSP is just a lower balance; it produces no deductible event.

For many federal employees, this narrows where harvesting is even relevant. If the bulk of your investing lives in your tax-advantaged accounts — the TSP and IRAs, which is exactly where the financial order of operations steers most of your money — then tax-loss harvesting simply doesn’t apply to that portion. It only comes into play once you’re investing in a taxable brokerage account, typically after those sheltered buckets are full (the “hyper-accumulation” stage) or for money you specifically want accessible before retirement.

So the honest framing for most feds is this: harvesting is a tool for the taxable slice of your portfolio, and its importance grows with the size of that slice. If you don’t have a taxable brokerage account yet, this is a strategy to file away for later, not a gap in your current plan. If you do have significant taxable investments, it’s worth knowing well — which brings us to whether, and when, it actually pays off.

7. Deferral vs. real savings

Here’s the nuance the enthusiastic write-ups often skip, and it’s important for setting realistic expectations: much of tax-loss harvesting’s benefit is tax deferral, not always permanent tax savings. When you sell at a loss and rebuy a similar fund, your new investment has a lower cost basis than before. So when you eventually sell that replacement someday, you’ll have a larger gain — and owe tax then that the harvest “saved” you now.

That doesn’t make harvesting worthless — far from it — but it reframes the value. The benefit comes from timing and rate arbitrage: you get the deduction now (worth more than the same dollars later, thanks to the time value of money), you may offset high-taxed short-term gains today while your future gain is taxed at lower long-term rates, and in some cases the deferred gain is never taxed at all — if you hold the replacement until death, heirs receive a step-up in basis that erases it, or if you donate the appreciated shares to charity, the gain disappears. In those cases the deferral becomes a true, permanent saving.

Think of harvesting less as “free money” and more as an interest-free loan from the IRS, taken in a down market — one you may never fully repay if you plan the eventual sale (or non-sale) well.

The practical upshot: harvesting is most powerful when you can pair the up-front deduction with a plan to make the eventual gain cheap or nonexistent — offsetting short-term gains now, or holding replacement shares for a step-up or charitable gift later. Treated as a one-time “free” win with no thought to the future gain, it’s still usually positive, just less than it looks.

The endgames that turn deferral into permanent savings are worth planning toward deliberately. If you hold the replacement shares until death, your heirs get a stepped-up basis and the deferred gain vanishes entirely — the harvest becomes a pure, permanent win. If you donate appreciated shares to charity instead of selling them, you skip the capital-gains tax on the gain and get a deduction for the full value — another way the deferred tax simply disappears (a strategy that pairs well with charitable tools like qualified charitable distributions in a broader giving plan). Harvest the loss now, and route the low-basis replacement shares to one of these exits later, and you’ve captured the deduction without ever paying the piper.

8. When it’s worth it — and when it isn’t

Because the benefit ranges from substantial to negligible, it’s worth being clear about where harvesting earns its keep. It’s most valuable when you have a large taxable account, meaningful realized gains to offset (especially short-term gains taxed at high rates), a high income and tax bracket, and the discipline to follow the wash-sale rule and manage your basis. For a high earner with a big brokerage account in a down market, a well-run harvest can be genuinely worth thousands.

It’s not worth it — or actively counterproductive — in several common situations. If you’re in a very low tax bracket, harvesting losses may be the wrong move entirely; you might prefer to harvest gains at the 0% rate instead (see the next section). If your only investments are in tax-sheltered accounts, there’s nothing to harvest. If the potential benefit is tiny relative to the effort — a small account, a small loss — the complexity and the risk of a wash-sale error can outweigh the gain. And if chasing losses causes you to trade too much or drift from your target allocation, you’ve let a tax tail wag the investing dog — a classic version of the mistakes that quietly cost investors.

The balanced view: tax-loss harvesting is a useful, legitimate tool in the right hands and the right account, not a universal obligation. Many robo-advisors and some brokerages automate it, which lowers the effort for those it suits. But it should always serve your overall plan — never distort it. If a harvest would push you to over-trade, abandon a good allocation, or spend hours chasing a trivial benefit, the right move is to skip it.

A quick sense of scale helps. Say a high-bracket investor holds a broad index fund in a taxable account that’s fallen $40,000 below cost during a downturn. They sell, book the $40,000 loss, and immediately buy a different broad index fund — unchanged exposure. That loss might wipe out $30,000 of gains they’d realized rebalancing earlier in the year, plus $3,000 against ordinary income, with $7,000 carrying forward to next year. The tax saved could easily run into the thousands, all for a couple of trades and no change to their actual portfolio. Now run the same move on a $2,000 loss in a low bracket, and the payoff barely clears the hassle — the same mechanics, a fraction of the value. That contrast is the whole “is it worth it” question in miniature. Many brokerages and robo-advisors now automate harvesting, which makes it sensible for the large-taxable-account crowd it suits — just make sure any automation respects the wash-sale rule across your other accounts, which it can’t always see.

9. The low-bracket twist: harvesting gains

Here’s the counterintuitive flip side that many people never learn: if you’re in a low tax bracket, the smarter move in a taxable account may be to harvest gains rather than losses. The tax code offers a 0% long-term capital-gains rate for taxpayers whose income falls below certain thresholds — which means you can sell appreciated investments and pay zero tax on the gain, as long as you stay under the limit.

Why do that? Because realizing gains at 0% and immediately rebuying resets your cost basis higher for free — there’s no wash-sale rule on gains, so you can rebuy the identical fund instantly. That higher basis means smaller taxable gains (and less tax) when you eventually sell for real. For retirees in the gap years between leaving work and starting Social Security or required distributions — often a genuinely low-income window — this “gain harvesting” can be more valuable than loss harvesting ever would be. Our guide to the 0% capital-gains bracket covers exactly how to use it.

The lesson connecting both strategies: what to do in a taxable account depends heavily on your bracket. High earners with gains to offset lean toward harvesting losses; low-bracket investors (and many early retirees) often benefit more from harvesting gains at 0%. Knowing which situation you’re in — and it can change year to year, especially around retirement — is what turns a taxable account from a tax drag into a tax-planning opportunity. This is also why harvesting decisions belong alongside your other year-end moves like Roth conversions, which compete for the same bracket space.

10. A practical playbook

If harvesting fits your situation, here’s how to do it cleanly.

1. Confirm it applies. Do you have a taxable brokerage account with holdings below their cost basis, and gains or income to offset? If not, skip it.

2. Check your bracket first. High bracket with gains to offset → harvest losses. Low bracket → consider harvesting gains at 0% instead.

3. Identify the lots to sell. Use specific-lot identification to sell the shares with the largest losses, not an average. Your brokerage can show cost basis by lot.

4. Line up the replacement before you sell. Choose a similar-but-not-identical fund so you’re reinvested immediately and never out of the market — keeping your index-fund exposure intact.

5. Respect the 61-day window across every account. Turn off automatic dividend reinvestment on the harvested holding, and make sure nothing rebuys the identical security — including in your IRA or a spouse’s accounts.

6. Track your basis and carryforward. Record the new (lower) basis and any loss carrying forward, so future-you uses it and plans the eventual sale.

7. Don’t let it distort the plan. If harvesting would drift your allocation or trigger over-trading, don’t. The tax tail never wags the investing dog.

11. Mistakes to avoid

A handful of errors turn a good idea into a bad outcome. Steer clear of these.

Triggering a wash sale by accident. The classic one — rebuying the identical fund within the window, or letting automatic reinvestment (often in another account, like your IRA) do it for you. The loss is disallowed and the effort wasted.

Harvesting in the wrong account. There’s no benefit inside a TSP, IRA, or 401(k). Only taxable accounts qualify.

Ignoring your bracket. Harvesting losses when you’re in the 0% capital-gains zone can mean missing the chance to reset basis for free by harvesting gains instead.

Over-trading for tiny benefits. Chasing small losses with frequent trades adds complexity and risk for little reward, and can pull your portfolio off target. And forgetting it’s partly deferral — treating the deduction as pure savings without accounting for the lower basis and larger future gain — leads to overestimating the payoff. Harvesting is a solid tool used deliberately; it’s a nuisance (or worse) used reflexively. Keep it in service of the plan, not the other way around.

12. FAQ

What is tax-loss harvesting?

Selling an investment in a taxable account for less than you paid to realize a capital loss, then using that loss to offset capital gains and up to $3,000 of ordinary income — while immediately reinvesting in a similar (not identical) fund so you stay in the market. It turns a market dip into a usable tax deduction without changing your plan.

What’s the wash-sale rule?

If you buy the same or a “substantially identical” security within 30 days before or after selling at a loss (a 61-day window), the loss is disallowed. Avoid it by reinvesting in a similar-but-different fund. It applies across all your accounts, including IRAs and a spouse’s — a commonly missed trap.

How much can it save me?

It depends on your gains, bracket, and losses. Losses offset gains dollar-for-dollar (most valuable against high-taxed short-term gains), then up to $3,000 against ordinary income yearly, with the rest carrying forward indefinitely. Most benefit is modest but real; it’s largest for high earners with big taxable accounts — and remember it’s partly deferral.

Is it always worth doing?

No. It only applies to taxable accounts (not TSP/IRA), can be pointless in a very low bracket (where harvesting gains at 0% may be better), isn’t worth it for tiny amounts, and shouldn’t be allowed to distort your allocation. A useful tool in the right situation, not a universal must-do.

What’s “harvesting gains”?

If your income is low enough to qualify for the 0% long-term capital-gains rate, you can sell appreciated investments, pay no tax on the gain, and rebuy immediately (no wash-sale rule on gains) to reset your cost basis higher — reducing future taxes. Often more valuable than loss harvesting for low-bracket investors and early retirees.

Sources
  1. IRS, Topic No. 409 Capital Gains and Losses
  2. IRS Publication 550 (wash sales)
  3. IRS, capital-loss deduction and carryover