Skip to content
← All financial terms

Homes & debt · Financial term

1031 Exchange

Also called Like-kind exchange · Section 1031 exchange · Tax-deferred exchange · Starker exchange · 1031 like-kind exchange

What is a 1031 exchange?

A 1031 exchange, or like-kind exchange, lets you sell real estate held for investment or business use and defer the tax on your gain by reinvesting in other like-kind real property, under Section 1031 of the tax code. The gain isn’t forgiven: it carries into the replacement property through a lower basis, and any cash or other property you receive, called boot, is taxed now.

10 min readWorked example5 common questions

How a 1031 exchange works

Selling a rental or other investment property at a profit normally triggers capital gains tax in the year of sale. Section 1031 lets you instead exchange it for other real property of like kind and recognize no gain or loss, as long as both the property you give up and the one you receive are held for productive use in a trade or business or for investment.

Like-kind is broad for real estate. An apartment building can be exchanged for vacant land, a warehouse or a single-family rental, because improved and unimproved real property are generally of the same nature. The main exceptions: US real estate isn’t like-kind to real estate abroad, and property held primarily for sale, such as a house bought to fix and flip, doesn’t qualify. Since the Tax Cuts and Jobs Act took effect in 2018, only real property counts; equipment, vehicles, artwork and other personal property no longer do.

Your main home is excluded, and so is a second home used mainly for personal purposes, although a rental with limited personal use can still qualify under an IRS safe harbor. Most exchanges today are deferred rather than simultaneous swaps: you sell first, a qualified intermediary holds the money, and you buy the replacement within strict deadlines. In a reverse exchange you buy first, and an exchange accommodation titleholder holds the new property for up to 180 days while you sell the old one.

The 45-day and 180-day deadlines

A deferred exchange runs on two clocks that start the day you transfer the property you sell. You must identify the replacement property in writing within 45 days, and you must receive it by the earlier of 180 days or the due date, including extensions, of your tax return for the year of the sale. Miss either and the gain is taxable. The deadlines count calendar days and can’t be extended for hardship; the main exception is relief the IRS announces after a federally declared disaster.

The identification must be signed and delivered to the seller of the replacement or another party to the exchange, such as the intermediary, not to your own attorney or agent. It must describe each property clearly, by legal description, street address or distinguishable name. You can name up to three properties of any value, or any number whose total value is no more than 200% of the property you sold. If you exceed both limits, the identification can still stand if you acquire at least 95% of the value of everything you named.

The return due date can cut the 180 days short. A sale in November reaches April 15 before its 180th day, so file an extension if you need the full period.

Qualified intermediaries, boot and basis

You can’t touch the sale proceeds. If you take actual or constructive receipt of the cash before the exchange is complete, the whole gain can become taxable. The usual safe harbor is a qualified intermediary that holds the money and completes both legs. You can’t be your own intermediary, and neither can a related person or anyone who has acted as your agent, broker, accountant, attorney or employee within the previous two years.

Anything you receive that isn’t like-kind real property is boot, and your gain is taxed up to the value of the boot. Cash left over after buying the replacement is boot, and so is net debt relief: if the mortgage paid off on the property you sell exceeds the debt on the one you buy plus any cash you add, the difference counts as money received. To defer all the gain, buy property of equal or greater value, reinvest all the cash and replace the debt. A loss is never recognized.

Your basis in the replacement starts from the old property’s adjusted basis rather than the price you pay. That carryover basis holds the deferred gain, including all the depreciation you claimed, so future depreciation starts from a lower number.

1031 exchange vs. selling, holding or moving in

A taxable sale is simpler and frees the cash, but the gain lands in one year: up to 25% on the depreciation portion, 0%, 15% or 20% on the rest as long-term capital gains, possibly the 3.8% net investment income tax, and state income tax. A fully taxable sale also releases any suspended passive losses.

Exchanging keeps all your pre-tax equity invested, but you stay in real estate, with less diversification, ongoing management work and illiquidity. Repeating exchanges and then holding the last property until death can make the deferral permanent, because heirs receive a step-up in basis to market value.

A former home that became a rental can sometimes use two breaks at once. If you lived in it two of the five years before the exchange, the home sale exclusion applies first and Section 1031 defers the rest, including the depreciation gain. The reverse doesn’t work quickly: replacement property must be held for investment, so you can’t convert it to your home right after the exchange, and a home acquired through one can’t get the Section 121 exclusion until you have held it five years.

Common 1031 exchange mistakes

Many failed exchanges break on a procedural detail rather than on the property itself, and the result is the same: the entire gain becomes taxable in the year of the sale, with no way to restart the clock. Because the intermediary has to be in place before the sale closes, line up the intermediary, the replacement search and the financing before you list the property, not after an offer arrives.

  • Receiving the sale proceeds, even briefly, instead of routing them through a qualified intermediary.
  • Choosing an intermediary without vetting it; the IRS has flagged intermediaries that went bankrupt or couldn’t deliver, leaving investors past their deadlines.
  • Missing the 45-day or 180-day deadline, including the earlier cutoff your return due date can set.
  • Buying a cheaper replacement or taking on less debt without realizing the difference is taxable boot.
  • Exchanging a fix-and-flip property, which is held for sale, or a vacation home used mainly by you, a pitch the IRS warns about.
  • Exchanging with a relative when either side sells within two years, which generally undoes the deferral.
  • Forgetting Form 8824 with the return for the year of the exchange.

Illustrative numbers

Exchanging a $700,000 rental for a $650,000 one, with no mortgages

Formula
Replacement basis = adjusted basis given up + net cash or debt added + gain recognized − boot received
Adjusted basis given up
The old property’s cost plus improvements, minus depreciation
Net cash or debt added
Extra cash you pay or net new debt you take on
Gain recognized
The smaller of your realized gain or the boot received
Boot received
Cash, non-like-kind property and net debt relief you receive

Equivalently, the replacement’s basis is its fair market value when received minus the gain you deferred.

Relinquished rental, sold net of costs$700,000

Adjusted basis after $100,000 of depreciation$200,000

Realized gain$500,000

Replacement property acquired$650,000

Cash kept (boot), taxed now$50,000

Gain deferred$450,000

Basis of the replacement ($650,000 − $450,000)$200,000

The investor owes tax this year only on the $50,000 of cash boot. The other $450,000 of gain, built partly from past depreciation, rides along in the replacement’s $200,000 basis and comes due only when that property is sold in a taxable sale.

At a glance

Ways to exit an appreciated rental property

ExitTax on the gain nowPast depreciationBasis afterward
Taxable saleYes, in the year of saleTaxed at up to 25%Full cost of anything bought next
1031 exchangeOnly on bootDeferred into the replacementCarried over from the old property
Hold until deathNone for the ownerNever taxedHeirs get market value at death
Move in, then sell as a main homeUp to $250,000 or $500,000 excluded, less a share for rental yearsTaxed at up to 25%Full cost of the next home

Put it in your plan

1031 exchange in MoneyWhatIf

MoneyWhatIf does not model a 1031 exchange itself, but it can estimate the taxable sale an exchange would defer. On a rental property card, use What-If to add a sale date and review the sale-cost inputs, then compare the rental’s cash flow with the cash the sale releases and the investments that would replace it. The sale estimate draws on the property’s basis, depreciation history and supported tax rules, including depreciation-related gain, and the sale can release suspended passive losses. That modeled tax is roughly what an exchange would put off.

Open your forecast

Common questions

1031 exchange FAQs

Can I do a 1031 exchange on my primary residence?

No. Section 1031 covers only property held for investment or business use, and a main home is personal-use property. A former home you have converted to a rental can qualify once it is genuinely held as an investment, and if you lived in it two of the five years before the exchange, the Section 121 home sale exclusion can shelter part of the gain first.

Can I take some cash out of a 1031 exchange?

Yes, but the cash is boot and is taxable up to the amount of your realized gain; the rest of the gain can still be deferred. The same applies to debt relief you don’t replace with new debt or added cash.

Can I do a 1031 exchange with a family member?

Yes, but if you or the relative disposes of the exchanged property within two years, the deferred gain generally becomes taxable in that year. Related persons include a spouse, children, grandchildren, parents, grandparents, siblings and certain related entities. Dispositions after a death, involuntary conversions and cases with no tax-avoidance purpose are excepted, and you file Form 8824 for the two years after the exchange.

How long do you have to hold a property in a 1031 exchange?

Section 1031 sets no minimum holding period. What counts is purpose: both properties must be held for investment or business use, and a quick resale can suggest you held one for sale instead. A few fixed clocks do apply: two years after an exchange with a related person, and five years before a home acquired in an exchange can get the Section 121 exclusion.

What happens to a 1031 exchange when the owner dies?

The deferral ends in the heirs’ favor. Inherited property takes a basis equal to its market value at death, so gain deferred through one or many exchanges, including past depreciation, is never taxed as income. Heirs can sell soon afterward with little or no gain. Any estate tax is a separate question.