Tax-Loss Harvesting Calculator (Capital Loss Carryover)

See how selling losing investments offsets your capital gains, how much you can deduct against income, what carries forward, and the tax you save.

Education only, not financial advice. This calculator gives estimates from the numbers you enter. It is not a recommendation to buy, sell or hold anything. Check important decisions with a qualified professional. Everything runs in your browser; nothing you type is sent or stored.

IRS rules Capital losses offset gains first, then up to $3,000 of ordinary income a year ($1,500 married filing separately), with the rest carried forward indefinitely, keeping its short- or long-term character (IRS Topic 409, Schedule D instructions).

Tax saved by harvesting—
Net capital gain or loss—
Deducted from ordinary income—
Carried forward to next year—

How tax-loss harvesting works

Selling an investment for less than you paid creates a capital loss that can cancel out capital gains. The IRS nets short-term results (assets held one year or less) and long-term results separately, then nets the two against each other. If losses are left over, up to $3,000 a year ($1,500 if married filing separately) reduces your ordinary income, and the rest carries forward to future years with no expiration, keeping its short- or long-term character.

Net gain = (short-term gains − losses) + (long-term gains − losses); excess loss: $3,000/yr deduction, rest carried forward

Losses are most valuable against short-term gains and ordinary income, which are taxed at your full income tax rate, rather than against long-term gains taxed at 0%, 15% or 20%. Harvesting doesn’t erase tax forever: buying a replacement lowers your cost basis, so more gain is taxed when you eventually sell, unless you hold until death (when basis steps up) or donate the shares.

Watch the wash-sale rule

If you buy the same or a “substantially identical” security within 30 days before or after the sale, including in an IRA, the loss is disallowed for now and added to the new shares’ basis. Many investors switch to a similar but not identical fund for 31 days. This calculator applies flat tax rates you enter. Estimate gains in detail with the capital gains tax calculator, track cost basis with the stock average calculator, or see your bracket in the tax bracket calculator.

Frequently asked questions

How much capital loss can I deduct per year?

Capital losses first offset capital gains without limit; any net loss left can reduce ordinary income by up to $3,000 a year ($1,500 if married filing separately), with the rest carried forward.

Do capital loss carryovers expire?

No. For individuals, unused capital losses carry forward indefinitely until used, keeping their short-term or long-term character.

What is the wash-sale rule?

If you buy the same or a substantially identical security within 30 days before or after selling it at a loss, the loss is disallowed and added to the cost basis of the new shares.

Is tax-loss harvesting worth it?

It is most valuable when losses offset short-term gains or ordinary income at high tax rates. It defers tax rather than eliminating it, unless you later donate the shares or hold them until death.

Do short-term losses offset long-term gains?

Yes. After netting within each category, a net short-term loss offsets a net long-term gain, and vice versa.

Related tools and guides

Updated Nov 23, 2026. Built by the ECMSource team. Spot an error? Tell us.

Disclaimer: ECMSource tools are for general education. Results are hypothetical, assume constant rates, and ignore taxes, fees and other costs unless stated. Past returns do not predict future returns. See our full disclaimer and editorial policy.