Tax Loss Harvesting Calculator

Calculate potential tax savings from selling losing investments to offset capital gains.
Returns net tax benefit after wash-sale rule and reinvestment cost.

Your data stays in your browser. We do not store, collect, or transmit any information you enter.
Tax Loss Harvesting Savings

Tax-loss harvesting means deliberately selling an investment that has fallen, so the loss becomes real and can be set against your capital gains. The cash goes straight back into something similar but not “substantially identical”, so your market exposure never breaks.

The core tax savings formula:

Tax Savings = Realized Loss × Applicable Tax Rate

Net Benefit = Tax Savings − Transaction Costs − Reinvestment Costs

Tax rate context (US, 2026):

Gain Type Tax Rate
Short-term (held < 1 year) Ordinary income rate (10–37%)
Long-term (held ≥ 1 year) 0%, 15%, or 20%
Net investment income surtax (high earners) +3.8%

Worked example: An investor in the 24% income tax bracket has:

  • $8,000 in short-term capital gains from selling stock A
  • Stock B has declined, with an unrealized loss of $5,000

Harvest the loss from Stock B:

  • Loss offsets the gain: $8,000 − $5,000 = $3,000 net gain
  • Tax on $3,000 at 24%: $720 owed (instead of $1,920 on the full $8,000)
  • Tax savings: $1,200

Reinvest in a different fund tracking the same broad market. You keep full exposure and you bank the tax benefit.

The Wash-Sale Rule (critical): The IRS prohibits claiming a loss if you buy the “substantially identical” security within 30 days before or after the sale. The wash-sale window is 61 days total (30 days before sale, day of sale, 30 days after).

Loss carryforward: Only $3,000 of net capital loss can offset ordinary income in any one year. Everything past that carries forward indefinitely, usable in full against future gains or $3,000 a year against income.

Limitations: Tax-loss harvesting is most valuable for investors in high income tax brackets with taxable brokerage accounts. It has no benefit in tax-advantaged accounts (IRA, 401k).

This page asks for one rate on your gains, which keeps it quick, and it takes your trading and reinvestment costs off the answer.
If your gains are a mix of holding periods, or you pay state income tax, or you want the carryforward valued rather than just counted, use the tax-loss harvesting savings calculator. It splits short-term from long-term and adds a state rate. On the same inputs both pages return the same saving.


How we build and check this calculator

This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.

SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.


Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.