Free Calculator

Tax Loss Harvesting Calculator

Calculate the tax savings from strategically harvesting investment losses.

By Mark T · Updated August 29, 2026

Tax Loss Harvesting Details
$
$
Loss percentage: 10.0%
24%
10% (Low)22-24% (Mid)37% (High)
24%: Single $47k-100k, Married $95k-182k
10 years
7%
Immediate Tax Savings
$1,200
5000$ loss × 24% rate
Reinvested Value
$2,206
After 10 years at 7%
TLH Alpha
0.44%
Annualized benefit
Calculation Breakdown
Loss Amount:$5,000
Tax Rate:24%
Tax Savings:$1,200
Grown for 10 years at 7%:$2,206

What Is Tax Loss Harvesting?

Tax loss harvesting (TLH) is the practice of selling investments at a loss to offset capital gains (or other income) for tax purposes, then immediately reinvesting the proceeds in a similar investment. You realize the tax benefit while maintaining your market exposure.

The Strategy: Sell losing investments → Use loss to reduce taxes → Reinvest immediately
Result: Reduce taxes owed while staying invested in the market

The Wash-Sale Rule: The #1 Trap to Avoid

⚠️ IRS Wash-Sale Rule - Read This Before Harvesting

The IRS disallows the tax loss if you buy a "substantially identical" security within the 61-day wash-sale window - 30 days before OR 30 days after the sale. The loss is not gone forever; it gets added to the cost basis of the repurchased shares. But the timing benefit of the deduction is lost.

What triggers a wash sale:
  • Selling VTI at a loss and buying VTI again within 30 days ❌
  • Selling a mutual fund and buying the ETF version of the same index within 30 days ❌ (IRS may consider them substantially identical)
  • Your spouse or a controlled entity (like your LLC) buying the same security within the window ❌
  • Selling in a taxable account and repurchasing in your IRA within the window ❌ (IRS ruled this triggers a wash sale - and the basis adjustment is permanently lost in the IRA)
What does NOT trigger a wash sale:
  • Selling VTI (Vanguard Total Market) and immediately buying FSKAX (Fidelity Total Market) ✅
  • Selling VOO (S&P 500) and buying SPLG or IVV (different S&P 500 ETFs from different issuers) - gray area, likely safe ✅
  • Selling an S&P 500 fund and buying a total market fund ✅
  • Waiting 31+ days and repurchasing the original fund ✅

Step-by-Step: A Real Tax-Loss Harvest

Here's a concrete example of executing a proper tax-loss harvest without triggering a wash sale. Scenario: You hold $50,000 in Vanguard VTI (Total Stock Market ETF), purchased at $220/share. Markets dropped and VTI now trades at $187/share - a paper loss of $8,250.

Step 1
Confirm the loss is "realized-worthy"

Check that: (a) the position has been held less than 1 year (short-term loss offsets ordinary income at your full rate - more valuable) or more than 1 year (long-term loss offsets long-term gains). A $8,250 loss at a 24% marginal rate saves $1,980 in taxes this year.

Step 2
Choose the replacement security

Select a similar-but-not-identical fund to maintain market exposure. In this case: sell VTI, immediately buy FSKAX (Fidelity Total Market Index) or SCHB (Schwab U.S. Broad Market ETF). Both track the U.S. total market. You stay invested - no market timing.

Step 3
Execute both trades on the same day

Place a sell order for VTI and a simultaneous buy order for FSKAX. Do this on the same day to minimize the time you're out of the market. The settlement period (T+2) means you'll briefly hold the cash, but the economic exposure is maintained.

Step 4
Record the new cost basis

Your new FSKAX shares have a cost basis equal to your purchase price. In 31+ days, you may swap back to VTI if preferred (your broker will track this). Keep records: the sale date, proceeds, original cost basis, and the replacement security purchased.

Step 5
Report on your tax return (Form 8949)

Report the $8,250 loss on Schedule D / Form 8949. It offsets up to $8,250 of capital gains, or if you have no gains, up to $3,000 against ordinary income - with the remaining $5,250 carried forward to future years indefinitely.

When Is TLH Most Valuable?

Tax loss harvesting provides the most benefit in these scenarios:

High Income + Market Crash

If you earn $300k and markets drop 20%, TLH can save $30k+ in taxes

Concentrated Positions

If you hold company stock with large unrealized gains, TLH offsets them

Taxable Account Strategy

TLH is most valuable in taxable accounts (IRAs/401ks don't allow it)

Long Time Horizon

Tax savings can compound for decades before you realize the gains

💡 TLH Alpha: Tax loss harvesting can add 0.5-1.5% to your annualized returns in taxable accounts. For a $500k portfolio, that's $2,500-$7,500 per year in tax-free performance.

TLH Best Practices

  • Harvest regularly: At least annually, especially after market downturns
  • Track basis: Use software to track cost basis and avoid wash sale violations
  • Use fund families: Keep similar funds from different families for quick swaps
  • Avoid overtrading: Trading too much creates new taxes that offset TLH savings
  • Only in taxable accounts: TLH provides zero benefit in tax-advantaged accounts (IRAs, 401ks)

Frequently Asked Questions

Capital losses first offset capital gains dollar-for-dollar (short-term losses offset short-term gains; long-term losses offset long-term gains - though you can cross-apply the net). If total losses exceed total gains, you can deduct up to $3,000 against ordinary income per year (single or married filing jointly). Any remaining loss carries forward indefinitely to future tax years. There is no cap on how much loss you can carry forward - only on the annual ordinary income offset.

The wash-sale rule (IRS Section 1091) disallows a tax loss if you buy a "substantially identical" security within 30 days before or after the sale - a 61-day window total. To avoid it: immediately reinvest in a similar-but-not-identical fund (e.g., sell VTI, buy FSKAX or SCHB). Critical warning: buying the same security in a different account - including your IRA - within the window also triggers a wash sale, and in an IRA, the basis adjustment is permanently lost.

No - tax-loss harvesting provides no benefit inside tax-advantaged accounts (Traditional IRA, Roth IRA, 401k, 403b). These accounts don't pay capital gains tax, so there's no gain to offset. TLH is exclusively a taxable brokerage account strategy. In fact, selling in a taxable account and repurchasing in your IRA within 30 days triggers a wash sale where the basis adjustment is permanently lost - a costly mistake to avoid.

TLH defers taxes rather than eliminates them (usually). When you sell the replacement security years later, you'll pay tax on the gains from the lower cost basis. The benefit comes from the time value of money - you owe less tax now and invest that money instead. At a 24% tax rate, a $10,000 harvested loss saves $2,400 today. Invested for 20 years at 7%, that $2,400 grows to $9,300. Even after paying future taxes on the larger gain, you come out ahead. The longer the time horizon, the greater the TLH benefit.

The IRS definition is deliberately vague, but clear cases include: the same stock or ETF, or a mutual fund and its ETF share class from the same provider. Generally safe: different fund families tracking the same index (e.g., Vanguard S&P 500 vs. iShares S&P 500), or similar-but-different indices (e.g., S&P 500 vs. total market). Consult a tax advisor if uncertain. The IRS has not provided a definitive list, creating some ambiguity for closely-related index funds.

Year-round is better. Many investors only harvest in December, but opportunities arise whenever markets drop significantly - March 2020, October 2022, etc. A best practice is to set a threshold (e.g., any position down 10%+ from its cost basis) and harvest whenever it's triggered. December harvesting is still valuable but means you've held unrealized losses all year that could have been captured and reinvested earlier.

Tax-gain harvesting is the opposite strategy: intentionally realizing capital gains in a low-income year. If your income is low enough that you fall in the 0% long-term capital gains bracket (single filers with taxable income under ~$47,000 in 2024), you can sell appreciated positions tax-free and immediately repurchase at the new higher cost basis. This "resets" your basis and reduces future capital gains. It's especially powerful for early retirees in their first years of retirement before Social Security and RMDs kick in.

How This Tool Works

Calculation steps

  1. Enter your inputs using the fields and sliders on this page.
  2. Calculations run instantly in your browser - no data is sent to a server.
  3. Results update in real time as you change inputs.

Assumptions

  • Projections use the formulas documented on this page and assume constant inputs unless noted.
  • Returns, tax rates, and inflation are simplified for educational purposes.

Limitations

  • This tool provides estimates for educational purposes only, not personalized financial advice.
  • Actual results will differ due to market volatility, taxes, fees, and changing personal circumstances.