AC
ArvCalc Investment Hub

Avoid Capital Gains Tax on Real Estate: 7 Smart Strategies (2026)

How to avoid capital gains tax on real estate - 7 legal strategies for 2026
Real Estate InvestingJun 15, 20267 min read1,702 wordsWritten by ArvCalc Editorial Team

How to Avoid Capital Gains Tax on Real Estate: Understanding the Basics

When you sell an investment property for more than you paid, the profit is a capital gain — and the IRS wants its share. The federal capital gains tax rate on real estate ranges from 0% to 20% depending on your income, plus a potential 3.8% Net Investment Income Tax, plus state taxes in most states.

On a property sold for $350,000 that was purchased for $200,000, the $150,000 gain could trigger $30,000 to $45,000 in taxes. That is money that could have funded your next deal.

Avoid capital gains tax on real estate with 7 legal strategies

This guide shows you how to avoid capital gains tax on real estate using seven proven strategies — from 1031 exchanges to depreciation recapture planning. Use the free Capital Gains Tax Calculator to estimate your tax liability before you sell.

Capital Gains Tax Rates on Real Estate (2026)

Filing Status 0% Rate 15% Rate 20% Rate
Single Up to $48,350 $48,351–$533,400 Over $533,400
Married Filing Jointly Up to $96,700 $96,701–$600,050 Over $600,050

These are long-term capital gains rates (property held over 1 year). Short-term gains (held under 1 year) are taxed as ordinary income — up to 37% federal. This is why most investors hold property at least 12 months before selling.

On top of the federal rate, most states add 0% to 13% in state capital gains tax. And if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married), you owe an additional 3.8% Net Investment Income Tax (NIIT).

Worked Example

Mark is a single filer earning $120,000/year. He sells a rental property for $320,000 that he bought for $210,000 five years ago. His capital gain is $110,000.

Tax Component Rate Amount
Federal capital gains 15% $16,500
Net Investment Income Tax 3.8% $4,180
State tax (example: Georgia 5.49%) 5.49% $6,039
Depreciation recapture (25% on ~$38,200) 25% $9,545
Total estimated tax $36,264

Mark owes over $36,000 on a $110,000 gain — a 33% effective rate. Here is how to avoid capital gains tax on real estate — or at least reduce it significantly.

7 Legal Ways to Avoid Capital Gains Tax on Real Estate

1. 1031 Exchange — Defer 100% of Tax

A 1031 exchange lets you sell one investment property and buy another of equal or greater value while deferring all capital gains tax. You can repeat this indefinitely — some investors never pay capital gains by exchanging into larger properties until death, when heirs receive a stepped-up basis.

Requirements: 45 days to identify replacement property, 180 days to close. Must use a Qualified Intermediary. Cannot touch the sale proceeds. See the 1031 exchange timeline guide for the full process.

Tax saved (Mark’s example): All $36,264 deferred. Cost of exchange: ~$3,000. Net savings: $33,264.

Run the numbers: 1031 Exchange Calculator

2. Primary Residence Exclusion — $250K/$500K Tax-Free

If you live in a property as your primary residence for at least 2 of the last 5 years before selling, you can exclude up to $250,000 of gain (single) or $500,000 (married filing jointly) from capital gains tax. This exclusion is per the IRS Section 121.

Strategy for investors: Convert a rental property to your primary residence. Live in it for 2 years, then sell with the exclusion. Note: gains attributable to depreciation taken while the property was a rental are still subject to depreciation recapture at 25%.

3. Cost Basis Optimization — Increase Your Basis

Your taxable gain = sale price minus cost basis. The higher your basis, the lower your gain. Cost basis includes:

  • Original purchase price
  • Closing costs paid at purchase (title insurance, attorney fees, recording fees)
  • Capital improvements (not repairs) — new roof, HVAC, addition, renovation
  • Selling costs (agent commission, staging, closing costs)

Common mistake: Not tracking capital improvements over the years. A $15,000 kitchen renovation from 3 years ago increases your basis by $15,000 and reduces your taxable gain by the same amount — saving $2,250+ in tax at 15%.

4. Depreciation Strategy — Offset Gains with Paper Losses

Rental property owners can deduct depreciation each year — $1 of depreciation for every $27.50 of building value (residential). This reduces your taxable income annually. However, when you sell, the IRS “recaptures” that depreciation at 25%.

The strategy: if you are a Real Estate Professional (750+ hours/year in real estate activities), depreciation losses can offset your other income with no passive activity limit. This can save more in annual taxes than the 25% recapture costs at sale.

Estimate your depreciation: Depreciation Calculator

5. Installment Sale — Spread Tax Over Multiple Years

Instead of receiving the full sale price at closing, structure the deal as an installment sale where the buyer pays over 2-5 years. This spreads your capital gain across multiple tax years, potentially keeping you in a lower tax bracket each year.

Example: Mark sells for $320,000 with $100,000 down and $220,000 paid over 3 years. Instead of a $110,000 gain in one year (15% bracket), he reports ~$37,000/year — potentially qualifying for the 0% capital gains rate on a portion of the gain.

6. Opportunity Zone Investment — Defer + Reduce

Investing capital gains into a Qualified Opportunity Zone Fund within 180 days of the sale defers the tax. If held for 10+ years, any appreciation in the Opportunity Zone investment is permanently tax-free.

Best for: Large gains where the investor plans a 10+ year hold horizon. The original gain is still taxed when the deferral period ends (or by 2026 for gains invested before 2027), but the new appreciation is tax-free.

7. Charitable Remainder Trust — Defer and Generate Income

Transfer the property to a Charitable Remainder Trust (CRT) before selling. The trust sells the property tax-free, invests the proceeds, and pays you income for life (or a set term). The remaining trust assets go to charity.

Best for: Investors near retirement with large gains who want ongoing income and a charitable deduction. Complex to set up — requires an attorney and CPA.

Strategy Comparison

Strategy Tax Saved Complexity Best For
1031 Exchange 100% deferred Medium Active investors buying next property
Primary Residence Exclusion Up to $500K excluded Low Investors willing to live in property 2 years
Cost Basis Optimization Varies ($5K-$50K+) Low Everyone — always track improvements
Depreciation / RE Pro Status Annual deductions High Full-time investors with 750+ hours
Installment Sale Bracket reduction Medium Sellers flexible on payment terms
Opportunity Zone New gains tax-free High Long-term hold investors
Charitable Trust Defer + income Very High Near-retirement, charitable intent

Mistakes When Trying to Avoid Capital Gains Tax on Real Estate

Forgetting depreciation recapture. Even if your capital gain qualifies for the 0% or 15% rate, accumulated depreciation is recaptured at 25%. On a property held 10 years with $70,000 in depreciation taken, that is $17,500 in recapture tax that many investors do not anticipate.

Not accounting for state taxes. Federal capital gains rates get all the attention, but state taxes add 0% to 13% on top. California, New York, New Jersey, and Oregon all exceed 9%. Texas, Florida, Nevada, and Wyoming have no state income tax.

Selling too early. Properties held under 12 months are taxed as ordinary income (up to 37%) instead of long-term capital gains (0-20%). A flip completed in 11 months versus 13 months can cost 15-20% more in taxes on the same profit.

Not planning before the sale. Most strategies to avoid capital gains tax on real estate require setup before you sell — 1031 exchanges need a QI in place, installment sales need contract structure, and basis optimization needs documented records. Planning after the sale limits your options dramatically.

Disclaimer

This article is for educational purposes only and does not constitute tax, legal, or financial advice. Tax laws are complex, change frequently, and vary by jurisdiction and individual circumstance. The strategies described may not be available or appropriate for your situation. Consult a qualified CPA, tax attorney, and financial advisor before implementing any tax strategy. ArvCalc is not a tax advisor, attorney, or CPA.

How much capital gains tax do you pay on real estate?

Federal long-term capital gains tax on real estate is 0%, 15%, or 20% depending on your taxable income. Most investors fall in the 15% bracket. Add 3.8% Net Investment Income Tax if your income exceeds $200,000 (single) or $250,000 (married), plus state taxes of 0% to 13%. Depreciation recapture is taxed at 25%. The effective total rate is typically 20% to 35% of the gain.

How do you avoid capital gains tax on investment property?

The most common way to avoid capital gains tax on real estate is a 1031 exchange, which defers 100% of capital gains tax when you sell one investment property and buy another of equal or greater value within 180 days. Other strategies include converting to a primary residence (2-year residency for $250K/$500K exclusion), installment sales to spread gains across years, and Opportunity Zone investments for tax-free appreciation on 10+ year holds.

What is depreciation recapture on rental property?

Depreciation recapture is a 25% federal tax on the accumulated depreciation you claimed (or could have claimed) while owning a rental property. If you owned a property for 10 years and took $70,000 in depreciation deductions, you owe $17,500 in recapture tax when you sell — regardless of your capital gains tax bracket. This is separate from and in addition to capital gains tax on the remaining profit.

Is there a way to permanently avoid capital gains tax on real estate?

Yes, you can permanently avoid capital gains tax on real estate through two main strategies. First, the step-up in basis at death: if you hold property until you die, your heirs receive it at current market value and owe zero capital gains on the appreciation during your lifetime. Second, a series of 1031 exchanges into increasingly valuable properties, never selling for cash during your lifetime, then the step-up eliminates all deferred gains at death.

How long do you have to hold property to get long-term capital gains rates?

You must hold the property for more than 12 months to qualify for long-term capital gains rates (0%, 15%, or 20%). Property sold at 12 months or less is taxed as short-term capital gains at your ordinary income tax rate, which can be as high as 37% federal. For fix-and-flip investors, this distinction can mean 15-20% more in taxes on the same profit.

Can you do a 1031 exchange on a property you flipped?

It depends on how the IRS views the property. If it was held as an investment (rental or long-term hold), a 1031 exchange qualifies. If it was purchased, renovated, and sold quickly as a business activity (dealer property), it does not qualify. The IRS looks at intent and holding period. Properties held for at least 12 months with rental income are generally safe for 1031 treatment, but consult a tax advisor for your specific situation.

What closing costs reduce capital gains tax?

One overlooked way to avoid capital gains tax on real estate is through closing costs that increase your cost basis (and reduce gains) include: title insurance, attorney fees, recording fees, transfer taxes, and survey costs from when you purchased the property. Selling costs that reduce your gain include: real estate agent commission (5-6% of sale price), seller closing costs, staging, and legal fees. On a $300,000 sale with 6% commission, that is $18,000 deducted from your taxable gain.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *