When you sell a rental property at a gain, the tax bill can be substantial. You may owe federal capital gains tax, up to 25% on gain from past depreciation, the 3.8% net investment income tax at higher incomes, and California income tax, which treats capital gains as ordinary income at rates up to 13.3%.
A 1031 exchange, named for Section 1031 of the Internal Revenue Code, lets you defer those taxes by reinvesting the proceeds in other investment real estate. Done correctly, it lets you move equity from one property to the next without paying tax along the way.
What qualifies
Real property only. Since 2018, only real estate qualifies. Equipment and other personal property do not.
Held for investment or business use. Both the property you sell and the one you buy must be held for rental, investment or use in a business.
Like-kind is broad. Almost any U.S. real estate is like-kind to any other: a duplex for a small apartment building, land for a retail building. U.S. property is not like-kind to foreign property.
What does not qualify: your primary residence, and property held mainly for resale, such as a flip.
The tax code does not set a minimum holding period, but the IRS looks at your intent, and many advisors are cautious about properties held only briefly before or after an exchange. The same taxpayer that sells the old property generally must buy the new one.
The deadlines
Engage a qualified intermediary before you close the sale. The intermediary holds the proceeds so you never receive or control them.
Identify replacements within 45 days of the sale, in writing. Most exchangers use the three-property rule (up to three properties of any value). Alternatives are the 200% rule (any number of properties, with a combined value up to twice the sale price) and the 95% rule (any number, if you acquire at least 95% of the total value identified).
Close within 180 days of the sale, or by the due date of your tax return for that year including extensions, whichever comes first. If you sell late in the year, you may need to extend your return to get the full 180 days.
Both deadlines are counted in calendar days and generally cannot be extended, except for certain federally declared disasters. Miss one and the sale becomes taxable.
Choosing a qualified intermediary
You cannot use someone who has acted as your agent within the past two years, such as your attorney, accountant or real estate agent, or a related party. Intermediaries are not regulated at the federal level. California requires exchange facilitators to carry a fidelity bond of at least $1 million, post an equivalent deposit, or hold funds in a qualified escrow or trust. Ask how your funds will be held and protected.
Getting full deferral: value, equity and debt
To defer all of the tax, you generally must buy replacement property of equal or greater value, reinvest all of your net cash proceeds, and replace any mortgage you paid off with new debt or additional cash. Cash you keep, or a reduction in debt you do not offset, is called boot and is taxable. Partial exchanges are allowed, with tax due only on the boot.
An illustrative example
You sell a fourplex for $900,000 that you bought for $500,000 and have depreciated by $120,000. Ignoring selling costs, your adjusted basis is $380,000 and your gain is $520,000. Without an exchange, the combined federal and California tax on that gain could exceed $130,000, depending on your income.
With an exchange, you reinvest your full net equity, the sale price minus your loan payoff and closing costs, into the next property. The deferred gain is not forgiven. It carries over by giving the replacement property a lower tax basis, and it includes the deferred depreciation recapture.
Try your numbers
1031 exchange calculator
| Regular sale | 1031 exchange | |
|---|---|---|
| Taxable gain | $520,000 | $0 |
| Federal tax | $110,000 | $0 |
| Net investment income tax | $19,760 | $0 |
| California tax | $48,360 | $0 |
| Tax due now | $178,120 | $0 |
Tax deferred by the exchange
$178,120
Full deferral: no boot
The new property's tax basis
- Purchase price
- $1,200,000
- Minus gain deferred
- −$520,000
- Starting tax basis
- $680,000
The $520,000 deferred gain, including $120,000 of past depreciation, stays with the new property and is taxed when you sell it in a regular sale.
Gain covered by past depreciation is taxed first, at up to 25%. Uses flat rates you choose rather than brackets, and ignores the replacement's closing costs, state taxes outside California and installment or opportunity zone options. Estimates only, not tax advice.
Related-party rules
Exchanges involving family members (such as a spouse, parents, children or siblings) or entities you control are allowed, but with limits. If you exchange property with a related party, both of you generally must hold the properties for two years, or the deferred gain becomes taxable. Buying your replacement property from a related party who then cashes out is generally not allowed. Report related-party exchanges on Form 8824 for the year of the exchange and the two following years.
House hackers and California owners
Owner-occupied duplex or fourplex. The unit you live in does not qualify, but the rental units can. In some cases you can combine the Section 121 home sale exclusion on your unit with a 1031 exchange on the rental portion.
Moving into a replacement property. If you later convert a property you acquired by exchange into your home, the Section 121 exclusion is not available unless you have owned it for at least five years.
Exchanging out of California. If you exchange California property for property in another state, you must file Form FTB 3840 with California each year until the deferred gain is recognized. California will tax that gain when you eventually sell in a taxable sale.
Holding until death
Many investors continue exchanging over their lifetime. Under current federal law, heirs who inherit the property generally receive a basis stepped up to its value at death, which removes the deferred gain and recapture. Tax law can change, so this is worth revisiting with your estate planner from time to time.
Common mistakes
Waiting until after closing to hire an intermediary.
Underestimating how long financing and inspections take within the 180 days.
Taking cash out or reducing debt without planning for the boot.
Identifying properties loosely, without a clear address or legal description.
Exchanging with relatives without following the related-party rules.
This article is general information, not tax or legal advice. Tax rules change, and the right approach depends on your circumstances. Consult a qualified tax professional before acting.




