Tax-Loss Harvesting Calculator

A losing position isn't a total loss — it's a tax asset. Sell it, and the loss offsets your gains dollar-for-dollar, then up to $3,000 of ordinary income a year, with the rest carried forward. See exactly what yours is worth.

Your inputs

$
$
%
%
Tax saved this year
—
Gains offset
—
losses vs gains first
Income offset
—
up to $3,000/yr
Carryforward
—
to future years
⚠️ Wash-sale rule: don't repurchase the same — or "substantially identical" — security within 30 days before or after the sale, or the IRS disallows the loss entirely. That includes automatic dividend reinvestments and purchases inside your IRA.

The ordering rules, plainly

Harvested losses are spent in a fixed order. First, they cancel your capital gains dollar-for-dollar — the most valuable use, since gains would otherwise be taxed. Second, up to $3,000 per year ($1,500 if married filing separately) offsets ordinary income like your salary. Third, anything left carries forward to future tax years, indefinitely. A big loss in a bad year can shelter gains for years to come.

The wash-sale rule, plainly

The IRS won't let you "sell" a loss while effectively keeping the position. Buy back the same or a substantially identical security within 30 days on either side of the sale and the loss is disallowed (it's added to the new shares' cost basis instead — deferred, not destroyed, but the harvest fails). The trap most people miss: automatic dividend reinvestment and purchases inside an IRA or 401(k) count as repurchases too.

Gain offset = min(loss, gains)
Income offset = min(max(loss − gains, 0), $3,000)
Carryforward = max(loss − gains − $3,000, 0)
Tax saved = gain offset × gains rate + income offset × income rate

Worked example

Harvest a $10,000 loss with $8,000 of gains, a 15% gains rate, and a 24% income bracket. The loss first wipes out all $8,000 of gains (saving $1,200), then $2,000 offsets ordinary income (saving $480). Total saved this year: $1,680, with nothing left to carry forward. Harvest $20,000 against only $5,000 of gains instead and you'd save $1,470 this year ($750 + $720) while $12,000 carries forward to shelter future gains.

Caveats worth knowing

Educational purposes only — not tax or financial advice. Based on US federal tax rules for 2026. Consult a qualified tax professional for your situation.