Tax-Loss Harvesting Calculator
Calculate how much you save by harvesting investment losses. Check the wash sale window before rebuying, and project multi-year carryforward benefits.
Try another scenario
How to Use This Calculator
Harvest Opportunity tab
The default tab. Enter your realized long-term and short-term capital gains separately, along with your unrealized losses available to harvest. The calculator shows the optimal harvest amount, federal and state tax savings, and any excess losses that carry forward. Expand "More options" to adjust filing status, income, and state tax rate.
Wash Sale Guard tab
Enter the date you sold (or plan to sell) a security at a loss and select the security type. The calculator shows the 61-day wash sale window and tells you the earliest safe date to rebuy. For cryptocurrency, it confirms the current exemption from wash sale rules under IRC Section 1091.
Multi-Year Plan tab
Enter your total available losses (realized + carryforward) and expected annual capital gains. The calculator projects year-by-year how your losses offset gains and ordinary income, showing total tax savings over time. Useful for large losses from a market downturn or concentrated stock position.
Share your result
Every input is encoded in the URL. Click Share to send your exact scenario to a financial advisor or tax professional.
The Formula
Tax-loss harvesting saves taxes by offsetting gains and ordinary income:
Loss Application Order:
1. Short-term losses offset short-term gains first
2. Remaining losses offset long-term gains
3. Up to $3,000 ($1,500 MFS) offsets ordinary income
4. Excess carries forward indefinitely
Wash Sale Window = Sale Date − 30 days to Sale Date + 30 days (61-day total)
The key insight: prioritize offsetting short-term gains. They're taxed at your ordinary income rate (up to 37%) versus long-term gains (0%/15%/20%). A $10,000 short-term loss saves up to $3,700 in federal tax, while the same loss offsetting long-term gains saves at most $2,000.
Example
Priya — Software Engineer, 31, Seattle WA
Priya earns $165K (single), has $10K in long-term gains from selling index funds and $5K in short-term gains from trading individual stocks. She holds $12K in unrealized losses on tech stocks from a sector rotation. Washington has no state income tax (0%).
Harvest Opportunity tab
By harvesting $12K in tech stock losses, Priya saves $2,520 in federal taxes. She offsets all $5K in short-term gains first (higher tax rate), then $4K of long-term gains, and deducts the remaining $3K against ordinary income.
Wash Sale Guard tab
Priya sells NVDA at a loss on March 15. She can't rebuy NVDA (or a substantially identical security) until April 15. She buys VGT (Vanguard Info Tech ETF) immediately — different enough to avoid the wash sale rule while maintaining tech sector exposure.
Multi-Year Plan tab
After a rough year, Priya has $25K in realized losses. With $3K in expected annual gains, her losses offset gains + $3K ordinary income each year for 5 years, saving her nearly $5,900 in total taxes.