Definition
Tax-Loss Harvesting is an investment strategy that involves selling securities at a loss to realize capital losses, which can then be used to offset capital gains from other investments, reducing the total tax liability owed in a given year.
Tax-loss harvesting converts an unrealized paper loss into a realized loss that has real tax value. A $10,000 unrealized loss sitting in a position is worth nothing until sold. Once realized, it offsets $10,000 of capital gains — eliminating the tax on those gains. At a 20% capital gains rate, that’s $2,000 of tax savings that can be reinvested.
US Capital Gains Tax Rates (2024)
Short-term capital gains (positions held ≤ 12 months): Taxed as ordinary income — 10% to 37% depending on bracket.
Long-term capital gains (positions held > 12 months): 0%, 15%, or 20% depending on income.
Net Investment Income Tax (NIIT): Additional 3.8% on investment income for high earners (income over $200K single / $250K married).
Effective maximum rates:
- Short-term: 37% + 3.8% = 40.8%
- Long-term: 20% + 3.8% = 23.8%
Tax-loss harvesting value at each rate:
| Loss Amount | Short-Term Rate 35% | Long-Term Rate 20% | Long-Term Rate 15% |
|---|---|---|---|
| $5,000 | $1,750 saved | $1,000 saved | $750 saved |
| $10,000 | $3,500 saved | $2,000 saved | $1,500 saved |
| $25,000 | $8,750 saved | $5,000 saved | $3,750 saved |
| $50,000 | $17,500 saved | $10,000 saved | $7,500 saved |
How Capital Loss Offsetting Works
Priority order for offsetting:
- Short-term capital losses first offset short-term capital gains
- Long-term capital losses first offset long-term capital gains
- Net short-term losses can offset net long-term gains (and vice versa)
- Net remaining losses can offset ordinary income — up to $3,000 per year
- Losses above $3,000 carry forward indefinitely to future tax years
Example:
| Short-Term | Long-Term | |
|---|---|---|
| Gains | +$8,000 | +$15,000 |
| Harvested Losses | −$5,000 | −$20,000 |
| Net | +$3,000 (taxable at 32%) | −$5,000 |
| Cross-offset | Long-term −$5,000 offsets short-term +$3,000 | −$2,000 remaining |
| Ordinary income offset | −$2,000 (saves 32% × $2,000 = $640) | |
| Carryforward | $0 | $0 |
Total tax savings from harvesting: $5,000 × 32% (short-term) + $20,000 × 20% (long-term) = $1,600 + $4,000 = $5,600 saved.
The Wash-Sale Rule
The IRS wash-sale rule (IRC Section 1091) disallows a capital loss deduction if the same — or “substantially identical” — security is purchased within the wash-sale window: 30 days before or 30 days after the sale date (61-day total window).
What triggers a wash sale:
- Repurchasing the same stock (NVDA sold, NVDA bought within 30 days)
- Buying options on the same stock
- Purchasing “substantially identical” securities (selling SPY, buying IVV — both S&P 500 ETFs; potentially disallowed)
- Purchasing the security in a spouse’s account or IRA within the window
What does NOT trigger a wash sale:
- Selling a stock and buying a different stock in the same sector (sell NVDA, buy AMD)
- Selling SPY and buying QQQ (different index)
- Selling a US stock and buying an international equivalent
- Selling after the 31st day
When disallowed: The disallowed loss is added to the cost basis of the repurchased security, deferring (not eliminating) the loss to a future sale.
Tax-Loss Harvesting Strategies
Strategy 1: Year-End Harvesting
Review portfolio in November–December. Identify all positions with unrealized losses. Sell those where:
- Loss is meaningful (tax savings > transaction costs)
- Thesis is questionable or intact but sector alternatives exist
- Do not sell positions with meaningful gains unless they would otherwise be short-term (approaching 12-month mark)
Strategy 2: Continuous Harvesting
Harvest throughout the year whenever a position drops beyond a threshold (e.g., 10–15% loss) and can be replaced with an equivalent exposure. Institutional strategies harvest continuously, realizing losses systematically.
Strategy 3: Sector-Swap Harvesting
Sell the losing position; immediately buy a similar (but not substantially identical) security in the same sector to maintain market exposure without missing a recovery.
Example swaps:
- Sell NVDA (AI/semiconductors) → Buy AMD or AVGO
- Sell MSFT (cloud tech) → Buy GOOGL or Oracle
- Sell SPY (S&P 500 index) → Buy VOO or IVV (different fund company, same index — gray area; consult tax advisor)
- Sell XOM (energy) → Buy CVX
Cluenex displays valuation, financial health, and sentiment for every covered stock — use these to identify the strongest alternative in the same sector for the swap-in position, so tax harvesting doesn’t mean swapping a winner for a weaker name.
Common Mistakes
"I'll sell and immediately rebuy the same stock."
This is a wash sale. The IRS disallows the loss. You must wait 31 days before repurchasing. In fast-moving markets, a stock can recover significantly in 31 days — resulting in missing the recovery while also failing to get the tax deduction. Plan the replacement purchase before selling.
"Tax-loss harvesting always saves money."
Harvesting only saves money if there are capital gains to offset. If your portfolio has no realized gains this year, harvested losses only offset up to $3,000 of ordinary income — meaningful for high earners but less so for lower brackets. Carry-forward losses are valuable but deferred. Always calculate the expected tax saving vs the transaction cost and market risk of the swap.
"I'll harvest losses in my IRA."
Tax-loss harvesting has no benefit inside a Traditional or Roth IRA — these are tax-deferred or tax-free accounts. Capital gains and losses inside IRAs do not appear on your tax return. Harvesting is a taxable brokerage account strategy only.
Example: Tax-Loss Harvesting on TSLA
| Action | Details | Tax Impact |
|---|---|---|
| TSLA bought (Feb 2023) | 100 shares at $200. Cost basis = $20,000 | — |
| TSLA current price (Oct 2023) | $240 ($4,000 gain — unrealized, no tax yet) | — |
| Sold AAPL (separate position) | Gained $25,000 (long-term). Tax = $5,000 | $5,000 owed |
| Found NVDA at a loss | Bought $30,000, now worth $21,000. Loss = −$9,000 | — |
| Harvest NVDA loss | Sell NVDA. Realize −$9,000 loss. Buy AMD immediately (not substantially identical) | −$9,000 offsets $5,000 AAPL gain + $3,000 ordinary income + $1,000 carryforward |
| Tax liability | AAPL gain: $0 (fully offset). Ordinary income: −$3,000 | Saved $5,000 × 20% + $3,000 × 32% = $1,000 + $960 = $1,960 saved |
Harvesting the NVDA position produced $1,960 in real tax savings — cash that gets reinvested. AMD was bought immediately to maintain semiconductor sector exposure, so if NVDA and AMD both recover, the portfolio participates. The NVDA position was replaced functionally; only the tax loss was "captured." This is the mechanics of professional tax-loss harvesting: sell the loser, swap to a similar name, keep market exposure.
How Cluenex Supports Tax-Loss Harvesting
When identifying positions to harvest, Cluenex displays current financial health, sentiment scores, and valuation for each covered stock alongside the original position. This helps identify whether the losing position has deteriorating fundamentals (sell and don’t replace in the sector) or solid fundamentals with a price decline (harvest and swap to a similar stock). Cluenex also shows sector peers for swap candidates — use the platform’s valuation and financial health metrics to pick the strongest alternative in the sector.
Frequently Asked Questions
-
Can I tax-loss harvest and immediately buy a similar ETF? Generally yes, but “substantially identical” is a gray area for ETFs tracking the same index. Selling SPY and buying IVV (both S&P 500) may be challenged by the IRS as a wash sale. Safer alternatives: sell SPY, buy VTI (total market); sell QQQ, buy IWM (different index). Consult a tax advisor for ETF swaps.
-
Does tax-loss harvesting make sense for small portfolios? At small portfolio sizes, transaction costs may exceed tax savings. Generally, harvesting a $1,000 loss at 20% saves $200 — worthwhile if the swap costs $0 in commissions and there are gains to offset. At 15% rate, $1,000 loss = $150 saved. Always net the transaction costs.
-
Should I harvest losses even if I expect the stock to recover? Yes, if you can replace it with an equivalent sector position. Harvesting doesn’t require abandoning the investment thesis — it just requires 31 days in a different but correlated security before returning. The tax savings are real; the market risk of the swap is manageable.
-
What happens to carry-forward losses? Capital loss carry-forwards persist indefinitely. They offset future capital gains dollar-for-dollar in future years, at whatever the prevailing tax rate is at that time. A $50,000 carry-forward harvested in a high-tax year can be used in future years when gains are realized.
-
Can I tax-loss harvest in a 401(k)? No. Tax-loss harvesting only applies to taxable brokerage accounts. 401(k), IRA, and Roth IRA gains and losses have no current tax consequence — they are tax-deferred or tax-free. All losses inside these accounts are economically real but have no tax value.
Related Concepts
- Cut Losses vs Hold — Thesis-based framework for deciding which losses are worth harvesting vs recovering
- Diversification — Sector-swap replacements after harvesting require understanding sector exposure
- Portfolio Beta — Verify sector swaps don’t significantly alter portfolio beta
- Position Sizing — Re-enter the replacement position at appropriate size relative to portfolio