Capital Gains Tax Calculator

Estimate your 2026 US federal capital gains tax on an investment sale — long-term or short-term — including the Net Investment Income Tax where it…

Results

Enter your details and click Calculate to see your results.
About This Calculator

Enter your other annual taxable income, the size of the capital gain, whether you held the asset long-term (more than a year) or short-term (a year or less), and your filing status. Long-term gains get their own preferential federal rates (0%, 15%, or 20%), while short-term gains are taxed as ordinary income at your regular bracket rates — both stack on top of your other income rather than starting from $0.

This calculator also estimates the 3.8% Net Investment Income Tax, which can apply on top of the capital gains tax itself once your income crosses a threshold, so you get one combined federal tax figure for the sale.

Example

Example: a Single filer with $90,000 in other income sells a long-term investment for a $30,000 gain. That gain stacks on top of their other income and lands entirely in the 15% long-term bracket, producing about $4,500 in capital gains tax with no Net Investment Income Tax owed (their income is below the $200,000 threshold).

Assumptions

This calculator uses 2026 IRS federal capital gains brackets, ordinary income brackets, and the standard deduction — it's federal-only (no state capital gains tax, which many states do levy on top of this) and doesn't account for itemized deductions or every situation (wash sales, Qualified Opportunity Zone deferrals, 1031 exchanges, and similar are not modeled). The 3.8% Net Investment Income Tax is estimated using your other income plus the gain as a stand-in for Modified AGI, which is close but not identical to the IRS's exact MAGI definition.

This tool provides general estimates for informational purposes only and isn't tax, legal, or financial advice. For guidance specific to your situation, consult a qualified tax professional or the IRS.

Frequently Asked Questions

What's the difference between long-term and short-term capital gains?

Long-term means you held the asset for more than one year before selling — it gets preferential federal rates of 0%, 15%, or 20%. Short-term means one year or less, and it's taxed as ordinary income at your regular bracket rate, which is usually higher.

Does this include state capital gains tax?

No — this is a federal-only calculator. Most states also tax capital gains (often as ordinary income), so your total tax bill including state tax will typically be higher than this federal-only estimate.

What is the Net Investment Income Tax?

An additional 3.8% federal tax on investment income (including capital gains) for higher-income filers — above $200,000 Modified AGI for Single/Head of Household, $250,000 for Married Filing Jointly, or $125,000 for Married Filing Separately. This calculator estimates it automatically when it applies.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile