How Real Estate Investors Legally Defer Capital Gains for Decades, Sometimes Forever
One tax rule lets a landlord trade buildings for decades without paying a cent on the gain, and a single event can erase the bill entirely. Miss either of two unforgiving deadlines, though, and the whole deal collapses.
This post may contain links from our sponsors and affiliates, and Flywheel Publishing may receive compensation for actions taken through them.
An investor who sells an appreciated rental building for cash generally owes capital gains tax for the year of the sale. Section 1031 of the Internal Revenue Code offers another path. If the investor trades the building for other real estate, the tax bill moves into the new property. Repeat the trades over a career and the gain can stay deferred for decades. If the investor still owns the last property at death, a separate rule can remove the deferred gain entirely.
Most of the money involved sits with wealthy families. The top 1% of U.S. households held 13.4% of families real estate in the second quarter of 2026. The Case-Shiller national home price index stood at 336.7 in August 2026, close to its record of 337.262 one month earlier.
What Qualifies for a Like-Kind Exchange
The core rule is 26 U.S.C. § 1031(a)(1): “No gain or loss shall be recognized on the exchange of real property held for productive use in a trade or business or for investment” when it is traded for like-kind real property held the same way. The IRS lists buildings, land, and rental property as examples. A personal home doesn’t qualify. Neither does property held primarily for sale (§ 1031(a)(2)), which shuts out flippers and developers. U.S. and foreign real estate are not like kind (§ 1031(h)).
The 2017 tax law limited the provision to real property. That change covers exchanges completed after December 31, 2017. The older rules, which also allowed trades of equipment and other personal property, still apply to any exchange in which the investor gave up the old property or received the new one on or before December 31, 2017.
Two Deadlines That Can Sink the Exchange
The investor has 45 days after transferring the old property to identify the replacement (§ 1031(a)(3)(A)). The replacement must then be received by the earlier of 180 days or the due date of that year’s tax return, including extensions (§ 1031(a)(3)(B)). That second limit affects people who sell late in the year: without an extension, the window can close before day 180.
Under IRS guidance for tax year 2025, the identification must be a signed written document. It can name up to three properties regardless of their FMV, or any number of properties whose combined value is no more than double the value of the property given up.
Why the Cash Must Never Touch Your Account
The deal has to be an exchange of property for property rather than a transfer of property for money used to buy replacement property. If the investor’s own agent receives the sale money, the IRS treats it as received by the investor. That is why deferred exchanges rely on a qualified intermediary, qualified escrow account or qualified trust. To fall within these safe harbors, the agreement must bar the investor from receiving, pledging or borrowing against the money before the exchange period ends (Pub. 544).
How Boot and Depreciation Recapture Are Handled
Cash or other property received in the deal is called boot, and it is taxable. Gain is recognized up to the amount of money plus the fair market value of the other property received (§ 1031(b)). Debt that the other side takes over counts as money received (§ 1031(d)).
Depreciation recapture is postponed along with the gain, and it still exists. A like-kind exchange generally doesn’t trigger ordinary income from past depreciation unless money or non-like-kind property is also received (Pub. 544). The recapture lives on in the replacement property’s lower basis.
Worked Example: A Landlord Trades Up
A hypothetical landlord bought a building for $1,000,000 and has claimed $300,000 of depreciation, so the adjusted basis is $700,000. The building is exchanged at a value of $2,000,000, which creates a realized gain of $1,300,000. Exchange costs are left out to keep the numbers simple.
- Full reinvestment: The landlord buys a $2,500,000 replacement with all of the proceeds plus a new $500,000 mortgage. No gain is recognized. The new basis is $1,200,000 (Pub. 551), which leaves $1,300,000 of deferred gain, recapture included, built into the new property.
- Partial cash out: The landlord keeps $150,000 in cash and buys a $1,850,000 replacement with no new debt. The $150,000 is taxable now. The basis stays at $700,000, and $1,150,000 remains deferred.
Each later exchange carries the low basis forward again. The deferred gain keeps building until there is a cash sale.
How Deferral Can Become Permanent
Under 26 U.S.C. § 1014(a)(1), property acquired from someone who has died generally takes a basis equal to its fair market value at the date of the decedent’s death. If an investor dies still owning the last property in a chain of exchanges, the gain deferred through all of those trades is never taxed, although estate tax and valuation rules still apply. Estate tax returns filed in 2024 show how common this kind of holding is: 2056 returns reported real estate partnerships worth $14027312000. That data doesn’t show which assets came through exchanges.
Making that step-up actually happen takes paperwork: current wills, correct titling, up-to-date beneficiary designations on anything that bypasses probate. We put the full checklist in a free guide, Die With a Plan, for anyone whose estate rides on a single appreciated property.
Traps and Who This Approach Doesn’t Suit
- Related parties: If either side of an exchange between related persons sells within 2 years, the deferral is lost (§ 1031(f)(1)(C)).
- Investors who need cash: Any money taken out is boot, and every exchange keeps the investor’s capital tied up in real estate.
- Owners planning one final cash sale: All of the accumulated gain and recapture comes due at once.
- Dealers and short-term holders: Property held primarily for sale is excluded.
The key questions are how long the investor expects to hold real estate, whether a smaller depreciation base on the new property is acceptable, and whether the exchange fits with other tools. The installment sale rules address like-kind exchanges directly (§ 453(f)(6)). Separately, real estate lost to condemnation can be replaced with like-kind property under § 1033(g). For anyone partway through an exchange, the 45-day and 180-day deadlines matter most. Neither is extended because a deal runs late.
Contact [email protected] for any questions or corrections.







