SwitchWize
Browse
Tax

Tax-Loss Harvesting Guide 2026: Wash Sale Rules, Limits, and Real Dollar Examples

Tax-loss harvesting offsets capital gains with realized losses, saving 15-37% in tax on the gains. The wash sale rule prevents you from rebuying the same security within 30 days. Here's exactly how it works and what counts as 'substantially identical.'

·May 13, 2026·11 min read
The Bottom Line

Tax-loss harvesting (TLH) is the simplest way to legally reduce your investment tax bill. Sell a losing position, recognize the loss, use it to offset realized gains — saving 15-37% of the loss amount in tax. Up to $3,000 per year of excess losses can offset ordinary income. Excess beyond that carries forward indefinitely. The catch: the wash sale rule prevents you from immediately rebuying the same security — you must wait 31 days, or buy something different but not "substantially identical."

Key Facts — tax-loss harvesting basics
  • 1.Capital losses offset capital gains dollar-for-dollar; excess offsets up to $3,000 of ordinary income per year.
  • 2.Excess losses beyond $3,000 carry forward indefinitely to future tax years.
  • 3.Wash sale rule: don't repurchase the 'substantially identical' security within 30 days before or after the sale (61-day window).
  • 4.Wash sale violation doesn't permanently lose the deduction — it defers it by adding to the replacement security's cost basis.
  • 5.Tax-loss harvesting only applies to taxable accounts; IRAs and 401(k)s don't trigger gains/losses for current-year tax.

How Tax-Loss Harvesting Works

Imagine you bought $10,000 of an index fund in 2024 that's now worth $7,500. You have a $2,500 unrealized loss — not on your tax return because you haven't sold. If you sell, you realize the $2,500 loss. That realized loss now offsets capital gains elsewhere in your portfolio.

Three layers of benefit, in order:

Layer 1: Offset realized capital gains. If you have $5,000 of realized capital gains for the year (from other sales), the $2,500 loss reduces those gains to $2,500. At a 15% long-term capital gains rate, that's $375 saved.

Layer 2: Offset $3,000 of ordinary income. If your losses exceed your gains, the excess (up to $3,000 per year) reduces your taxable ordinary income. At a 32% federal bracket, $3,000 of loss saves $960. At 37%, it saves $1,110.

Layer 3: Carry forward to future years. Excess losses beyond the $3,000 ordinary income offset carry forward indefinitely. There's no expiration. A $50,000 loss in a bear market can offset gains and income for 15+ years going forward.

The Wash Sale Rule

Here's where most beginners trip up. The IRS doesn't want you to sell at a loss for tax purposes while keeping the same economic position — that would be a free tax break. So they created the wash sale rule:

You cannot deduct the loss if you buy "substantially identical" securities within 30 days before or after the sale.

The window is 61 days total: 30 days before, the sale date, 30 days after.

If you violate the rule, the loss isn't permanently lost. It's added to the cost basis of the replacement security. So you'll eventually claim the loss when you sell the replacement — but the immediate-year tax benefit is gone.

Example: You sell 100 shares of VTI at a $2,000 loss on December 1, then buy 100 shares of VTI back on December 15. Wash sale triggered. The $2,000 loss is added to your cost basis on the new VTI shares. When you eventually sell those shares, your gain will be $2,000 less (or your loss $2,000 more). The benefit is deferred, not eliminated.

The wash sale rule applies across all your accounts, including:

  • Your taxable brokerage account
  • Your spouse's accounts (if filing jointly)
  • Your IRA accounts (this one stings — you can't tax-loss harvest in taxable and rebuy in IRA)
  • Accounts at different brokerages

It does NOT apply across separate filers (your account vs your adult child's account).

What Counts as "Substantially Identical"

This is the critical decision in any TLH strategy. The IRS has never given a comprehensive definition, but common consensus among tax professionals:

Definitely substantially identical (wash sale triggered):

  • Same exact security (VTI sold, VTI bought)
  • Different share class of the same fund (Investor class vs Admiral class of same Vanguard fund)
  • Same stock, different account (AAPL in your brokerage and AAPL in your IRA)

Probably substantially identical (most tax pros avoid):

  • Two index funds tracking the same index (VTI and ITOT, both total US market)
  • Two ETFs tracking the same underlying (SPY and VOO, both S&P 500)
  • A stock and its convertible bond

Probably NOT substantially identical (generally safe):

  • Two funds tracking different indexes (VTI total market vs VOO S&P 500 — different indexes)
  • Two funds tracking the same broad market but with different methodologies (VTI total market vs SCHX large cap)
  • A specific stock and a sector ETF that includes it (AAPL and XLK)

Definitely NOT substantially identical:

  • Different companies in the same sector (AAPL and MSFT)
  • Different asset classes (stock and bond)
  • Different countries (US large cap and emerging markets)

The pragmatic approach for index investors: maintain a list of pairs of similar-but-different ETFs. When you harvest losses on one, swap to its pair for 31 days, then swap back if you want.

Common pairs:

  • VTI (Vanguard Total Market) ↔ ITOT (iShares Total Market) — same index, gray area
  • VTI ↔ SCHB (Schwab US Broad Market) — different methodology, generally safe
  • VOO (S&P 500) ↔ IVV (iShares S&P 500) — same index, gray area
  • VOO ↔ SCHX (Schwab Large Cap) — different methodology, generally safe
  • BND (Vanguard Total Bond) ↔ AGG (iShares Aggregate Bond) — same Bloomberg index, gray area
  • BND ↔ BIV (Vanguard Intermediate Term Bond) — different index, safe

The conservative path: only swap between funds tracking clearly different indexes (different index providers AND different methodologies).

Watch Out:

The wash sale rule applies to dividend reinvestment. If you have automatic dividend reinvestment turned on and the fund pays a dividend within the 30-day window, that reinvestment counts as a purchase and triggers the wash sale on the proportional shares. Turn off DRIP before harvesting, or harvest from positions where DRIP is off.

Worked Example: $200K Portfolio with $30K of Losses

A typical scenario after a market drop: $200K in a taxable brokerage, with $30K of unrealized losses concentrated in a handful of positions. Suppose you've also realized $15K of gains earlier in the year from rebalancing.

Step 1: Harvest $30K of losses.

Sell the losing positions, immediately buy replacements (different ETFs tracking different but similar indexes — e.g., sell VTI, buy SCHB).

Step 2: Apply against gains.

$30K losses - $15K gains = $15K net loss.

Step 3: Apply $3K against ordinary income.

$15K net loss - $3K ordinary income offset = $12K carryforward.

Step 4: Calculate tax savings.

  • $15K of gains offset, at 15% LTCG = $2,250 saved
  • $3K of ordinary income offset, at 32% bracket = $960 saved
  • $12K carryforward = saves $1,800-$4,440 in future years depending on how it's eventually applied

Total current-year tax savings: $3,210. Plus $1,800-$4,440 in future deferred savings.

For 10 minutes of trading work — sell the losers, buy the replacements — that's an effective $200/minute return, fully legal.

When NOT to Harvest

Three situations where TLH isn't worth doing:

Situation 1: You're in the 0% LTCG bracket. Single filers under $47,025 of taxable income / MFJ under $94,050 are in the 0% long-term capital gains bracket. You'd be reducing a 0% tax bill. The $3K ordinary income offset still works, but the gain offset isn't valuable. In this bracket, consider gains harvesting instead — realize long-term gains tax-free to reset cost basis higher.

Situation 2: Positions with very small losses. Transaction costs (bid-ask spread, your time) generally exceed the tax benefit on positions with under ~$500 of loss. Don't bother with tiny positions.

Situation 3: You'll need the wash sale window for rebalancing. If you know you'll want to rebuy the same security within 30 days (for tax-advantaged account contributions, for example), don't harvest.

Common Mistakes

Mistake 1: Harvesting then immediately buying back in your IRA. The wash sale rule applies to your IRA too. If you sell VTI at a loss in your taxable account and your IRA buys VTI within 30 days (automatic 401(k) payroll contribution, dividend reinvestment, target-date fund rebalancing — anything), you've triggered a wash sale. The loss is added to the IRA's basis — which is useless because IRA basis doesn't affect anything.

Mistake 2: Harvesting too aggressively in a bull market. Losses generally don't appear in steady up-markets. Forcing harvests by selling small position-level losers when the broader portfolio is up creates trading costs without meaningful tax savings.

Mistake 3: Not coordinating with spouse. If your spouse buys the same security in their account within the 30-day window, wash sale is triggered. Coordinate or use clearly different funds.

Mistake 4: Forgetting to claim the carryforward. Excess losses carry forward indefinitely, but you have to actually report them on Schedule D each year until exhausted. Tax software handles this automatically; if you're filing manually, track carryforward year-over-year.

Mistake 5: Treating TLH as a market-timing signal. Selling losers and buying different funds doesn't change your market exposure. You're swapping VTI for SCHB, not going to cash. Don't use TLH as cover to "sell because the market is scary." Stay invested.

Annual TLH Workflow

What to Do Now

2
List pairs of similar-but-not-identical ETFs for any positions you want to harvest. Confirm the replacement is not 'substantially identical.'
3
Turn off automatic dividend reinvestment on positions you'll harvest. Coordinate with spouse if MFJ — they shouldn't buy the same security.
4
Execute the sells and immediate replacement buys. Do this in one trading session to minimize market-timing risk.
5
Wait 31 days after the harvest, then either keep the replacement security or swap back to your original preference. Either is fine; the harvest is already complete.
6
When filing taxes, report on Schedule D and Form 8949. Carryforward losses appear on Schedule D Line 14 (long-term) or Line 6 (short-term).

Tax-Loss Harvesting at Robo-Advisors

Betterment, Wealthfront, and Schwab Intelligent Portfolios automate tax-loss harvesting daily, scanning for opportunities and executing trades when paired-loss thresholds are met. Worth knowing:

Pros:

  • Daily monitoring catches short-term dips that individual investors miss
  • Automated pair selection avoids wash sale risk on substantially identical securities
  • No effort from you

Cons:

  • Robo-advisors charge 0.25% management fee that exceeds typical TLH benefit at small account sizes
  • Some studies suggest the actual tax alpha is 0.50-1.00% per year — modest but real, mainly for larger accounts and high earners
  • TLH at low income levels (under $50K) generates almost no benefit

Rule of thumb: at $100K+ taxable account and $100K+ household income, robo-advisor TLH probably pays for itself. Below that, manual harvesting once or twice a year is fine.

Year-End TLH Mechanics

December is the busiest month for TLH because losses must be realized by December 31 to count for the current tax year.

Key dates and rules:

  • Trade date matters, not settlement date. A sale on December 31 counts for the current year even if settlement is January 2.
  • Last trading day is typically December 30 or 31. Markets close early on Christmas Eve and New Year's Eve.
  • Buy the replacement immediately. Don't leave the position in cash overnight — market drops between your sell and buy cost real money.
  • Avoid mutual fund distribution dates. Many mutual funds distribute capital gains in December. Don't buy a fund just before its distribution date or you'll receive a taxable gain on top of your harvest.
Key Takeaways
  • Tax-loss harvesting offsets capital gains dollar-for-dollar, then offsets up to $3K of ordinary income per year, then carries forward indefinitely.
  • Wash sale rule: cannot buy 'substantially identical' security within 30 days of the harvest sale. Violation defers the loss, doesn't eliminate it.
  • Two ETFs tracking the same index (VTI/ITOT, SPY/VOO) are gray area — most tax pros treat as substantially identical.
  • Two ETFs tracking different indexes (VTI total market vs VOO S&P 500) are generally safe replacements.
  • On a $30K loss harvested in November, expect $2K-$5K in current-year tax savings plus future-year deferred benefit from carryforward.

Related Calculators and Guides


Sources: IRS Publication 550 (Investment Income and Expenses), IRC Section 1091 (Wash Sale Rule), IRS Schedule D and Form 8949 instructions. This guide is for educational purposes and does not constitute tax or investment advice. Wash sale rule interpretation has gray areas; consult a CPA for high-dollar harvests or complex situations.

Frequently asked questions

What is tax-loss harvesting?+
Tax-loss harvesting is the practice of selling investments at a loss to realize the loss for tax purposes. The realized loss offsets capital gains dollar-for-dollar, reducing your tax bill. Excess losses (beyond gains) offset up to $3,000 of ordinary income per year, with the remainder carried forward indefinitely. Most useful for taxable brokerage accounts; doesn't apply inside IRAs or 401(k)s where there's no annual tax on gains/losses.
What is the wash sale rule?+
The wash sale rule disallows the loss if you buy the 'substantially identical' security within 30 days before or after the sale (61-day window total). The disallowed loss isn't lost forever — it's added to the cost basis of the replacement security, so you'll realize the loss when you eventually sell the replacement. But it defeats the immediate tax savings. The rule applies across all accounts you control, including spouse accounts and IRAs.
What counts as 'substantially identical'?+
Same exact security (VTI sold, VTI bought back) definitely triggers wash sale. Different but extremely similar securities (VTI sold, ITOT bought — both total market index) is a gray area; the IRS hasn't ruled definitively but tax professionals generally treat them as substantially identical. Different funds tracking different indexes (VTI sold, VOO bought — total market vs S&P 500) is generally NOT substantially identical because the underlying indexes differ. Individual stocks are unambiguous: you can't sell AAPL and rebuy AAPL within 30 days, but you can sell AAPL and buy MSFT.
How much can I deduct against ordinary income?+
Up to $3,000 per year of net capital losses can offset ordinary income (wages, salary, interest). The limit applies to married filing jointly or single — there is no doubled limit for couples. Excess losses beyond the $3,000 limit and beyond your capital gains carry forward indefinitely to future years. Tax-loss harvesting can effectively defer income tax for years if you accumulate losses over time.
What is the difference between short-term and long-term tax-loss harvesting?+
Short-term losses (positions held under 1 year) offset short-term gains first, then long-term gains, then $3K of ordinary income. Long-term losses (held 1+ years) offset long-term gains first, then short-term gains, then $3K of ordinary income. Short-term losses are slightly more valuable because they offset higher-rate income — but the practical difference is small unless you have significant short-term gains.
Can I tax-loss harvest in my IRA or 401(k)?+
No. Tax-advantaged retirement accounts don't realize gains or losses for current-year tax purposes — you're only taxed on withdrawals (or never, for Roth). So there's nothing to harvest. Tax-loss harvesting only applies to taxable brokerage accounts.
When should I harvest losses?+
Two main triggers: (1) December — review the year's positions in November/December and harvest before year-end to claim the loss in the current tax year. (2) After significant market drops — if your portfolio is meaningfully down (10%+), harvest opportunistically rather than waiting for year-end. Robo-advisors like Betterment and Wealthfront automate this throughout the year. Manual harvesting is fine for most people who do it once or twice annually.
See today's top HYSAs

Ranked by composite score: rate + trust + ease

Was this guide helpful?