1031 Exchange Step-by-Step: How Real Estate Investors Defer Taxes
The most-used tax tool in real estate. Here's exactly how a like-kind exchange works, the timelines, and how to avoid the mistakes that blow it up.
A 1031 exchange — named after Section 1031 of the Internal Revenue Code — lets a real estate investor sell an investment property and roll the proceeds into another investment property without paying federal capital gains tax or depreciation recapture in the year of sale. It's not a tax-free transaction; it's a tax-deferred one. But because investors can chain exchanges across decades and even pass property to heirs at a stepped-up basis, the IRS sometimes calls it the most powerful wealth-building tool in the code. This is the working investor's walkthrough.
What a 1031 actually defers
When you sell a rental, you usually owe two taxes: capital gains tax on the appreciation (long-term federal rates of 0%, 15%, or 20% plus the 3.8% NIIT for higher earners) and depreciation recapture (taxed at up to 25% federally on the depreciation you've claimed). State income tax usually piles on top.
A properly executed 1031 defers both. The basis of the relinquished property carries over to the replacement property. You don't escape the tax — you push it forward, sometimes indefinitely.
The 5 must-knows
1. Both properties must be held for investment or business use
Your primary residence doesn't qualify. A vacation home you barely rent doesn't qualify. The relinquished property and the replacement property must both be held for investment or used in a trade or business. Most rental properties qualify cleanly.
2. Like-kind is broad in real estate
Within real estate, "like-kind" is interpreted very broadly. A single-family rental can be exchanged for a duplex, a strip mall, raw land, an industrial building, or a triple-net lease. The relinquished and replacement properties don't have to be the same type — only both held for investment.
3. You can't touch the cash
The investor cannot receive the sale proceeds. A qualified intermediary (QI) holds the funds between the sale and the purchase. If the cash hits your bank account — even briefly — the exchange is dead.
4. Timing rules are absolute
45 days to identify replacement property. 180 days to close. There are no extensions for weather, financing, or family emergencies. Miss the deadline by one day and the entire gain becomes taxable.
5. You must replace value and debt
To defer all tax, the replacement property must equal or exceed the sale price of the relinquished property, and your debt on the new property must equal or exceed the debt paid off. Any shortfall is "boot" and taxable.
The 45-day identification rule
Within 45 calendar days of selling the relinquished property, you must identify candidate replacement properties in writing to your qualified intermediary. The clock starts the day of closing. Day 46 is too late.
Three identification options exist:
- 3-property rule: identify up to three properties of any value.
- 200% rule: identify any number of properties as long as their combined fair market value doesn't exceed 200% of the relinquished property's sale price.
- 95% rule: identify unlimited properties of unlimited value, as long as you actually acquire properties worth at least 95% of what you identified.
Most investors use the 3-property rule. It's the cleanest and the most flexible.
The 180-day closing rule
You must close on the replacement property within 180 calendar days of selling the relinquished property — or by the due date of your tax return for that year, whichever comes first. If you sell late in a calendar year, file a tax return extension to preserve the full 180 days.
Qualified intermediary: the indispensable middleman
The QI (also called an "accommodator") holds the sale proceeds in a segregated account, signs assignment documents, and ensures the investor never has constructive receipt of the funds. Choose a QI before listing the property. Look for: bonded and insured, segregated client accounts, decades of track record, and clear fee structure (usually $700–$1,500 per exchange).
Avoid your CPA, attorney, real estate agent, or anyone with a personal relationship to you — IRS rules disqualify "agents" of the taxpayer from acting as QI.
Real example with numbers
Sale price: $400,000. Mortgage payoff: $150,000. Net cash to QI: ~$240,000.
If Sarah just sold: $240,000 of gain ($400K – $160K). Federal capital gains: roughly $36,000. Depreciation recapture: roughly $10,000. State tax: $15,000+. Total ~$61,000 in tax.
Sarah does a 1031: Within 45 days she identifies a $500,000 four-plex. Within 180 days she closes — using the $240,000 cash and a new $260,000 mortgage. Replacement value ($500K) exceeds relinquished sale price ($400K). New debt ($260K) exceeds old debt ($150K).
Tax owed: $0 deferred. Her new basis: $260,000 (carryover $160K + additional $100K invested).
Related-party rules
Exchanging with a family member, a spouse's relative, or an entity you control triggers extra rules. The replacement property must generally be held by the related party for at least 2 years, or the deferral is unwound. The IRS scrutinizes related-party exchanges hard. Most investors avoid them.
Common mistakes that blow up an exchange
- Receiving the proceeds personally — even for a moment.
- Missing the 45-day identification deadline.
- Using a non-qualified intermediary, including your own CPA or attorney.
- Identifying property in writing but later trying to swap to a different property after day 45.
- Closing on a replacement worth less than the relinquished property and not realizing the difference is taxable.
- Taking debt relief without offsetting it — old mortgage paid off was $200K, new mortgage is only $150K. The $50K difference is taxable boot.
Reverse and improvement exchanges
A reverse exchange (buy first, then sell) is allowed but more expensive — a special exchange accommodation titleholder owns the new property until you sell the old one. An improvement exchange lets you use exchange funds to build improvements on the replacement property within the 180-day window. Both are legitimate but require sophisticated QIs and add cost.
1031s combined with other strategies
Real wealth-building usually layers multiple tools. Many investors 1031 into a property eligible for cost segregation, accelerating depreciation on the new asset. Others combine 1031s with real estate professional status to deduct losses against other income.
And the most powerful endgame: chain 1031s your entire life, then leave the portfolio to heirs. They get a step-up in basis at death, and the entire deferred gain disappears.
Should you exchange or just sell?
A 1031 makes sense when: the deferred tax is meaningful (typically $30K+), you genuinely want to keep investing in real estate, and you've identified a replacement property that improves your portfolio. It does not make sense when you'd be exchanging into something worse just to dodge tax.
Run the after-tax math both ways before you list. Use our cap rate calculator on the candidate replacement properties, our cash-on-cash calculator to compare returns, and check financing assumptions at mortgagemathlab.com. For a full underwriting workflow see our property analysis guide.