Tax-Loss Harvesting Strategies to Offset Capital Gains

Learn how tax-loss harvesting works, when to use it, wash-sale rules to avoid, and how to strategically offset short- and long-term capital gains.

The InfoNexus Editorial TeamMay 22, 20269 min read

Harvesting a $3,000 Deduction Costs Nothing Except Discipline

Tax-loss harvesting is the deliberate act of selling investments at a loss to generate a tax deduction, then immediately reinvesting the proceeds to maintain market exposure. Done correctly, it converts paper losses into real tax savings without permanently abandoning any position. Vanguard research estimates the strategy can add 0.4% to 0.9% in after-tax annual returns, a figure researchers call "tax alpha." The mechanics are not complicated, but the rules that govern when a loss is disallowed — and how losses offset gains — require careful navigation.

How Capital Gains and Losses Are Categorized

The IRS taxes capital gains based on how long you held the asset before selling. The holding period threshold is exactly one year.

Gain TypeHolding Period2025 Tax Rate (Single Filer)2025 Tax Rate (MFJ)
Short-term1 year or less10%–37% (ordinary income rates)10%–37%
Long-term (0% bracket)More than 1 year$0–$48,350$0–$96,700
Long-term (15% bracket)More than 1 year$48,351–$533,400$96,701–$600,050
Long-term (20% bracket)More than 1 yearAbove $533,400Above $600,050

When you harvest a loss, the IRS requires you to first offset losses against gains of the same type. Short-term losses offset short-term gains first, then any excess offsets long-term gains. Long-term losses follow the reverse order. This netting sequence matters because short-term gains are taxed at higher ordinary income rates — so short-term losses are the most valuable to harvest.

The $3,000 Ordinary Income Deduction

After all gains are offset, any remaining net capital loss can be deducted against ordinary income — but only up to $3,000 per year ($1,500 if married filing separately). Losses beyond $3,000 carry forward indefinitely to future years. There is no expiration on carryforward losses, and they retain their character (short-term or long-term) as they roll forward. A significant loss in one year can shield gains for a decade.

  • Net capital losses exceeding $3,000 carry forward to the next tax year automatically
  • Carryforward losses are reported on Schedule D and Form 8949
  • Losses from a deceased taxpayer's final return do not pass to heirs — they expire
  • Passive activity losses follow different rules under Section 469 and cannot be freely combined

The Wash-Sale Rule: The 61-Day Window

Section 1091 of the Internal Revenue Code disallows a loss if you buy a "substantially identical" security within 30 days before or 30 days after the sale date — a total 61-day window. The IRS created this rule to prevent investors from manufacturing tax losses while maintaining the same economic exposure.

If a wash sale occurs, the disallowed loss is added to the cost basis of the replacement shares, effectively deferring rather than permanently eliminating the deduction. But deferral is only useful if you eventually sell the replacement shares in a non-wash-sale context.

ScenarioWash Sale?Result
Sell VTSAX at a loss, buy VTSAX 20 days laterYesLoss disallowed; added to new cost basis
Sell VTSAX at a loss, buy VTI immediatelyLikely noLoss allowed (different fund, similar index)
Sell AAPL at a loss, buy MSFT immediatelyNoLoss allowed
Sell losing fund in IRA, buy same fund in taxable accountYes (cross-account)Loss permanently disallowed

Note that the wash-sale rule applies across all accounts held by the same taxpayer — including IRAs. A loss sold in a taxable brokerage and immediately repurchased in an IRA triggers the rule, and because IRAs don't recognize basis adjustments the same way taxable accounts do, the loss is permanently lost rather than deferred.

Replacement Security Strategies

The art of tax-loss harvesting lies in selling a losing position while replacing it with something different enough to avoid the wash-sale rule but similar enough to preserve intended market exposure. Common substitution pairs include:

  • S&P 500 index fund → Total market index fund (different index, similar exposure)
  • One large-cap growth ETF → A different issuer's large-cap growth ETF tracking a different index
  • Individual stock → Sector ETF covering that industry
  • Developed international fund → A different issuer's EAFE index fund

Mutual funds and ETFs tracking the same index from different providers may still be considered substantially identical if their portfolios are nearly identical. The IRS has not issued definitive guidance on this point, and tax professionals disagree. Using funds from different index families reduces risk.

When Tax-Loss Harvesting Makes Sense

Not every loss is worth harvesting. Transaction costs, tax bracket, and portfolio complexity all affect the calculus.

  • Harvesting is most valuable in high-income years when short-term gains are taxed at 32%–37%
  • Investors in the 0% long-term capital gains bracket gain little from harvesting long-term losses
  • Harvesting near year-end is common, but losses can be captured any time market dislocations occur
  • Robo-advisors like Betterment and Wealthfront automate daily harvesting across large portfolios, generating more frequent opportunities than manual monitoring allows

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

taxationinvestingtax planning

Related Articles