Capital Gains Tax Calculator on Sale of Property
Sale price, basis, and exclusion in — federal capital gains tax owed out, including NIIT if applicable.
Estimate your federal capital gains tax on a property sale based on purchase price, improvements, selling costs, holding period, filing status, and property type — including primary residence exclusions, depreciation recapture, and the 3.8% Net Investment Income Tax.
Most homeowners who sell their primary residence owe nothing in federal capital gains tax — the Section 121 exclusion shelters up to $250,000 in profit for single filers and $500,000 for married couples filing jointly. But “profit” means something specific to the IRS: sale price minus selling costs, minus your adjusted cost basis. Getting those three numbers right determines whether you have a taxable gain at all. The capital gains tax calculator on sale of property above runs the full sequence — basis, exclusion, taxable gain, and federal tax owed — for both primary residences and investment properties.
How Capital Gains on Property Are Calculated
Four numbers drive every property capital gains calculation:
- Net sale proceeds: Sale price minus selling costs. Commissions, title fees, escrow, transfer taxes, and legal fees all reduce your proceeds — and therefore your taxable gain.
- Adjusted cost basis: Purchase price plus qualifying capital improvements plus buying closing costs. Adding a room, replacing a roof, or finishing a basement all increase your basis. Routine repairs don’t.
- Gross gain: Net proceeds minus adjusted basis.
- Taxable gain: Gross gain minus any applicable exclusion. For primary residences meeting the 2-of-5 year rule, this is where most sellers end up at zero.
Example: Bought for $350,000, added $40,000 in improvements, selling for $720,000 with $43,200 in commissions and fees. Adjusted basis: $390,000. Net proceeds: $676,800. Gross gain: $286,800. After the $250,000 single-filer exclusion, taxable gain: $36,800.
2026 Capital Gains Tax Rates on Property
| Filing Status | 0% Rate (Income Up To) | 15% Rate | 20% Rate (Income Above) |
|---|---|---|---|
| Single | $49,450 | $49,451–$545,500 | $545,501+ |
| Married Filing Jointly | $98,900 | $98,901–$613,700 | $613,701+ |
| Head of Household | $66,200 | $66,201–$578,100 | $578,101+ |
The 3.8% Net Investment Income Tax (NIIT) applies to the lesser of your net investment income or the amount by which your MAGI exceeds $200,000 (single) or $250,000 (married). On a taxable gain of $100,000 with MAGI above the threshold, that’s an additional $3,800 on top of the 15% or 20% capital gains rate.
The $250,000 / $500,000 Primary Residence Exclusion
To claim the Section 121 exclusion, you must have owned the home and used it as your primary residence for at least 2 of the 5 years immediately before the sale. The two years don’t need to be consecutive. A partial exclusion is available if you fail the full 2-year test due to a job change, health reason, or other IRS-qualified unforeseen circumstance — the exclusion is prorated based on how many qualifying days you accumulated.
Three situations that disqualify or reduce the exclusion:
- You claimed the exclusion on another home sale within the prior 2 years.
- The property had rental or business use after 2008 — gains attributable to that non-qualified use period are not excludable.
- You’re selling a home you inherited and never lived in — the exclusion requires personal use, not just ownership.
What Counts as an Adjusted Cost Basis
Most sellers undercount their basis — and therefore overestimate their taxable gain. Every dollar of legitimate basis increase reduces what you owe dollar-for-dollar. What qualifies:
| Increases Basis | Does NOT Increase Basis |
|---|---|
| Purchase price | Routine repairs and maintenance |
| Buying closing costs (title, legal, recording fees) | Prepaid property taxes or interest |
| Room additions and structural improvements | HOA fees |
| New roof, HVAC system, new windows | Appliance replacements (generally) |
| Finished basement or attic conversion | Painting and carpet cleaning |
| Landscaping that permanently improves the property | Home insurance premiums |
Capital Gains on Investment Property and Rental Sales
Investment properties don’t qualify for the Section 121 exclusion. The full gain is taxable at long-term capital gains rates if held over 12 months. The additional complication for rental properties is depreciation recapture: the IRS requires you to “recapture” all depreciation deductions you took (or could have taken) during ownership, taxed at a maximum rate of 25%. This applies even if you never actually claimed the depreciation on your returns.
On a rental property purchased for $300,000 and depreciated $50,000 over 15 years, selling for $500,000: the $50,000 of recaptured depreciation is taxed at up to 25% ($12,500), and the remaining $150,000 gain is taxed at 15% or 20% depending on income. Total federal tax on this scenario for a married filer in the 15% bracket: approximately $35,000 — before state tax.
1031 Exchange: How to Defer All Capital Gains on Investment Property
A Section 1031 like-kind exchange lets you sell one investment property and roll the proceeds into another without triggering capital gains tax — indefinitely, across as many exchanges as you complete. The rules: you must identify a replacement property within 45 days of the sale and close on it within 180 days. The replacement must be equal or greater in value, and all proceeds must pass through a qualified intermediary — you can’t touch the money. Depreciation recapture is also deferred under a 1031, not just the capital gain. For investors holding highly appreciated properties, this is the most powerful tax deferral tool available in the tax code.
-
Usually no, if it's your primary residence. Single filers can exclude up to $250,000 in profit; married couples filing jointly can exclude up to $500,000. To qualify, you must have owned the home and lived in it as your primary residence for at least 2 of the 5 years before the sale. Most homeowners who've owned their home for several years owe zero federal capital gains tax after the exclusion is applied.
-
Long-term gains (property held over 1 year) are taxed at 0%, 15%, or 20% federally. For 2026: single filers up to $49,450 pay 0%; $49,451–$545,500 pays 15%; above $545,500 pays 20%. Married filers get broader brackets — 0% up to $98,900. High-income sellers also owe the 3.8% Net Investment Income Tax on gains above $200,000 (single) or $250,000 (married) MAGI, on top of the capital gains rate.
-
Capital improvements increase your adjusted cost basis, reducing your taxable gain dollar-for-dollar. A $40,000 kitchen addition on a property bought for $300,000 raises your basis to $340,000. If you sell for $600,000, your gain is $260,000 instead of $300,000 — saving a 15% taxpayer $6,000 in federal tax. Qualifying improvements include room additions, new roofs, HVAC systems, and finished basements. Routine repairs don't qualify.
-
When you sell a rental property, all depreciation you claimed (or could have claimed) is taxed at a maximum of 25% — called Section 1250 unrecaptured gain. It's separate from the capital gains tax on the remaining profit. On $50,000 of claimed depreciation, that's up to $12,500 in recapture tax regardless of your income bracket, before the remaining gain is taxed at long-term capital gains rates.