Skip to main content
capitalgaintaxcalc.com

Real Estate Capital Gains Tax Calculator 2025

Estimate tax on primary residence sales (Section 121 exclusion) and investment property sales, including depreciation recapture concepts used in our engine.

Capital Gains Calculator

Federal · NIIT · All 50 states

2026 ratesIRS verified

Follow the three steps, save the sale, then calculate. Required fields are marked with *.

Your tax profile

These apply to every sale in this estimate.

What you sold

Prices and quantity for this lot. Give it a name if you will add more than one sale.

Asset type

When you bought and sold

The IRS uses these dates to decide short-term vs long-term rates.

Next: Save this sale to the order log, then click Calculate now. Tax results do not update until you calculate.

Order log

Sales included in this tax estimate.

Please fill in the details to see your results. Follow the three steps on the left, then save a sale here.

Home sale vs investment property

Real estate capital gains depend on whether the property is your primary residence or an investment. For a qualifying primary residence, Section 121 may exclude up to $250,000 of gain ($500,000 if married filing jointly) if ownership and use tests are met — generally living in the home as your main residence for at least two of the five years before the sale.

Investment and rental property do not get the same exclusion. Previously claimed depreciation may be taxed as unrecaptured Section 1250 gain at a maximum 25% federal rate, with remaining appreciation often taxed at standard long-term rates if the holding period qualifies. Selling expenses and capital improvements adjust basis and can reduce taxable gain.

State treatment varies widely. Some states piggyback on federal concepts; others have their own conformity rules for exclusions and recapture. Always model both federal and state layers, then confirm with a real-estate-aware CPA for large sales, 1031 exchanges, or installment sales.

Use the calculator with the real-estate asset tab selected, enter proceeds and basis, and review methodology for how our estimate approximates these rules. This is not a substitute for Form 4797 / Schedule D preparation.

Also see

Other calculators, how we model the numbers, and IRS Topic 409.

FAQ

Frequently asked questions

What is the Section 121 exclusion?

If you owned and used a home as your primary residence for at least 2 of the last 5 years, you may exclude up to $250,000 of gain ($500,000 if married filing jointly), subject to IRS rules and exceptions.

What is depreciation recapture?

When investment real estate is sold, previously claimed depreciation may be taxed as unrecaptured Section 1250 gain at a maximum 25% federal rate — often higher than standard LTCG rates.

Does a 1031 exchange defer tax?

A like-kind exchange under Section 1031 may defer gain on qualifying investment or business real property when strict timing and identification rules are met. Primary residences generally do not qualify.

Are closing costs deductible from gain?

Many selling costs (for example commissions and certain closing fees) reduce amount realised. Buyer closing costs may increase basis. Exact treatment depends on the cost type — keep settlement statements.

Guides