A 1031 exchange is a federal tax rule that lets you sell real estate held for business or investment and replace it with other real estate without recognizing the gain in the year of sale. It comes from Section 1031 of the Internal Revenue Code, and you report it on Form 8824 with that year’s return.

The gain is deferred, not forgiven. The old property’s tax basis carries over to the replacement, so future depreciation is smaller and the tax waits for a later sale. That gap between tax-free and tax-deferred is the thing people get wrong, usually after someone has promised them a vacation home swap.

What counts as like-kind real property?

Properties are like-kind when they share the same nature or character, even if they differ in grade or quality. A strip mall and an apartment building can be like-kind; a US property and a foreign property cannot.

For 2018 and later tax years, Section 1031 treatment applies only to real property held for use in a trade or business or for investment, and not to real property held primarily for sale. Real property includes land and improvements to land, unsevered natural products of the land, and water and air space above the land, plus certain tangible and intangible interests defined in the regulations.

Improved and unimproved real estate are generally like-kind to each other, so raw land can be exchanged for a rented house. What fails is property held mainly for resale: a spec home built to sell, or a flip carried as inventory, does not qualify because it is stock in trade rather than an investment.

How does a 1031 exchange work step by step?

The mechanics rest on one rule: you never take control of the money. A qualified intermediary sells the old property, holds the proceeds, and buys the replacement on your behalf.

Step 1: Line up a qualified intermediary before closing

The intermediary must be in place before the relinquished property closes, and it cannot be you. Your real estate agent, broker, accountant, attorney, or employee is also disqualified, along with anyone who worked for you in one of those roles during the previous two years.

Using an agent as the facilitator is a common shortcut and a costly one, because the safe harbor requires someone who has not been your agent. Vetting the facilitator matters: the IRS lists intermediary bankruptcy or contract failures as a known reason exchanges collapse.

Step 2: Let the intermediary hold the sale proceeds

Cash or other proceeds reaching your hands before the exchange is complete can disqualify the entire transaction and make all of the gain immediately taxable. The proceeds go to the intermediary, and the replacement purchase runs through that same intermediary.

Step 3: Deliver a written identification within 45 days

You have 45 days after the relinquished property transfers to identify replacement property in writing. The notice must be signed by you and delivered to a person involved in the exchange, such as the qualified intermediary or the seller of the replacement property.

Delivery to your own attorney, accountant, or real estate agent does not count. Each property must be clearly described by legal description, street address, or a distinguishable name. The IRS also limits how many properties you can identify and their combined value; those safe harbors sit in the Form 8824 instructions, so read the source instead of a forum post.

Step 4: Receive the replacement property within 180 days

Title has to pass to you within the window, not a signed purchase contract. A deal that is almost closed on day 179 is not a completed exchange.

Can the 45-day or 180-day deadlines be extended?

Not for hardship, not for a slow lender, and not for a title problem. The only exception is a presidentially declared disaster.

There is a second trap in the 180-day rule. The replacement must be received within 180 days after the sale or by the due date of your return for the year of sale, including extensions, whichever is earlier.

A December sale has a 180-day window that runs into the following June, but the return due date arrives first unless you file an extension. A late-year closing therefore shortens the clock in practice.

What is boot, and how is it taxed?

Boot is what you pull out of the exchange instead of reinvesting: cash received, the fair market value of other property received that is not like-kind, and net liabilities the other party assumes.

Gain is recognized to the extent of boot, capped at your realized gain, and never below zero. A loss is not recognized when other property or money changes hands. A 1031 that puts cash in your pocket is a partial exchange rather than a failed one; you simply pay tax on the piece you took out.

A worked example with round numbers

Take a hypothetical rental sold for $400,000 with $25,000 of selling costs and an adjusted basis of $180,000. Amount realized is $400,000 minus $25,000, or $375,000.

Realized gain is $375,000 minus $180,000, or $195,000. The intermediary holds the full $375,000.

The table assumes the whole gain is long-term capital gain taxed at 15% and that income sits above the net investment income tax threshold, so the blended rate is 18.8%.

RouteReplacement boughtBootGain recognized nowTax now
Full exchange$450,000, adding $75,000 of new cash or a new loan$0$0$0
Partial exchange$335,000, keeping $40,000$40,000$40,000$7,520
Straight sale, no exchangeNonen/a$195,000$36,660

The partial exchange arithmetic: $40,000 times 18.8% equals $7,520. The straight sale: $195,000 times 18.8% equals $36,660. Both assume no depreciation recapture; if you claimed depreciation, part of the gain can be unrecaptured Section 1250 gain taxed at up to 25%, which raises the bill.

Basis is where the full exchange catches up with you. In the $450,000 purchase, your new basis is the $180,000 carried over plus the $75,000 of extra cash, or $255,000. Depreciation deductions on the new building are computed on that smaller number, and the $195,000 of deferred gain stays embedded in the property.

How much tax does an exchange actually defer?

It depends on your bracket. For taxable years beginning in 2025, long-term capital gains fall at 0%, 15%, or 20%.

The 0% rate covers taxable income up to $96,700 for married couples filing jointly and $48,350 for single filers. The 15% band runs to $600,050 for joint filers and $533,400 for single filers, with 20% above those levels.

Unrecaptured Section 1250 gain, which is the depreciation you wrote off on the building, is taxed at a maximum 25% rate. The 3.8% net investment income tax applies to the lesser of net investment income or modified AGI above $250,000 for joint filers, $200,000 for single and head of household filers, and $125,000 for married filing separately.

Run your own numbers before assuming the exchange pays for itself. If your gain lands in the 0% bracket, deferring it buys almost nothing and you have taken on deadlines and fees for no benefit. If you are near the 20% line with depreciation to recapture, the deferral is worth real money.

What is a reverse exchange?

A reverse exchange covers the case where you must buy the replacement before the old property sells. The replacement is parked with an exchange accommodation titleholder for no more than 180 days while you sell the relinquished property.

It is more expensive and more document-heavy than a forward exchange, and it suits buyers in competitive markets where waiting for your own sale to close means losing the property. It is a poor fit for an investor who has not yet found a replacement.

Selling to a relative or to an entity you control can still qualify, but the IRS watches the property for two years afterward. A related party includes a spouse, child, grandchild, parent, grandparent, brother, sister, and related corporations, S corporations, partnerships, trusts, estates, and tax-exempt organizations.

If either side disposes of the exchanged property within two years of the last transfer in the exchange, the deferred gain or loss must be reported in the year of disposition unless an exception applies. That rule ends the popular plan of swapping into a relative’s property and selling it right away.

Who does a 1031 exchange suit?

It fits investors with real equity, a long horizon, and a plan to stay in real estate. In the example above, keeping the full $375,000 invested instead of sending $36,660 to the IRS leaves more capital working in the next property.

It is a poor fit for an investor who needs the cash, wants to move into stocks or a business, or holds a small gain where the intermediary fee and extra closing costs eat the deferral. It also fails anyone who cannot find a replacement quickly in a thin market, because the 45-day clock ignores local inventory. Before trading up, compare what the new property returns against what you are giving up; cap rate vs cash-on-cash return is the comparison most rental owners should run first.

Common mistakes

  • Calling the exchange tax-free. The gain is deferred, and the lower basis on the replacement property means smaller depreciation deductions going forward.
  • Letting the proceeds hit your bank account just until closing. Taking control of the cash can make the whole gain taxable in the year of sale.
  • Using your own real estate agent or attorney as the facilitator. Anyone who served you in that capacity in the past two years is disqualified from the safe harbor.
  • Sending the identification to the wrong person. Notice to your attorney, accountant, or agent is not valid delivery.
  • Assuming a primary residence, second home, or vacation home qualifies. The IRS specifically warns about promoters pitching those swaps.
  • Forgetting the two-year related-party rule, then disposing of the property and owing the deferred tax.