Tax-Loss Harvesting: Turning Investment Losses into Tax Savings

Tax-loss harvesting offsets capital gains by strategically selling losing investments. Learn the wash-sale rule, carryforward limits, and when the strategy pays off.

The InfoNexus Editorial TeamMay 12, 20269 min read

When Losing Money Can Save You Money

During the 2022 market selloff, the S&P 500 fell more than 18% for the year — and sophisticated investors quietly harvested billions of dollars in tax benefits from the decline. Tax-loss harvesting is the deliberate sale of investments that have declined in value to realize a capital loss, which can then offset taxable capital gains or, subject to limits, ordinary income. Done correctly, it can add roughly 0.2% to 1.5% in after-tax returns annually — a meaningful advantage compounded over decades.

The Mechanics of Capital Loss Offsetting

The U.S. tax code (IRC Section 1211) allows individual taxpayers to use capital losses to offset capital gains dollar for dollar. The sequence matters:

  1. Short-term losses offset short-term gains first.
  2. Long-term losses offset long-term gains first.
  3. Excess losses of one type can then offset gains of the other type.
  4. If total losses exceed total gains, up to $3,000 of net capital loss can offset ordinary income annually ($1,500 for married filing separately).
  5. Losses beyond the $3,000 limit carry forward indefinitely to future tax years.

The distinction between short-term (assets held one year or less) and long-term (assets held more than one year) matters enormously. Long-term capital gains are taxed at preferential rates — 0%, 15%, or 20% depending on income — while short-term gains are taxed as ordinary income at rates up to 37%.

Capital Gains and Loss Tax Rates (2024)

Filing Status0% Long-Term Rate (Income Threshold)15% Rate20% Rate
SingleUp to $47,025$47,026 – $518,900Over $518,900
Married Filing JointlyUp to $94,050$94,051 – $583,750Over $583,750
Head of HouseholdUp to $63,000$63,001 – $551,350Over $551,350

The Wash-Sale Rule: The Critical Constraint

Tax-loss harvesting has a major guard rail: the wash-sale rule (IRC Section 1091). If a taxpayer sells a security at a loss and buys the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed. The disallowed loss is added to the cost basis of the replacement shares, deferring — not eliminating — the tax benefit.

Wash-sale violations are easy to trigger inadvertently:

  • Selling a mutual fund at a loss and buying the same fund in a different account (including an IRA) within the window.
  • Selling a stock ETF and buying a nearly identical ETF from a different fund family that tracks the same index.
  • Selling individual stocks and having automatic dividend reinvestment purchase shares of the same stock within 30 days.

The rule applies per taxpayer, across all accounts. As of 2024, the wash-sale rule does not apply to cryptocurrency — though proposed legislation has repeatedly sought to change that.

Practical Harvesting Strategy

StepAction
1. Identify lossesReview taxable portfolio for positions below cost basis
2. Calculate tax impactEstimate tax savings from offsetting gains or income
3. Sell the losing positionExecute the sale before year-end (December 31 settlement)
4. Replace with a similar (not identical) securityMaintain market exposure; wait 31 days or use a different fund
5. Track cost basis and holding periodsUpdate records for replacement securities

Loss Carryforwards

Capital losses have no expiration date. A $50,000 loss in a bad market year can shield $50,000 of future gains from taxation. High-net-worth investors sometimes accumulate large loss carryforward balances that shelter gains for a decade or more. The carryforward retains its character (short-term or long-term) when carried to future years.

When Tax-Loss Harvesting Makes Sense

  • High-income investors in the 20% long-term gains bracket — The tax savings are largest when rates are highest.
  • Investors with realized capital gains in the same year — Harvesting directly offsets current-year taxable events.
  • Investors near the end of the calendar year — Harvesting is most time-sensitive in Q4.
  • Taxable accounts only — Losses in IRAs or 401(k)s have no tax consequence; harvesting is pointless in tax-advantaged accounts.

Automated Harvesting

Robo-advisors like Betterment and Wealthfront offer daily automated tax-loss harvesting for taxable accounts, monitoring each position for harvesting opportunities throughout the year rather than only at year-end. Vanguard Personal Advisor Services and Schwab Intelligent Portfolios Premium provide similar features at varying price points. These services typically harvest far more frequently than individuals tracking their own portfolios.

Transaction Costs and Net Benefit

The gross tax savings from harvesting must exceed transaction costs (commissions, bid-ask spreads) and any return drag from being briefly out of the market. With commission-free trading now standard at most major brokerages, transaction costs are rarely a limiting factor for liquid securities. The main risk is divergence: if the replacement security performs differently than the sold security during the 30-day window, the investor may gain or lose ground relative to simply holding.

This article is for informational purposes only and does not constitute financial advice.

taxesinvestingcapital gains

Related Articles