Tax-Loss Harvesting: Turn Losing Stocks Into Tax Savings

June 10, 2026 · 12 min read · Tax Strategy

Every market pullback is also a tax opportunity. Tax-loss harvesting lets you sell declining positions to realise losses that offset capital gains — often saving thousands in taxes — while staying fully invested in equivalent positions. Here's the complete playbook.

Tax-Loss Harvesting at a Glance

Short-Term Cap Gains Rate
Up to 37%
Taxed as ordinary income
Long-Term Cap Gains Rate
0 / 15 / 20%
For assets held 1+ year
Wash Sale Window
30 days
Before AND after sale
Annual Ordinary Deduction
$3,000
Net losses vs ordinary income
Loss Carry-Forward
Indefinite
Rolls to future tax years
Best Account Type
Taxable only
IRAs have no tax benefit
Robo TLH Frequency
Daily
Wealthfront / Betterment
Estimated TLH Value
0.5–1.5%/yr
Tax alpha estimate

What is Tax-Loss Harvesting?

Tax-loss harvesting (TLH) is the practice of selling an investment at a loss to realize that loss for tax purposes, then immediately buying a similar — but not identical — investment to maintain your market exposure. You stay invested; you just swap one fund for another and capture the tax benefit of the loss.

How the tax math works:

  • Realized capital losses directly offset realized capital gains dollar-for-dollar
  • If losses exceed gains for the year, up to $3,000 of the net loss can be deducted against ordinary income (salary, interest, dividends)
  • Any remaining excess losses carry forward indefinitely to future tax years — they don't expire
  • Short-term losses (assets held less than 1 year) are especially valuable because they offset short-term gains, which are taxed at ordinary income rates up to 37%
The key insight: deferral is compounding

TLH doesn't permanently eliminate taxes — it defers them. But deferred taxes are genuinely valuable because those dollars stay invested and compound for you instead of for the IRS. Every $1,000 in deferred taxes that stays invested at 8% for 20 years becomes $4,661. Academic research estimates TLH adds roughly 0.5–1.5% per year in after-tax alpha for investors in the 20%+ capital gains bracket — equivalent to receiving a free asset management service.

The Wash Sale Rule — Rule #1 You Cannot Break

The wash sale rule (IRS §1091) is the primary trap that defeats careless tax-loss harvesting. The rule: if you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed for tax purposes.

The disallowed loss is not erased — it gets added to the cost basis of the replacement security, deferring it further — but you lose the current-year tax benefit you were seeking.

TRIGGERS wash sale (avoid)
  • Sell VTI → buy VTI (same fund)
  • Sell NVDA stock → buy NVDA call options
  • Sell VOO → buy VOO in spouse's account
  • Sell a stock → buy it back within 30 days
SAFE swaps (different security)
  • Sell VTI → buy ITOT (different index)
  • Sell VOO → buy IVV or SCHB
  • Sell NVDA stock → buy SMH (ETF)
  • Sell QQQ → buy QQQM or VGT

Important: Crypto is currently NOT subject to the wash sale rule under US tax law. You can sell Bitcoin at a loss and immediately repurchase it the same day — the loss is still valid. This may change with future legislation, but as of 2026 it remains a significant tax advantage for crypto investors.

Wash sale rules apply across ALL your accounts, including your spouse's accounts. If you sell a fund at a loss in your taxable account but your spouse holds or buys the same fund in their IRA within the window, the loss may be disallowed. Multi-account coordination is essential.

The Math — How Much TLH Actually Saves You

Concrete example: you own 100 shares of VTI at a cost basis of $250/share ($25,000 total). The market drops and VTI is now at $200/share ($20,000 value) — a $5,000 unrealized loss. You also sold another fund earlier in the year for a $6,000 long-term capital gain.

The Math — How Much TLH Actually Saves You
Tax BracketWithout TLHWith TLHImmediate Savings
15% LTCG$900 tax on $6K gain$150 tax on $1K net gain$750 deferred
20% LTCG$1,200 tax on $6K gain$200 tax on $1K net gain$1,000 deferred
23.8% (+ NIIT)$1,428 tax on $6K gain$238 tax on $1K net gain$1,190 deferred

After the harvest, you hold ITOT instead of VTI — essentially the same exposure. Your new cost basis in ITOT is $200/share. When you eventually sell ITOT, you will pay taxes on the gain from $200. The deferred tax shows up eventually, but it worked for you in the meantime.

2026 Capital Gains Tax Rates — Who Benefits Most

2026 Capital Gains Tax Rates — Who Benefits Most
Filing StatusTaxable IncomeLong-Term RateNIIT?Effective RateSaved per $10K harvested
SingleUnder $47,0250%No0%$0 (carry forward)
Single$47,025 – $518,90015%No15%$1,500
SingleOver $518,90020%Yes (3.8%)23.8%$2,380
MFJUnder $94,0500%No0%$0 (carry forward)
MFJ$94,050 – $583,75015%No15%$1,500
MFJOver $583,75020%Yes (3.8%)23.8%$2,380

Short-term capital gains (assets held less than 1 year) are taxed at ordinary income rates — potentially 32–37% for high earners — making TLH even more valuable for short-term positions where you can harvest losses before the 1-year mark.

Step-by-Step TLH Execution Guide

1. Identify positions with unrealized losses
Review your taxable brokerage account (not IRA or 401k — TLH only applies to taxable accounts). Sort by unrealized gain/loss. Focus on positions down 10%+ from cost basis. Short-term losses (held < 1 year) are more valuable because they offset short-term gains first, which are taxed at higher ordinary income rates.
2. Find a suitable replacement before selling
Choose a replacement that maintains your desired market exposure but is NOT substantially identical to what you sold. Good ETF swaps: VOO ↔ IVV ↔ SPY for large-cap US; VXF ↔ SCHA for small-cap; IEFA ↔ VEA for international developed. For individual stocks, a sector ETF is the easiest replacement — selling NVDA and buying SMH semiconductor ETF maintains tech/semi exposure without triggering wash sale.
3. Sell the loser, immediately buy the replacement
Execute the sale and the replacement purchase in the same session. Don't wait — market movements in the 31-day gap can be significant and you could miss a recovery. The goal is to maintain market exposure while locking in the loss for tax purposes.
4. Document the transaction and update cost basis
Record the exact sale price, date, shares, and the new position details. Your broker will track this in your account, but maintaining your own records helps when cross-checking your 1099-B at tax time. Confirm cost basis method (FIFO vs specific lot) with your broker.
5. Reassess after 31 days
After 31 days have passed (day 32 to be safe), you can sell the replacement and rebuy the original position if desired. Or simply keep the replacement — if you swapped VOO for IVV, there's no meaningful difference. You are not required to switch back.
6. Reconcile with Form 1099-B at year-end
Your broker will issue a Form 1099-B showing all sales and whether any are flagged as wash sales. Review it carefully. If you use multiple brokers, cross-account wash sales can be triggered — the IRS looks at all accounts held by you and your spouse combined.

Best TLH Swap Pairs — Wash-Sale-Safe ETF Replacements

These pairs track similar but not substantially identical indexes, maintaining market exposure during the 31-day wash-sale window.

Best TLH Swap Pairs — Wash-Sale-Safe ETF Replacements
ExposureSell (Original)Buy (Replacement)Index Tracked (Replacement)ER
US Total MarketVTI (Vanguard)ITOT (iShares)S&P Composite 1500+0.03%
US Large CapVOO (Vanguard)IVV (iShares) or SCHBS&P 500 / Dow Jones Broad0.03–0.05%
Intl DevelopedVXUS (Vanguard)IXUS (iShares)MSCI ACWI ex-US IMI0.07%
Intl DevelopedVEA (Vanguard)IEFA (iShares)MSCI EAFE0.07%
US Tech / NasdaqQQQ (Invesco)QQQM or ONEQNasdaq-100 / Composite0.15–0.21%
DividendsSCHD (Schwab)VYM (Vanguard)Morningstar Div Select0.06%
US BondsBND (Vanguard)AGG (iShares)Bloomberg US Aggregate0.03–0.04%

When TLH Is Most Valuable

  • High marginal tax rate (32%+): the higher your bracket, the more each dollar of harvested loss saves
  • Large taxable account: the absolute dollar benefit scales with portfolio size — $250K+ is where TLH starts generating meaningful savings
  • Volatile markets: more price swings create more harvesting opportunities; a market that only goes up offers fewer loss opportunities
  • Long time horizon: deferred taxes compound longest when you hold for decades; the earlier in life you harvest, the more those deferred dollars work
  • Already realizing capital gains: if you're selling appreciated positions this year (downsizing, rebalancing, business sale), harvesting losses to offset them is highly tax-efficient

When TLH Isn't Worth It

  • Low or 0% capital gains bracket (income under ~$47K single in 2026): you have no gains tax to defer; the $3K ordinary income deduction is the only benefit
  • Inside IRAs or 401(k)s: tax-deferred and tax-free accounts have no capital gains event — TLH has zero benefit and creates unnecessary transaction costs
  • Very small positions (under $5,000): the tax savings are unlikely to justify the time, complexity, and potential transaction costs
  • Frequent trading costs: if your broker charges per-trade commissions, verify that the tax savings exceed the trading fees
  • Holding individual stocks: harder to find wash-sale-safe replacements; sector ETFs work but you change your exposure meaningfully
  • Same-day re-purchase impulse: rushing to buy back the same position the next day defeats the entire purpose and triggers a wash sale

Robo-Advisor TLH — Automated Harvesting and Direct Indexing

Wealthfront and Betterment offer automated daily tax-loss harvesting as a core feature of their managed portfolios. Instead of manually monitoring your holdings, the robo scans every day for harvesting opportunities and executes them automatically within the wash-sale rules.

Direct Indexing is the premium tier of automated TLH. Instead of buying a total market ETF, you own the 500+ individual stocks of the index. When any individual stock in the index declines, the robo harvests that single stock's loss while keeping you invested in the other 499. The result: harvesting opportunities exist even when the overall index is flat or rising — because individual stocks within any index diverge constantly.

  • Wealthfront: direct indexing available for accounts $100K+ at their standard 0.25% AUM fee
  • Betterment: automated TLH on all taxable accounts; premium tier includes direct indexing
  • Fidelity Managed Portfolios: direct indexing (Fidelity Managed FidFolios) for accounts $5K+
  • Parametric (Morgan Stanley): institutional-grade direct indexing, typically $250K+ minimums

Academic research suggests direct indexing generates 1–2% additional after-tax alpha annually versus ETF-level TLH, with the benefit scaling with portfolio size and market volatility.

State Tax Considerations

Federal treatment is just the starting point. State income taxes significantly affect TLH's net benefit:

California
Taxes long-term gains as ordinary income — no preferential rate. Combined federal + CA rate can exceed 37%. TLH is extremely valuable for CA residents.
New York
Conforms to federal; state rate adds ~8.8% on top of federal for NYC residents. Also highly valuable.
Texas / Florida / WA
No state income tax. Federal-only benefit — still meaningful in higher brackets but 37–40% less than CA equivalent.
Other states
Most states conform to federal treatment. Check your state's treatment of long-term vs short-term gains separately.

Carrying Losses Forward — Strategic Multi-Year Use

Capital loss carryforwards are one of the most underused tools in personal tax planning. If you harvested large losses — say, during the 2022 bear market — those losses carry forward indefinitely and can be deployed strategically in future high-income years.

Example: In 2022 you harvested $40,000 in losses. You had only $5,000 in gains and used $3,000 against ordinary income — leaving $32,000 in carryforward. In 2023, 2024, and 2025 you used $3,000/year against ordinary income. By 2026 you still have $23,000 in carryforward. Now you want to sell a rental property with a $50,000 gain — the $23,000 in carryforward offsets that gain directly, saving ~$5,000 in federal taxes at the 23.8% rate.

  • Carryforwards retain their short-term or long-term character — short-term carryforwards first offset short-term gains (valuable at higher ordinary rates)
  • Strategic use: accumulate carryforwards in low-income years, deploy them against large gain realizations in high-income years (business sale, real estate, retirement)
  • Track your carryforward balance on Schedule D of your prior-year tax return — it's listed explicitly
  • Carryforwards pass to your estate upon death but generally terminate — they are not inherited by beneficiaries

Common ETF Swap Pairs — Wash-Sale-Safe

These pairs track similar (but not substantially identical) indexes, allowing you to maintain equivalent exposure during the 31-day wash-sale window.

Common ETF Swap Pairs — Wash-Sale-Safe
ExposureSellBuy replacementNotes
US Large CapVOO (Vanguard S&P 500)IVV (iShares S&P 500)Both track S&P 500 but are considered different securities
US Total MarketVTI (Vanguard Total)ITOT (iShares Total)Track slightly different indexes (CRSP vs. S&P Composite)
US Small CapVB (Vanguard Small)SCHA (Schwab Small)Different underlying indexes
International DevelopedVEA (Vanguard Intl)IEFA (iShares Intl)Both cover developed markets ex-US
Emerging MarketsVWO (Vanguard EM)IEMG (iShares EM)Different index provider; similar exposure
Tech sectorQQQ (Nasdaq-100)QQQM or VGTVerify current compositions before swapping
The "substantially identical" determination is a facts-and-circumstances test that IRS has never fully codified for ETFs. The swaps above are widely used in the industry but are not guaranteed safe. Consult a tax professional for large positions.

Bottom Line Verdict

Tax-loss harvesting is one of the most reliable tax-alpha strategies available to individual investors — it requires no special knowledge, no market timing, and no change to your investment thesis. Every time your portfolio dips, there is likely a harvesting opportunity hidden inside it.

The keys to doing it well: respect the wash sale window, maintain your market exposure with a suitable replacement, prioritize your highest-tax positions first, and don't neglect your carryforward balance. For large taxable accounts (over $250K), exploring direct indexing through a robo-advisor can automate and amplify the benefit significantly.

Do it in taxable accounts. Don't bother in IRAs. Harvest aggressively in volatile years. Carry losses forward strategically. The IRS will eventually get their money — but every year you delay is a year that money compounds in your portfolio instead.

Frequently Asked Questions

More tax-smart investing guides

Tax-Efficient Investing GuideDividends in IRAs vs Taxable
Disclaimer: This article is for educational purposes only and does not constitute tax advice. Tax rules change and individual circumstances vary widely — consult a qualified CPA or tax advisor before executing any tax-loss harvesting strategy.
Free Financial Calculators
Put the numbers to work — try our free tools.
View all tools →
CAGR CalculatorCompound InterestDCA CalculatorDividend & DRIPInflation CalculatorInvestment ReturnPosition SizeRetirement Calculator

Ads help cover server and development costs

ShareXLinkedInRedditFacebookWhatsApp

Read Next

Tax StrategyTax-Efficient Investing StrategiesRead article →
RetirementRoth vs Traditional IRARead article →
FundamentalsWhen to Sell a StockRead article →
Personal FinanceShould I Sell RSUs to Diversify?Read article →

Ads help cover server and development costs

Unlock Full AI-Powered Analysis

Get AI prediction signals, unlimited stock comparisons, portfolio analytics, and personalized watchlists — free for 14 days, no credit card required.

Start Free TrialSign In

14-day free trial · No credit card required · Cancel anytime