Tax Loss Harvesting Calculator
Calculate the tax savings from strategically harvesting investment losses.
By Mark T · Updated August 29, 2026
Tax Loss Harvesting Details
Calculation Breakdown
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.
Result: Reduce taxes owed while staying invested in the market
The Wash-Sale Rule: The #1 Trap to Avoid
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.
- 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)
- 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.
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.
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.
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.
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.
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:
If you earn $300k and markets drop 20%, TLH can save $30k+ in taxes
If you hold company stock with large unrealized gains, TLH offsets them
TLH is most valuable in taxable accounts (IRAs/401ks don't allow it)
Tax savings can compound for decades before you realize the gains
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
How This Tool Works
Calculation steps
- Enter your inputs using the fields and sliders on this page.
- Calculations run instantly in your browser - no data is sent to a server.
- 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.