Skip to main content
tax-loss harvestingwash sale rulecapital gains taxdirect indexingcrypto tax

Tax-Loss Harvesting: Cut Your Capital Gains Tax

·10 min read
Share:

Key Takeaways

  • Capital losses offset unlimited capital gains plus $3,000 of ordinary income annually, with indefinite carryforward — a $10,000 short-term loss saves up to $3,700 in federal taxes at the 37% bracket.
  • Crypto is exempt from the wash-sale rule in 2026 — you can sell and immediately repurchase, booking the full loss. This loophole is under legislative threat.
  • Direct indexing harvests ~1.9x more losses than ETF-based strategies but costs 0.20-0.40% annually — breakeven for portfolios above $500,000 in the 32%+ bracket.
  • The wash-sale rule's 61-day window applies across all accounts including IRAs and spouse accounts — losses washed into an IRA are permanently disallowed.
  • Harvest year-round, not just in December. The average intra-year S&P 500 drawdown is ~14%, creating opportunities every quarter.

A $10,000 realized loss in a taxable brokerage account saves $3,700 in federal taxes for someone in the 37% bracket — and you can stay fully invested the entire time. That's the core of tax-loss harvesting: sell losers, book the loss, buy something similar, and let the IRS subsidize your portfolio rebalancing.

With the S&P 500 delivering uneven sector returns in 2026 and individual stocks swinging 10-20% on tariff headlines, harvesting opportunities are everywhere. The <a href="/posts/treasury-yield-curve-what-the-spread-tells-you-now">10-year Treasury yield</a> sits at 4.33% and the Fed holds at 3.64% — conditions that create winners and losers across <a href="/posts/treasury-bond-ladder-lock-in-yields-at-every-rung">fixed income</a>, growth, and rate-sensitive sectors simultaneously. If you own more than a handful of positions in a taxable account, something in your portfolio is underwater right now.

The rules are straightforward but unforgiving. The IRS wash-sale rule kills your deduction if you rebuy too soon. Short-term and long-term losses have different values. And crypto plays by entirely different rules than stocks — a loophole that still exists in 2026 but may not last. This guide covers the mechanics, the math, and the strategies that separate effective harvesting from expensive mistakes.

How Tax-Loss Harvesting Works — The Core Mechanics

Tax-loss harvesting follows a three-step process:

Step 1: Identify losing positions. Review your taxable brokerage accounts for investments trading below your cost basis. Only unrealized losses in taxable accounts count — losses in IRAs, 401(k)s, and other tax-advantaged accounts cannot be harvested because those gains aren't taxed annually.

Step 2: Sell to realize the loss. When you sell an investment for less than your cost basis, the loss becomes realized and reportable on your tax return. A stock purchased at $50 and sold at $35 generates a $15 per-share capital loss.

Step 3: Use losses to offset gains. Capital losses first offset capital gains of the same type — short-term losses against short-term gains, long-term against long-term. Excess losses cross over: short-term losses can offset long-term gains and vice versa. After offsetting all gains, up to $3,000 in net capital losses can be deducted against ordinary income ($1,500 if married filing separately). Remaining losses carry forward indefinitely.

The ordering matters. Short-term capital gains are taxed at your ordinary income rate (up to 37% for 2026), while long-term gains face lower rates of 0%, 15%, or 20%. Offsetting a short-term gain saves more per dollar than offsetting a long-term gain.

The Wash-Sale Rule — What Triggers It and What Doesn't

IRS Section 1091 is the one rule that can undo your entire harvest. If you sell a security at a loss and purchase a "substantially identical" security within 30 days before or after the sale, the loss is disallowed. The 30-day window runs both directions — a 61-day restricted zone total.

Triggers a wash sale:

  • Buying the same stock or fund within the 61-day window
  • Buying a substantially identical mutual fund or ETF (selling Vanguard S&P 500 ETF and buying Vanguard S&P 500 Index Fund — same index, wash sale)
  • Buying the same security in a different account, including your IRA or your spouse's account
  • Automatic dividend reinvestment purchasing shares of a security you just sold at a loss

Does NOT trigger a wash sale:

  • Selling an S&P 500 index fund and buying a total stock market fund (different indices)
  • Selling one company's stock and buying a competitor in the same sector (Ford ≠ GM)
  • Selling a bond fund and buying one with different duration or credit profile
  • Waiting 31 days before repurchasing the identical security

The disallowed loss isn't permanently gone — it gets added to the cost basis of the replacement security, deferring the benefit. But there's one trap: if the wash sale happens between your taxable account and an IRA, the loss is permanently disallowed. IRA transactions don't generate deductible losses, so the added basis disappears into the tax-advantaged wrapper forever.

The Crypto Exception — No Wash-Sale Rule (For Now)

The IRS classifies cryptocurrency as property under Notice 2014-21, not as a stock or security. Because Section 1091 applies specifically to "stock or securities," crypto is exempt from the wash-sale rule. You can sell Bitcoin at a loss and buy it back 30 seconds later, booking the full loss for tax purposes.

This is the single biggest tax advantage crypto has over equities. An investor holding ETH that drops 20% can harvest the loss, immediately repurchase, and maintain identical exposure — something impossible with stocks without a 31-day gap or a non-identical replacement.

The loophole won't last forever. The White House published a 166-page digital assets report in mid-2025 recommending crypto be subject to wash-sale-like rules. Form 1099-DA, required for crypto broker reporting starting January 2026, already includes a "Wash Sales Loss Disallowed" field — the infrastructure for enforcement is being built. Multiple legislative proposals since 2021 have targeted this gap.

Practical strategy for 2026: harvest crypto losses aggressively while the exemption exists. If you hold volatile tokens with unrealized losses, the ability to sell and immediately rebuy is a free tax benefit that traditional securities can't match. But track your basis meticulously — the new 1099-DA reporting means the IRS will know your transaction details.

Direct Indexing — Tax-Loss Harvesting on Autopilot

Traditional harvesting works at the fund level: you sell a losing S&P 500 ETF and swap to a total market fund. Direct indexing works at the stock level: instead of owning VTI, you own the individual 500+ stocks that compose the index. When Apple drops 5% but Google rises 8%, you harvest Apple without selling Google.

The math favors direct indexing. Research from Vanguard and Parametric shows direct indexing harvests roughly 1.9x more losses over a 10-year period than ETF-based strategies. The ratio climbs to 2.1x when accounting for the tax cost of liquidating assets to pay management fees.

The catch is cost. Direct indexing strategies charge 0.20% to 0.40% annually, compared to 0.03% for a broad market ETF like VTI. On a $500,000 portfolio, that's $1,000-$2,000 per year in additional fees. The breakeven calculation: are the extra harvested losses — taxed at your marginal rate — worth more than the fee differential?

For a taxpayer in the 32% or higher federal bracket with a $500,000+ taxable portfolio, the answer is usually yes. Schwab, Fidelity, and Wealthfront all offer direct indexing products with minimums between $1 and $100,000. For smaller portfolios or taxpayers in the 22% bracket or below, the fee drag likely outweighs the incremental tax benefit — stick with ETF-level harvesting.

Short-Term vs Long-Term Losses — Maximizing the Savings

Not all harvested losses save the same amount. The value depends entirely on what the loss offsets.

For 2026, long-term capital gains rates are 0% for single filers with taxable income up to $49,450 ($98,900 married filing jointly), 15% up to $545,500 ($613,700 married), and 20% above those thresholds. Short-term gains are taxed at your ordinary income rate — up to 37% based on your federal tax bracket.

The hierarchy of harvesting value:

  1. Short-term loss offsetting a short-term gain — saves up to 37 cents per dollar
  2. Any loss offsetting the $3,000 ordinary income deduction — saves at your marginal rate
  3. Short-term loss offsetting a long-term gain — saves 15-20 cents per dollar
  4. Long-term loss offsetting a long-term gain — saves 15-20 cents per dollar

Investors in the 0% long-term capital gains bracket should be cautious. If your taxable income is below $49,450 (single) or $98,900 (married), your long-term gains are already tax-free — harvesting losses to offset them generates zero benefit while resetting your cost basis lower.

A Worked Example: $40,000 in Gains, $25,000 in Losses

Sarah is a single filer in the 32% federal bracket ($200,000 taxable income) living in California (9.3% state rate). In 2026, her portfolio generated:

  • $25,000 in short-term capital gains (tech stocks held under 12 months)
  • $15,000 in long-term capital gains (index fund rebalancing)
  • $20,000 in unrealized losses across three positions
  • $5,000 in unrealized crypto losses (ETH purchased at $4,200, now at $3,700)

Without harvesting: Sarah owes $8,000 on short-term gains (32% × $25,000) plus $2,250 on long-term gains (15% × $15,000) = $10,250 federal, plus roughly $3,720 California state tax. Total: ~$13,970.

With harvesting: She sells the three losing stock positions ($20,000 loss), buys similar-but-not-identical replacements immediately. She sells and immediately repurchases the ETH ($5,000 loss — no wash-sale rule for crypto). Total harvested: $25,000.

The $25,000 in losses first offsets her $25,000 in short-term gains dollar-for-dollar. Her long-term gains remain at $15,000. Federal tax drops to $2,250 (15% × $15,000). California tax drops to ~$1,395.

Tax saved: $10,325. Sarah stays fully invested, maintains nearly identical portfolio exposure, and redirects the savings into additional investments. Over 20 years at 8% annual returns, that $10,325 compounds to $48,100.

The math compounds further each year she harvests. Even in years with no gains, the $3,000 ordinary income deduction saves $960 federally (32% bracket) — $19,200 over a 20-year career if she banks $3,000 in losses annually.

Common Mistakes That Destroy the Benefit

Selling and not reinvesting. Harvesting is a tax strategy, not an exit strategy. If you sell a losing S&P 500 fund and park proceeds in cash, you miss any recovery. Stay invested in a similar (not identical) asset.

Triggering wash sales through DRIPs. Dividend reinvestment programs can accidentally purchase shares of a security you just sold at a loss. Pause DRIPs before executing any harvest sale.

Harvesting in tax-advantaged accounts. Losses inside an IRA or 401(k) have zero tax benefit. Only harvest in taxable brokerage accounts.

Ignoring state taxes. If you live in California (13.3% top rate), New York (10.9%), or New Jersey (10.75%), the combined federal-state benefit of harvesting is dramatically larger. A $10,000 short-term loss in California at the top bracket saves $5,030 combined — more than half the loss amount.

Harvesting tiny amounts. The administrative overhead of tracking basis adjustments, wash-sale windows, and replacement securities isn't worth it for $200 losses. Set a minimum threshold — $1,000 per position is a reasonable floor for manual harvesting.

Forgetting the cost basis reset. Harvesting doesn't eliminate taxes — it defers them. Your replacement security has a lower cost basis, meaning larger future gains. The strategy works because a dollar of tax savings today is worth more than a dollar of tax paid years from now. But if you're two years from retirement and plan to liquidate everything, the deferral window may be too short to justify the complexity.

Conclusion

Tax-loss harvesting turns portfolio losers into tax savings — $3,000 minimum per year against ordinary income, unlimited against capital gains, with unused losses carrying forward forever. The wash-sale rule is the only real constraint for stocks, and it's easy to navigate by swapping to a similar-but-not-identical fund.

The 2026 landscape offers two specific advantages: crypto remains exempt from wash-sale rules (harvest aggressively while this lasts), and direct indexing platforms have driven fees low enough that stock-level harvesting finally makes sense for portfolios above $500,000. For smaller portfolios, ETF-level harvesting with quarterly reviews captures most of the benefit at zero additional cost.

To understand how harvested losses fit your overall tax picture, see our guide to capital gains tax rates and 2026 federal tax brackets. For more strategies, see 5 ways to reduce capital gains tax in 2026 and our taxes hub.

Frequently Asked Questions

Enjoyed this article?
Share:

Disclaimer: This content is for informational purposes only and does not constitute financial advice. Consult qualified professionals before making investment decisions.

Explore More

Related Articles