Start my plan

Tax-Loss Harvesting Calculator

Estimate your potential tax savings from selling investments at a loss. Offset capital gains, reduce ordinary income, and calculate your capital loss carryforward.

Investment Activity

Profits from assets held for one year or less. These are taxed at your ordinary income tax rate.

Profits from assets held for more than one year. These are taxed at preferential capital gains rates.

Losses from assets held for one year or less. These first offset short-term gains.

Losses from assets held for more than one year. These first offset long-term gains.

Tax Information

Your estimated Adjusted Gross Income (AGI) for the current year. Up to $3,000 of net capital losses can offset this.

Your top federal marginal tax rate for ordinary income. Short-term capital gains are taxed at this rate.

Your federal tax rate for long-term capital gains (0%, 15%, or 20%).

Your federal tax rate for short-term capital gains. This is typically the same as your ordinary income tax rate.

Your results

$870 in Potential Tax Savings

Tax-loss harvesting saves $720 in federal taxes and $150 in state taxes this year.

Total Tax Savings
$870
Federal + State savings
Federal Tax Savings
$720
Savings on federal taxes
State Tax Savings
$150
Savings on state taxes
Losses Carried Forward
$2,000
For future tax years

Based on 24% federal rate, 15% LT capital gains rate, 5% state rate

$870 in Potential Tax Savings

See if a bad market changes that

Capital Loss Utilization

How your available losses were applied this tax year

Total

$5,000

/yr

Deducted from Ordinary Income
60%
$3,000/yr
Carried Forward
40%
$2,000/yr

Personalized Insights

Actionable recommendations based on your numbers

  • success:

    Estimated Tax Savings: $870

    By strategically realizing losses, you've reduced your federal tax liability by $720 and state tax liability by $150.

  • success:

    Maxed out ordinary income deduction

    You've successfully used the maximum $3,000 capital loss deduction against your ordinary income, providing immediate tax relief.

  • warning:

    Capital Loss Carryforward: $2,000

    You have $2,000 in short-term and $0 in long-term capital losses to carry forward. These can offset future capital gains and up to $3,000 of ordinary income annually, indefinitely.

Showing 3 of 4 insights

See what your numbers mean together.

Turn this result into a retirement plan you can test, adjust, and return to as life changes.

Build my retirement plan
Calculator guide

Tax-Loss Harvesting Calculator: Estimate the Tax Value of Investment Losses

Use this guide to understand the assumptions, inputs, results, and next steps behind the calculator.

Created by Luis Gonzalez · Last updated July 13, 2026

Overview

A realized investment loss may reduce taxes by offsetting realized capital gains, then—if losses remain—deducting up to $3,000 against ordinary income in a tax year. This calculator estimates federal and state tax savings from current short- and long-term gains and losses, plus loss carryforwards. It also shows how much loss remains to carry into a future tax year.

Use the estimate to compare possible tax outcomes, not to decide whether to sell an investment by itself. Selling changes your portfolio, and tax benefits depend on your filing situation, other transactions, state rules, and whether a sale complies with the wash-sale rules.

1

Enter gains, losses, rates, and carryforwards

Enter realized short-term and long-term gains and losses separately. Short-term generally means an asset was held for one year or less; long-term generally means it was held for more than one year. Add any unused short- or long-term capital loss carryforwards from prior returns.

Then enter the tax rates you want the estimate to use. The defaults are 24% for ordinary income and short-term gains, 15% for long-term gains, and 5% for state income tax. These are assumptions, not a determination of your actual tax bracket. The calculator’s ordinary-income amount does not affect its calculation; the ordinary tax rate does.

2

Default example: $5,000 loss and no gains

With the default inputs, you have $5,000 of short-term losses, no capital gains, and no loss carryforward. The calculator applies $3,000 against ordinary income, leaving $2,000 to carry forward.

The estimated federal tax reduction is:

Ordinary-income deduction × federal ordinary tax rate
$3,000 × 24% = $720

The estimated state reduction is:

Ordinary-income deduction × state tax rate
$3,000 × 5% = $150

So the model estimates $870 in total tax savings and $2,000 in losses carried forward. These are estimates under the entered rates. The result is not a guaranteed refund, and the deduction may have a different effect under your actual tax return. Check how investment income fits with other taxes using the RMD Tax Calculator or 401(k) Withdrawal Tax Calculator.

3

How the calculator applies capital losses

The calculation first uses short-term losses against short-term gains and long-term losses against long-term gains. It then uses a remaining net loss in one category to offset a remaining net gain in the other. Any net capital loss left after those offsets may reduce ordinary income by up to $3,000; unused losses carry forward.

This ordering matters because short- and long-term gains can have different tax rates. Short-term gains are generally taxed at ordinary income rates, while long-term gains may qualify for lower federal rates. The calculator applies the rates you enter to the amount of loss used against each type of gain.

The federal estimate adds the modeled tax effect of offset short-term gains, offset long-term gains, and the ordinary-income deduction. The state estimate applies your entered state rate to the modeled offsets and deduction. It does not model every state’s treatment, local taxes, the net investment income tax, or other return-specific adjustments.

4

Rules that can change the tax result

For federal income tax, a net capital loss can generally offset capital gains first. If losses exceed gains, an individual may generally deduct up to $3,000 of net capital loss against ordinary income per year, or $1,500 if married filing separately. Unused losses generally carry forward. See the IRS’s capital gains and losses guidance for filing rules and exceptions.

A wash sale can disallow a loss when you sell a security at a loss and buy a substantially identical security within 30 days before or after the sale. The rule can also apply to purchases in certain related accounts. Review IRS Publication 550 before treating a sale as a deductible loss.

Tax-loss harvesting is different from changing your asset allocation. A sale can leave you with less exposure to an investment, or encourage you to buy a replacement that behaves differently. Weigh the estimated tax reduction against transaction costs, portfolio risk, and the possibility that the investment rebounds.

5

Formula: estimated savings and carryforward

Loss available by category = current-year loss + prior-year carryforward
Net loss after gains = remaining short-term loss + remaining long-term loss
Ordinary-income deduction = smaller of net loss after gains or $3,000
Federal tax savings =
short-term loss used × short-term federal rate
+ long-term loss used × long-term federal rate
+ ordinary-income deduction × ordinary federal rate
Losses carried forward =
remaining short-term loss + remaining long-term loss
after the ordinary-income deduction

These formulas describe the calculator’s estimate. They do not replace the tax forms’ netting rules or determine the tax treatment of a particular trade.

6

Compare different loss and gain scenarios

The table changes one input pattern at a time. It uses the calculator’s default rates: 24% federal ordinary and short-term, 15% federal long-term, and 5% state. The estimates assume no other transactions or tax adjustments.

ScenarioGains and losses enteredModeled tax savingsLoss carried forward
Default loss, no gains$5,000 short-term loss$870$2,000
Loss offsets short-term gain$2,000 short-term gain; $5,000 short-term loss$870$0
Loss offsets long-term gain$2,000 long-term gain; $5,000 short-term loss$720$0
Larger loss, no gains$10,000 long-term loss$870$7,000

The rows illustrate the model’s rate assumptions and $3,000 ordinary deduction cap. For real filing, capital gains and losses are netted under federal tax rules; verify the result against your complete tax records.

7

Frequently asked questions

Does a capital loss give me a $3,000 tax credit?

No. The $3,000 limit is generally a deduction from income, not a $3,000 credit. The tax reduction depends on the applicable tax rate and your tax situation.

Can I deduct every investment loss in the year I sell?

No. Losses generally offset capital gains first, and a net loss deduction against ordinary income is generally limited to $3,000 per year, or $1,500 for married filing separately. Remaining eligible losses can generally carry forward.

Should I harvest a loss or hold the investment?

It depends on the investment’s role in your portfolio, your tax position, and whether you can maintain your intended exposure without triggering a wash sale. A tax benefit alone does not make a sale financially worthwhile.

Does this estimate include the wash-sale rule?

No. It estimates tax effects from the gains, losses, and rates entered; it does not check purchase dates or substantially identical securities. Review the IRS’s wash-sale and investment tax guidance and your transaction history.

Do short-term losses always offset short-term gains first?

This calculator pairs short-term losses with short-term gains and long-term losses with long-term gains before cross-offsetting remaining amounts. Federal tax reporting uses netting rules across categories, so reconcile the estimate with the tax forms and applicable IRS instructions.

What should I do with a loss carryforward?

Keep the amount and its short- or long-term character with your tax records. Carryforwards can affect future returns even if you do not sell an investment next year. Tax planning around retirement withdrawals may also involve your IRA Withdrawal Tax Calculator or Roth IRA Tax Calculator.

8

Next steps for tax-aware investing

Run the estimate using the realized gains and losses you expect to report, then test different sale amounts and rates. Keep trade confirmations and prior-year carryforward records. For retirement-income tax planning, compare the estimate with a tax-efficient retirement withdrawal calculator, Pension Withdrawal Tax Calculator, Pension Tax by State Calculator, or IRA withdrawal tax guidance. For required distributions, see RMD strategies to minimize the tax hit. Also explore the Estate Tax Calculator, Gift Tax Calculator, Airbnb Retirement Income Calculator, Asset Allocation by Age Calculator, Cryptocurrency Retirement Portfolio Calculator, and Dividend Income Retirement Calculator if those topics fit your plan.

KEEP EXPLORING

Explore another question connected to this topic.

Browse all calculators