
Tax-loss harvesting sounds like something you’d need a Wall Street desk to pull off, but the idea is pretty simple. You sell an investment that’s dropped in value, book the loss, and use it to cancel out capital gains or a slice of your ordinary income on that year’s tax return. It sits right where portfolio management, tax planning, and plain old investor psychology bump into each other. For someone who’s steadily piling up savings and counting on compound interest to do the heavy lifting, selling at a loss can feel all wrong—you’re making a paper loss real instead of waiting for it to fade. But when you do it thoughtfully, it cuts your tax bill, frees up cash you can put right back to work, and shortens the time it takes for your account balance to climb out of a hole. This piece walks through how it works, the numbers behind it, and the mental shift that turns tax-loss harvesting into a quiet little accelerator for patient savers.
What Tax-Loss Harvesting Actually Does
When you sell a stock, bond, or fund for less than you paid, the IRS labels that a capital loss. You can use it to offset capital gains dollar for dollar. If your losses run bigger than your gains, you can deduct up to $3,000 a year against ordinary income—wages, interest, freelance earnings, you name it—and carry forward whatever’s left to future tax years. The immediate payoff is a smaller tax bill. The longer-term payoff is what you do with the cash from the sale.
Plenty of investors stop at the tax savings and call it a win. But the real muscle of tax-loss harvesting shows up when you reinvest the proceeds into a similar—not identical—asset, so you stay in the market while pocketing the tax benefit. Your asset allocation stays on track, and your money keeps working. Over time, those tax savings compound, a lot like interest does.
The Wash-Sale Rule and How to Stay Compliant
The IRS wash-sale rule says you can’t claim a loss if you buy the same or a “substantially identical” security within 30 days before or after the sale. Mess that up, and the loss gets disallowed and tacked onto the cost basis of the new shares. To harvest a loss cleanly, you need a replacement that tracks the same market exposure without stepping over the line. For example, you might sell a total U.S. stock market index fund and buy an S&P 500 fund. The two move in near lockstep but aren’t substantially identical. After 31 days, you can switch back if you want—or just stick with the new holding.
Brokerage firms and robo-advisors often handle this automatically, but knowing the rule yourself helps you dodge accidental wash sales across accounts, including IRAs and spousal accounts. The IRS has never defined “substantially identical” with perfect clarity, so conservative choices—different index providers, different fund families—tend to be the safer bet.
The Math of Recovery: How Tax Savings Shorten the Bounce-Back
Picture this: you put $10,000 into a broad-market ETF at the start of the year. By midyear, the position is worth $8,000—a 20% drop. Without tax-loss harvesting, you just hold on. The market has to climb 25% from that low point just to get you back to $10,000. That kind of recovery can drag on for months or years.
Now imagine you sell, realize a $2,000 loss, and immediately buy a similar but not identical ETF with the $8,000. You also apply that $2,000 loss against ordinary income. If your marginal tax rate is 24%, you save $480 in federal tax. You can add that $480 to your investment account and put it to work. Your invested capital is now $8,480 instead of $8,000. The market still has to rise, but your break-even point is lower. The recovery math tilts in your favor.

A Worked Example with Real Numbers
Let’s make this concrete. Clara has a taxable brokerage account with a single U.S. stock fund. She bought shares at different times, and one lot she picked up for $15,000 is now worth $10,500—a $4,500 paper loss. She has no capital gains this year, so she’ll use the loss against ordinary income. Her marginal rate is 22%.
- Without harvesting: She holds. The $10,500 stays invested. No tax benefit. To recover to $15,000, the fund has to gain about 42.9%.
- With harvesting: She sells, realizes the $4,500 loss. She deducts $3,000 against income (the annual limit) and carries forward $1,500. The tax saving on the $3,000 deduction is $660. She reinvests the $10,500 plus the $660 into a similar fund. Her new cost basis is $11,160. The fund now needs to gain about 34.4% to reach $15,000. The recovery target is meaningfully lower.
The difference in required return—42.9% versus 34.4%—might not sound huge, but in a slow, grinding recovery, that gap can represent several months or even a year of market gains. And if Clara repeats this discipline across multiple losing lots over the years, the cumulative effect on her portfolio’s path starts to look substantial.
When Tax-Loss Harvesting Works Best
Tax-loss harvesting isn’t a universal good. It shines in specific conditions, and knowing them helps you avoid unnecessary trading.
High Tax Brackets and Taxable Accounts
The higher your marginal tax rate, the more each dollar of harvested loss is worth. For someone in the 37% bracket, a $3,000 deduction saves $1,110. For someone in the 12% bracket, it saves $360. The strategy also only applies to taxable accounts. Losses inside an IRA or 401(k) offer no current tax benefit because those accounts already grow tax-deferred or tax-free.
Regular Contributions Create More Lots to Harvest
If you invest a lump sum once and never add to it, your chances to harvest are limited to that single purchase lot. But if you contribute monthly or quarterly—as plenty of long-horizon savers do—you create many tax lots at different cost bases. During a market dip, some of those lots will almost certainly be underwater, even if your overall position is in the green. This is where specific identification of shares matters. By choosing which lots to sell, you can realize losses while keeping older, highly appreciated shares untouched.
This ties directly to the habit of steady contributions. A small weekly bump, sustained over decades, builds not just wealth but also a rich set of tax lots that give you flexibility. For a deeper look at how small, consistent additions reshape your retirement number, see What a Ten-Dollar Weekly Bump Actually Does to Your Retirement Number.
Volatile Markets and Sector Downturns
Broad market declines create obvious opportunities, but sector-specific or asset-class downturns can be even richer ground. If you hold a diversified portfolio, some piece of it is often underperforming. You can harvest losses in that slice while the rest of your portfolio continues to grow. This is one reason why holding separate funds for different asset classes—rather than a single balanced fund—can increase your harvesting opportunities in a taxable account.
Common Pitfalls and How to Sidestep Them
Even a well-understood strategy can go sideways if you overlook the details. Here are the most frequent missteps I see, along with practical fixes.
Letting the Tax Tail Wag the Investment Dog
Tax-loss harvesting should serve your long-term plan, not dictate it. If you sell a fund you genuinely want to own for decades, you need a replacement you’re equally happy to hold forever. Swapping into a higher-cost or less suitable fund just to capture a loss is a net negative. The tax savings are a one-time benefit; the ongoing drag of a subpar investment compounds against you.
Before you sell, ask: “Would I be content holding this replacement for ten years?” If the answer is no, the loss may not be worth harvesting.
Forgetting About State Taxes
Most states with income taxes follow the federal treatment of capital losses, but not all. Some states limit or decouple from federal rules. If you live in a state with high income taxes, the combined federal-plus-state benefit can be even larger. If you live in a state with no income tax, the benefit is smaller. Check your state’s rules or consult a tax professional before assuming the federal math applies cleanly.
Triggering Unintended Wash Sales
Automatic dividend reinvestment is a common culprit. If you sell a fund at a loss and a dividend reinvestment buys shares of the same fund within the 30-day window, you have a partial wash sale. Turn off automatic reinvestment for the fund you’re selling, and for any substantially identical funds you hold, at least 31 days before you harvest. Also watch for purchases in your IRA or your spouse’s accounts—the wash-sale rule applies across all accounts you control.

How Tax-Loss Harvesting Fits into a Long-Horizon Philosophy
Compound interest gets called the eighth wonder of the world, but its twin—compound tax efficiency—deserves equal billing. Every dollar you avoid paying in taxes today is a dollar that can stay invested, earning returns that themselves generate more returns. Over a 30- or 40-year accumulation period, the difference between a portfolio that regularly harvests losses and one that ignores them can be tens of thousands of dollars.
This isn’t about market timing. You’re not selling because you think the market will fall further. You’re selling to capture a tax benefit, and you’re immediately reinvesting the proceeds to maintain your exposure. The discipline is in staying invested, not in guessing the market’s next move.
Building a Harvesting Habit
For most long-horizon investors, tax-loss harvesting works best as a periodic review, not a daily obsession. Once a quarter or after a sharp market drop, scan your taxable account for lots with meaningful losses. A loss of 5% or more is often worth harvesting, but the threshold depends on your tax rate and transaction costs. With most brokerages now offering commission-free trades, the cost hurdle is low.
Keep a simple log: date of sale, amount of loss, replacement fund purchased, and the date you can safely repurchase the original fund without triggering a wash sale. This log also helps you track carryforward losses for future tax years.
The Behavioral Side: Making Peace with Red
Selling at a loss feels wrong. Our brains are wired for loss aversion—the pain of losing $1 is psychologically about twice as powerful as the pleasure of gaining $1. Tax-loss harvesting asks you to override that instinct and act deliberately. One way to reframe it: you’re not abandoning the investment. You’re exchanging it for a nearly identical one and getting a tax benefit in the process. The economic exposure remains; only the tax lot changes.
This reframing matters because the biggest risk in downturns isn’t the paper loss itself—it’s the behavioral mistake of selling low and staying in cash, waiting for a “better time” to get back in. Tax-loss harvesting, done correctly, keeps you invested. It channels the urge to “do something” into a productive, rules-based action rather than a fear-driven exit.
How Tax-Loss Harvesting Affects Future Tax Bills
There’s a trade-off to understand: when you sell a losing position and buy a replacement, you lower your cost basis. That means when you eventually sell the replacement, your capital gain will be larger than it would have been if you’d simply held the original investment. In effect, you’re deferring taxes, not eliminating them.
For a long-horizon investor, this deferral is valuable. A dollar of tax saved today can be invested for decades. Even if you pay the same tax rate later, the compounding on the deferred amount creates a net gain. And if you hold the replacement shares until retirement, when your income—and tax rate—may be lower, the benefit is even larger. Some investors also use charitable giving strategies or plan to pass appreciated shares to heirs, which can eliminate the deferred gain entirely through a step-up in basis.
Offsetting Ordinary Income vs. Capital Gains
The $3,000 annual deduction against ordinary income is especially powerful because ordinary income tax rates are higher than long-term capital gains rates for most taxpayers. A $3,000 loss that offsets 22% ordinary income saves $660. If that same loss instead offset long-term capital gains taxed at 15%, it would save only $450. For this reason, many tax-savvy investors prioritize using losses against ordinary income and let long-term gains run unrealized.
Carryforward losses give you flexibility. You can use them in future years when your income is higher, or when you have large capital gains from rebalancing or a planned sale. Think of them as a tax asset on your personal balance sheet—one that can smooth out tax bills over time.
Frequently Asked Questions
Can I harvest a loss and buy the same fund back right away?
No. The wash-sale rule prohibits buying the same or a “substantially identical” security within 30 days before or after the sale. If you do, the loss is disallowed and added to the cost basis of the new shares. To stay invested, buy a similar but not substantially identical fund—for example, swapping one S&P 500 index fund for another from a different provider that tracks a different index.
Does tax-loss harvesting make sense if I’m in a low tax bracket?
It can, but the benefit is smaller. If your marginal rate is 10% or 12%, a $3,000 deduction saves $300–$360. The strategy still has value if you expect your income to rise in the future, because carryforward losses can offset higher-rate income later. However, the effort of tracking lots and avoiding wash sales may not be worth it for very small tax savings. Evaluate your own time and tax situation honestly.
What happens to harvested losses I can’t use this year?
Unused capital losses carry forward indefinitely. You can apply them against capital gains and up to $3,000 of ordinary income each year until the loss is exhausted. There is no expiration date. Keep good records, because the carryforward amount is reported on your tax return each year, and you are responsible for tracking it accurately.
Can I harvest losses in my IRA or 401(k)?
No. Tax-loss harvesting only applies to taxable brokerage accounts. Losses inside tax-advantaged retirement accounts do not generate a tax deduction because those accounts are already tax-deferred or tax-free. In fact, selling at a loss inside an IRA can be counterproductive if it locks in a loss without any offsetting tax benefit.
Putting It All Together: A Year-End Routine
Here is a simple routine you can adopt to make tax-loss harvesting a regular part of your financial calendar, without letting it take over your life.
- Late November: Review your taxable account for lots with unrealized losses. Flag any that are down 5% or more from your purchase price.
- Identify replacement funds: For each flagged holding, choose a similar but not substantially identical fund you would be comfortable owning long-term.
- Check for wash-sale conflicts: Turn off dividend reinvestment for the funds you plan to sell. Review recent purchases in all accounts to avoid accidental wash sales.
- Execute sales and purchases: Sell the losing lots and immediately buy the replacement funds. Do this in a single trading session to minimize time out of the market.
- Document everything: Record the date, loss amount, replacement fund, and the date after which you can safely repurchase the original fund. Keep this with your tax records.
- Revisit in January: After 31 days, decide whether to switch back to the original fund or stay with the replacement. Either choice is fine as long as it aligns with your long-term plan.
This routine takes less than an hour once or twice a year. For that small investment of time, you can shave months off your portfolio’s recovery timeline and keep more of your money working for you. In a long-horizon wealth plan, that’s a quiet but real edge.