Key Takeaways
- Expert insights on capital gains tax on real estate: how to minimize it
- Actionable strategies you can implement today
- Real examples and practical advice
Capital Gains Tax on Real Estate: How to Minimize It
Selling real estate can trigger a substantial tax bill through capital gains tax. Whether you're selling your primary residence, an investment property, or a vacation home, understanding how capital gains tax works—and how to minimize it—can save you tens or hundreds of thousands of dollars.
This guide covers everything you need to know about capital gains tax on real estate, including rates, exemptions, and proven strategies to reduce or eliminate your tax liability.
What Is Capital Gains Tax?
Capital gains tax is the tax you pay on the profit (gain) from selling an asset. For real estate, the gain is the difference between your selling price and your adjusted cost basis.
Basic formula: Capital Gain = Sale Price - Adjusted Basis - Selling Costs
Example:
- Sale price: $500,000
- Original purchase price: $300,000
- Improvements over the years: $50,000
- Selling costs (commission, etc.): $30,000
- Adjusted basis: $300,000 + $50,000 = $350,000
- Capital gain: $500,000 - $350,000 - $30,000 = $120,000
You'll owe capital gains tax on the $120,000 profit.
Short-Term vs. Long-Term Capital Gains
The tax rate depends on how long you owned the property.
Short-Term Capital Gains (Owned Less Than 1 Year)
If you sell property you've owned for one year or less, the gain is taxed as ordinary income at your regular income tax rate.
2026 federal tax brackets (single filer):
- 10% on income up to $11,600
- 12% on $11,601-$47,150
- 22% on $47,151-$100,525
- 24% on $100,526-$191,950
- 32% on $191,951-$243,725
- 35% on $243,726-$609,350
- 37% on $609,351+
Example: If you're in the 24% bracket and sell a property after 9 months with a $100,000 gain, you'll pay $24,000 in federal tax (plus state taxes).
Short-term gains are expensive. Avoid them when possible by holding property for at least one year.
Long-Term Capital Gains (Owned More Than 1 Year)
Property owned for more than one year qualifies for preferential long-term capital gains rates:
2026 long-term capital gains rates (federal):
- 0% for taxable income up to $47,025 (single) / $94,050 (married)
- 15% for income $47,026-$518,900 (single) / $94,051-$583,750 (married)
- 20% for income over $518,900 (single) / $583,750 (married)
Plus: Net Investment Income Tax (NIIT) High earners pay an additional 3.8% Medicare surtax on investment income if modified adjusted gross income exceeds:
- $200,000 (single)
- $250,000 (married filing jointly)
Effective top rate: 20% + 3.8% = 23.8% federal for high earners
State capital gains taxes vary:
- California: Up to 13.3%
- New York: Up to 10.9%
- Texas, Florida, Nevada: 0% (no state income tax)
Total possible rate: Up to 37.1% (federal + state) in high-tax states like California
Calculating Your Adjusted Basis
Your basis determines how much gain you have. The higher your basis, the lower your taxable gain.
Starting Basis
If you purchased the property:
- Purchase price
- Closing costs (title insurance, recording fees, legal fees, survey)
- Transfer taxes and recording fees
If you inherited the property:
- Fair market value on the date of the owner's death ("stepped-up basis")
- Inheriting property gives you a basis reset—eliminating all prior gains
If you received it as a gift:
- The donor's basis carries over (no step-up)
Adjustments to Basis
Increases to basis (add):
- Capital improvements (new roof, addition, kitchen remodel, new HVAC)
- Assessments for local improvements (sewer lines, sidewalks)
- Legal fees to defend title
Decreases to basis (subtract):
- Depreciation claimed (for rental property)
- Insurance reimbursements for casualty losses
- Deducted casualty losses not covered by insurance
Example calculation:
- Purchase price: $250,000
- Closing costs: $5,000
- New roof: $15,000
- Kitchen remodel: $30,000
- Depreciation claimed (rental): $40,000
- Adjusted basis: $250,000 + $5,000 + $15,000 + $30,000 - $40,000 = $260,000
Selling Costs You Can Deduct
These costs reduce your gain:
- Real estate agent commission (typically 5-6%)
- Title insurance and escrow fees
- Attorney fees
- Transfer taxes and recording fees
- Advertising and marketing costs
- Inspection and appraisal fees
Not deductible:
- Loan payoff or prepayment penalties (these aren't selling costs)
- Moving expenses
Primary Residence Exclusion: Up to $500,000 Tax-Free
The most powerful capital gains tax break is the Section 121 exclusion for primary residences.
How Much Can You Exclude?
- $250,000 for single filers
- $500,000 for married couples filing jointly
This means: If you're married and your gain is under $500,000, you typically pay zero capital gains tax.
Qualification Requirements
You must meet both tests:
1. Ownership test:
- Owned the home for at least 2 of the past 5 years
2. Use test:
- Lived in the home as your primary residence for at least 2 of the past 5 years
The 2 years don't have to be continuous. You could live there for one year, rent it out for two years, move back for one year, and still qualify.
Examples
Example 1: Full exclusion (married couple)
- Purchase price: $300,000
- Improvements: $50,000
- Sale price: $800,000
- Selling costs: $50,000
- Gain: $800,000 - $300,000 - $50,000 - $50,000 = $400,000
- Exclusion: $500,000 (married)
- Taxable gain: $0
Example 2: Partial exclusion (single filer)
- Purchase price: $200,000
- Sale price: $600,000
- Selling costs: $36,000
- Gain: $364,000
- Exclusion: $250,000 (single)
- Taxable gain: $364,000 - $250,000 = $114,000
- Tax (15% long-term rate): $17,100
How Often Can You Use the Exclusion?
You can use the primary residence exclusion once every 2 years (more accurately, you can't have used it in the prior 2 years).
This allows a powerful strategy: Buy a house, live in it for 2+ years, sell tax-free, repeat. Some investors build wealth by continuously upgrading their primary residence tax-free.
Partial Exclusion for Special Circumstances
If you don't meet the full 2-year requirement due to:
- Change in employment
- Health reasons
- Unforeseen circumstances (divorce, natural disaster, etc.)
You may qualify for a partial exclusion based on how long you lived there.
Example: You lived in your home for 1 year (50% of the 2-year requirement) before relocating for work.
- Full exclusion (married): $500,000
- Partial exclusion: $500,000 × 50% = $250,000
Converting Rental to Primary Residence
If you've rented out your property, you can potentially convert it to your primary residence to use the exclusion.
Rules:
- Must live in it as primary residence for 2 of the past 5 years
- Depreciation claimed after May 6, 1997 must be recaptured (taxed at 25%)
- Post-2008 rule: Non-qualified use (rental periods after 2008) reduces the exclusion proportionally
Example (post-2008 property): You bought a rental property in 2020, rented it for 3 years, moved in for 2 years, then sold.
- Total ownership: 5 years
- Non-qualified use: 3 years
- Qualified use: 2 years
- Exclusion reduction: 3/5 = 60%
- If single, exclusion is $250,000 × 40% = $100,000 (instead of full $250,000)
Plus: You must recapture depreciation at 25%.
The conversion strategy is less valuable post-2008 but can still provide tax savings.
1031 Exchange: Defer Gains Indefinitely
A 1031 like-kind exchange (named after Section 1031 of the tax code) allows you to sell investment property and defer paying capital gains tax by reinvesting the proceeds into another investment property.
How It Works
Instead of selling your property and paying tax on the gain, you "exchange" it for another property. The gain is deferred until you eventually sell without exchanging.
Key benefits:
- Defer 100% of capital gains tax
- Defer depreciation recapture
- Can exchange indefinitely ("swap till you drop")
- Step-up in basis at death eliminates deferred gain
1031 Exchange Requirements
Property type:
- Must exchange "like-kind" property (broadly defined—any real estate for any real estate)
- Must be held for investment or business use
- Cannot exchange primary residence (use Section 121 instead)
- Cannot exchange for vacation home (unless it meets rental requirements)
Timeline rules (strict, no extensions):
- 45 days: Identify replacement property in writing to qualified intermediary
- 180 days: Close on replacement property
Equal or greater value:
- Replacement property must be equal or greater value
- Must reinvest all proceeds (can't take cash out without triggering tax)
The Mechanics: Using a Qualified Intermediary
You cannot touch the proceeds yourself. You must use a qualified intermediary (QI) who:
- Holds the proceeds from your sale
- Transfers them to purchase the replacement property
- Prepares required documentation
QI fees: $800-1,500 per exchange
Example 1031 Exchange
You sell:
- Investment property worth $600,000
- Basis: $350,000
- Gain: $250,000
- Potential tax: $75,000 (at 30% effective rate)
You exchange for:
- New property worth $700,000
- Use $600,000 from sale + $100,000 cash
- Pay $0 tax now
- Your basis in new property: $350,000 (carryover basis)
When you eventually sell the new property:
- Sale price: $900,000
- Basis: $350,000 (from original property)
- Gain: $550,000 (accumulated gain from both properties)
- Tax due at that time (unless you do another 1031 exchange)
Strategies to Maximize 1031 Exchanges
1. Swap till you drop Continue doing 1031 exchanges until death. Your heirs receive a stepped-up basis, eliminating all deferred gains.
2. Exchange into a Delaware Statutory Trust (DST) If you're tired of managing property, exchange into a DST—a fractional ownership of institutional property. Provides passive income with 1031 treatment.
3. Exchange into multiple properties You can exchange one property for multiple replacement properties (up to 3 properties of any value, or unlimited if total value doesn't exceed 200% of sold property).
4. Reverse 1031 exchange Buy the replacement property before selling the relinquished property. Useful in competitive markets but more complex and expensive.
Common 1031 Exchange Mistakes
❌ Missing the 45-day identification deadline (no extensions, even for weekends/holidays) ❌ Touching the proceeds (must use qualified intermediary) ❌ Taking cash out (triggers taxable "boot") ❌ Not acquiring equal or greater value ❌ Exchanging primary residence (use Section 121 instead)
Opportunity Zones: Defer and Reduce Gains
Opportunity Zones are designated economically distressed areas where you can invest capital gains and receive tax benefits.
How It Works
Invest your capital gain (from any source, not just real estate) into a Qualified Opportunity Fund (QOF) within 180 days of the sale.
Tax benefits:
- Defer gain until December 31, 2026, or when you sell the QOF investment (whichever is earlier)
- Reduce gain by 10% if held for 5+ years (before 2026 deadline—this benefit has mostly passed)
- Eliminate gain on the OZ investment if held for 10+ years
Example: You sell stock for a $200,000 gain. Invest in an Opportunity Zone fund.
- Hold for 10+ years
- Original $200,000 gain: Deferred until 2026, then taxed
- Appreciation in OZ investment: Tax-free if held 10+ years
Best for: Long-term investors with large gains who want exposure to developing real estate markets.
Risks: OZ investments often involve development projects with higher risk.
Installment Sales: Spread the Tax
An installment sale allows you to spread capital gains tax over multiple years by receiving payments over time rather than all at once.
How It Works
Instead of receiving the full purchase price at closing, you finance part of the sale and receive payments over time (like acting as the bank).
Each payment includes:
- Return of basis (not taxed)
- Capital gain (taxed in the year received)
- Interest income (taxed as ordinary income)
Example: Sell property for $500,000 with $250,000 gain.
- Down payment: $100,000 (20%)
- Finance: $400,000 over 10 years
Year 1 tax:
- Only pay tax on the portion of gain received in year 1
- If you received $100,000 down payment and $50,000 = 50% gain ratio, you'd pay tax on $50,000 in year 1
Benefits:
- Spread tax liability over multiple years
- May keep you in a lower tax bracket each year
- Earn interest on the financed amount
Risks:
- Buyer default (you may have to foreclose)
- Tax law changes
- Depreciation recapture is generally due in year 1 (can't be deferred)
Other Strategies to Minimize Capital Gains Tax
1. Time the Sale Strategically
Sell in a low-income year: If you expect a year with lower income (retirement, sabbatical, business loss), sell then to utilize the 0% or 15% capital gains bracket.
Example: Your income is usually $200,000 (24% bracket). You retire mid-year and expect only $50,000 income. Sell your investment property that year to take advantage of the 0-15% capital gains rate.
2. Offset Gains with Losses (Tax-Loss Harvesting)
Sell losing investments in the same year to offset real estate gains.
Example:
- Real estate gain: $100,000
- Stock losses: $50,000
- Net taxable gain: $50,000
You can deduct capital losses against capital gains, plus up to $3,000 against ordinary income.
3. Use a Charitable Remainder Trust (CRT)
Donate appreciated property to a CRT:
- Receive an immediate tax deduction
- CRT sells property tax-free (no capital gains)
- You receive income from the trust for life or a term of years
- Remainder goes to charity
Best for: High-net-worth individuals with large gains who want to support charity.
4. Give Property to Family Members in Lower Tax Brackets
Gift appreciated property to family members in the 0% capital gains bracket (income under ~$47,000 single / $94,000 married).
They sell with:
- Your carryover basis
- 0% capital gains rate (if their income qualifies)
- No tax on the gain
Note: Gift tax rules apply (annual exclusion $18,000 per person in 2024; lifetime exemption ~$13.6 million).
5. Die with the Property (Stepped-Up Basis)
Morbid but effective: If you hold property until death, your heirs receive a stepped-up basis equal to the fair market value at your death.
All capital gains disappear.
Example:
- You bought property for $100,000
- Worth $1,000,000 when you die
- Your heirs' basis: $1,000,000
- If they sell immediately: $0 capital gains tax
Estate planning strategy: Don't sell highly appreciated property late in life—pass it to heirs with stepped-up basis.
6. Live in the Property for 2+ Years (Primary Residence Exclusion)
If you own investment property, consider converting it to your primary residence:
- Live there for 2+ years
- Sell and claim $250,000/$500,000 exclusion
- Subject to depreciation recapture and post-2008 non-qualified use rules
7. Maximize Your Basis
Don't forget to include in your basis:
- All capital improvements (keep receipts!)
- Closing costs when you purchased
- Legal fees defending title
- Assessments for improvements
Keep detailed records of every improvement. Many sellers forget thousands in basis adjustments.
State Capital Gains Taxes
Don't forget state taxes. Rates vary widely:
No state capital gains tax:
- Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming
Highest state rates:
- California: 13.3%
- New York: 10.9%
- Oregon: 9.9%
- Minnesota: 9.85%
Some states offer special treatment:
- Wisconsin: Excludes 30% of long-term capital gains
- Arizona: Lower rate for property held 3+ years
Tax strategy: Consider your state's rules when timing sales or even relocating before a sale (though this must be a genuine move, not tax avoidance).
Reporting Capital Gains: Form 8949 and Schedule D
Report real estate capital gains on:
- Form 8949: Lists each transaction (sale price, basis, gain/loss)
- Schedule D: Summarizes net capital gains
Supporting documents:
- Form 1099-S (issued by closing agent for real estate sales)
- Closing statements (purchase and sale)
- Records of improvements
Primary residence exclusion: Also file IRS Form 8949 and Schedule D even if the entire gain is excluded. Report the sale and show the exclusion.
When to Consult a Tax Professional
Capital gains taxes on real estate can be complex. Consult a CPA or tax attorney for:
- Sales over $100,000 gain
- 1031 exchanges
- Primary residence with gain exceeding the exclusion
- Inherited property
- Multi-state property
- Partnership or LLC-owned property
- Depreciation recapture calculations
A professional can save you far more than they cost by identifying strategies and avoiding mistakes.
Final Thoughts
Capital gains tax on real estate can be substantial, but numerous strategies exist to minimize or eliminate it:
For primary residences:
- Use the $250,000/$500,000 exclusion every 2 years
- Time the sale to maximize the exclusion
For investment properties:
- Use 1031 exchanges to defer indefinitely
- Hold until death for stepped-up basis
- Consider installment sales to spread the tax
- Maximize basis with proper documentation
For all properties:
- Hold for 1+ years to get long-term rates
- Time sales for low-income years
- Offset with capital losses
- Keep meticulous records
The key is planning ahead. Capital gains tax strategies work best when implemented before the sale, not after. Work with qualified professionals to structure your sale for maximum tax efficiency.
With proper planning, you can minimize or even eliminate capital gains tax, keeping more of your hard-earned real estate profits.
Get more content like this
Get daily real estate insights delivered to your inbox
Ready to Unlock Your Home Equity?
Calculate how much you can borrow in under 2 minutes. No credit impact.
Try Our Free Calculator →✓ Free forever • ✓ No credit check • ✓ Takes 2 minutes