How to Legally Avoid Capital Gains Tax When Selling Rental Property
Explore 7 legal strategies to defer or avoid capital gains tax when selling rental property, including 1031 exchanges, the Lazy 1031, DSTs, and more.
Understanding Your Tax Liability: Capital Gains + Depreciation Recapture
Before exploring strategies to defer or avoid capital gains tax, you need to understand exactly what you're facing when selling a rental property. The tax bill has two components—and many investors underestimate the total.
Capital Gains Tax
When you sell a property for more than your adjusted basis, you owe capital gains tax on the profit. For most real estate investors, this means:
- Long-term capital gains rate: 0%, 15%, or 20% depending on your taxable income
- Net Investment Income Tax (NIIT): Additional 3.8% for high earners
- State capital gains tax: Varies by state (California can add 13.3%)
Depreciation Recapture
Over your ownership period, you claimed depreciation deductions against rental income. When you sell, the IRS "recaptures" this benefit:
- Recapture rate: 25% federal (higher than standard capital gains rates)
- Applies to: All depreciation allowed or allowable—even if you didn't claim it
- State recapture: Many states also tax recaptured depreciation
Example: The True Tax Burden
| Scenario | Amount |
|---|---|
| Sale price | $800,000 |
| Original purchase price | $500,000 |
| Improvements | $50,000 |
| Depreciation claimed | $100,000 |
| Adjusted basis | $450,000 |
| Total gain | $350,000 |
Tax calculation:
| Tax Component | Calculation | Amount |
|---|---|---|
| Capital gains (20%) | $250,000 × 20% | $50,000 |
| NIIT (3.8%) | $350,000 × 3.8% | $13,300 |
| Depreciation recapture (25%) | $100,000 × 25% | $25,000 |
| Federal total | $88,300 |
Add state taxes, and the total can easily exceed $100,000—money that could otherwise remain invested.
Strategy #1: Traditional 1031 Exchange
The traditional 1031 exchange under IRC Section 1031 has been the go-to strategy for deferring capital gains on investment property for decades.
How It Works
- Sell your "relinquished" property
- Use a Qualified Intermediary (QI) to hold proceeds
- Identify replacement properties within 45 days
- Close on replacement property within 180 days
- All gains are deferred into the new property's basis
Requirements
- Like-kind property: Both properties must be held for investment or business use
- Equal or greater value: Purchase price must match or exceed sale price
- Equal or greater debt: Mortgage must match or exceed existing debt
- Same taxpayer: Entity selling must be same as entity buying
- No constructive receipt: You cannot touch the funds
Pros
- Complete tax deferral
- Well-established legal framework
- Can exchange into any like-kind real estate
Cons
- Strict 45-day and 180-day deadlines
- Requires finding suitable replacement property quickly
- Qualified Intermediary fees and complexity
- If the deal falls through, you may owe full taxes
Best For
Investors who have already identified their next property and want to continue active real estate ownership.
Strategy #2: The Lazy 1031 (Cost Segregation + Syndication)
The Lazy 1031 strategy uses passive losses from accelerated depreciation to offset capital gains—without the deadline pressure of a traditional exchange.
How It Works
- Sell your property and receive proceeds directly
- Before December 31st, invest in a real estate syndication
- The syndication performs cost segregation on its properties
- Your share of Year 1 depreciation generates passive losses
- Passive losses offset passive gains from your property sale
Requirements
- Same tax year: Sale and investment must occur in the same calendar year
- Passive investment: Syndication must generate passive income/losses
- Sufficient depreciation: Investment must generate enough depreciation to offset gains
- Accredited investor status: Many syndications require this
Pros
- No 45-day or 180-day deadlines
- No Qualified Intermediary required
- Flexibility to evaluate investments carefully
- Transition to truly passive investing
- No boot calculations or debt replacement requirements
Cons
- Tax deferral (not elimination)—depreciation recapture eventually applies
- Requires finding syndications with strong Year 1 depreciation
- Illiquid investment during hold period
- State non-conformity may reduce benefits in CA, NY, NJ
Best For
"Tired landlords" who want to exit active management while maintaining tax deferral. Investors who need more time to find the right investment.
Strategy #3: Delaware Statutory Trusts (DSTs)
A Delaware Statutory Trust is a legal entity that holds title to investment real estate and qualifies for 1031 exchange treatment.
How It Works
- Sell your property using a traditional 1031 exchange structure
- Exchange into a fractional interest in a DST
- The DST owns and operates institutional-quality real estate
- You receive passive income from your fractional ownership
Requirements
- All traditional 1031 exchange rules apply (45-day, 180-day deadlines)
- Qualified Intermediary required
- DST must meet IRS Revenue Ruling 2004-86 requirements
- Typically requires accredited investor status
Pros
- Combines 1031 deferral with passive ownership
- Access to institutional-quality properties
- Lower minimum investments than buying property directly
- Professional management
Cons
- Still has 45-day and 180-day deadlines
- Limited liquidity during DST hold period
- Less control than direct ownership
- Fixed income—no ability to refinance or make decisions
- Fees can be higher than direct syndication
Best For
Investors committed to the 1031 framework who want passive ownership without the Lazy 1031 approach.
Strategy #4: Qualified Opportunity Zones
Qualified Opportunity Zone (QOZ) investments under IRC Section 1400Z offer unique benefits, including potential permanent exclusion of gains on the QOZ investment itself.
How It Works
- Sell your property and recognize capital gains
- Within 180 days, invest gains in a Qualified Opportunity Zone Fund
- The fund invests in property or businesses in designated low-income areas
- Hold for 10+ years for maximum benefits
Tax Benefits
| Holding Period | Benefit |
|---|---|
| Any | Defer original gain until 2026 or sale |
| 10+ years | Zero tax on QOZ investment appreciation |
Requirements
- Investment must be in a designated Qualified Opportunity Zone
- Only the gain amount (not full proceeds) needs to be invested
- 180-day investment window from date of gain recognition
- Fund must meet substantial QOZ investment requirements
Pros
- Potential for permanent tax exclusion on new investment gains
- Flexibility to keep some proceeds (only gain must be invested)
- Longer investment window (180 days vs. 45 days for 1031)
Cons
- Original gain is only deferred, not eliminated
- Limited geographic locations for investment
- Many QOZ investments are development projects with higher risk
- 10-year hold required for maximum benefit
Best For
Investors with long time horizons who want exposure to opportunity zone development and the potential for tax-free appreciation.
Strategy #5: Primary Residence Conversion (Section 121)
IRC Section 121 allows exclusion of up to $250,000 ($500,000 married filing jointly) of gain on the sale of a primary residence.
How It Works
- Convert your rental property to your primary residence
- Live in the property as your primary residence for at least 2 of the 5 years before sale
- Sell the property and exclude qualifying gains
Requirements
- Ownership test: Own the property for at least 2 years
- Use test: Live in property as primary residence for at least 2 of 5 years before sale
- Cannot have used the exclusion in the prior 2 years
The Catch: Non-Qualified Use
If the property was a rental before you converted it, only a portion of gain may qualify for exclusion. Gain attributable to "non-qualified use" (periods after 2008 when it wasn't your primary residence) remains taxable.
Formula
Excluded gain = Total gain × (Qualified use period ÷ Total ownership period)
Pros
- Actual exclusion (not just deferral)
- No reinvestment required
- Well-established tax benefit
Cons
- Requires actually living in the property
- Partial benefit for converted rentals
- Depreciation recapture still applies
- Limited exclusion amount
- Impractical for properties in undesirable locations
Best For
Investors with properties in areas where they'd actually want to live, who are willing to make the move.
Strategy #6: Charitable Remainder Trusts
A Charitable Remainder Trust (CRT) allows you to sell appreciated property while deferring capital gains and receiving income for life.
How It Works
- Create and fund a CRT with your appreciated property
- The trust sells the property (no immediate capital gains tax)
- Trust assets are invested for growth
- You receive income from the trust for a term of years or for life
- Remainder goes to designated charity at trust termination
Types of CRTs
- CRAT (Charitable Remainder Annuity Trust): Fixed annual payment
- CRUT (Charitable Remainder Unitrust): Percentage of trust value annually
Tax Benefits
- No immediate capital gains tax on sale
- Charitable income tax deduction in year of contribution
- Income stream for life
- Estate tax benefits
Considerations
- Irrevocable—you cannot get the property back
- Charity ultimately receives the remainder
- Income is taxable as received
- Complex setup and administration
- Annual trust tax returns required
Best For
Philanthropically minded investors who want income for life and plan to leave assets to charity anyway.
Strategy #7: Step-Up in Basis (Estate Planning)
If your goal is to pass wealth to heirs rather than access capital during your lifetime, the step-up in basis at death can eliminate capital gains entirely.
How It Works
- Hold appreciated property until death
- At death, heirs receive property with basis "stepped up" to fair market value
- All unrealized capital gains disappear
- Heirs can sell immediately with minimal or no gain
Example
| Scenario | Original Owner | Heir After Step-Up |
|---|---|---|
| Property basis | $200,000 | $800,000 (FMV at death) |
| Sale price | $800,000 | $800,000 |
| Taxable gain | $600,000 | $0 |
Benefits
- Eliminates capital gains tax entirely
- Eliminates depreciation recapture
- Clean slate for heirs
Considerations
- Estate tax may apply (currently $13.61M federal exemption per person)
- State estate taxes vary
- You don't access the capital during lifetime
- Property management continues until death
Best For
Older investors with significant appreciated real estate who prioritize wealth transfer over current liquidity.
Comparing Your Options: Decision Matrix
| Strategy | Timeline Flexibility | Stays Invested | Tax Result | Complexity | Best For |
|---|---|---|---|---|---|
| Traditional 1031 | Strict (45/180 days) | Real estate | Deferral | Medium | Active investors |
| Lazy 1031 | Flexible (year-end) | Syndication | Deferral | Low-Medium | Tired landlords |
| DST | Strict (45/180 days) | DST | Deferral | Medium | Passive 1031 seekers |
| Opportunity Zone | Moderate (180 days) | QOZ Fund | Deferral + potential exclusion | Medium | Long-term investors |
| Section 121 | 2 years use | Sell outright | Partial exclusion | Low | Owner-occupants |
| CRT | Immediate | Trust | Deferral + charitable | High | Philanthropists |
| Step-Up | At death | Real estate | Elimination | Low | Estate planning |
Which Strategy Fits Your Situation?
Choose Traditional 1031 If:
- You have a replacement property in mind
- You want to continue active real estate ownership
- You're comfortable with strict deadlines
Choose Lazy 1031 If:
- You're burned out on property management
- You need flexibility to find the right investment
- You want to transition to passive income
- Deadlines stress you out
Choose DST If:
- You want 1031 treatment with passive ownership
- You're comfortable with the traditional exchange process
- Institutional-quality real estate appeals to you
Choose Opportunity Zone If:
- You have a 10+ year investment horizon
- You want potential for tax-free appreciation
- You're comfortable with development risk
Choose Section 121 If:
- You're willing to live in the property
- The property is in a desirable location
- Your gains are under the exclusion limits
Choose CRT If:
- Charitable giving is already part of your plan
- You want lifetime income
- You don't need to access the full principal
Choose Step-Up Strategy If:
- You're older and prioritize wealth transfer
- You don't need the capital during your lifetime
- Your heirs are prepared to inherit
Next Steps
Ready to explore which strategy is right for your situation?
- Calculate your potential savings with our free Lazy 1031 Exchange Calculator
- Consult your tax advisor about your specific circumstances
- Learn more about the Lazy 1031 strategy
- Contact our team to discuss your options
This article is for educational purposes only and does not constitute tax, legal, or investment advice. The strategies described have specific requirements and may not be suitable for all situations. Tax laws are complex and subject to change. Always consult with qualified tax, legal, and financial professionals before implementing any tax strategy.


