Capital Gains Tax Calculator
Calculate capital gains tax on real estate property sales. Includes primary residence exclusion, cost basis adjustments, short vs long-term rates, and 1031 exchange information. Get accurate 2026 tax estimates.
Calculate capital gains tax on real estate property sales. Includes primary residence exclusion, cost basis adjustments, short vs long-term rates, and 1031 exchange information. Get accurate 2026 tax estimates.
| Tax Rate | Single | Married Filing Jointly | Married Filing Separately | Head of Household |
|---|---|---|---|---|
| 0% | $0 - $47,025 | $0 - $94,050 | $0 - $47,025 | $0 - $63,000 |
| 15% | $47,026 - $518,900 | $94,051 - $583,750 | $47,026 - $291,850 | $63,001 - $551,350 |
| 20% | Over $518,900 | Over $583,750 | Over $291,850 | Over $551,350 |
Note: Short-term capital gains (held less than 1 year) are taxed as ordinary income at your marginal tax rate.
Exclude up to $250,000 ($500,000 married) of capital gains if you owned and lived in the home for 2 of the last 5 years.
Properties held over 1 year qualify for favorable long-term rates (0%, 15%, 20%). Under 1 year is taxed as ordinary income.
Defer capital gains tax on investment properties by reinvesting proceeds into a like-kind replacement property within 180 days.
Capital gains tax on real estate is calculated by determining your gain and applying the appropriate tax rate:
You bought a home for $300,000, made $30,000 in improvements, and sold it for $500,000 after 5 years. Your adjusted basis is $330,000. Your gain is $170,000 ($500,000 - $330,000). As a primary residence, you exclude $250,000 (single), resulting in $0 taxable gain and $0 tax owed!
The holding period significantly impacts your tax rate:
For example, if you're in the 24% tax bracket, holding just one day past the one-year mark could reduce your tax rate from 24% to 15%, saving thousands of dollars.
The Section 121 exclusion allows significant tax savings on your primary home:
If you don't meet the 2-year requirement due to job change, health reasons, or unforeseen circumstances, you may qualify for a partial exclusion. The exclusion is prorated based on the time you lived in the home.
Smart strategies to minimize your tax burden:
A 1031 exchange (named after Section 1031 of the tax code) allows you to defer capital gains tax on investment properties:
You sell a rental property for $500,000 with a $200,000 gain. Instead of paying $40,000+ in taxes, you use a 1031 exchange to buy a $600,000 rental property. The tax is deferred until you eventually sell without doing another exchange.
Your adjusted cost basis reduces your taxable gain. Include these costs:
Do NOT include: Routine repairs and maintenance, homeowners insurance, mortgage interest, property taxes, depreciation recapture (investment property).
This calculator shows federal tax only. Many states also tax capital gains as regular income. Check your state's tax laws for the complete picture. States like California, New York, and Oregon have significant state capital gains taxes.
Capital gains tax rates depend on your taxable income and how long you held the asset. Assets held over 12 months qualify for lower long-term rates:
| Tax Rate | Single Filers | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | Up to $48,350 | Up to $96,700 | Up to $64,750 |
| 15% | $48,351×$533,400 | $96,701×$600,050 | $64,751×$566,700 |
| 20% | Over $533,400 | Over $600,050 | Over $566,700 |
Short-term gains are taxed as ordinary income at your marginal income tax rate (10%×37%). This can be 2×3× higher than long-term rates for high earners × making holding for 12+ months one of the most powerful tax strategies available.
Capital gains tax is calculated by subtracting your adjusted cost basis (purchase price plus improvements) from the sale price to determine your gain. After subtracting selling costs and any applicable exclusions, the remaining taxable gain is taxed at either short-term rates (ordinary income) if held less than 1 year, or long-term rates (0%, 15%, or 20%) if held longer than 1 year. Your specific rate depends on your income level and filing status.
The primary residence exclusion (Section 121) allows you to exclude up to $250,000 ($500,000 for married filing jointly) of capital gains from the sale of your primary home. To qualify, you must have owned and lived in the home for at least 2 of the 5 years before the sale. The 2 years don't need to be consecutive, and you can only use this exclusion once every 2 years. This is one of the most valuable tax benefits for homeowners.
A 1031 exchange (like-kind exchange) allows you to defer paying capital gains tax when you sell an investment property by reinvesting the proceeds into another investment property. You must identify the replacement property within 45 days and complete the purchase within 180 days of selling. The properties must be held for investment or business purposes (not personal use), and you must use a qualified intermediary to handle the funds. This strategy allows investors to defer taxes indefinitely by continuing to exchange properties.
Short-term capital gains apply to properties held for 1 year or less and are taxed as ordinary income at your regular tax rate (10% to 37%). Long-term capital gains apply to properties held for more than 1 year and are taxed at preferential rates of 0%, 15%, or 20% depending on your income. For most people, the long-term rate is 15%, which is significantly lower than ordinary income rates. This is why holding real estate for at least one year before selling can result in substantial tax savings.
Capital improvements that add value, prolong the property's life, or adapt it to new uses increase your cost basis. This includes: room additions, new roof, HVAC systems, kitchen/bathroom remodels, new flooring, deck/patio construction, landscaping, new windows, insulation, and electrical/plumbing upgrades. Regular maintenance and repairs (painting, fixing leaks, replacing broken fixtures) do NOT increase basis. Keep all receipts and documentation for improvements to reduce your taxable gain when you sell.
For primary residences: Simply buying another home does NOT defer capital gains tax. However, if you qualify for the primary residence exclusion ($250K/$500K), your gain may be completely tax-free regardless of whether you buy another home. For investment properties: You can defer tax through a 1031 exchange by following specific rules and timelines. The old "rollover" rule that allowed deferring primary residence gains was eliminated in 1997 and replaced with the current exclusion.
Yes, through several methods: (1) Primary residence exclusion - gains under $250K/$500K are tax-free if you meet the 2-year requirement; (2) Hold until death - heirs receive a stepped-up basis and avoid all capital gains tax; (3) 1031 exchanges - defer tax indefinitely by continuing to exchange investment properties; (4) Opportunity Zones - invest gains in qualified zones for potential tax elimination after 10 years; (5) Tax-loss harvesting - offset gains with losses from other investments. Each strategy has specific requirements and limitations.
Inherited property receives a "stepped-up basis" equal to the fair market value at the time of the previous owner's death. This means you only pay capital gains tax on appreciation that occurs after you inherit it, not on any gains during the original owner's lifetime. For example, if someone bought a house for $100,000 and it was worth $400,000 when they passed away, your basis becomes $400,000. If you sell it for $420,000, you only pay tax on the $20,000 gain, not $320,000. This is one of the most powerful tax benefits in real estate.