Skip to content
Omnikalc

Tax-loss harvesting calculator: how much tax can a loss save?

Enter the loss you realize, your capital gains, the yearly limit and your tax rates to see the tax saved now and the loss carried forward.

Updated on
Your inputs
$

Value out of range

$

Value out of range

$

Value out of range

%

Value out of range

%

Value out of range

Results

Tax saved this year

$1,320

The loss reduces this year's tax
Saved on offsetting capital gains
$600
Saved on ordinary income
$720
Loss carried forward to future years
$3,000
Possible future tax saved by the carryforward
$450
Total benefit, this year and later
$1,770

When an investment in a taxable account is worth less than you paid, selling it realizes a loss that you can use to cut your tax bill. This is tax-loss harvesting. The loss first cancels your capital gains for the year, then up to a limit of ordinary income, and any remainder is carried forward. This calculator shows the tax saved now and the value of the carryforward.

How the calculation works

  • Offset against gains = the smaller of the loss and the gains
  • Tax saved on gains = offset × long-term capital gains rate
  • Remaining loss = loss − offset against gains
  • Used on ordinary income = the smaller of the remaining loss and the yearly limit
  • Tax saved on ordinary income = that amount × ordinary rate
  • Carryforward = what is left, valued at the capital gains rate for later years

Example

You sell a position for a loss of $10,000 while having $4,000 of realized gains. The loss cancels the gains and saves $600 at 15 %. Of the remaining $6,000, $3,000 can offset ordinary income and saves $720 at 24 %. The tax saved this year is $1,320. The last $3,000 carries forward and might save $450 later, for a total benefit of $1,770.

Why it matters

Selling at a loss feels bad, yet the tax value of the loss is real. It matters most in years with big gains to offset, such as after selling a business or a house, and in volatile markets. Harvesting does not remove the loss in the portfolio: it swaps one investment for a similar one and keeps the tax benefit.

Good to know

The wash-sale rule disallows a loss if you buy the same or a substantially identical security within 30 days before or after. Each sale lowers your cost basis in the replacement, so the tax is deferred, not erased. Trading costs and bid-ask spreads reduce the benefit. This tool is for education and is not tax advice.

The capital gains tax calculator finds the tax on a gain, the stock profit calculator tracks a trade, and the Roth conversion calculator is another way to manage taxes.

Frequently asked questions

What is tax-loss harvesting?

It means selling an investment at a loss in a taxable account to use that loss against capital gains, or against up to a yearly limit of ordinary income, and then reinvesting in something similar to stay invested. It lowers your tax now and does not change the long-term plan.

What is the wash sale rule?

If you buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed for now. To keep the loss, you can wait 31 days or buy a similar but not identical fund.

What happens to losses I can't use?

Net capital losses above the yearly limit on ordinary income carry forward to future years with no expiry, and can offset future gains. The calculator values the carryforward at your capital gains rate as a possible future benefit.

Does it work in a retirement account?

No. Gains and losses inside an IRA or 401(k) are not reported, so there is nothing to offset. Harvesting applies only to taxable brokerage accounts.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.