Finance Brain
Courses
Sign in
← Back to decks
Sign in to save your progress, vote, and build your own decks.Sign in

Tax-Loss Harvesting

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…

4 cards
Study this deck

Tax-Loss Harvesting

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.

The Wash-Sale Rule

The wash-sale rule (IRC Section 1091) is the critical constraint on tax-loss harvesting. It prohibits claiming a capital loss if you buy a "substantially identical" security within 30 days before or after the sale. If you violate the rule, the loss is disallowed — not lost permanently, but added to the cost basis of the replacement shares (deferring it rather than eliminating it).

The 30-day window runs in both directions: selling a security and immediately repurchasing it triggers the rule. If you sell shares of a fund on December 15 at a loss and repurchase the same fund on January 5, the wash-sale rule applies even though the repurchase occurred in the following calendar year. Planning around year-end requires care.

The rule applies across accounts — if you sell in a taxable account and your spouse buys the same security in an IRA within 30 days, the wash-sale rule applies. It also applies if you buy the replacement shares before selling the loss position — the 30-day lookback extends into the past, not just the future. The disallowed loss is added to the basis of the newly purchased shares, preserving it for eventual recognition.

"Substantially identical" is not precisely defined in the statute or regulations, and the IRS has offered limited guidance. Switching between an S&P 500 index fund from one provider to another is generally considered safe, as is moving from a total market fund to a large-cap fund. Switching between two funds tracking the exact same index from different providers sits in a grayer area, though most practitioners treat it as acceptable given that the funds are legally distinct instruments.

The Value of Deferral

Tax-loss harvesting does not eliminate taxes — it defers them. The replacement security has a lower cost basis (what you paid for the original, less the harvested loss), creating a larger taxable gain when eventually sold. The economic value comes entirely from the time value of money: the tax savings today remain invested and compound, while the future tax liability grows only with the portfolio.

Academic estimates suggest systematic harvesting can add approximately 0.5–1.5% annually in after-tax returns for taxable accounts in normal market conditions, with particularly high value in volatile years that produce many loss opportunities. The benefit is greatest for investors in high tax brackets and those with substantial realised gains to offset.

The deferral benefit compounds over time in a subtle way. If harvesting saves $1,000 in taxes today, that $1,000 remains invested. If the portfolio earns 7% annually, the $1,000 grows to $1,967 over ten years. When taxes are eventually paid on the deferred gain, the investor has had the use of the tax dollars for an entire decade. The longer the deferral, the greater the benefit.

The value of deferral is also amplified if the investor eventually donates the low-basis shares to charity (avoiding the deferred gain entirely) or holds them until death (where the step-up in basis eliminates the deferred gain permanently). In these scenarios, what looked like a deferral strategy becomes a permanent elimination strategy.

When Harvesting Is Especially Valuable

Tax-loss harvesting is most valuable when it offsets short-term capital gains, taxed at ordinary income rates up to 37%, rather than long-term gains taxed at 15–20%. An investor who harvests $10,000 in losses and uses them to offset $10,000 in short-term gains in the 37% bracket saves $3,700 — the same offset against long-term gains would save $1,500 to $2,000.

It is also valuable when the resulting loss can be carried forward to offset a predictable future large gain — such as the sale of a business, a concentrated stock position, or a property that has appreciated substantially. Building a carryforward through systematic harvesting creates a tax asset that can be deployed strategically.

The strategy is essentially worthless inside tax-advantaged accounts (IRAs, 401(k)s) since gains and losses within those accounts have no current tax consequence. Attempting to harvest there not only fails to produce any benefit but can introduce unnecessary transaction costs and tracking complexity.

It is also less valuable near the end of life, when the step-up in basis at death may eliminate the future tax liability that the harvesting was designed to defer. An elderly investor in poor health who harvests losses — creating low-basis replacement shares — may be better served simply holding the original positions until death, at which point all embedded gains disappear permanently under current law.

Educational content only. Not financial, investment, tax or legal advice. Learn more

Quiz me on this
An investor sells a stock fund at a $2,000 loss and immediately uses the proceeds to buy an identical fund from the same fund family tracking the same index. What is the most likely tax result?
  1. The $2,000 loss is fully deductible because the investor maintained market exposure.
  2. ✓ The $2,000 loss is disallowed under the wash-sale rule and added to the new fund's cost basis.
  3. The $2,000 loss is deductible only against capital gains, not ordinary income.
  4. The $2,000 loss is permanently disallowed and cannot be used in future years.
An investor sells a fund at a $5,000 loss and buys a comparable (but not identical) replacement fund the next day. Thirty-five days later, both funds have recovered to the same value. What has the investor achieved?
  1. Nothing — the loss and the gain cancel out and there is no tax benefit.
  2. A permanent elimination of $5,000 in taxes, since the loss was realised.
  3. ✓ A deferral of taxes, because the replacement fund now has a lower cost basis.
  4. A guaranteed 0.5–1.5% annual return from the harvesting strategy.
Which of the following scenarios produces the largest tax saving from a $10,000 harvested loss?
  1. Offsetting a $10,000 long-term capital gain for an investor in the 15% long-term rate.
  2. ✓ Offsetting a $10,000 short-term capital gain for an investor in the 37% ordinary income bracket.
  3. Offsetting a $10,000 long-term capital gain for an investor in the 20% long-term rate.
  4. Reducing ordinary income by $3,000 with the remainder carried forward.
Why is tax-loss harvesting generally not worth pursuing inside a traditional IRA?
  1. The wash-sale rule is stricter inside IRAs and disallows most harvesting attempts.
  2. Losses inside an IRA cannot be carried forward to future years.
  3. ✓ Gains and losses inside an IRA have no current tax consequence, so there is nothing to offset.
  4. The IRS limits harvesting to three transactions per year inside retirement accounts.