Home › Stock market crash and correction history
Tax Loss Harvesting Calculator
If a falling market has left some of your investments below what you paid, selling them before year end can lower your tax bill. Enter the gains you have already realized this year, the losses you could harvest and your tax rates. The calculator applies the US capital gain netting rules, the $3,000 limit on deducting losses against ordinary income and the carryforward, and estimates the tax you would save.
How to use the tax loss harvesting calculator
Your broker's realized gain/loss report (often called "realized" or "closed positions") shows what you have already sold this year, split into short-term and long-term. Enter each net figure, using a minus sign for a net loss. If last year's return left you with a capital loss carryover, add it in the two carryover fields; it is on the Capital Loss Carryover Worksheet in your 2025 tax return instructions.
Then look at your unrealized losses: positions currently worth less than you paid. Enter the short-term and long-term losses you are thinking of selling. Pick your filing status, your federal bracket and your long-term capital gains rate, and add a flat state rate if your state taxes capital gains. The calculator compares your 2026 tax on investments with and without the harvest, and shows any loss that would carry into 2027.
How the calculation works
The calculator follows the netting order on Schedule D. First, short-term losses (including any short-term carryover) are subtracted from short-term gains, and long-term losses from long-term gains. If one group ends with a net loss, it offsets the net gain of the other group. Whatever net gain is left is taxed: short-term gain at your ordinary bracket and long-term gain at your capital gains rate, plus the 3.8% surtax if you tick it, plus your state rate.
If the total is a net loss, up to $3,000 ($1,500 when married filing separately) is deducted from ordinary income, saving your ordinary bracket plus state rate. The deduction uses short-term losses first. The rest carries forward to 2027 and keeps its short-term or long-term character. Estimated savings are the difference between the two tax figures for 2026; the value of a carryforward is shown separately because it depends on future years.
Worked example
Using the starting values: you have realized $8,000 of short-term and $15,000 of long-term gains, are in the 24% bracket with a 15% long-term rate and no state tax. Without harvesting, the tax is $8,000 × 24% + $15,000 × 15% = $1,920 + $2,250 = $4,170. Harvesting $6,000 of short-term losses leaves a $2,000 short-term gain; harvesting $14,000 of long-term losses leaves a $1,000 long-term gain. The new tax is $480 + $150 = $630, a saving of about $3,540 for 2026.
Now raise the harvested long-term loss to $20,000. The long-term side becomes a $5,000 net loss, which wipes out the remaining $2,000 short-term gain and leaves a $3,000 net loss. Your 2026 tax on investment gains drops to zero, and the full $3,000 is deductible against your salary, saving another $720. Compared with not harvesting at all, that is $4,170 + $720 = $4,890, and nothing carries forward.
Limitations and what to check before selling
The estimate assumes your bracket stays the same with or without the gains, that your other taxable income is at least as large as the loss deduction (otherwise more of the loss carries forward), and uses one flat state rate. It does not model the alternative minimum tax, phase-outs, the exact NIIT calculation or the 28% rate on collectibles. Harvesting usually defers tax rather than eliminating it: if you buy a similar investment, its lower cost basis means a larger gain when you eventually sell. Do not buy the same or a substantially identical security within 30 days before or after the sale, in any of your accounts or your spouse's, or the wash sale rule will disallow the loss; the wash sale calculator shows the exact dates. Mutual fund year-end distributions can also add gains you have not counted yet.
Frequently asked questions
How much in stock losses can I deduct per year?
Capital losses first offset capital gains without limit. If losses are larger than gains, up to $3,000 of the net loss ($1,500 if married filing separately) can be deducted from ordinary income such as wages each year. Anything above that carries forward to later years with no expiry for individuals.
What is the deadline for tax loss harvesting in 2026?
The sale has to be executed by the last trading day of the year, which is Thursday, December 31, 2026 for US exchanges. For losses, the trade date counts, not the settlement date. Remember the wash sale window: buying the same or a substantially identical security within 30 days before or after the sale disallows the loss.
Do short-term losses offset long-term gains?
Yes, after a first step. Short-term losses are netted against short-term gains and long-term losses against long-term gains. If one side ends up with a net loss, it then offsets the net gain on the other side. Because short-term gains are taxed at ordinary rates, a loss that ends up offsetting them is usually worth more.
Is tax loss harvesting worth it if my tax rate is low?
Possibly not. Long-term gains are taxed at 0% for lower taxable incomes, so offsetting them saves nothing. Harvesting also lowers your cost basis if you buy a similar investment back, which can mean more tax later. It tends to help most for people in higher brackets with realized short-term gains.
Does tax loss harvesting 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. Worse, buying the same security in an IRA within 30 days of selling it at a loss in a taxable account can trigger a wash sale and the loss is permanently disallowed.
Not tax or financial advice. Estimates for US federal individual income tax with a flat state rate; your actual tax depends on your full return. Check with a tax professional before acting.
Last updated 2026-11-21. Runs entirely in your browser; nothing you enter is uploaded.
More in Stock market crash and correction history
- S&P 500 Correction History: Where Today's Decline Stands and What Happened Next
- Biggest Stock Market Drops in History: Worst Days and Weeks
- Nvidia Stock Crash History: Every Big Drop in Nvidia and AI Stocks
- VIX Spike History: Every Fear Spike Since 1990 and What Came Next
- Stock Market Crash 2026: The AI Selloff in Numbers
- AI Bubble vs Dot-Com Bubble Chart: Is 2026 Another 2000?
- How Long Does the Stock Market Take to Recover? Crash Recovery Calculator
- DCA Backtest Calculator: What Investing Every Month Through Crashes Was Worth
- Stock Average Down Calculator
- Wash Sale Calculator: 30-Day Rule Dates, Disallowed Loss and New Basis
- Percent Off Calculator
- Quilt Backing Calculator
- Plan Stair Dimensions for Your Woodworking Project
Optional analytics
With your consent, Google Analytics measures visits and tool-link clicks. No file contents, filenames or form inputs are collected. You can withdraw at any time.