Modern portfolio theory has one famous "free lunch" — diversification, which reduces risk without proportionally reducing return. Tax-loss harvesting is arguably a second: a practice that produces after-tax return improvement without altering the pre-tax return of the portfolio. Understanding how it works, and its practical limits, is worth every taxable-account investor's attention.
The core mechanic
The US tax code allows losses on the sale of investment assets to offset gains on the sale of other investment assets. If you sell one holding at a $10,000 gain and another at a $10,000 loss, the loss offsets the gain and no tax is owed on the combined transactions. Losses that exceed gains in a given year can offset up to $3,000 of ordinary income annually, and remaining unused losses carry forward indefinitely to offset future gains.
The tax benefit of a realised loss depends on the marginal tax rate at which the offsetting gain would have been taxed. For most retail investors with typical portfolios, the marginal rate on realised gains is 15-24% (long-term capital gains plus any state tax). A $10,000 realised loss therefore produces roughly $1,500-2,400 in immediate tax savings when used to offset an equivalent long-term gain.
The wash sale rule
The primary restriction is the wash sale rule. If you sell a security at a loss and repurchase the same security (or a "substantially identical" security) within 30 days before or after the sale, the loss is disallowed for tax purposes and instead added to the cost basis of the replacement shares.
The wash sale rule is what forces careful planning around tax-loss harvesting. You cannot simply sell a losing position and immediately buy it back to lock in the loss while maintaining the exposure. You must either: (a) not repurchase for 30 days, accepting the temporary out-of-market exposure; or (b) purchase a similar but not "substantially identical" replacement that maintains your economic exposure.
The replacement security selection
Selecting appropriate replacement securities is the practical challenge of tax-loss harvesting. Two approaches:
Broad-market ETF pairs. VOO and VTI are similar but not "substantially identical" in the tax sense — they track different indices with different constituents. Selling VOO at a loss and buying VTI (or vice versa) maintains US large-cap equity exposure without triggering the wash sale rule. Similar pairs exist across most major asset classes.
Sector or factor ETFs replaced by broad-market exposure. Selling a sector-specific ETF at a loss and buying a broad-market ETF as replacement maintains market exposure at the cost of the specific sector tilt. This works for tactical loss harvesting but changes the portfolio composition temporarily.
Individual stocks are more difficult. Selling one specific stock at a loss and buying a different stock in the same industry is generally not a wash sale, but the replacement carries different specific risks. For individual-stock investors, tax-loss harvesting typically involves accepting the specific stock exposure being changed for a period.
Timing considerations
Tax-loss harvesting is most valuable when losses are large enough to make the transaction costs worthwhile. Very small losses may not produce enough tax benefit to justify the trading costs and the operational complexity.
The end of the calendar year is a common time for tax-loss harvesting activity because it aligns with the tax year cutoff. But losses can be harvested throughout the year, and doing so continuously (rather than only in December) captures the tax benefit sooner.
Losses that are harvested in a year with no gains to offset can still be used against up to $3,000 of ordinary income and can be carried forward. The carryforward makes early-year harvesting valuable even in years where the gain offset opportunity is uncertain.
The compounding effect
Over long horizons, the tax savings from consistent tax-loss harvesting compound. Multiple studies have estimated the annual return advantage from systematic tax-loss harvesting in the range of 40-100 basis points per year for typical taxable portfolios. Over 20-30 year horizons, this compounds to meaningful percentage differences in ending portfolio values.
The compounding is not automatic — it requires that the tax savings be reinvested rather than spent. But for investors who are in accumulation phase and reinvesting all portfolio distributions, the compounding effect is real and substantial.
Where tax-loss harvesting is less useful
Three situations where tax-loss harvesting produces smaller benefits:
Tax-advantaged accounts. IRAs, 401(k)s, and other tax-deferred accounts do not benefit from tax-loss harvesting because gains and losses within the account do not have tax implications. The strategy is specifically for taxable accounts.
Very low-income investors. Investors in the lowest tax brackets pay 0% on long-term capital gains, so there is no tax benefit to offset. The strategy is less valuable for investors below the 15% capital gains bracket threshold.
Very frequently rebalanced portfolios. If the portfolio is rebalanced frequently enough that meaningful losses rarely accumulate, the harvesting opportunities are limited. This is more of an issue for aggressive rebalancing than for typical retail patterns.
The behavioural interaction
An important nuance: tax-loss harvesting can interact with the disposition effect in beneficial ways. The disposition effect makes investors reluctant to sell losing positions; tax-loss harvesting provides a specific financial reason to sell those positions. For investors who otherwise hold losing positions too long, the tax-loss harvesting framework can be a helpful behavioural corrective — it converts an emotionally painful decision (accepting a loss) into a mathematically justified one (capturing a tax benefit).
The rule to internalise
Tax-loss harvesting is one of the few clearly-positive-expected-value practices available to retail investors. It requires operational discipline (tracking cost bases, understanding wash sale rules, selecting replacement securities carefully) but the discipline is finite and the payoff is real. For any investor with meaningful taxable-account exposure, systematic tax-loss harvesting is one of the highest-return uses of ongoing attention. The return improvement is not dramatic in any single year, but it compounds over decades into a meaningfully different ending portfolio value.
Educational content only. Not investment advice.