DayCents

Investing

Tax-Loss Harvesting Calculator

A paper loss becomes useful the moment you realise it. Sold, it offsets your capital gains dollar for dollar — short-term first, because those are taxed highest — then up to $3,000 of ordinary income, with anything left carried forward to future years.

The loss on positions you sell.

From positions held a year or less — taxed as ordinary income.

From positions held over a year.

Tax saved this year

$3,310

By offsetting gains and income with the harvested loss.

Mind the wash-sale rule: buy the same or a substantially identical security within 30 days before or after the sale and the loss is disallowed. Harvesting also lowers your cost basis if you rebuy later, which can mean a larger gain down the line — it defers tax, it does not always erase it.

Short-term gains offset
$8,000

Offset first — taxed at the highest rate.

Long-term gains offset
$5,000
Ordinary income offset
$2,000

Capped at $3,000 a year.

Loss carried to next year
$0

Never expires — it waits for future gains.

Tax on gains without harvesting
$3,310
Tax after harvesting
$0
Your losses$15K
Offsetting short-term$8,00053%
Offsetting long-term$5,00033%
Against income$2,00013%

How this calculator works

Losses are applied in the order that saves the most: against short-term gains first, since those are taxed as ordinary income, then long-term gains, then up to $3,000 of ordinary income. Anything left carries forward. Tax saved is the difference between the tax on gains with no harvesting and the tax after offsets, with the ordinary-income offset valued at your ordinary rate.

Flat rates stand in for progressive brackets, and the 3.8% net investment income tax and state tax are not modelled — both would increase the saving shown. The wash-sale rule is not enforced by the maths; it is on you to avoid it. This estimates one year's benefit, not the lifetime effect of a lower cost basis.

Try an example

Frequently asked questions

What is tax-loss harvesting?

Selling an investment that has fallen to realise the loss, then using it to offset capital gains and up to $3,000 of ordinary income. You typically reinvest in something similar but not identical to stay in the market, turning a paper loss into a real tax saving.

What is the wash-sale rule?

If you buy the same or a substantially identical security within 30 days before or after selling at a loss, the IRS disallows the loss. It applies across all your accounts, including an IRA and a spouse's accounts. The usual workaround is to buy a similar fund tracking a different index.

How much can I deduct against income?

Up to $3,000 of net capital loss against ordinary income per year — $1,500 if married filing separately. Losses first offset all your capital gains without limit; only the leftover applies to income, and only up to that cap. The rest carries forward indefinitely.

Do losses expire?

No. Unused capital losses carry forward to future tax years with no expiration, offsetting gains and up to $3,000 of income each year until exhausted. A large loss in a bad market can shelter gains for many years afterward.

Is tax-loss harvesting always worth it?

Not always. It lowers your cost basis, so rebuying means a larger future gain — you are deferring tax, not always eliminating it. It is most valuable when you offset short-term gains taxed at high rates, when you will be in a lower bracket later, or when the deferred tax can compound in the meantime.

Disclaimer: DayCents provides this calculator for educational purposes only. Results are estimates based on your inputs and the stated assumptions — they are not financial advice, a quote, or an offer of credit. Consult a qualified financial professional before making major money decisions.