Tax-Loss Harvesting & Capital Gains Calculator (2026)
Full Schedule D netting — short vs long term, the $3,000 loss limit, character-preserving carryforward, NIIT, and your 0% bracket headroom.
Enter this year's gains, losses, and carryovers and the calculator runs the exact Schedule D sequence: same-character netting, cross-character offset, the $3,000 ordinary-income deduction ($1,500 married filing separately), and the character-split carryforward to next year — then prices it all with 2026 federal brackets, the long-term capital-gains stack, and the 3.8% net investment income tax.
Netting summary
Federal tax breakdown
| Component | Amount | Notes |
|---|---|---|
| Federal ordinary income tax | — | |
| Federal long-term capital gains tax | — | |
| Net investment income tax (3.8%) | — | |
| State tax estimate PRO | 🔒 PRO | Unlock to see the state layer for your selection |
| Total | — |
0% bracket headroom
How much more long-term gain fits at a 0% federal rate this year, on top of everything entered above.
NIIT threshold check
The 3.8% net investment income tax starts at a statutory MAGI threshold that never inflates.
Model your whole retirement, not just this year
This page prices one tax year. The full QuantCalc planner runs a free 10,000-path Monte Carlo over your entire retirement — withdrawals, taxes, Roth conversions, and sequence risk together.
Model your whole retirement, not just this year — free 10,000-path Monte Carlo →Frequently Asked Questions
How does tax-loss harvesting work in 2026?
Tax-loss harvesting means selling investments that have fallen below your cost basis to realize a capital loss on purpose. On Schedule D, losses first offset gains of the same character — short-term against short-term, long-term against long-term — and any remainder crosses over to offset the other character. Up to $3,000 of a leftover net loss ($1,500 married filing separately) then reduces ordinary income, and everything beyond that carries forward to future years. Because short-term gains are taxed at ordinary rates up to 37% while long-term gains top out at 20% plus the 3.8% net investment income tax, a harvested loss is worth the most when it lands on short-term gains or ordinary income.
What is the $3,000 capital loss limit ($1,500 married filing separately)?
After all gains and losses are netted, a net capital loss can offset at most $3,000 of ordinary income per year — $1,500 if married filing separately (IRC §1211(b)). The limit is per return, not per person, and it is not indexed to inflation. Losses above the limit are not wasted: they carry forward indefinitely, and under the IRS carryover worksheet a loss is only treated as used up to the extent your taxable income was positive before the capital-loss deduction.
What is the wash-sale rule (61-day window, basis adjustment)?
If you sell a security at a loss and buy the same or a substantially identical security within 30 days before or 30 days after the sale — a 61-day window centered on the sale date — the loss is disallowed under IRC §1091. For a repurchase in a taxable account the disallowed loss is added to the basis of the replacement shares and the original holding period tacks on, so the loss is deferred rather than destroyed. A repurchase inside an IRA permanently disallows that portion of the loss with no basis adjustment (Rev. Rul. 2008-5). The rule only applies to losses — winners can be repurchased immediately.
Do losses carry forward and do they keep their short/long-term character?
Yes. Unused capital losses carry forward indefinitely for individuals and retain their character under IRC §1212(b): a short-term carryover enters next year's short-term netting and a long-term carryover enters the long-term netting. Character matters because short-term gains are taxed at ordinary rates, so a short-term carryover that absorbs short-term gains saves more per dollar than a long-term one. When the $3,000 ordinary-income offset is consumed, short-term loss is treated as used before long-term.
What is the 0% capital-gains bracket and who can use it?
For 2026, long-term capital gains are taxed at 0% federal to the extent taxable income stays under $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household). Because the standard deduction ($16,100 single / $32,200 joint) comes off first, a married couple with no other income could realize roughly $131,100 of long-term gains at a 0% federal rate. Low-income years — early retirement, sabbaticals, between jobs — are the classic window, and gain harvesting in those years resets basis upward for free. Note that 0%-rate gains still count toward state tax, the net investment income tax threshold, and ACA/IRMAA income tests.
Does harvesting always save money?
No. If the gains a harvest offsets would have been taxed at 0% anyway, the harvest saves nothing today while still lowering your cost basis — so you may simply owe more tax when you eventually sell. Whether a harvest pays off depends on the rate you save now versus the rate you expect on the deferred gain later, and on how long the deferral lasts. The harvest analyzer on this page computes the net present value: tax saved now, minus the discounted future cost of the reduced basis, with a break-even future rate — and treats the future cost as zero if the position will get a step-up in basis or be donated.