Tax-Loss Harvesting Calculator
Calculate how much federal tax you could save by realizing capital losses this year -- the $3,000/$1,500 ordinary-income offset limit, loss carryforward, and net short/long-term capital gain treatment, sourced directly from IRS Topic 409.
Enter Your Details
Adjust values to see instant results
Additional Details
Net Capital Gain / (Loss) After Harvesting
$2,000.00
Estimated • Based on your inputs
Total Estimated Tax Savings From Harvesting
$3,600.00
Federal Tax Savings
$2,700.00
Detailed Breakdown
Disclaimer: This calculator provides estimates for informational purposes only. Results should not be considered financial, tax, or legal advice. Consult a qualified professional for your specific situation.
How This Calculator Works
Calculation methodology and assumptions
This calculator nets your short-term gains/losses against each other and your long-term gains/losses against each other, then combines the two -- the same order used on the IRS's own Schedule D. If the combined result is still a gain, whichever bucket started as a loss offsets the other bucket's gain first, so the surviving taxable gain keeps the character (and tax rate) of the larger net bucket. If the combined result is a loss, only $3,000 of it ($1,500 if married filing separately) can offset your other ordinary income this year, per IRC §1211(b) -- any excess isn't lost, it carries forward to next year's return with no expiration. The calculator then compares your federal tax on capital gains with vs. without the harvested losses to isolate the dollar savings the harvesting decision itself produces, using the same marginal-stacking method as this site's other capital-gains calculators. State tax savings apply your state's flat rate to the same net taxable amount, since most states start from federal AGI (which already reflects the $3,000/$1,500 cap).
Key State Information
This calculator applies a flat state tax rate you provide to the same net capital gain/loss amount recognized federally (capped at the $3,000/$1,500 offset in a loss year), because most states compute their own taxable income starting from federal AGI. A handful of states -- for example, Washington's separate standalone capital gains excise tax -- have their own structure not modeled here, and nine states have no income tax at all (enter 0%). Check your specific state's conformity if you're near a large loss.
How to Use This Investment & Retirement Calculator
- 1
Enter your initial investment
Input the lump sum you plan to invest today. This is your starting principal that will begin compounding immediately.
- 2
Set your monthly contribution
Enter the amount you plan to add each month. Consistent contributions accelerate growth through dollar-cost averaging.
- 3
Input expected return and time horizon
Set your expected annual return (7–10% for stocks historically, 4–6% for bonds) and investment period. Longer time horizons amplify compounding effects dramatically.
- 4
Review the growth projection
The results show your total invested amount, earnings from compound growth, and a year-by-year projection table showing how your money grows over time.
Example Calculation
How does compound interest build wealth over time?
Starting with $10,000 and adding $500/month at an 8% average annual return for 30 years: Your total contributions would be $190,000 ($10K initial + $180K in monthly deposits). But with compound growth, your portfolio would grow to approximately $745,000.
Result: Compound interest generated $555,000 in earnings on top of your $190,000 in contributions — nearly 75% of the final value came from returns, not deposits. Starting 5 years later would reduce the final amount by roughly $230,000. Time in the market is the most powerful factor in wealth building.
What Affects Your Results
Rate of Return
Even small differences compound massively over time. 7% vs. 8% over 30 years on $100K means a difference of $200K+. Asset allocation drives your expected return.
Time Horizon
Compounding accelerates exponentially. Most of your wealth is generated in the final years — a 30-year investment earns more in its last 5 years than its first 15.
Contribution Consistency
Regular monthly investments (dollar-cost averaging) smooth out market volatility and ensure you're always buying — including during dips when prices are low.
Fees & Expenses
A 1% annual fee vs. 0.1% fee on a $500K portfolio costs you $4,500/year extra. Over 30 years, high fees can consume 25–30% of potential returns. Use low-cost index funds.
Tips & Best Practices
- Start early. Thanks to compounding, $200/month invested from age 25 to 65 at 8% returns grows to ~$700K. Waiting until 35 cuts that to ~$300K — a $400K penalty for the 10-year delay.
- Don't try to time the market. Research consistently shows that time in the market beats timing the market. Missing the 10 best trading days over 20 years can halve your returns.
- Consider tax-advantaged accounts first: 401(k) (especially with employer match), IRA, HSA. These reduce your tax drag — a 25% tax bracket investor keeps more in a tax-deferred account.
- Rebalance annually. If stocks outperform and grow from 80% to 90% of your portfolio, rebalancing back to 80% locks in gains and manages risk.
- Factor in your state's tax treatment of investment income. Some states exempt certain investment income or have lower rates on capital gains.
Newsletter Signups Are Paused
We're building the email delivery behind our newsletter so we can do it properly — signups aren't open yet. Check back soon.
No form here and nothing is collected. Read our privacy policy.
StateCalc Team
Editorial Team
The StateCalc team builds free financial calculators using data from official government sources including the IRS, U.S. Census Bureau, BLS, and state revenue departments. All formulas are validated by an automated test suite and cross-referenced against published data.
Our editorial standardsFrequently Asked Questions
How much can tax-loss harvesting save me?
Realized capital losses first offset capital gains dollar-for-dollar (at whatever rate those gains would have been taxed -- ordinary rates for short-term gains, the preferential 0%/15%/20% rates for long-term gains), and then up to $3,000 per year ($1,500 if married filing separately) of any remaining net loss can offset your ordinary income, per IRS Topic 409. Any loss beyond that limit is not lost -- it carries forward to future tax years indefinitely.
What is the wash-sale rule, and does it block my deduction?
The wash-sale rule (IRC §1091) disallows your loss deduction if you buy the same security -- or one the IRS considers "substantially identical" -- within 30 days before or after the sale that generated the loss (a 61-day window total), per the IRS Instructions for Form 8949 (code "W") and Pub. 550. If you want to stay invested in the same asset class, buying a similar-but-not-identical fund (a different index or fund family) instead of an identical replacement is a common way advisors avoid triggering the rule, though this calculator does not verify any specific replacement security for you.
Does the wash-sale rule apply to cryptocurrency the same way?
No -- under current law, the wash-sale rule applies only to "stock or securities." Because the IRS classifies virtual currency as property rather than a security (Notice 2014-21), it currently falls outside IRC §1091, meaning crypto investors can sell at a loss and immediately repurchase the same coin without the loss being disallowed. See this site's Crypto Tax Calculator for that vertical -- Congress has repeatedly proposed closing this distinction, so it could change.
Do short-term and long-term losses offset gains differently?
Short-term losses are netted against short-term gains first, and long-term losses against long-term gains first. Only if one bucket nets to a loss and the other to a gain does the loss then cross over to reduce the other bucket's gain. A short-term loss offsetting a long-term gain is especially valuable per dollar, since it effectively converts what would have been ordinary-rate short-term gain exposure into using up a loss against gain that would otherwise be taxed at the lower preferential rate -- while a long-term loss offsetting a short-term gain (taxed at your higher ordinary rate) produces the biggest dollar-for-dollar tax benefit of any pairing.
What happens to a capital loss carryover in future years?
It keeps its original short-term or long-term character and is entered on next year's Schedule D, where it's netted against that year's gains exactly like a current-year loss, plus is still eligible for that year's own $3,000/$1,500 ordinary-income offset if it exceeds all your gains. There is no expiration on how many years you can carry a capital loss forward.
People Also Calculate
Frequently used together with this calculator