Tax-Loss Harvesting Strategies: How to Legally Offset Capital Gains on Equities

Navigating equity markets inevitably involves volatility. While unrealized losses can feel like deadweight in an investment account, in taxable brokerage portfolios, down positions can serve as a valuable tax-sheltering tool.

Tax-loss harvesting (TLH) is the deliberate practice of selling depreciated securities at a loss to neutralize realized capital gains dollar-for-dollar, offset up to $3,000 in ordinary income, and lower your annual tax bill. When executed correctly, harvested losses reduce current tax drag without pulling your portfolio out of the market, allowing unhindered compound growth over time.

Mechanics: The Order of Netting Capital Gains and Losses

The IRS requires capital gains and losses to be categorized by holding period and calculated following strict statutory netting rules:

┌─────────────────────────────────────────────────────────────┐
│ CAPITAL GAIN & LOSS NETTING PROTOCOL                        │
├─────────────────┬───────────────────────────────────────────┤
│ Short-Term      │ Assets held ≤ 12 months (Taxed up to 37%) │
│ Long-Term       │ Assets held > 12 months (Taxed at 0/15/20%)│
├─────────────────┴───────────────────────────────────────────┤
│ STEP 1: Net short-term losses against short-term gains.     │
│ STEP 2: Net long-term losses against long-term gains.       │
│ STEP 3: Cross-net remaining net short-term/long-term results.│
│ STEP 4: Deduct excess losses up to $3,000 from ordinary inc.│
│ STEP 5: Carry forward unused capital losses indefinitely.   │
└─────────────────────────────────────────────────────────────┘

Because short-term capital gains are taxed at ordinary income rates (up to 37% federal, plus the 3.8% Net Investment Income Tax and state taxes), short-term losses carry the highest economic value per dollar harvested.

Direct Scenario: Tax Bill Reduction in Action

Consider an investor in the 35% federal ordinary tax bracket (subject to the 20% long-term capital gains rate and 3.8% NIIT):

Transaction / EventWithout Tax-Loss HarvestingWith Systematic Harvesting
Realized Capital Gains$35,000 long-term profit$35,000 long-term profit
Harvested Capital Losses$0 (Held declining positions)-$38,000 realized losses
Net Taxable Capital Gain$35,000$0
Ordinary Income Offset$0-$3,000 deducted
Indefinite Carryforward Loss$0$0 ($3,000 applied to future years)
Federal Tax Liability Saved$0$9,380 saved ($8,330 cap gains + $1,050 ordinary)

By harvesting $38,000 of paper losses, the investor avoids $8,330 in capital gains taxes and extracts an additional $1,050 reduction on wage income, retaining $9,380 in liquidity to redeploy back into compounding assets.

The Core Hazard: Navigating the 30-Day Wash-Sale Rule (IRC § 1091)

The IRS prevents taxpayers from claiming a tax deduction on an asset they immediately buy back. Under the Wash-Sale Rule, a capital loss is disallowed if you purchase a “substantially identical” security within a 61-day window:

  • The 30 days immediately before the sale date.
  • The actual date of the sale.
  • The 30 days immediately after the sale date.

$$\text{Disallowed Loss} \longrightarrow \text{Added to Cost Basis of Replacement Shares}$$

If disallowed, you do not lose the tax loss permanently, but you cannot deduct it in the current tax year. Instead, the loss is tacked onto the cost basis of the new shares, deferring the tax deduction until those replacement shares are eventually sold.

The Dividend Reinvestment Wash-Sale Trap

A common pitfall occurs when automated DRIP (Dividend Reinvestment Plan) is enabled. If you sell 200 shares of an ETF at a loss on October 15, but that same fund issues a quarterly dividend on October 20 that automatically buys 0.8 shares, that fractional purchase triggers a partial wash sale, disallowing a proportional chunk of your harvested tax loss.

Practical Proxy Pairing: How to Stay Invested Without Violating the Rule

Harvesting a loss should not mean sitting in cash for 31 days and risking missing an unexpected market rebound. The solution is proxy pairing: immediately reinvesting the proceeds into an asset that tracks a similar segment of the economy without meeting the IRS definition of “substantially identical.”

┌─────────────────────────────────────────────────────────────┐
│ APPROVED PROXY PAIRINGS FOR TAX-LOSS HARVESTING             │
├─────────────────────┬───────────────────┬───────────────────┤
│ Sold at a Loss      │ Immediate Buy     │ Rationale         │
├─────────────────────┼───────────────────┼───────────────────┤
│ **VOO** (Vanguard   │ **ITOT** or **VTI**│ Swapping S&P 500  │
│ S&P 500 ETF)        │ (Total US Market) │ for Total Market  │
├─────────────────────┼───────────────────┼───────────────────┤
│ **IVV** (iShares    │ **SCHX** (Schwab  │ Tracks distinct   │
│ S&P 500 ETF)        │ US Large-Cap)     │ underlying index  │
├─────────────────────┼───────────────────┼───────────────────┤
│ **QQQ** (Invesco    │ **VGT** or **XLK** │ Swapping broad    │
│ Nasdaq 100)         │ (Technology ETFs) │ tech/telecom flow │
├─────────────────────┼───────────────────┼───────────────────┤
│ **GOOGL / MSFT**    │ **FTEC / VGT**    │ Individual stock  │
│ (Single Tech Stock) │ (Sector ETF)      │ into sector fund  │
└─────────────────────┴───────────────────┴───────────────────┘

Because an S&P 500 index fund and a Total U.S. Stock Market index fund follow different benchmark methodologies (500 mega-caps vs. 3,500+ total companies including small- and mid-caps), tax professionals widely consider them not substantially identical under IRC § 1091. This swap locks in the tax loss while keeping your market exposure continuous.

Year-Round Execution vs. Year-End Rushes

Most investors look at tax-loss harvesting solely in late November or December. However, waiting until year-end often leaves significant deductions on the table.

  • Capture Intraday Pullbacks: Mid-year corrections (such as sudden 8% to 12% spring pullbacks) offer prime harvesting opportunities even if markets end the calendar year at record highs.
  • Specific-Share Identification: Instruct your brokerage to employ Specific Lot Identification (Spec ID) rather than First-In, First-Out (FIFO). Spec ID allows you to pinpoint and sell your highest-cost-basis shares first, maximizing the paper loss per share redeemed while leaving low-basis lots untouched.
  • Preserve Losses via Indefinite Carryforward: Do not avoid harvesting because you lack capital gains this year. Excess net losses carry forward indefinitely to offset future multi-million-dollar windfalls, such as the sale of a private business, real estate property, or concentrated stock options.