Capital Gains Tax Calculator
Estimate the federal tax on your short-term and long-term capital gains for 2026 or 2027, stacked on top of your other income.
How capital gains tax is calculated
Your long-term gains are stacked on top of your other taxable income. The part that falls under the 0% limit is untaxed, the next slice is taxed at 15%, and anything above the 15% limit at 20%. Short-term gains are added to ordinary income and taxed at your regular bracket rates. The 3.8% net investment income tax is added for higher incomes.
Learn how brackets work in marginal vs. effective tax rate and see capital gains tax rates for 2026 and 2027. Gains inside a Roth or traditional IRA are not taxed until you withdraw, which is why retirement tax planning matters. To estimate your ordinary tax, use the taxable income calculator.
Common questions
How are long-term capital gains taxed? Gains on assets held more than a year are taxed at 0%, 15% or 20% depending on your taxable income. For 2026 the 0% rate applies up to $49,450 of taxable income for single filers and $98,900 for married couples filing jointly.
What is the difference between short-term and long-term gains? Short-term gains come from assets held one year or less and are taxed as ordinary income. Long-term gains come from assets held more than one year and get the lower rates.
What is the 3.8% net investment income tax? It applies to the lesser of your net investment income or the amount your modified AGI exceeds $200,000 (single or head of household) or $250,000 (married filing jointly). These thresholds are not adjusted for inflation.
Does this cover selling a home or collectibles? No. It uses the standard 0%, 15% and 20% rates. Collectibles can be taxed at up to 28%, depreciation on real estate at up to 25%, and a home sale may qualify for an exclusion.
Does it include state tax? No. Most states also tax capital gains, usually as ordinary income.
This calculator gives estimates for education only and is not tax advice. Rates and thresholds are from IRS Revenue Procedures 2025-32 (2026) and 2026-35 (2027); the net investment income tax uses statutory thresholds. It ignores state tax, collectibles, depreciation recapture, home-sale exclusions, losses, and the alternative minimum tax. Calculations run in your browser; nothing you enter is sent or stored.