The Basic Mechanic
Tax-loss harvesting is the deliberate sale of investments with unrealised losses to realise a capital loss for tax purposes, using that loss to offset other capital gains and reduce the current year's tax bill. The investor then reinvests the proceeds in a similar (but not identical) asset to maintain market exposure. The loss is not permanent wealth destruction — it is a paper loss that produces a real, current tax benefit.
The after-tax portfolio value can be higher after harvesting than before, even though the gross account value is unchanged. If an investor holds a fund worth $9,000 that was purchased for $10,000, selling it realises a $1,000 loss. That loss can offset $1,000 of gains elsewhere, saving perhaps $150–$370 in taxes depending on the investor's bracket and the character of the gains being offset. The investor immediately buys a comparable fund, maintaining full market exposure.
The strategy is most naturally deployed in market downturns, when many holdings show unrealised losses. A diversified portfolio will almost always contain some positions with losses at any given time, even in a rising market, because individual securities move differently from one another. Systematic harvesting programs — offered by several robo-advisors — scan portfolios daily to identify and capture losses as they arise.
Harvesting is only available in taxable accounts. Gains and losses inside IRAs, 401(k)s, and other tax-advantaged accounts have no current tax consequence, so there is nothing to offset and no tax benefit to capture.