Tax-Loss Harvesting Calculator

The benefit is the tax you avoid this year, and the carryforward shows what remains for future years. A $12,000 loss offsets $8,000 of gains and $3,000 of income, saving $2,640 at a 24% rate, with $1,000 carried forward. Harvesting is a deferral more than a permanent saving, because the lower cost basis raises the gain later, but a deferral is still valuable.

Tax-Loss Harvesting Calculator: inputs

Calculated result
Estimated current tax benefit$2,640
Loss carried forward$1,000

Tax-Loss Harvesting Calculator: Realized capital loss sensitivity

Tax-Loss Harvesting Calculator: Realized capital loss and Estimated current tax benefit5 calculations vary the “Realized capital loss” input while holding the other entered inputs constant.$9,600$2,304$10,800$2,592$12,000$2,640$13,200$2,640$14,400$2,640

Tax-Loss Harvesting: formula

Tax benefit = harvested loss × applicable offset tax rate, limited to the entered usable loss

SEC Investor.gov: financial calculators · IRS Publication 550: Investment income and expenses

Tax-Loss Harvesting: worked example

Realized capital loss$12,000
Capital gains offset$8,000
Ordinary-income offset used$3,000
Estimated blended tax rate24.0%
Estimated current tax benefit$2,640
Loss carried forward$1,000

Wash sales can involve purchases before or after a loss sale, including purchases in other relevant accounts. A disallowed loss and its replacement-basis treatment need the applicable IRS rules. Short-term and long-term netting, carryforwards and the ordinary-income limit must be determined before using this estimate.

It does not classify substantially identical securities or decide which transactions qualify.

Tax-Loss Harvesting: changing Realized capital loss

Realized capital lossEstimated current tax benefitLoss carried forward
$9,600$2,304$0.00
$10,800$2,592$0.00
$12,000 (example)$2,640$1,000
$13,200$2,640$2,200
$14,400$2,640$3,400

Tax-Loss Harvesting: compare input ranges

InputTested fromToEstimated current tax benefit: low inputEstimated current tax benefit: high inputSwing
Estimated blended tax rate22.0%26.0%$2,420$2,860$440 (17%)
Capital gains offset$7,200$8,800$2,448$2,832$384 (15%)
Ordinary-income offset used$2,700$3,300$2,568$2,712$144 (5.5%)
Realized capital loss$10,800$13,200$2,592$2,640$48 (1.8%)

Tax-Loss Harvesting: individual input comparisons

InputValueEstimated current tax benefitLoss carried forward
Realized capital loss$9,600$2,304$0.00
$10,800$2,592$0.00
$12,000$2,640$1,000
$13,200$2,640$2,200
$14,400$2,640$3,400
Capital gains offset$6,400$2,256$2,600
$7,200$2,448$1,800
$8,000$2,640$1,000
$8,800$2,832$200
$9,600$2,880$0.00
Ordinary-income offset used$2,400$2,496$1,600
$2,700$2,568$1,300
$3,000$2,640$1,000
$3,300$2,712$700
$3,600$2,784$400
Estimated blended tax rate20.0%$2,200$1,000
22.0%$2,420$1,000
24.0%$2,640$1,000
26.0%$2,860$1,000
28.0%$3,080$1,000

Tax-Loss Harvesting: combined input changes

Realized capital loss / Capital gains offset$6,400$8,000$9,600
$9,600$2,256$2,304$2,304
$10,800$2,256$2,592$2,592
$12,000$2,256$2,640$2,880
$13,200$2,256$2,640$3,024
$14,400$2,256$2,640$3,024

Tax-Loss Harvesting: which assumptions move the result?

Tax-Loss Harvesting: Estimated current tax benefit as Estimated blended tax rate changesEstimated current tax benefit starts at $2,200. Moving Estimated blended tax rate from 20.0% to 28.0% changes it to $3,080, with Realized capital loss $12,000; Capital gains offset $8,000; Ordinary-income offset used $3,000 kept fixed.20.0%$2,20022.0%$2,42024.0%$2,64026.0%$2,86028.0%$3,080
Chart quantityDisplayed settings
Estimated blended tax rate20.0% → 28.0%
Estimated current tax benefit$2,200 → $3,080
Realized capital loss$12,000
Capital gains offset$8,000
Ordinary-income offset used$3,000
Tax-Loss Harvesting: Estimated current tax benefit as Capital gains offset changesEstimated current tax benefit starts at $2,256. Moving Capital gains offset from $6,400 to $9,600 changes it to $2,880, with Realized capital loss $12,000; Ordinary-income offset used $3,000; Estimated blended tax rate 24.0% kept fixed.$6,400$2,256$7,200$2,448$8,000$2,640$8,800$2,832$9,600$2,880
Chart quantityDisplayed settings
Capital gains offset$6,400 → $9,600
Estimated current tax benefit$2,256 → $2,880
Realized capital loss$12,000
Ordinary-income offset used$3,000
Estimated blended tax rate24.0%

Tax-Loss Harvesting: values and definitions

Quantity and definitionValue used
Realized capital loss$12,000
Capital gains offset$8,000
Ordinary-income offset used$3,000
Estimated blended tax rate24.0%
Estimated current tax benefit$2,640
Loss carried forward$1,000

Tax-Loss Harvesting: half and double Estimated blended tax rate

Estimated blended tax rateEstimated current tax benefit
12.0%$1,320
24.0%$2,640
48.0%$5,280

Realized capital loss is the loss from selling an investment below your cost, capital gains offset is the gains you have realized that year, and the ordinary-income offset is the part of any remaining loss you can deduct against other income, limited to $3,000 a year for most filers. The blended tax rate is the rate you would have paid on the gains and income being offset. Get the numbers from Form 1099-B.

Common error: Selling a losing position to harvest the tax loss, then immediately repurchasing the identical security. The wash-sale rule disallows the loss in that situation, eliminating the exact benefit the harvesting was meant to capture.

Investing & Returns calculators: Rule of 72 and 115 Doubling and Tripling Calculator, XIRR Calculator, Investment Payback Period Calculator, Average Investment Return Calculator, After-Tax Investment Return Calculator, DCA vs. Lump Sum Calculator.

A realized loss offsets gains this year, and any leftover loss carries forward to future years rather than disappearing, but harvesting a loss and immediately buying back the identical or a substantially similar security within the wash-sale window disallows the loss entirely, turning what looked like a tax benefit into nothing.

Confirm the replacement investment, if any, isn't substantially identical to the one sold, and that enough time has passed to clear the wash-sale window before repurchasing.

Use the capital gains tax calculator to see the tax on remaining gains, and the after-tax investment return calculator for the wider effect. Keep track of the replacement fund you use during the 30-day window, and confirm it is not substantially identical. A tax professional can confirm how your loss nets.

Does a disallowed wash-sale loss always increase replacement basis?

No. IRS Publication 550 treats an IRA/Roth IRA replacement purchase differently from an ordinary taxable replacement purchase. Do not assume the loss is recoverable through higher basis in every case.

Does this choose a legal loss-netting order?

No. Determine usable losses, applicable gain categories and the permitted ordinary-income offset first. The entered blended rate is a simplified estimate; different tax rates can apply to the amounts offset.

What is the wash-sale rule?

A loss on stock or securities can be disallowed when substantially identical securities are acquired within 30 days before or after the sale. In a taxable replacement purchase, the disallowed loss generally adjusts replacement basis. An IRA or Roth IRA replacement is an important exception: that basis adjustment does not apply.

How much loss can I deduct against ordinary income?

Up to $3,000 a year, or $1,500 if married filing separately. Any extra loss carries forward to future years without expiring.

Does tax-loss harvesting work in an IRA?

No. Losses inside tax-advantaged accounts such as IRAs are not deductible, so harvesting applies only to taxable brokerage accounts.