The calculator
You can realize about $90,750 of long-term gains this year without adding federal income tax.
2026 long-term capital gains rates
| Filing status | 0% up to | 15% up to | 20% above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly | $98,900 | $613,700 | $613,700 |
| Head of household | $66,200 | $579,600 | $579,600 |
How gains stack on top of your income
Long-term gains and qualified dividends sit on top of your ordinary taxable income. The part that fits under the 0% line is taxed at 0%, and the rest at 15%. A married couple with $40,000 of ordinary taxable income after deductions has $98,900 − $40,000 = $58,900 of room. Gains also raise your adjusted gross income, so deductions that phase out with income, like the senior deduction, can shrink as you add them; the calculator accounts for that.
Tax-gain harvesting
In a year with room at 0%, you can sell investments that have gained, pay no federal tax, and buy them straight back. Your cost basis resets higher, so the gain you just realized is never taxed later. The wash-sale rule only applies to losses, so buying back right away is allowed. Early retirees before Social Security and RMDs, and anyone with a low-income year, have the most room.
The Social Security catch
Gains count in the combined income that decides how much of your Social Security is taxable. Inside that range, each dollar of gain can make 50 or 85 cents of benefits taxable at your ordinary rate, so a gain taxed at 0% can still raise your tax bill. The calculator stops the room at the point where federal tax would start to rise, which can be well before the 0% line.
State tax and Medicare premiums
Most states tax capital gains as ordinary income, so “0%” is federal only. Gains also raise the modified AGI that sets Medicare IRMAA two years later; the IRMAA calculator shows the thresholds. The 3.8% net investment income tax starts at $200,000 single and $250,000 joint, above most 0% budgets.
Assumptions and sources
One 2026 return under current law, with the standard deduction, no alternative minimum tax and no local tax. The same tax engine runs inside Killion’s planner when you turn tax on in a paid plan. Estimates for planning, not tax advice. Short-term gains are taxed as ordinary income and are not covered.
Figures checked on against IRS Rev. Proc. 2025-32, 2026 inflation adjustments (PDF), IRS Publication 915, Social Security and equivalent railroad retirement benefits and IRS, questions and answers on the net investment income tax.
Embed this calculator
You can put this calculator on your own blog, newsletter page or client site for free. Paste the code below where you want it to appear. It runs in your reader's browser and needs no account, no email and no API key. Please keep the credit line under it.
<iframe src="https://killionlabs.com/embed/capital-gains-0-percent/" title="0% capital gains calculator" width="100%" height="740" style="border:0;max-width:760px" loading="lazy"></iframe>
<p><a href="https://killionlabs.com/calculators/capital-gains-0-percent/">0% capital gains calculator</a> by Killion Labs</p>