Skip to content
On this page
  1. Key Takeaways
  2. What It Is
  3. The Intuition
  4. How It Works
  5. Worked Example
  6. Common Mistakes
  7. Frequently Asked Questions
  8. Sources
  9. Disclaimer
← All concepts
Tax & AccountsIntermediate5 min read

Tax-Loss Harvesting: How to Cut Your Tax Bill

Tax-loss harvesting is the practice of selling a losing investment to realize the capital loss, using that loss to offset capital gains elsewhere in your portfolio, and reducing your current year tax bill. When losses exceed gains, up to $3,000 per year can offset ordinary income, and any excess carries forward indefinitely.

Key Takeaways

  • Tax-loss harvesting converts an unrealized paper loss into a realized tax asset that offsets gains or up to $3,000 of ordinary income.
  • Academic studies estimate systematic harvesting adds roughly 0.5 to 1.5 percent per year in after-tax returns, depending on bracket and volatility.
  • The single biggest mistake is triggering the wash sale rule by buying back the same security within 30 days, which permanently disallows the loss in IRAs.
  • Harvested losses carry forward indefinitely and can be deployed against future gains, compounding their value across your entire portfolio.

Key Takeaways

  • Tax-loss harvesting converts an unrealized paper loss into a realized tax asset that offsets gains or up to $3,000 of ordinary income.
  • Academic studies estimate systematic harvesting adds roughly 0.5 to 1.5 percent per year in after-tax returns, depending on bracket and volatility.
  • The single biggest mistake is triggering the wash sale rule by buying back the same security within 30 days, which permanently disallows the loss in IRAs.
  • Harvested losses carry forward indefinitely and can be deployed against future gains, compounding their value across your entire portfolio.

What It Is

When you sell a security for less than your cost basis, you generate a realized capital loss. Under IRS Topic 409, realized losses first offset realized gains of the same type, then offset gains of the opposite type, and any remaining net loss is deductible against ordinary income up to $3,000 per year ($1,500 if married filing separately). Unused losses carry forward to future tax years without expiration.

Harvesting converts a paper loss into a tax asset. You keep market exposure by redeploying the proceeds into a similar but not substantially identical position, so your portfolio stays invested while the loss is booked.

The Intuition

Markets produce winners and losers in almost every portfolio, even in strong years. A diversified book of 30 stocks will usually contain several positions underwater at any given point. Left alone, those losses have no tax value. Harvested correctly, they lower the tax owed on gains you already realized or on gains you plan to realize later.

The core idea is that taxes compound in reverse. A dollar saved on taxes today keeps working inside the portfolio for decades. Multiple academic studies and practitioner analyses have estimated the long-run value of systematic harvesting at roughly 0.5 to 1.5 percent per year in after-tax return, depending on bracket, turnover, and market volatility.

How It Works

The mechanics have three steps.

  1. Identify lots with an unrealized loss. Use specific identification to pick the lots with the largest losses rather than defaulting to FIFO.
  2. Sell the lot and record the realized loss. The loss posts to Schedule D and Form 8949 for the year.
  3. Reinvest the proceeds in a similar but not substantially identical security. This preserves market exposure during the 30 day wash sale window.
net capital loss = realized losses - realized gains
ordinary income offset = min(net capital loss, $3,000)
carryforward = net capital loss - $3,000   (if positive)

Short-term losses first offset short-term gains, long-term losses first offset long-term gains, and any excess crosses over. Because short-term gains are taxed at ordinary income rates while long-term gains are taxed at preferential rates, harvesting a short-term loss against a short-term gain generally produces the largest dollar saving per unit of loss.

Direct indexing has become a popular way to automate the process. Instead of holding a single S&P 500 ETF, you hold the underlying 500 stocks in a managed account. Individual names go up and down in any given month, so harvestable losses exist even when the index itself is flat. Software scans daily and sells the losers while buying economically similar replacements.

Worked Example

Suppose during the year you realized $12,000 in long-term capital gains from selling appreciated positions. You also hold ABC stock with a basis of $20,000 and a current market value of $15,000, an unrealized loss of $5,000.

On November 10 you sell ABC and realize the $5,000 loss. On November 11 you buy a different security in the same sector that is not substantially identical, maintaining comparable exposure.

Your taxable capital gains become $12,000 minus $5,000, or $7,000. At a 15 percent long-term capital gains rate, your tax owed drops from $1,800 to $1,050, a saving of $750 in the current year. The replacement position continues to participate in any sector recovery. After 31 days you can reverse the swap if desired without triggering the wash sale rule.

Common Mistakes

  1. Triggering the wash sale rule. Buying the same security, or a substantially identical one, within 30 days before or after the loss sale disallows the loss. The disallowed amount is added to the basis of the replacement, deferring the deduction until that lot is eventually sold. In an IRA, the loss is permanently lost. This is the single biggest trap in harvesting.

  2. Harvesting inside a retirement account. Losses realized inside an IRA, 401(k), or Roth account have no tax value because the account itself is already tax-deferred or tax-free. Selling a losing mutual fund inside your IRA produces zero tax benefit and simply locks in the loss economically.

  3. Chasing year-end harvests after a rebound. Many investors only think about harvesting in late December, by which point the autumn sell-off has often reversed. A systematic year-round approach captures intra-year volatility that a year-end-only approach misses. Direct indexing platforms run daily scans for this reason.

  4. Swapping into a near-identical ETF. Selling IVV and buying VOO replaces one S&P 500 tracker with another. The IRS has never issued clear guidance on index funds of the same benchmark, and most tax professionals treat the swap as risky. Moving to a different index, such as a total market or large-value fund, is the safer route.

  5. Not tracking basis across brokers. When you move shares between accounts or custodians, cost basis sometimes does not follow correctly. Wash sale tracking is brokerage-level, not taxpayer-level. Selling at a loss at one broker while buying at another can create a wash sale that neither 1099-B flags, and the IRS expects you to reconcile it on Form 8949.

Frequently Asked Questions

Q: What is tax loss harvesting in simple terms? You sell an investment that has dropped in value, lock in the loss on paper, and use that loss to reduce the tax you owe on gains elsewhere. You then reinvest in something similar so your portfolio stays on track.

Q: How does tax loss harvesting affect investment decisions? It pushes investors to keep a year-round inventory of unrealized losses, choose replacement securities carefully to avoid the wash sale rule, and think about after-tax return rather than gross return when selling any position.

Q: What is a real-world example of tax loss harvesting? You bought a sector ETF for $20,000 and it is now worth $15,000. You sell it, book a $5,000 loss, and buy a comparable fund in the same sector. That $5,000 offsets $5,000 of gains you realized earlier in the year, cutting your tax bill directly.

Q: How can investors use tax loss harvesting effectively? Run harvesting year-round rather than only in December, use specific lot identification to target the highest-loss lots, and reinvest proceeds into a different but economically similar security for at least 31 days to stay in the market without triggering the wash sale rule.

Q: How is tax loss harvesting different from tax-gain harvesting? Loss harvesting realizes losses to offset gains and reduce taxes. Gain harvesting deliberately realizes gains in a low-income year to lock in a 0 percent long-term rate. The two strategies can be combined but target opposite ends of the tax rate spectrum.

Sources

  1. Internal Revenue Service. "Publication 550 (2025), Investment Income and Expenses." https://www.irs.gov/publications/p550
  2. Internal Revenue Service. "Topic No. 409, Capital Gains and Losses." https://www.irs.gov/taxtopics/tc409
  3. Charles Schwab. "How to Cut Your Tax Bill with Tax-Loss Harvesting." https://www.schwab.com/learn/story/how-to-cut-your-tax-bill-with-tax-loss-harvesting
  4. Fidelity. "Wash-Sale Rules: Avoid This Tax Pitfall." https://www.fidelity.com/learning-center/personal-finance/wash-sales-rules-tax
  5. Vanguard. "Tax-Loss Harvesting Explained." https://investor.vanguard.com/investor-resources-education/taxes/offset-gains-loss-harvesting

Disclaimer

This article is educational content only and is not financial or tax advice. Tax rules vary by jurisdiction and personal situation, and the treatment described here may not apply to you. Consult a licensed CPA or tax attorney before acting on any tax strategy.

Back to your knowledge path

The IWP Substack

You understand the concept. Now see it applied.

The Investing With Purpose Substack turns ideas like this into research and risk-managed trade plans on real stocks, updated every week.

Read on Substack (opens in a new tab)

Related concepts