Tax Loss Harvesting: How to Turn Investment Losses Into Tax Savings
Tax loss harvesting lets investors use capital losses to offset gains and reduce their tax bill. Learn how the strategy works, wash-sale rules to avoid, and when it makes the most sense.
What Is Tax Loss Harvesting?
Tax loss harvesting is the practice of selling investments that have declined in value to realize a capital loss, then using that loss to offset capital gains elsewhere in your portfolio — reducing your overall tax liability. After selling the losing position, you typically reinvest the proceeds in a similar (but not identical) investment to maintain your desired market exposure while locking in the tax benefit.
The strategy does not eliminate taxes permanently; it defers them. If you reinvest in a similar asset at a lower cost basis, your future gains will be larger when you eventually sell. But by pushing taxes into the future, you keep more capital working for you today, which creates a compounding advantage over time. In some cases — particularly if you harvest losses in a high-income year and realize gains years later at a lower tax rate — the deferral can translate into a permanent saving.
Tax loss harvesting is most relevant for taxable brokerage accounts. Retirement accounts like IRAs and 401(k)s are tax-sheltered, so gains and losses within them do not trigger immediate tax consequences, and harvesting losses in those accounts provides no tax benefit.
How Capital Losses Offset Gains
The IRS allows capital losses to offset capital gains on a dollar-for-dollar basis. If you have $10,000 in capital gains and $6,000 in capital losses, your net taxable gain is $4,000. The offset works regardless of whether the gains and losses are short-term (assets held one year or less) or long-term (assets held more than one year), though the IRS applies a specific netting order.
Short-term losses are first used to offset short-term gains, and long-term losses offset long-term gains. If losses in one category exceed gains in that category, the excess spills over to offset gains in the other category. This netting order matters because short-term gains are taxed at ordinary income rates (up to 37%), while long-term gains are taxed at preferential rates (0%, 15%, or 20% depending on income). Using a long-term loss to offset a short-term gain is more valuable than using it against a long-term gain.
If your total capital losses exceed your total capital gains for the year, you can deduct up to $3,000 of the excess loss against ordinary income ($1,500 if married filing separately). Any remaining losses beyond that $3,000 limit carry forward to future tax years indefinitely, maintaining their character as short-term or long-term.
The Wash-Sale Rule: The Critical Constraint
The IRS wash-sale rule prevents investors from claiming a tax loss while maintaining substantially the same investment position. Under this rule, if you sell a security at a loss and purchase a "substantially identical" security within 30 days before or after the sale — a 61-day window total — the loss is disallowed. The disallowed loss is added to the cost basis of the replacement security, effectively deferring (not eliminating) the loss until the replacement is sold.
"Substantially identical" is not precisely defined by statute, but the IRS and tax courts have provided guidance. Selling a stock and buying the same stock back violates the rule. Selling a mutual fund and buying the identical fund violates the rule. However, selling one S&P 500 ETF and buying a different S&P 500 ETF from a different fund family — say, selling Vanguard's VOO and buying iShares' IVV — is generally considered acceptable, though some tax professionals advise caution even with this approach given the high correlation.
The wash-sale rule applies across all your accounts, including IRAs. If you sell a stock at a loss in your taxable account and your spouse or a controlled entity buys the same stock within the window, the rule can still apply. Planning harvesting transactions requires awareness of all related accounts and any automatic dividend reinvestment plans that might inadvertently trigger the rule.
When Tax Loss Harvesting Makes the Most Sense
The benefit of tax loss harvesting is greatest when you have significant realized gains in the same tax year — from asset sales, mutual fund distributions, or other taxable events — that you want to offset. In years where you have no capital gains, harvested losses still reduce ordinary income by up to $3,000 and carry forward, but the immediate benefit is more modest.
High-income investors benefit most from the strategy because they face the highest capital gains tax rates (20% long-term rate plus the 3.8% Net Investment Income Tax for incomes above certain thresholds) and the highest ordinary income rates. For an investor in the 0% long-term capital gains bracket — which applies to taxable income up to roughly $47,000 for single filers in 2025 — harvesting losses has little immediate value since gains are already untaxed.
Volatile markets create more harvesting opportunities. When asset prices fluctuate significantly, portions of a diversified portfolio frequently show losses even when the overall portfolio is up for the year. Systematic, year-round monitoring of positions — rather than waiting until December — captures more of these opportunities before markets recover and losses disappear.
Practical Implementation
Implementing tax loss harvesting requires identifying positions with unrealized losses, calculating the potential tax savings, and finding appropriate replacement investments that maintain your strategic asset allocation without triggering the wash-sale rule. For a broadly diversified portfolio, there are often suitable substitutes: different funds tracking similar but not identical indexes, individual stocks in place of ETFs, or sector funds to maintain exposure while the holding period passes.
Many robo-advisors and some brokerage platforms now offer automated tax loss harvesting, scanning portfolios continuously and executing harvesting trades algorithmically. These services can be effective for investors with straightforward portfolios, though they may generate frequent trading activity and can sometimes over-optimize for tax efficiency at the expense of investment simplicity or fund expense ratios.
Keeping detailed records is essential. Each harvested lot needs to be tracked with its sale date, proceeds, original cost basis, and the replacement security purchased. At tax time, this information flows to Schedule D and Form 8949. Brokerage statements now typically provide cost basis information, but for complex portfolios with multiple lots purchased at different prices, careful record-keeping prevents errors and missed opportunities to use specific lot identification to maximize the value of each harvesting decision.
Common Mistakes and Misconceptions
One common mistake is harvesting losses in a panic during a market downturn without a clear plan for reinvestment. If you sell a declining position for tax purposes but then stay in cash while the market recovers, you may miss significant gains that would have outweighed the tax benefit. The strategy requires disciplined reinvestment into a comparable position immediately after selling — the goal is to capture a tax benefit, not to time the market.
Another misconception is that harvesting losses is always beneficial. Transaction costs, bid-ask spreads, and the complexity of tracking replacement securities all create friction. For small positions or modest losses, these costs can outweigh the tax benefit, especially if you are in a low tax bracket. The break-even analysis requires estimating your marginal tax rate on gains, the size of the loss, transaction costs, and the expected duration of the deferral.
Finally, investors sometimes forget that carry-forward losses are an asset that should factor into future planning. If you have accumulated significant loss carryforwards, you may be able to realize gains more aggressively in coming years — rebalancing a portfolio, selling appreciated shares to fund major purchases, or timing asset sales — without incurring tax, effectively using the carryforward as a buffer. Integrating loss carryforward balances into each year's tax plan ensures you extract maximum value from previously harvested losses.
Integration with Overall Tax Strategy
Tax loss harvesting is most powerful when integrated with a holistic tax strategy rather than executed in isolation. Coordinating harvesting with Roth conversion planning, charitable giving decisions, income timing, and retirement account contributions can multiply the benefits. For example, harvesting significant losses in the same year you execute a large Roth conversion allows you to offset some of the ordinary income generated by the conversion.
For high-net-worth investors with complex portfolios, tax loss harvesting can generate tens of thousands of dollars in annual tax savings with proper management. Academic research suggests that systematic harvesting can add 0.5% to 1.5% of portfolio value per year in tax alpha — though actual results depend heavily on portfolio volatility, tax rates, and investment horizon. Over decades, even modest annual tax alpha compounds into a meaningful wealth advantage.
Related Articles
taxes
1099 Contractor Taxes: Quarterly Payments, Safe Harbor, and Schedule C
Independent contractors must pay estimated taxes quarterly and file Schedule C. Learn 2024 deadlines, safe harbor rules, 1099-NEC vs. 1099-MISC differences, and penalty avoidance.
9 min read
taxes
Bonus Depreciation 2024: 60% Rate, Phase-Down Schedule, and Qualified Property
Bonus depreciation drops to 60% in 2024, 40% in 2025, and 20% in 2026. Learn qualified property rules, anti-churning provisions, and how to plan around the phase-down.
9 min read
taxes
Capital Gains Tax Explained: Rates, Rules, and How to Minimize It
Understand how capital gains tax works, the difference between short-term and long-term rates, special rules for home sales, and legal strategies to reduce your bill.
9 min read
taxes
Charitable Giving and Taxes: Deductions, Donor-Advised Funds, and QCDs
Donating to charity can reduce your tax bill significantly — if you use the right strategies. Learn how charitable deductions work, how donor-advised funds amplify benefits, and what qualified charitable distributions offer retirees.
9 min read