Long Term Capital Gains Calculator

Calculate your 2026 federal tax on a long-term capital gain (assets held more than a year) using the preferential 0%/15%/20% federal rates.

Results

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

Built specifically for gains on assets held more than a year, which qualify for the federal government's preferential long-term capital gains rates — 0%, 15%, or 20% — rather than ordinary income tax rates. Enter your other taxable income, the size of the long-term gain, and your filing status to see which rate (or mix of rates) applies and your total tax.

Because the gain stacks on top of your other income, it can span more than one rate — for example, part of a large gain taxed at 15% and the rest at 20% once your total income crosses the higher threshold. This calculator handles that automatically.

Example

Example: a Married Filing Jointly couple with $180,000 in other income and a $50,000 long-term gain has the entire gain fall in the 15% bracket, for about $7,500 in federal capital gains tax.

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

Can part of my long-term gain be taxed at 0%?

Yes — if your taxable income (including the gain) stays under the 0% bracket threshold ($49,450 Single, $98,900 Married Filing Jointly for 2026), that portion of the gain is federally tax-free. This is common for lower-income years or retirees managing withdrawals carefully.

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