Real Estate Capital Gains Calculator

Estimate 2026 federal capital gains tax on a real estate sale, including the Section 121 primary residence exclusion (up to $250,000/$500,000 tax-free) where it applies.

Results

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

Enter your other taxable income, the total gain on the property (sale price minus your adjusted cost basis, including improvements), whether you held it long-term or short-term, and whether it qualifies for the Section 121 primary residence exclusion (you owned and lived in it as your main home for at least 2 of the last 5 years). If it qualifies, up to $250,000 of gain ($500,000 for Married Filing Jointly) is excluded from federal tax entirely before the remaining gain is taxed.

This is the single biggest tax break most homeowners will ever use, so getting it right matters — this calculator applies it automatically when you select Yes.

Example

Example: a Married Filing Jointly couple sells their primary residence for a $420,000 gain after owning and living in it for 5 years. The full $500,000 MFJ exclusion covers the entire gain, leaving $0 in taxable gain and $0 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.

The Section 121 exclusion ($250,000 Single/Married Filing Separately/Head of Household, $500,000 Married Filing Jointly) requires owning AND living in the property as your main home for at least 2 of the 5 years before the sale, and generally can't be used more than once every 2 years — this calculator assumes you've confirmed you're eligible when you select Yes, and doesn't check the ownership/use tests itself.

Frequently Asked Questions

How much of my home sale gain is tax-free?

Up to $250,000 for a Single, Married Filing Separately, or Head of Household filer, or $500,000 for Married Filing Jointly, as long as you owned and lived in the home as your primary residence for at least 2 of the 5 years before the sale.

Does this exclusion apply to a rental or investment property?

No — the Section 121 exclusion is only for a primary residence. Use the Rental Property Capital Gains Calculator on this site instead for investment or rental property, which has its own rules around depreciation recapture rather than a home-sale exclusion.

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