What Is Tax-Loss Harvesting?
Written by: Will Osagiede, CFP®, AWMA®
Tax-loss harvesting is the practice of realizing investment losses in a taxable account to offset capital gains and, within IRS limits, reduce other income.
Tax-loss harvesting is one of those investing strategies that sounds more sophisticated than it really is. At its core, it means selling an investment in a taxable brokerage account for a loss so that the loss can help offset taxable gains elsewhere on your return.
That does not make it a magic tax button. A harvested loss can help, but it does not erase the economic fact that an investment went down in value. And if you try to preserve the same market exposure too carelessly, the IRS wash sale rules can disallow the loss for current tax purposes.
This article explains what tax-loss harvesting actually does, where it can help, how capital losses offset gains under IRS rules, and why the strategy only makes sense when it fits the broader investment plan.
Key Takeaways
- Tax-loss harvesting generally means realizing a capital loss in a taxable account so it can offset capital gains.
- If capital losses exceed capital gains, the IRS generally allows up to $3,000 of net capital loss per year to offset other income, with additional losses carried forward.
- The strategy usually matters in taxable accounts, not inside IRAs or workplace retirement plans.
- The wash sale rule can disallow a loss if you buy the same or a substantially identical security too close to the sale.
- Tax-loss harvesting can improve after-tax results, but it should not override asset allocation, risk control, or the reason you owned the investment in the first place.
What Tax-Loss Harvesting Actually Does
Tax-loss harvesting works by turning an unrealized decline into a realized tax loss. If you own an investment that is worth less than its adjusted cost basis and you sell it, that sale can create a capital loss for tax purposes.
That loss can then be netted against capital gains recognized during the same tax year. If you sold another investment at a gain, the harvested loss may reduce the amount of gain that ultimately remains taxable.
Seen that way, tax-loss harvesting is not about making a loss desirable. It is about using an existing loss more efficiently when you were already carrying it in a taxable portfolio.
Where the Strategy Usually Helps Most
The strategy is usually associated with taxable investing because taxable accounts are where realized gains and losses generally matter on the current return. If you sell stock, an ETF, or another investment at a loss in a taxable brokerage account, that loss can enter the capital-gain-and-loss netting rules for the year.
By contrast, selling positions inside a traditional IRA, Roth IRA, or workplace retirement plan does not usually create a deductible capital loss in the same way. Those accounts have their own tax structure, which is why tax-loss harvesting is normally discussed as a taxable-account strategy rather than a retirement-account strategy.
This point matters because investors sometimes hear the phrase and assume they should be scanning every account for losses. In practice, the account location is one of the first filters for whether the strategy is even relevant.
How Capital Losses Offset Gains and Other Income
The IRS does not treat every harvested loss as a stand-alone deduction against salary or business income. First, capital losses are used to offset capital gains under the capital-gain netting rules. If you have both gains and losses in the year, the net result determines how much capital gain or loss remains.
If your losses exceed your gains, the IRS generally allows an individual taxpayer to deduct up to $3,000 of net capital loss against other income in a year, or $1,500 if married filing separately. If the net loss is larger than that annual limit, the unused amount can generally carry forward to future years.
That carryforward rule is one reason tax-loss harvesting can remain useful even when you do not have enough gains to use the full loss immediately. The loss may still provide tax value later rather than disappearing at year-end.
Why the Wash Sale Rule Matters
The biggest compliance risk in tax-loss harvesting is the wash sale rule. In broad terms, if you sell a security at a loss and buy the same or a substantially identical security within the prohibited window, the IRS can disallow the loss for the current year.
That rule exists to prevent taxpayers from manufacturing a tax loss while effectively never leaving the original position. It is why harvesting is more nuanced than simply selling a losing fund today and buying it back tomorrow.
Investors who want to maintain similar market exposure often look for a replacement that is not the same or substantially identical security. Even then, the tax rule deserves care, especially when multiple accounts, automatic dividend reinvestment, or spousal accounts could complicate the picture.
What Tax-Loss Harvesting Does Not Do
Tax-loss harvesting does not make an investment loss economically harmless. If an asset dropped in value, you still experienced that decline. The tax benefit may soften the after-tax result, but it does not undo the loss itself.
It also does not permanently eliminate tax in the abstract. In many cases, the strategy is partly about timing. If you sell one asset at a loss and move into a similar but different holding, your future tax outcome will still depend on how that replacement investment performs and when you eventually sell it.
This is why a narrow focus on the tax loss alone can be misleading. The real question is whether the sale still makes sense for the portfolio after accounting for taxes, investment exposure, costs, and the investor's longer-term plan.
When Tax-Loss Harvesting Can Make Sense
Tax-loss harvesting can be most useful when an investor already has taxable gains to offset, expects future gains that could use a carryforward, or wants to improve after-tax portfolio management without materially distorting the investment strategy.
It can be especially relevant in volatile markets, in diversified taxable portfolios where some positions are down while others are up, or in years when a large sale created meaningful gains. But the strategy is not automatically worthwhile every time a position is below its purchase price.
If selling a position would disrupt the portfolio, trigger an avoidable wash sale, or push the investor into a weaker replacement holding, the tax angle alone may not justify the move. Tax-loss harvesting works best as a controlled planning tool, not as a reflex.
The Bottom Line
Tax-loss harvesting is the practice of realizing investment losses in a taxable account so those losses can offset capital gains and, within IRS limits, reduce other income or carry forward to future years.
It can be a useful after-tax planning strategy, but it is not free money and it is not a substitute for sound portfolio decisions. The most important practical points are where the strategy applies, how the loss-netting rules work, and why the wash sale rule can undo a careless harvest.
Sources
Structured editorial sources rendered in APA style.
- 1.Primary source
Internal Revenue Service. (n.d.). Topic no. 409, Capital gains and losses. Retrieved March 13, 2026, from https://www.irs.gov/taxtopics/tc409
IRS baseline explanation of capital gains and losses, annual net capital loss limits, and carryforward treatment.
- 2.Primary source
Internal Revenue Service. (n.d.). Publication 550 (2025), Investment Income and Expenses. Retrieved March 13, 2026, from https://www.irs.gov/publications/p550
IRS publication covering investment sales, capital loss netting, carryovers, and wash sale treatment.
- 3.Primary source
Internal Revenue Service. (n.d.). About Form 8949, Sales and Other Dispositions of Capital Assets. Retrieved March 13, 2026, from https://www.irs.gov/forms-pubs/about-form-8949
IRS reporting reference for how capital asset sales and adjustments are reported.