Overview

Tax-loss harvesting is a tax-aware portfolio technique that intentionally realizes losses in taxable accounts so those losses can offset realized capital gains and, if gains are insufficient, up to $3,000 ($1,500 if married filing separately) of ordinary income per year. Any unused capital losses carry forward indefinitely until fully used. In my work advising more than 500 clients, disciplined harvesting has repeatedly reduced annual tax bills while preserving long-term investment objectives.

(Authoritative references: IRS Publication 550 and Form 8949 instructions explain capital gains/losses and reporting; see https://www.irs.gov/publications/p550 and https://www.irs.gov/forms-pubs/about-form-8949.)

Why tax-loss harvesting matters

Realizing a loss may feel counterintuitive, but doing so can produce concrete tax savings and improve after-tax returns without changing long-term asset allocation. Key benefits:

  • Offsets realized capital gains during the tax year, lowering taxable income.
  • If realized losses exceed gains, you can deduct up to $3,000 against ordinary income annually and carry the remainder forward indefinitely (IRS rules).
  • Gives investors a chance to rebalance and replace underperforming positions while maintaining market exposure.

How the mechanics work (step-by-step)

  1. Identify realized gains and loss candidates. Track long-term vs short-term gains because short-term gains are taxed at higher ordinary-income rates and are often higher-value targets to offset.
  2. Sell underperforming or non-core securities in a taxable account to realize a loss.
  3. Avoid violating the wash-sale rule (see below). Replace the position with a different but economically similar security—e.g., a broad-market ETF instead of the same mutual fund—or wait the required time to repurchase.
  4. Report the sales on Form 8949 and Schedule D when filing taxes; losses offset gains in the order required by tax law.

Example: Simple tax math

  • Realized short-term gain this year: $10,000 taxed at your marginal rate (assume 32% for illustration).
  • Realized loss harvested: $10,000.
  • Result: Net taxable capital gain = $0; tax saved = ~$3,200 (not counting state tax or NIIT). If you instead had no losses, you would owe tax on the $10,000 gain.

This is a simplified example; actual savings depend on whether the gains are short-term or long-term, your marginal tax bracket, and state taxes. Net Investment Income Tax (NIIT) of 3.8% may also apply to high-income filers.

Reporting and carryforwards

  • Sales are reported on Form 8949; totals flow to Schedule D (see IRS Form 8949 instructions).
  • After offsetting capital gains in the tax year, up to $3,000 of net capital loss may be deducted against ordinary income ($1,500 for MFS). Any unused loss carries forward indefinitely to future tax years (IRS Publication 550).

The wash-sale rule and practical workarounds

The IRS wash-sale rule disallows a loss if you buy a “substantially identical” security within 30 days before or after the sale (a 61-day window around the sale date). The wash-sale rule applies across all your taxable accounts and certain tax-advantaged accounts; repurchasing a substantially identical security in an IRA within the wash-sale window can permanently disallow the loss (see IRS Publication 550) — investors must be careful when trading across custodians and account types.

Practical replacement strategies to avoid a wash sale while maintaining market exposure:

  • Buy a similar but not substantially identical ETF or mutual fund (for example, replace an S&P 500 index fund with a total market ETF or with another broad large-cap U.S. ETF that tracks a different index).
  • Use sector-tilt or factor funds that are economically similar but not identical.
  • Wait 31+ days to repurchase the same security if the position is important to your allocation.

For a focused explanation of the wash-sale rule and edge cases, see our internal write-up: Wash-Sale Rule (https://finhelp.io/glossary/wash-sale-rule/).

Common tax-loss harvesting strategies

  • Year-round harvesting: Scan for tax-loss opportunities during market volatility rather than waiting for year-end. See our guide on Year-Round Harvesting: Combining Gains and Losses (https://finhelp.io/glossary/year-round-harvesting-combining-gains-and-losses-for-tax-efficiency/).
  • Tax-lot level harvesting: Sell specific tax lots with the highest cost basis or unfavorable holding period to optimize tax outcomes.
  • Cross-account coordination: Coordinate taxable, tax-deferred, and tax-free accounts to avoid wash sales and to maximize net benefit.
  • Multi-year planning: Use losses in low-income years strategically (harvesting carryforwards) to reduce tax over time.

When tax-loss harvesting is most effective

  • You have realized sizable capital gains in a year (from sales or corporate actions).
  • Your portfolio contains positions with a clear underperformance or strategic reason to exit.
  • Transaction costs are low and you can replace exposure without triggering a wash sale.
  • You face a high marginal tax rate or expect higher rates in the near future.

It is less attractive when:

  • Transaction fees and bid-ask spreads exceed expected tax savings.
  • A short-term sale would crystallize a loss but also derail a long-term strategic position you intend to hold.

Pitfalls and mistakes I see in practice

  • Ignoring the wash-sale rule and then being surprised when the loss is disallowed.
  • Replacing sold positions with a substantially identical fund across accounts or in an IRA and losing the tax benefit permanently.
  • Over-rotating into tax-inefficient replacements that raise future tax liabilities.
  • Focusing only on a single year: harvesting impulsively without considering the long-term cost-basis and holding-period consequences.

Advanced considerations

  • Holding period reset: When you repurchase a replacement security, the new holding period starts on the purchase date. That matters for classifying future gains as short-term or long-term.
  • State taxes: State treatment of capital losses and carryforwards can differ—check state rules or consult a tax pro.
  • Net Investment Income Tax (NIIT): High-income taxpayers should factor a possible 3.8% NIIT into net benefit calculations.
  • Constructive sales: Large positions or option strategies may trigger deemed sale rules; consult a tax advisor for complex situations.

A short decision checklist

  • Does the realized loss meaningfully reduce this year’s tax? (Compare expected tax saved vs transaction costs.)
  • Will replacing the position violate the wash-sale rule? If so, can you use a non-identical replacement?
  • Does the trade align with long-term allocation and risk management?
  • Are reporting steps in place (Form 8949) and have you documented tax lots and trade dates?

Example scenario with numbers (practical)

Client A realized $20,000 in short-term gains from active trades in 2024. Their portfolio includes an underperforming position with a $12,000 unrealized loss. We sold that position late in the year and replaced it with a broad-market ETF that was not substantially identical. The results:

  • $20,000 short-term gain offset by $12,000 realized loss → net short-term gain = $8,000.
  • Net tax saved depends on client’s marginal rate; at a 24% marginal rate, estimated federal tax reduction = $12,000 × 24% = $2,880 (plus state savings and potential NIIT avoidance). The remaining loss is used first against other gains or up to $3,000 ordinary income, and the rest carries forward.

In my practice, clients who combine selective harvesting with proper replacement securities typically keep similar market exposure while reducing annual tax bills.

Reporting and recordkeeping tips

  • Keep trade confirmations and record of tax lots for at least as long as you carry loss offsets.
  • Use your custodian’s tax reporting tools and verify cost-basis reporting is accurate. If you rely on FIFO or specific-lot selection, confirm the election is properly documented.
  • Work with a CPA or tax preparer to ensure Form 8949 and Schedule D entries are correct.

When to get professional help

Tax-loss harvesting touches both investment management and tax compliance. Complex issues—large concentrated positions, cross-account wash-sale risks (including IRAs), options, or constructive sales—warrant a conversation with a tax advisor or a tax-aware investment manager. In my experience, blending a fiduciary planner’s portfolio view with a CPA’s tax expertise produces the best results.

Disclaimer

This article is educational and not individualized tax, legal, or investment advice. Rules described here are current as of 2025 but subject to change; consult IRS guidance (e.g., Publication 550 and Form 8949 instructions) and your tax advisor for personalized recommendations.

Selected authority and further reading

Internal resources for deeper reading

If you want a worksheet to estimate whether harvesting makes sense for a specific year, consider consulting your advisor or using your custodian’s tax-loss harvesting tool to model likely savings.