Want your own number? Enter your income, the gains you have realized this year and the losses you could sell, and the calculator shows your 2026 federal tax before and after the harvest.
Open the Tax-Loss Harvesting Calculator →Tax-loss harvesting means selling investments that are below what you paid so the realized loss offsets capital gains and up to $3,000 of ordinary income ($1,500 married filing separately) under IRC §1211(b). Unused losses carry forward indefinitely under §1212(b). A loss saves tax at the rate of what it offsets: 10 to 37 percent against short-term gains and the $3,000, 0, 15 or 20 percent against long-term gains, plus 3.8 percent where it trims the net investment income tax. For 2026 the trade must happen by December 31, 2026, and you must not buy a substantially identical security within 30 days before or after.
- What it offsets decides what it saves. Short-term gains and ordinary income are the high-value targets; long-term gains in the 0 percent band are worthless targets.
- Losses net by character first (short against short, long against long), then across.
- The $3,000 cap applies only against ordinary income. Against capital gains, losses are unlimited.
- The wash sale rule reaches your IRA and your spouse. Brokers do not track that for you.
- Harvesting usually defers tax by lowering the basis of what you buy back; it becomes permanent with a lower future rate, a gift to charity or a step-up at death.
- Trade date, not settlement date, sets the year.
What is tax-loss harvesting?
Every sale of a stock, fund or other capital asset in a taxable account produces a gain or a loss: the amount realized minus your adjusted basis. Tax-loss harvesting is choosing to realize the losses deliberately, usually late in the year, so they reduce the tax on gains you have already taken or on part of your ordinary income. The investor then typically reinvests the cash in something similar enough to keep the portfolio on plan but not "substantially identical", so the loss is not disallowed.
Nothing about the investment's economics changes because of the sale. What changes is the timing of tax: a loss that would have sat unrealized now shows up on Schedule D this year. That is why the right question is never "do I have losses" but "what will these losses offset, and at what rate".
How much does a harvested loss save?
The saving is the loss multiplied by the tax rate on whatever it ends up offsetting. That rate varies more than most people expect:
| The loss offsets | Rate saved | Saving on $10,000 |
|---|---|---|
| Short-term gain, 24% bracket | 24% | $2,400 |
| Short-term gain, 35% bracket, above the NIIT threshold | 35% + 3.8% | $3,880 |
| Long-term gain in the 15% band | 15% | $1,500 |
| Long-term gain in the 20% band, above the NIIT threshold | 20% + 3.8% | $2,380 |
| Long-term gain already in the 0% band | 0% | $0 |
| Ordinary income (only $3,000 a year), 22% bracket | 22% | $660 on the $3,000 |
The rates assume the whole $10,000 stays inside one bracket. A large harvest can cross a bracket or rate boundary, which is why the calculator reruns the full return instead of multiplying by one rate. The 2026 brackets, standard deductions and 0/15/20 percent breakpoints come from Rev. Proc. 2025-32.
In what order do losses offset gains?
Schedule D nets in three steps. First, short-term gains and losses (assets held one year or less) are combined into a net short-term figure, and long-term gains and losses (held more than one year) into a net long-term figure. Prior-year carryovers enter here too: a short-term carryover reduces the short-term column, a long-term carryover the long-term column. Second, if one column is a net loss and the other a net gain, the loss offsets the gain. Third, if the combined result is still a loss, up to $3,000 reduces ordinary income and the rest carries forward.
The order matters because of the rates. A short-term loss that meets a short-term gain saves your full ordinary rate. If you harvest long-term losses but your gains are short-term, they still offset them at the cross-netting step, so they save ordinary-rate tax too. If you harvest short-term losses but your gains are long-term, a loss that could have been worth 24 or 32 percent ends up saving only 15. When you can choose lots, match the character of the loss to the gain you want to cancel. The Capital Gains Tax Guide covers holding periods and basis in detail.
What happens when your losses are bigger than your gains?
Once every gain is offset, IRC §1211(b) lets you deduct the lower of $3,000 ($1,500 married filing separately) or the remaining net loss against wages and other ordinary income. That amount is fixed in the statute and is the same for 2026 as it has been since 1978. The excess becomes a capital loss carryover under §1212(b): it never expires for an individual, it keeps its short-term or long-term character, and the Schedule D Capital Loss Carryover Worksheet applies the $3,000 against short-term losses first.
A big harvest with no gains to absorb it therefore pays out slowly. $30,000 of net loss with no future gains takes ten years to use at $3,000 a year. Against a future capital gain, by contrast, the carryover is unlimited. Use the Capital Loss Carryover Calculator to see how a carryover splits by character.
How do you harvest without triggering a wash sale?
IRC §1091 disallows a loss if, within 30 days before or after the sale, you buy substantially identical stock or securities, acquire them in a fully taxable trade, buy a contract or option to acquire them, or acquire them for your IRA or Roth IRA. A purchase by your spouse or a corporation you control counts too (IRS Publication 550). The window is 61 days long including the sale date, and it looks backward as well as forward, so a purchase in late November can spoil a December loss.
In most cases the disallowed loss is added to the basis of the replacement shares, so it is deferred rather than lost. The exception is the IRA purchase: the loss is gone permanently and the IRA gets no basis increase. Common ways to stay invested are swapping into a fund that tracks a different index, or a different company in the same industry, and waiting 31 days before buying the original back. Turn off dividend reinvestment in any position you plan to sell. The Wash Sale Rule Guide and the Wash Sale Loss Calculator cover partial washes and the basis adjustment.
Check the numbers before you trade: the calculator runs your 2026 return with and without the harvest, including the 0 percent band and the 3.8 percent NIIT.
Calculate My Harvesting Saving →When is tax-loss harvesting not worth it?
The clearest case is the 0 percent band. Long-term gains and qualified dividends are stacked on top of ordinary income, and the part that fits under the zero-rate amount is taxed at nothing. For 2026 that amount is $49,450 of taxable income for single filers and married filing separately, $98,900 for married filing jointly and surviving spouses, and $66,200 for heads of household (Rev. Proc. 2025-32, section 4.03). If your long-term gains already sit under that line, harvesting a loss against them saves nothing; only the $3,000 that spills over to ordinary income helps.
In that situation the loss is often worth more held for later, or the better move is the opposite one: realize gains while they are taxed at 0 percent and buy back immediately (the wash sale rule applies only to losses), resetting your basis higher for free. Other cases where harvesting adds little: when you expect to be in a much higher bracket when you sell the replacement, when trading costs and fund spreads eat the saving, or when the only replacement available is a poor substitute that changes your portfolio.
Can harvesting lower the net investment income tax?
Yes, for higher earners. IRC §1411 adds 3.8 percent on the smaller of net investment income or modified AGI above $200,000 (single and head of household), $250,000 (married filing jointly and surviving spouses) or $125,000 (married filing separately). These thresholds are not indexed. A harvested loss lowers both measures. Net gain for the NIIT cannot go below zero, but Treas. Reg. §1.1411-4(d)(2) lets the up-to-$3,000 loss allowed under §1211(b) offset other investment income, and its Example 1 reduces net investment income by that $3,000.
So a household in the 15 percent long-term band whose MAGI is over the threshold saves 18.8 cents per dollar of long-term gain offset, and a 35 percent household saves 38.8 cents per dollar of short-term gain offset. The Net Investment Income Tax Calculator shows the surtax on its own.
Is the tax saving permanent?
Usually it is a deferral. Suppose you sell a fund bought for $50,000 at $40,000, harvest the $10,000 loss, and buy a similar fund for $40,000. Your basis is now $10,000 lower than it was, so if both funds recover to $50,000 and you sell, you have a $10,000 gain you would not otherwise have had. You saved tax now and pay it later.
The deferral still has value (the money stays invested in the meantime), and it becomes a permanent saving in several situations: the later gain is taxed at a lower rate (for example a short-term loss used now against a long-term gain later, or a sale in a lower-income year), you donate the replacement shares to charity, or you hold them until death, when heirs generally receive a basis equal to fair market value under IRC §1014. One more limit: an unused carryover ends at death and does not pass to heirs.
When is the deadline to harvest losses?
The sale must be made by the last trading day of the year, December 31, 2026 for this year. For securities traded on an established market, the trade date controls. IRS Publication 550 gives the example of stock sold on December 31 with settlement in January: the gain or loss is reported on the return for the year of the December sale. Do not wait for the last day if you also need to watch the wash sale window; a purchase in the 30 days before the sale counts too, including late-year mutual fund reinvestments.
Worked example: the same harvest in two households
Both households sell $6,000 of short-term losers and $12,000 of long-term losers, and both use the 2026 standard deduction.
Household A's short-term loss offsets short-term gain at 24 percent ($1,440) and the long-term loss offsets long-term gain at 15 percent ($1,800). Household B has ordinary income of $30,000; after the $16,100 standard deduction its ordinary taxable income is $13,900, taxed $1,240 + 12% x $1,500 = $1,420, and its $18,000 gain is taxed at 0 percent. The $18,000 harvest erases a gain that was already tax-free and saves nothing.
Common mistakes
- Buying the replacement in an IRA. It triggers the wash sale rule and the loss is lost for good.
- Forgetting the 30 days before the sale. A purchase or reinvested dividend in November can disallow part of a December loss.
- Harvesting against gains taxed at 0 percent. Check your taxable income first.
- Mixing up character. Long-term losses used to wipe out long-term gains while short-term gains stay taxed at ordinary rates wastes the better match.
- Treating the saving as free money. The lower basis comes back as gain later unless something makes the deferral permanent.
- Losing track of the carryover. Last year's Schedule D worksheet, not a summary number, sets this year's short-term and long-term carryover.
- Assuming crypto follows the same rule. Section 1091 covers stock and securities; whether a particular digital asset is a security is a separate question, so confirm before relying on an immediate buyback.
Practitioner Insight
We run harvesting as a year-end project, not a reflex. Step one is a projection: what gains are already realized, what fund distributions are still coming in December, and where taxable income will land relative to the 0, 15 and 20 percent breakpoints and the NIIT threshold. Only then do we pick lots, short-term losses against short-term gains first, highest-basis lots first. In a low-income year the answer is often to harvest gains instead. And before any trade we list every account in the household, including IRAs and the spouse's accounts, and freeze automatic reinvestment for the 61-day window.
Real-World Scenario: A High-Income Couple After a Big Fund Sale
A married couple filing jointly has $260,000 of ordinary income (including $4,000 of interest) and $6,000 of qualified dividends. Earlier in 2026 they sold a stock for a $12,000 short-term gain and a fund for a $40,000 long-term gain. In November they hold $12,000 of short-term and $25,000 of long-term unrealized losses. They take the $32,200 standard deduction.
Before the harvest, ordinary taxable income of $239,800 is taxed $35,932 + 24% x $28,400 = $42,748, and $46,000 of long-term gain and dividends at 15% adds $6,900. Their MAGI is $68,000 over the $250,000 threshold, so NIIT is 3.8% of the smaller net investment income of $62,000, or $2,356. After the harvest, the short-term loss cancels the short-term gain at 24 percent plus 3.8 percent ($3,336) and the long-term loss cancels $25,000 of long-term gain at 15 percent plus 3.8 percent ($4,700). Total saving: $8,036, about 21.7 cents per harvested dollar.
When these rules may not apply
- Retirement accounts. Gains and losses inside IRAs, 401(k)s and HSAs are not reported on Schedule D, so there is nothing to harvest there.
- Unrecaptured §1250 gain and collectibles. Gains taxed at up to 25 or 28 percent follow the Schedule D Tax Worksheet, and losses absorb them in a set order.
- Section 1256 contracts. Regulated futures and certain options are marked to market with a 60/40 split and a carryback election.
- Worthless securities. They are treated as sold on the last day of the year, with their own proof requirements.
- Married filing separately. The ordinary-income deduction is $1,500, and a carryover from a joint year belongs to the spouse who had the loss.
- AGI-based items. Harvested losses are part of AGI, so they can also move the medical expense floor, IRMAA two years later, education credits, premium tax credits and the income phase-out of the senior deduction (itself a below-the-line deduction under IRC §63(b)).
- State tax. Most states tax capital gains as ordinary income, and some limit or disallow the loss deduction differently from the federal rules.
Frequently Asked Questions
What To Do Next
Run your own numbers in the Tax-Loss Harvesting Calculator. If the saving is real, confirm each replacement with the Wash Sale Loss Calculator and trade by December 31, 2026.
If most of the loss would carry forward, map it with the Capital Loss Carryover Calculator. If your gains are in the 0 percent band, check the room with the Qualified Dividends and Capital Gains Tax Calculator.
Related Tools and Guides
- IRC §1211 (Cornell LII) - $3,000 ($1,500 MFS) limit on capital losses against other income.
- IRC §1212 (Cornell LII) - indefinite carryover for individuals with short-term and long-term character.
- IRC §1091 (Cornell LII) - wash sales: 30 days before or after, basis adjustment.
- IRC §1411 (Cornell LII) - 3.8 percent net investment income tax and its thresholds.
- Treas. Reg. §1.1411-4 (eCFR) - net gain limitation and Example 1.
- IRC §1014 (Cornell LII) - basis of property acquired from a decedent.
- IRS Publication 550, Investment Income and Expenses - trade date for year-end sales, wash sales, IRA and spouse purchases.
- Instructions for Schedule D (Form 1040) - netting and the Capital Loss Carryover Worksheet.
- Instructions for Form 1040 - Qualified Dividends and Capital Gain Tax Worksheet.
- IRS Rev. Proc. 2025-32 - 2026 rate schedules (section 4.01), 0 and 15 percent maximum amounts (section 4.03), standard deduction (section 4.14).