Foliostufffoliostuff
Investing

Tax Loss Harvesting Calculator

Enter the positions you are down on, any gains you have already taken this year, and your tax rates. See what selling would save now, what carries forward, and when you can buy back without tripping the wash sale rule.

1

Positions you are down on

Use the cost basis and market value your brokerage shows. Held one year or less counts as short-term.

$
$

Enter both amounts

2

Gains you have already taken this year

Profits from anything you have sold so far this year. Leave these empty if there are none.

$
$
3

Your tax rates

Your federal bracket is the rate on your last dollar of income. Most people pay 15% on long-term gains.

%

Estimated tax savings this year

$0.00

Add a position that is worth less than you paid for it and the numbers fill in.

Where the loss goes

Offsets short-term gains

Saves $0.00

$0.00

Offsets long-term gains

Saves $0.00

$0.00

Deducted from income

Saves $0.00

$0.00

Carried forward

For future years

$0.00

An estimate from the rates you chose and the standard federal netting order. It is not tax advice.

How the math works

A loss only counts once you sell. When you do, the IRS nets it in a set order: short-term losses come off short-term gains first, long-term losses come off long-term gains, and whatever is left on one side crosses over to the other. If losses remain after every gain is wiped out, up to $3,000 a year ($1,500 if married filing separately) comes off your ordinary income, and the rest carries forward to future years until it is used up.

The calculator prices each of those buckets at the rate it would have been taxed at. Short-term gains and ordinary income use your income tax rate, long-term gains use your long-term rate, and your state rate is added on top. The total is what selling saves on this year's return.

A quick example

Say you bought an ETF for $10,000 and it is now worth $7,000, held for under a year. You also sold a winner earlier this year for a $2,000 short-term gain, and you are in the 24% bracket. Selling the ETF creates a $3,000 short-term loss. The first $2,000 cancels the gain, saving $480. The remaining $1,000 comes off your ordinary income, saving another $240. That is $720 off this year's tax bill. Load the example under the form to see it.

It delays tax more than it erases it

If you move the money into a similar investment, the new position starts at today's lower price, so the gain when you eventually sell it is larger by the amount you harvested. The benefit is still real: you get the savings now and they stay invested, the deduction against ordinary income is priced at your income tax rate, and the later gain may be taxed at the lower long-term rate.

FAQ

What is the wash sale rule?

If you buy the same investment, or one that is substantially identical, within 30 days before or after selling at a loss, the IRS disallows the loss for now and adds it to the cost basis of the replacement shares. The rule also covers purchases in your other accounts and your spouse's accounts. Buying it back inside an IRA is worse, because the loss is gone for good. To stay invested, many people switch to a similar but different fund for at least 31 days.

How much loss can I deduct in a year?

There is no cap on losses used against capital gains. Once your gains are fully offset, up to $3,000 of what is left ($1,500 if married filing separately) can be deducted from ordinary income each year. Anything beyond that carries forward and keeps its short-term or long-term character.

Does this work in an IRA or 401(k)?

No. Gains and losses inside tax-advantaged retirement accounts are not reported each year, so there is nothing to harvest. Tax loss harvesting only applies to taxable brokerage accounts.

Is it worth it if my long-term capital gains rate is 0%?

Often less so. A loss that only offsets long-term gains taxed at 0% saves nothing federally. It can still help if it offsets short-term gains, earns the deduction against ordinary income, or lowers state tax. Set the long-term rate to 0% in the calculator to see the difference.

When do I have to sell for it to count this year?

By the last trading day of the year. A sale on the final day counts, and a sale on the first trading day of January belongs to the following year.

Is this tax advice?

No. It is an estimate based on the rates you enter and the standard federal netting rules. It assumes the sale does not move you into a different bracket, and it leaves out details such as losses carried over from earlier years, the alternative minimum tax, and states that treat capital losses differently. Check with a tax professional before acting on it.