Tax-loss harvesting is one of the few investment strategies that produces a benefit independent of market direction. The mechanism is simple: an investor sells a security at a loss, uses the loss to offset realized capital gains or up to $3,000 of ordinary income, and immediately buys a similar but not identical security to maintain market exposure. The IRS allows it, the major brokerages now automate it, and the after-tax benefit can amount to 0.5 to 1.5 percentage points per year in long-term return, according to Vanguard’s 2020 analysis of advisor-managed portfolios. The strategy is not free of effort or risk, however, and the situations where it adds meaningful value are narrower than the marketing around robo-advisor “tax-loss harvesting” features suggests.
What is tax-loss harvesting?
Tax-loss harvesting is the deliberate realization of investment losses in a taxable account, for the purpose of reducing the tax bill on capital gains or ordinary income. The strategy applies only to taxable accounts; it has no relevance inside an IRA, 401(k), or other tax-advantaged account, where gains and losses do not produce immediate tax consequences.
A simple example: an investor bought an ETF for $20,000 last year. The ETF is now worth $17,000, an unrealized loss of $3,000. By selling the ETF and immediately buying a comparable but not identical ETF for the same $17,000, the investor realizes the $3,000 loss for tax purposes while keeping essentially the same market exposure. The $3,000 loss can offset up to $3,000 of capital gains, or up to $3,000 of ordinary income if no gains exist, with any excess carried forward to future tax years.
How does the wash-sale rule work?
The wash-sale rule, codified in IRS Section 1091, prevents investors from claiming a loss while maintaining the exact same position. If an investor sells a security at a loss and buys a “substantially identical” security within 30 days before or after the sale, the loss is disallowed for tax purposes. The disallowed loss is added to the cost basis of the new purchase, which preserves it for future use, but the immediate benefit is lost.
The 30-day window applies in both directions, creating a 61-day total period in which the substantially identical security cannot be purchased. The rule applies across accounts, including IRA purchases of the same security, and across spouses. An investor who sells a position at a loss in a taxable account, then has automatic dividend reinvestment in an IRA buy the same security, has triggered a wash sale.
The IRS has never published a precise definition of “substantially identical.” In practice, the same security clearly qualifies, and most observers believe an ETF tracking the exact same index would qualify. Two different ETFs tracking different total-market indexes, such as Vanguard Total Stock Market (VTI) and Schwab U.S. Broad Market (SCHB), are generally considered different enough to avoid the wash-sale rule, although the question has never been formally tested in court.
What does the loss actually save in taxes?
The value of a realized loss depends entirely on the investor’s marginal tax rate. A $3,000 loss offsetting $3,000 of long-term capital gains in a 15% federal bracket saves $450 in taxes, plus any applicable state tax. The same loss offsetting $3,000 of short-term capital gains or ordinary income in a 32% federal bracket saves $960.
The benefit is real but limited. The $3,000 annual cap on offsetting ordinary income means a portfolio with $50,000 in unrealized losses cannot deduct all of it against income in a single year. Excess losses carry forward indefinitely, but the time value of the deferred benefit is meaningfully lower than an immediate deduction.
For investors with significant realized capital gains, perhaps from selling a business, exercising stock options, or rebalancing a concentrated position, the value of available losses can be much higher. A $50,000 loss offsetting $50,000 of long-term capital gains in a 23.8% combined federal bracket saves nearly $12,000.
How is it different from a real loss?
A common misconception is that tax-loss harvesting creates value out of nothing. It does not. The strategy is a timing benefit, not a permanent gain. When the replacement security is eventually sold, its lower cost basis produces a larger taxable gain, which offsets the deferred benefit.
The net value comes from three sources. First, the time value of money: deferring a tax bill into the future is worth something, especially over long horizons. Second, the difference between short-term and long-term rates: harvesting short-term losses to offset short-term gains can convert what would have been ordinary-income tax treatment into long-term capital gains treatment on the eventual sale. Third, the possibility that the deferred gain may never be realized at all, such as when securities are held until death and receive a stepped-up cost basis under current tax law.
The 2020 Vanguard analysis estimated that the long-term after-tax benefit of systematic tax-loss harvesting, after accounting for the eventual repayment, averages 0.2 to 0.5 percentage points per year for typical portfolios. Higher tax brackets, larger portfolios, and more market volatility increase the benefit; lower brackets and stable markets reduce it.
When does tax-loss harvesting make sense?
The strategy adds the most value in three situations. The first is when an investor has realized gains that need to be offset, perhaps from a concentrated stock position being unwound or from a rebalancing trade. Matching losses against those gains directly reduces the tax bill.
The second is during market downturns. As covered in our piece on what to do when the stock market drops, the same volatility that creates anxiety also creates opportunity for tax-loss harvesting. Many of the most productive harvest years coincide with the most uncomfortable market years.
The third is for higher-income investors in taxable accounts. The federal long-term capital gains rate of 20%, combined with the 3.8% Net Investment Income Tax and state taxes, can push the effective rate above 30% for high-income households. At those rates, the absolute value of a harvested loss is significant.
The strategy adds little value in three opposite situations. First, when all investments are held in tax-advantaged accounts, where harvesting has no effect. Second, when an investor has no realized gains to offset and modest ordinary income, where the $3,000 annual cap limits the benefit. Third, when transaction costs and the slight tracking difference between original and replacement securities exceed the tax savings.
What are the practical mechanics?
The simplest implementation is at the ETF level. An investor with a position in Vanguard Total Stock Market (VTI) at a loss can sell VTI and immediately buy Schwab U.S. Broad Market (SCHB) or iShares Core S&P Total U.S. Stock Market (ITOT). The replacement maintains essentially identical market exposure while complying with the wash-sale rule.
After 31 days, the investor can sell the replacement and buy back the original security, if desired. Many investors simply keep the replacement, since the long-term performance difference between three similar total-market ETFs is negligible.
Automated tax-loss harvesting is offered by most robo-advisors and many full-service brokerages. The automation works well for straightforward index portfolios but can produce surprising results in more complex situations. Two robo-advisor accounts at different firms, for example, may inadvertently trigger wash sales across each other, because each firm only tracks its own activity.
A general framework for individual investors is to review taxable holdings for losses at the end of each quarter, identify positions trading below cost basis by enough to make the trade worthwhile after transaction costs, execute the harvest, and document the transaction for tax filing.
What are the most common mistakes?
The first is forgetting about wash sales in retirement accounts. Buying the same security in an IRA within 30 days of harvesting a loss in a taxable account permanently disallows the loss for tax purposes, and the disallowed loss cannot be added to the IRA’s basis. This is one of the most expensive mistakes in tax-loss harvesting because the loss is gone entirely.
The second is letting tax considerations override investment considerations. Harvesting a loss in a position that should be replaced anyway is straightforward. Harvesting a loss in a position the investor would otherwise want to hold introduces tracking-error and timing risks that may exceed the tax benefit.
The third is over-trading. The mechanical attraction of harvesting losses can lead to too-frequent trades, each of which carries transaction costs, bid-ask spreads, and potential short-term capital gains on the eventual sale. Quarterly review is usually sufficient.
The fourth is harvesting losses that produce a long-term capital loss to offset short-term capital gains. The rules require offsetting like with like first; long-term losses must first reduce long-term gains, then short-term gains. The end result is usually fine, but the sequence affects the tax efficiency of the harvest.
How does tax-loss harvesting fit into a broader strategy?
For most investors, tax-loss harvesting is one of several useful but secondary techniques. The primary drivers of long-term wealth, covered in our framework on building an investment portfolio from scratch, are contribution rates, asset allocation, and cost minimization. Tax-loss harvesting adds incremental value once those foundations are in place, particularly for higher-income households with substantial taxable holdings.
The benefit is real, the mechanics are straightforward, and the major brokerages have made automation widely available. The question for most investors is not whether to harvest losses but how to do so without overcomplicating a portfolio that is already serving its purpose well.
Frequently Asked Questions
Can I harvest losses every year?
Yes. There is no limit on the number of times an investor can harvest losses in a year or across years, as long as each transaction complies with the wash-sale rule. In years with significant market volatility, several harvesting opportunities may arise. In flat or rising markets, opportunities may be rare. The strategy is opportunistic, not scheduled.
Does tax-loss harvesting work in a Roth IRA?
No. Roth IRAs and traditional IRAs are tax-advantaged accounts where realized losses do not produce a tax deduction. The strategy is irrelevant inside these accounts. It can still affect IRA holdings indirectly, however, through the wash-sale rule: a purchase in an IRA can disallow a loss harvested in a taxable account.
What is the maximum loss I can deduct in one year?
Capital losses can offset capital gains without limit. Beyond that, up to $3,000 of net capital losses can offset ordinary income each year ($1,500 if married filing separately). Any excess carries forward to future tax years indefinitely, retaining its long-term or short-term character.
Are two index funds tracking the same index “substantially identical”?
The IRS has never issued a definitive ruling on this. Most tax practitioners take the conservative view that two ETFs tracking the exact same index, such as two S&P 500 ETFs, are substantially identical and would trigger the wash-sale rule. Two ETFs tracking different but similar indexes, such as the S&P 500 and the CRSP U.S. Large Cap Index, are generally considered different enough to avoid the rule.
Should I harvest losses near year-end?
December is a natural time to review the portfolio for harvesting opportunities, because the realized losses must be locked in by December 31 to count for the current tax year. However, the most productive harvesting often happens earlier in the year, during interim downturns that may have already recovered by December. A quarterly review tends to capture more opportunities than a year-end-only review.
Can a robo-advisor handle tax-loss harvesting automatically?
Yes, and most major robo-advisors, including Betterment, Wealthfront, and Vanguard Personal Advisor, offer it as a standard feature. The automation works well for portfolios held entirely at the robo-advisor. Coordination across multiple firms is more difficult, and investors with accounts at several brokerages may need to manage wash-sale risk manually.
