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.
Result
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 lossLosses net against gains, then a capped amount against ordinary income; the rest is banked for future years.
Worked examples
- Inputs:
- basis=10000, sale=7000, gains=0, rate=24
- Output:
- $3,000 loss โ $720 saved
- Inputs:
- basis=20000, sale=10000, gains=0, rate=24
- Output:
- $3,000 offset ($720), $7,000 carried forward
- 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
What is tax-loss harvesting?+
How much loss can offset ordinary income?+
What is the wash-sale rule?+
Do losses offset gains at the same rate?+
What happens to losses I cannot use this year?+
Is harvesting always worth it?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one โ same audience, same intent.
Estimate take-home pay from gross pay after pre-tax deductions (401(k), HSA, insurance), income tax, and other withholdings.
Project the future value of a present sum at a nominal growth rate, then adjust for inflation to show its real, inflation-adjusted value.
Compute the cost basis of shares sold from multiple purchase lots using FIFO, LIFO, or average-cost methods.
Sales tax + total for a purchase amount in any US state using the 2026 state-level base rate. State rates only (no county / city add-ons).
EBITDA = Net Income + Interest + Tax + D&A. Operating earnings before financing + non-cash items.
Full federal + state income tax estimate โ wages, pre-tax 401(k)/HSA, standard or itemized deduction, child + dependent credits, FICA. Returns total tax burden, effective rate, and take-home pay.