Capital Gains Tax Calculator
Estimate the federal tax on selling stock, a home or other assets in 2026 — long-term gains at 0%, 15% or 20%, short-term gains at your income-tax rate, plus the 3.8% NIIT.
2026 capital gains thresholds and brackets from the IRS Last checked How we calculate
How the capital gains tax calculator works
For long-term gains it stacks the gain on top of your other taxable income and taxes each slice at the 2026 0%, 15% and 20% rates for your filing status. Short-term gains are taxed as ordinary income using the 2026 brackets. It then adds the 3.8% net investment income tax on the portion above $200,000 (single) or $250,000 (joint).
Worked example: with taxable income before the gain of $80,000 and capital gain of $20,000, the capital gains tax calculator shows estimated federal tax on the gain of $3,000.
- Capital gains tax
- $3,000
- Net investment income tax
- $0
- Effective rate on gain
- 15.0%
- You keep
- $17,000
| Capital gain | Estimated federal tax on the gain |
|---|---|
| $5,000 | $750 |
| $20,000 | $3,000 |
| $50,000 | $7,500 |
| $100,000 | $15,000 |
| $250,000 | $42,440 |
The formula
Long-term tax = slice under the 0% threshold × 0 + slice up to the 15% ceiling × 15% + remainder × 20%. Short-term tax = tax(income + gain) − tax(income). NIIT = 3.8% × min(gain, income + gain − threshold).
Results are estimates for educational purposes and are not financial advice. Confirm exact figures with your lender, plan administrator or advisor.
Questions about the capital gains tax calculator
What are the 2026 capital gains tax rates?
Long-term gains are taxed at 0% up to $49,450 of taxable income for single filers ($98,900 married filing jointly), 15% up to $545,500 ($613,700), and 20% above that.
How are short-term capital gains taxed?
Assets held one year or less are taxed as ordinary income at your regular bracket, which can be as high as 37%. Holding past one year qualifies for the lower long-term rates.
What is the 3.8% net investment income tax?
An extra 3.8% applies to investment income when modified AGI exceeds $200,000 (single) or $250,000 (married filing jointly). These thresholds are not indexed for inflation.
Is the Capital Gains Tax Calculator free to use?
Yes. Every calculator on FinCalculators is completely free, with no sign-up, login or paywall. You can run as many scenarios as you like.
- 2026 Capital Gains Tax Rates — Long-term 0/15/20% thresholds, short-term rules, NIIT, home-sale exclusion and collectibles.
- 2026 & 2025 Federal Income Tax Brackets — All seven rates and thresholds by filing status, 2026 and 2025, plus capital-gains breakpoints.