Tax Loss Harvesting Assistant Calculator
Calculate tax loss harvesting assistant with our free tool. Get data-driven results, visualizations, and actionable recommendations.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Tax Loss Harvesting Assistant Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Tax Savings = (Loss Offsetting Gains x CG Rate) + (min(Remaining, $3000) x Income Rate)
Worked example — Harvest recommended | Immediate savings: $3,120 | Carryforward: $2,000 (1 year)
Formula
Tax Savings = (Loss Offsetting Gains x CG Rate) + (min(Remaining, $3000) x Income Rate)
Realized losses first offset capital gains dollar-for-dollar at the applicable capital gains rate. Remaining losses offset up to $3,000 of ordinary income at your marginal tax rate. Any excess carries forward to future years. The net benefit subtracts estimated transaction costs from immediate tax savings.
Worked Examples
Example 1: Offsetting Capital Gains
Problem:You bought stock for $50,000, now worth $35,000. You have $10,000 in realized capital gains this year. You are in the 24% tax bracket, short-term holding.
Solution:Unrealized Loss: $50,000 - $35,000 = $15,000 Gains Offset: min($15,000, $10,000) = $10,000 Tax Savings (gains): $10,000 x 24% = $2,400 Remaining Loss: $15,000 - $10,000 = $5,000 Ordinary Income Offset: min($5,000, $3,000) = $3,000 Tax Savings (income): $3,000 x 24% = $720 Carryforward: $5,000 - $3,000 = $2,000 Immediate Savings: $2,400 + $720 = $3,120
Result:Harvest recommended | Immediate savings: $3,120 | Carryforward: $2,000 (1 year)
Example 2: Small Loss with No Gains to Offset
Problem:You bought a fund for $20,000, now worth $18,000. No capital gains this year. 32% tax bracket, long-term holding.
Solution:Unrealized Loss: $20,000 - $18,000 = $2,000 Gains Offset: $0 (no gains) Ordinary Income Offset: min($2,000, $3,000) = $2,000 Tax Savings: $2,000 x 32% = $640 Transaction Cost: $18,000 x 0.2% = $36 Net Benefit: $640 - $36 = $604
Result:Harvest recommended | Net benefit: $604 | Loss applied to ordinary income
Frequently Asked Questions
What is tax-loss harvesting and how does it work?
Tax-loss harvesting is the practice of selling investments at a loss to offset capital gains taxes. When you sell a losing position, the realized loss can be used to reduce your taxable gains dollar-for-dollar. If losses exceed gains, up to $3,000 per year ($1,500 if married filing separately) can offset ordinary income. Any remaining losses carry forward indefinitely to future tax years. The strategy works best when you immediately reinvest in a similar (but not substantially identical) asset, maintaining your market exposure while capturing the tax benefit. This effectively provides a government-subsidized discount on your investment losses.
What is the wash sale rule?
The wash sale rule (IRS Section 1091) disallows the tax deduction if you purchase a substantially identical security within 30 days before or after the sale. This 61-day window (30 days before + sale date + 30 days after) prevents investors from selling for a tax loss and immediately rebuying the same investment. The rule applies across all accounts including IRAs and spouse accounts. To maintain market exposure, investors typically buy a similar but not identical fund (e.g., switching from one S&P 500 fund to another tracking a different index). Violating the wash sale rule does not lose the loss permanently; instead, it is added to the cost basis of the replacement shares.
When is tax-loss harvesting most beneficial?
Tax-loss harvesting provides the greatest benefit in these situations: when you have significant realized capital gains to offset (from selling appreciated stocks, mutual fund distributions, or business sales), when you are in a high tax bracket (24%+ federal), when losses are substantial enough that the tax savings exceed transaction costs, and when you can maintain equivalent market exposure through substitute investments. The strategy is particularly valuable in volatile markets where temporary paper losses can be converted to real tax benefits. Year-end is the most common time, but opportunities arise throughout the year. High-income investors in the 37% bracket save $0.37 per dollar of short-term loss harvested.
How does the $3,000 ordinary income deduction work?
After offsetting all capital gains, excess net capital losses can reduce your ordinary income by up to $3,000 per year ($1,500 if married filing separately). This is valuable because it reduces income taxed at your marginal rate. For someone in the 32% bracket, $3,000 saves $960 in federal taxes. Any losses beyond $3,000 carry forward to future years indefinitely, maintaining their full value. The carried-forward losses first offset future capital gains, then provide the $3,000 annual deduction. For large losses, this means years of tax benefits: a $30,000 excess loss would provide $3,000 deductions for 10 years if no capital gains arise.
What are the risks and downsides of tax-loss harvesting?
While generally beneficial, tax-loss harvesting has some caveats. Transaction costs (commissions, bid-ask spreads) reduce the net benefit, though with commission-free trading this is minimal. If you violate the wash sale rule, you lose the current deduction. The new lower cost basis means larger gains when you eventually sell, so tax-loss harvesting defers taxes rather than eliminating them entirely (unless you donate the shares or hold until death for a stepped-up basis). Frequent trading creates complexity at tax time and requires careful record keeping. The strategy also requires discipline to sell losing positions, which can be psychologically difficult. Finally, if your tax bracket changes significantly in the future, the deferred benefit may be at a different rate.
What is tax-loss harvesting and how much can it actually save me?
Tax-loss harvesting means deliberately selling an investment at a loss to realize that loss for tax purposes, using it to offset capital gains elsewhere in your portfolio (or up to $3,000 against ordinary income per year if losses exceed gains). The actual dollar savings equals the harvested loss multiplied by your applicable capital gains or ordinary income tax rate — a $10,000 harvested long-term loss offsetting a gain taxed at 15% saves roughly $1,500 in taxes for that year.
What happens to a tax loss I can't use fully in the current year?
Any net capital loss beyond what you can deduct in the current year (gains offset plus the $3,000 ordinary-income limit) carries forward indefinitely to future tax years, retaining its short-term or long-term character, until it's fully used against future gains or the annual ordinary-income deduction. There's no expiration on carried-forward capital losses for individual taxpayers.
Is tax-loss harvesting worth doing in a year with no capital gains to offset?
Often yes — even without gains to offset, up to $3,000 of net realized losses can still be deducted against ordinary income each year, and any additional harvested losses carry forward to offset gains in future years indefinitely. Harvesting a loss during a downturn while it exists, rather than waiting, locks in a tax benefit that may not be available if the position recovers before you eventually sell.
Does tax-loss harvesting work the same way inside a Roth IRA or 401(k)?
No — tax-loss harvesting only applies to taxable brokerage accounts, since trades inside tax-advantaged accounts like a Roth IRA or 401(k) don't generate any current-year taxable capital gains or losses in the first place. There is no tax benefit to 'harvesting' a loss inside these account types.
Can I buy a similar, but not identical, fund immediately after harvesting a loss without triggering the wash-sale rule?
Generally yes — the wash-sale rule specifically targets 'substantially identical' securities, so replacing a sold S&P 500 index fund with a total-market index fund, or one company's fund with a similar but different provider's fund tracking a similar (not identical) index, is a common strategy to preserve market exposure during the 30-day wash-sale window while still claiming the tax loss. When in doubt about how similar two funds are, consult a tax professional before repurchasing.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Related Calculators
🧮Salary Negotiation Outcome Estimator
Calculate salary negotiation outcome estimator with inputs, formulas, and instant results.
🧮Etl Throughput Sizing Assistant
Calculate etl throughput sizing assistant with inputs, formulas, and instant results.
🧮Experiment Design Assistant: Sample Size & Power
Calculate experiment design assistant with inputs, formulas, and instant results.
🧮Color Palette Balance AI
Calculate color palette balance ai with inputs, formulas, and instant results.
🧮EV Route Charge Planner Range AI
Calculate ev route charge planner range ai with inputs, formulas, and instant results.
🧮Work Break Pomodoro Planner AI
Calculate work break pomodoro planner ai with inputs, formulas, and instant results.
🧮3d Print Time Support Estimator
Calculate 3d print time support estimator with inputs, formulas, and instant results.