What it computes
Long-term capital gains and qualified dividends are taxed at 0%, 15% or 20%, and they stack on top of your ordinary taxable income[3]. For 2026 the 0% rate covers taxable income up to $98,900 for a joint return ($49,450 single)[2], so the room left for tax-free gains is that line minus your taxable ordinary income. This calculator finds that room to the dollar with the simulator’s own tax function, including the age-65 deductions and the temporary senior deduction, which phases out as income (gains included) rises[7].
Worked example
A married couple, both 67, has $60,000 of pension and IRA income. Their deductions total $47,500, leaving $12,500 of taxable ordinary income, so $86,400 of long-term gains fit in the 0% band. A $50,000 gain costs them $0 in federal tax.
A $120,000 gain is different: it costs $5,940 (5% of the gain). $5,580 is 15% tax on the part above the 0% band, and $360 is extra tax on ordinary income, because the larger gain raises their income past the point where the senior deduction starts to shrink.
What it ignores
- State income tax. Many states tax capital gains as ordinary income.
- How a gain makes more Social Security taxable or raises MAGI for IRMAA and ACA credits; the marginal-rate map shows those together.
- Short-term gains (taxed as ordinary income), collectibles and unrecaptured depreciation.
- Capital-loss carryovers and the wash-sale rule for losses (gains can be rebought at once).
- Itemized deductions; the standard deduction is assumed.
The rule behind it
The full explanation, with sources, is in The 0% capital-gains bracket is real: LTCG stacking explained.
See it over a full plan
If you already have a saved plan, the link only takes you to the right panel; your plan is not changed.
This tool shows how the rules work. It is not financial, tax or investment advice. See the disclaimer.
Sources
- IRS Topic 409: Capital gains and losses
- IRS Rev. Proc. 2025-32: 2026 inflation adjustments (§4.03 maximum zero rate amounts) ↩
- 26 U.S. Code §1(h): Maximum capital gains rate ↩
- Kitces: Mechanics of the 0% long-term capital gains rate
- Kitces: The tax impact of the long-term capital gains bump zone
- Investopedia: Capital gains tax 101
- 26 U.S. Code §151: the temporary senior deduction, §151(d)(5)(C) ↩