US Tax Tools

Tax Loss Harvesting Calculator

See how selling investments at a loss can offset your capital gains, reduce your taxable income, and carry unused losses forward to future tax years.

Capital Gains
Losses to Harvest
Your Income
Harvesting $15,000 in losses saves you $2,700 in taxes this year.
Want to model your full capital gains tax?Capital Gains Tax Calculator

Tax Savings

$2,700

17.06%16.98% effective rate

Losses Used Against Gains

$15,000

ST: $5,000 + LT: $10,000

Ordinary Income Offset

$0

Up to $3,000 cap

Loss Carryforward

$0

Applied in future years

Offset Breakdown
ST Losses → ST Gains$5,000
LT Losses → LT Gains$10,000
Cross-type offset$0
Ordinary income offset$0
Carryforward$0
Tax Before$32,417
Tax After$29,717
Tax Savings$2,700

Wash Sale Rule Warning

The IRS wash sale rule disallows a loss deduction if you buy the same or a "substantially identical" security within 30 days before or after the sale. To preserve your harvested losses, avoid repurchasing the same holding for at least 31 days. Consider buying a similar (but not identical) ETF or fund in the meantime to maintain your market exposure.

Frequently Asked Questions

What is tax loss harvesting?

Tax loss harvesting is the practice of selling investments at a loss to offset capital gains and reduce your tax liability. Realized losses first offset capital gains of the same type (short-term against short-term, long-term against long-term), then net losses can offset gains of the other type. Any remaining net capital loss can offset up to $3,000 of ordinary income per year, and unused losses carry forward indefinitely to future tax years.

What is the wash sale rule?

The wash sale rule prevents you from claiming a tax loss if you buy a substantially identical security within 30 days before or after the sale that generated the loss. If a wash sale occurs, the disallowed loss is added to the cost basis of the replacement shares, deferring (not permanently eliminating) the tax benefit. The rule applies to stocks, bonds, mutual funds, and options on the same security.

How much can capital losses offset ordinary income?

After offsetting all capital gains, net capital losses can reduce ordinary income by up to $3,000 per year ($1,500 if married filing separately). Any excess losses are not lost — they carry forward indefinitely and can be used in future tax years to offset capital gains or ordinary income under the same annual limit.

When should I harvest losses?

You can harvest losses at any time during the tax year, not just at year-end. Good times to consider harvesting include when you have realized gains to offset, when a position has declined significantly and you want to capture the deduction, or when you expect to be in a higher tax bracket in future years. Year-end is a common window because you know your full-year gain picture, but acting earlier gives you more flexibility to reinvest without triggering the wash sale rule.

Sources

Editorial standards

How this page is maintained

USTax Tools updates calculator assumptions and page copy against official source material. We publish for general educational use, not individualized tax advice.

Last reviewed

March 2026

Coverage

2025 capital gains rates and loss deduction limits

Primary sources

IRS Topic 409 and IRS Publication 550

Related Calculators