Tax-Loss Harvesting Calculator

Estimate the tax savings from harvesting a capital loss, including the $3,000 annual ordinary-income offset and any loss carried forward.

Inputs

What you originally paid for the investment.

What you sell it for now.

Other realized capital gains this year the loss can cancel first.

Your marginal tax bracket, used for the income offset.

Result

Estimated tax savings (this year)
$720.00
$3,000.00 loss ยท $0.00 carried forward
  • Realized capital loss$3,000.00
  • Loss offsetting capital gains$0.00
  • Loss offsetting ordinary income (max $3,000)$3,000.00
  • Tax savings this year$720.00
  • Loss carried forward$0.00
Not financial advice โ€” Simplified estimate. Watch the wash-sale rule: rebuying the same or a substantially identical security within 30 days disallows the loss. Gains offset uses your marginal rate as a proxy. Consult a tax professional.

Step-by-step

  1. Loss = cost basis โˆ’ sale price = $10,000.00 โˆ’ $7,000.00 = $3,000.00.
  2. Offset capital gains first ($0.00), then up to $3,000 of ordinary income ($3,000.00).
  3. Tax saved โ‰ˆ ($3,000.00) ร— 24% = $720.00; $0.00 carries to future years.

How to use this calculator

  • Enter the cost basis (what you paid) and the current sale price.
  • Enter any capital gains realized this year that the loss can offset first.
  • Enter your marginal ordinary-income tax rate.
  • Read the estimated tax savings and any loss carried forward.

About this calculator

Tax-loss harvesting means deliberately selling an investment at a loss to reduce your tax bill. The realized loss first cancels out any capital gains you have realized the same year, dollar for dollar. If losses remain after wiping out your gains, up to $3,000 per year can be deducted against ordinary income (wages, interest), and anything left over is carried forward indefinitely to offset gains or income in future years. This calculator computes the loss from your cost basis and sale price, applies the gains offset and the $3,000 ordinary-income cap, and estimates the tax savings using your marginal rate, along with the amount carried forward. The most important caveat is the wash-sale rule: if you buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed.

How it works โ€” the formula

Loss = max(0, Cost basis โˆ’ Sale price) Offset gains first, then โ‰ค $3,000 vs ordinary income Savings โ‰ˆ (offset gains + ordinary offset) ร— marginal rate Carryforward = remaining loss

Losses net against gains, then a capped amount against ordinary income; the rest is banked for future years.

Worked examples

Example 1
Basis $10k, sale $7k, 24% bracket
Inputs:
basis=10000, sale=7000, gains=0, rate=24
Output:
$3,000 loss โ†’ $720 saved
Example 2
Basis $20k, sale $10k, no gains, 24%
Inputs:
basis=20000, sale=10000, gains=0, rate=24
Output:
$3,000 offset ($720), $7,000 carried forward
Example 3
Basis $15k, sale $10k, $5k gains, 32%
Inputs:
basis=15000, sale=10000, gains=5000, rate=32
Output:
$5k offsets gains โ†’ ~$1,600 saved

Limitations

  • Uses marginal rate as a proxy; long- vs short-term gain rates differ.
  • Does not enforce the wash-sale rule โ€” you must avoid repurchases.
  • Ignores state taxes and net investment income tax.

Estimate, not tax advice; consult a professional and mind the wash-sale rule.

Frequently asked

It is selling an investment that has dropped below your purchase price to realize a capital loss, which lowers your taxes by offsetting capital gains and, beyond that, up to $3,000 of ordinary income per year. Remaining losses carry forward to future years.

Related calculators

More tools you might like