Enter your gains so far this year
Add your short-term and long-term capital gains, and any loss you carried over from last year.
Free tool
This tax loss harvesting calculator shows the tax you could save by selling a losing position. Enter your gains, the positions you could sell at a loss and your tax rates. See how the $3,000 limit applies and the loss you carry over. Free, no signup.

Try the whole product with sample positions. No account needed.
$1 for 7 days • Cancel anytime • 14-day money-back guarantee
How it works
Three entries show what selling a losing position could save you.
Add your short-term and long-term capital gains, and any loss you carried over from last year.
For each stock or option you bought, enter what you paid, what it is worth now and how long you have held it. For an option you sold, enter the premium you received and what it costs to buy back.
Type your own short-term and long-term rates. See the tax you could save this year, the loss that goes against other income and the loss you carry over.
The rules
Tax loss harvesting means you sell an investment for less than you paid and use the loss to lower your tax. The loss first cancels capital gains. Then up to $3,000 of it lowers your other income for the year.
You net short-term losses against short-term gains and long-term losses against long-term gains. Then you combine the two results into one net gain or net loss.
If you end with a net loss, you can deduct up to $3,000 of it from other income. The limit is $1,500 if you are married and file a separate return.
A loss above the limit moves to next year and keeps its short-term or long-term character. You can carry it over until it is used up.
Example
These numbers are made up to show the sums. The 24% rate is an example. Enter your own rate in the calculator.
| Line | Amount | How it is worked out |
|---|---|---|
| Short-term gains this year | $8,000 | Gains you already took |
| Loss you harvest | $12,000 | Short-term loss on the position you sell |
| Gains left to tax | $0 | The loss cancels all $8,000 of gains |
| Loss against other income | $3,000 | The yearly limit |
| Loss carried over to next year | $1,000 | $12,000 less $8,000 less $3,000 |
| Estimated tax saved this year at a 24% rate | $2,640 | 24% of $11,000 ($8,000 plus $3,000) |
The catch
A harvested loss counts only if you stay clear of the wash sale rule for 30 days before and after the sale.
If you buy the same stock within 30 days before or after the sale, the IRS disallows the loss. The loss is added to the cost of the new shares, unless your IRA made the buy.
An option to buy the stock is a trigger under the rule. A put you sell may be one too, and an assignment inside the 30 days is a buy of the stock.
Run the sale through the Wash Sale Calculator, or read the guide on harvesting a loss with options.
The trade-off
It depends on three things the calculator shows you.
A loss lowers your tax by your rate on the gains it cancels. With no gains, only $3,000 a year goes against other income ($1,500 if you are married and file separately).
If you buy back at a lower price, your new cost is lower. A later sale at a profit then shows a bigger gain.
Count commissions, the bid-ask spread and the risk that the stock rises while you are out of it for 31 days.
FAQ
FAQ
Wash Sale CalculatorTax loss harvesting with optionsCost Basis After Assignment CalculatorHow are options taxed
This calculator applies the capital loss rules in IRS Publication 550 to the numbers and tax rates you enter. It covers US federal tax only and leaves out state tax and the net investment income tax. It also leaves out index options and other section 1256 contracts. QuantWheel does not give tax advice. Check the result with a tax professional before you trade or file.
Next step
Try the whole product with sample positions. No account needed.
$1 for 7 days • Cancel anytime • 14-day money-back guarantee