Free Tax Loss Harvesting Calculator โ€” Turn Investment Losses Into Tax Savings

Down year for some of your holdings? Enter your capital gains, the losses you can harvest, and your tax rates to see exactly how much tax you save โ€” including the $3,000 ordinary-income offset and any carryforward.

Quick answer: Down year for some of your holdings?

๐ŸŒพ Tax Loss Harvesting Calculator

A tax loss harvesting calculator shows you the silver lining in a losing investment: the tax bill it can erase. Tax loss harvesting is the strategy of selling securities at a loss in a taxable brokerage account so those losses offset your capital gains โ€” and if the losses are bigger than the gains, up to $3,000 of ordinary income ($1,500 if married filing separately) each year, with anything left over carried forward to future years.

The order of operations matters. Short-term losses first offset short-term gains (taxed at your higher ordinary-income rate), long-term losses first offset long-term gains (taxed at the lower 0%, 15% or 20% capital-gains rate), and then any remaining net loss of one type offsets net gains of the other. That is why harvesting short-term losses is usually the most valuable move: every dollar of short-term gain you erase saves tax at your marginal rate โ€” $2,400 on $10,000 of gains in the 24% bracket.

The biggest trap is the wash sale rule: if you buy a substantially identical security within 30 days before or after the sale, the loss is disallowed. To keep the tax benefit, wait more than 30 days before repurchasing โ€” or immediately reinvest in a similar-but-not-identical fund so your money stays in the market. Harvesting also only works in taxable accounts; losses inside an IRA or 401(k) have nothing to offset.

How to use the Tax Loss Harvesting Calculator

  1. Enter this year's capital gains โ€” short-term (assets held one year or less) and long-term, from your brokerage statements or year-to-date realized gains.
  2. Enter the losses you can harvest โ€” the unrealized losses in positions you are willing to sell before year-end. Only count losses that are not blocked by the wash sale rule.
  3. Pick your tax rates: your marginal federal bracket (which taxes short-term gains and wages), your long-term capital gains rate, and your filing status, which sets the $3,000 or $1,500 ordinary-income offset limit.
  4. Add your state rate (optional) to see the state tax savings too โ€” most states tax capital gains like ordinary income.
  5. Get your savings โ€” the tool applies the IRS netting order, shows the federal and state savings from each offset, and tells you how much loss carries forward to next year.

Tax loss harvesting tips

  • Harvest short-term losses first โ€” they offset gains taxed at your highest rate, so they deliver the biggest savings per dollar.
  • Do it year-round, not just in December โ€” losses harvested early in the year still count, and waiting risks a year-end market rebound erasing them.
  • Reinvest the proceeds immediately in a similar (not identical) fund to stay invested โ€” harvesting is a tax move, not a market-timing move.
  • Watch the wash sale rule across ALL accounts โ€” buying the same security in your IRA within the 30-day window can disallow the loss in your taxable account.
  • Track your carryforward โ€” unused losses carry forward indefinitely, so a big loss year can shelter gains for several future years.

How the tax loss harvesting math works

First the calculator computes your tax without harvesting: short-term gains ร— your marginal rate, plus long-term gains ร— your capital-gains rate. Then it nets the losses the IRS way: short-term losses cancel short-term gains, long-term losses cancel long-term gains, and any remaining net loss of one type cancels net gains of the other type. Tax on the surviving gains is computed the same way, and the difference is your federal savings from offset gains. If a net loss remains, up to $3,000 ($1,500 MFS) offsets ordinary income at your marginal rate, and the rest becomes carryforward for next year. State savings are estimated by applying your state rate to the total dollars offset (gains plus ordinary income).

Frequently asked questions

How much tax can tax loss harvesting save?

It depends on your gains, losses and tax bracket. Offsetting $10,000 of short-term gains at a 24% marginal rate saves $2,400 in federal tax, while offsetting $10,000 of long-term gains at 15% saves $1,500. Losses beyond your gains can also offset up to $3,000 of ordinary income per year ($1,500 if married filing separately), with the rest carried forward.

What is the wash sale rule?

The wash sale rule disallows a capital loss if you buy a substantially identical security within 30 days before or after the sale that created the loss. To keep the tax benefit, wait more than 30 days before repurchasing the same stock, fund or option, or buy a similar-but-not-identical investment instead.

Do short-term losses offset long-term gains?

Yes, after within-type netting. The IRS netting order is: short-term losses first offset short-term gains, long-term losses first offset long-term gains, and then any remaining net loss of one type offsets net gains of the other type. This matters because short-term gains are taxed at higher ordinary-income rates.

What happens to losses bigger than my gains?

If your capital losses exceed your capital gains, up to $3,000 of the excess ($1,500 if married filing separately) can offset ordinary income like wages each year. Any remaining loss is carried forward indefinitely to future tax years until it is fully used.

Does tax loss harvesting work in an IRA or 401(k)?

No. Tax loss harvesting only works in taxable brokerage accounts. Gains and losses inside an IRA, 401(k) or other tax-advantaged account are not taxed currently, so there is nothing to offset โ€” and a wash sale triggered across accounts can even be disallowed.