Tax-loss harvesting is the practice of selling depreciated investments in a taxable brokerage account to offset realized capital gains and lower current-year tax liabilities. Investors can deduct up to $3,000 of net capital losses against ordinary income per year, while unused losses carry forward indefinitely. However, buying a replacement asset lowers your future cost basis, meaning harvesting defers taxes rather than eliminating them permanently.
Tax-loss harvesting is the strategic practice of selling depreciated investments in a taxable brokerage account to offset realized capital gains and lower your current-year tax bill.
When market pullbacks leave individual holdings down, realizing those losses lets you buffer taxable gains from winning positions. While it cannot prevent market drops, harvesting losses converts portfolio downturns into immediate tax efficiency—provided you understand how deferred taxes and lower cost bases work over time. Here is how the strategy works, the rules governing it, and its true long-term impact.
Quick Takeaways
01Tax-loss harvesting allows you to offset realized capital gains dollar-for-dollar using realized capital losses in taxable accounts.
02Up to $3,000 of excess capital losses can offset ordinary income each year, with unused losses rolling forward indefinitely.
03The 30-day wash-sale rule prohibits buying a "substantially identical" security shortly before or after the sale.
04Harvesting defers taxes rather than permanently eliminating them because purchasing a replacement asset lowers your future cost basis.
What Is Tax-Loss Harvesting?
Tax-loss harvesting turns realized portfolio losses into immediate tax deductions by matching capital losses against taxable capital gains.
To understand what is tax-loss harvesting in practice, you must first distinguish between paper losses and realized losses. An unrealized loss exists only on screen while you hold a declining asset; it has no tax effect. Once you sell that asset, the loss becomes realized, unlocking a usable tax offset.
When tax loss harvesting is explained simply, the math works on a tier system:
Short-Term Offsets: Short-term losses (assets held for one year or less) first offset short-term gains, which are typically taxed at higher ordinary income rates.
Long-Term Offsets: Long-term losses (assets held longer than one year) first offset long-term gains, which carry lower tax rates.
Cross-Category Offsets: Any net loss remaining in one category can then be applied to offset gains in the other category.
If you realized $10,000 in capital gains from a winning ETF sale this year, you would ordinarily owe capital gains tax on that full amount. However, if you also sold an underperforming holding at a $10,000 loss, your net taxable capital gain drops to zero. What is tax loss harvesting ultimately designed to achieve? It ensures you do not pay taxes on investment gains that were offset by real portfolio losses elsewhere.
The Core Rules of Tax-Loss Harvesting
The tax loss harvesting rules set strict limits on how losses are claimed, when replacement assets can be bought, and how excess deductions carry forward. Tax authorities enforce these guidelines to prevent investors from claiming artificial tax deductions without altering their real investment risk.
The Wash-Sale Rule
The primary restriction governing tax harvesting loss strategies is the wash-sale rule. Under US tax regulations, if you sell a security at a loss and buy a "substantially identical" security within a 61-day window—30 days before the sale, the day of the sale, or 30 days after—the tax loss is disallowed.
Instead of deducting the loss, the disallowed amount is added to the cost basis of the newly purchased asset. To maintain market exposure during this 30-day waiting period, investors often buy a replacement asset that is similar in strategy but not substantially identical—such as replacing an index fund tracking one provider with an index fund tracking a different benchmark index.
Ordinary Income Deduction Limits
If your total realized losses exceed your total capital gains for the calendar year, you can use the excess loss to reduce your ordinary income. Under IRS rules, you can deduct up to $3,000 of net capital losses against your taxable wage or salary income per year ($1,500 if married filing separately).
Capital Loss Carryforward
If your net losses exceed that $3,000 annual limit, you do not forfeit the balance. Unused capital losses can be carried forward into future tax years indefinitely. You can apply those carried-forward losses against future capital gains or take the $3,000 ordinary income deduction year after year until the accumulated loss is fully exhausted.
Account Eligibility: Taxable Brokerage vs. Tax-Advantaged Shelters
Tax-loss harvesting only applies to taxable brokerage accounts, as transactions inside tax-sheltered accounts trigger no reportable tax events.
Account eligibility breakdown
Taxable Brokerage Account
Tax-Advantaged Shelters
Allows realized losses to offset capital gains
Capital gains are typically not taxed annually
May allow a deduction of up to $3,000 against ordinary income
Realized losses are generally not deductible
Permits loss carryforwards to future tax years
Wash-sale rules across related accounts may disallow the loss deduction
Because accounts with tax-favored status shield your holdings from annual capital gains taxes, selling an asset at a loss inside them yields zero tax benefit.
If you trade inside retirement wrappers, such as evaluating what is a Roth IRA or managing accounts under SEP IRA contribution limits, loss harvesting is completely non-applicable. Dividends, interest, and capital gains generated within those shells grow tax-deferred or tax-free, meaning losses inside them cannot offset outside income or gains.
Crucial Warning: The wash-sale rule applies across all your accounts combined, including tax-advantaged ones. If you sell an asset at a loss in your taxable brokerage account and purchase a substantially identical asset within 30 days inside your Roth IRA, the loss in your taxable account is permanently disallowed.
The 10-Year Portfolio Impact: Tax Deferral, Not Tax Elimination
Tax-loss harvesting defers your tax liability rather than eliminating it, because replacing a sold asset lowers your cost basis on the new holding.
Consider how this compounding dynamic unfolds over a 10-year period using an illustrative scenario:
Suppose you sell a depreciated position at a $10,000 loss to offset $10,000 of realized capital gains. Assuming a combined capital gains tax rate of 20%, harvesting that loss saves you $2,000 in immediate taxes this year. You promptly take that $2,000 in saved tax capital and reinvest it into a replacement ETF.
Over the next 10 years, assuming a hypothetical 7% average annual return, that reinvested $2,000 tax saving grows to roughly $3,934.
However, because you bought the replacement security at its lower prevailing price, its cost basis is $10,000 lower than your original investment. When you eventually liquidate the entire portfolio a decade later, your taxable capital gain will be $10,000 higher than it would have been. At a 20% tax rate, you will owe an extra $2,000 in taxes upon final liquidation.
Description
Estimated Value
Immediate tax savings generated
$2,000
Reinvestment growth over 10 years at 7%
$1,934
Capital gains tax payable at the end of the period
($2,000)
Estimated net value after 10 years
$1,934
The true advantage of tax-loss harvesting is not "free money". It is an interest-free loan from the government that allows you to compound deferred tax dollars over long horizons.
Common Mistakes and Behavioral Pitfalls
The most common tax-loss harvesting mistakes stem from unintentional wash sales and selling quality assets purely to chase a tax deduction.
Dividend Reinvestment (DRIP) Traps: Automatic dividend reinvestment plans can trigger a wash sale without your knowledge. If a dividend automatically repurchases shares of the asset you just sold at a loss within 30 days, it invalidates your tax deduction.
Tracking Error and Inferior Replacements: Selling a low-cost broad market index fund and substituting it with an inferior, high-fee alternative just to avoid the wash-sale rule can cost you more in performance than you save in taxes over a 10-year horizon.
Disrupting Long-Term Asset Allocation: Never let tax strategies dictate your core investment plan. Selling a conviction long-term compounder solely to harvest a minor tax loss risks missing a swift market recovery during the 30-day waiting period.
Conclusion
Tax-loss harvesting is a valuable tool for boosting net portfolio efficiency by offsetting realized capital gains and ordinary income. By reinvesting tax savings today, long-term buy-and-hold investors can harness compounding interest over multi-year horizons, even though the strategy ultimately defers taxes rather than eliminating them permanently. Success requires managing wash-sale rules, selecting sound replacement assets, and staying focused on overall long-term asset allocation.
When you are ready to evaluate platforms and account options for managing taxable investments, exploring our broker reviews provides a helpful next step.
FAQ
4 questions
What is tax-loss harvesting and how does it work?
Tax-loss harvesting is a strategy where you sell investments that have lost value to offset the capital gains taxes you owe on investments that made a profit. This helps lower your overall tax bill while keeping your long-term portfolio strategy on track.
Can I buy back the same stock immediately after selling it for a loss?
No. Under the wash-sale rule, you must wait at least 30 days before buying back the same asset or a "substantially identical" one. If you buy it back sooner, you lose the ability to claim that tax deduction.
Does tax-loss harvesting work inside retirement accounts?
No. Tax-loss harvesting only applies to taxable brokerage accounts. Since IRAs and 401(k)s already offer tax advantages, losses inside these accounts cannot be used to reduce your taxable income.
What happens if my total losses are greater than my gains?
If your losses exceed your capital gains, you can use up to $3,000 of the remaining loss to offset your ordinary income for the year. Any leftover losses beyond $3,000 can be carried forward to future tax years.
Disclaimer
This guide was written with AI assistance and reviewed by the StockEmber editorial team for accuracy. StockEmber provides independent education, not personal financial advice. Some links may support our work at no additional cost to you.
The StockEmber Team is our in-house desk of independent research writers. We test brokerage platforms, read the fine print on fees and custody, and cover ETFs and long-horizon investing for people who plan to hold for decades — not days.