A 1031 exchange, step by step: selling one building and buying the next within 180 days
An investor sells a warehouse and wants to keep the gain working instead of paying tax on it now. The rules give her two clocks, a middleman who holds the money, and very little room for error.
This walkthrough is an illustrative composite built from common dealmaker workflows. Names, firms and figures are invented. It is not a customer story.
What a 1031 exchange is
A 1031 exchange, named after Section 1031 of the US tax code, lets an investor sell real property held for business or investment and buy other real property without recognizing the gain at the time of the sale. The tax is deferred, not forgiven: it carries into the new property. Since 2018 the rule applies to real property only.
The property must be held for business or investment. A personal home does not qualify, and neither does property held mainly to resell, such as a quick flip.
This walkthrough is illustrative. The tax treatment of any real exchange depends on the facts, and an investor planning one should work with a tax advisor and a qualified intermediary from the start. It is not tax or legal advice.
The sale: day 0
Elena owns a small industrial warehouse she bought nine years ago. A buyer agrees to pay 2.4 million dollars, and the sale is set to close on March 3. She wants to move the money into a larger property closer to her other holdings, and her broker first raises the idea of an exchange in a WhatsApp thread two months before closing.
Before closing, she signs an exchange agreement with a qualified intermediary, an independent company that will hold the sale proceeds. This matters: if the money is paid to Elena, or she can reach it, the exchange can fail. At closing on March 3, the net proceeds go straight to the intermediary.
Identification: day 1 to 45
For six weeks, Elena’s broker sends listings, a lender sends rate sheets on LinkedIn, and two owners she knows mention buildings they might sell. Most fall away quickly. By day 40 she has three candidates: a flex industrial building, a small retail strip, and a medical office.
Identification has rules of its own. Elena signs a written list describing the properties and delivers it to the intermediary before midnight on day 45. The common limits are:
- Three-property rule. Identify up to three properties of any value.
- 200% rule. Identify more than three, as long as their combined value is no more than 200% of the property sold.
- 95% exception. Exceed both limits and the list generally fails, unless the investor ends up buying at least 95% of the value identified.
Elena uses the three-property rule. Listing a backup matters: if the first choice falls through after day 45, she can only buy something already on the list.
Contract and closing: day 46 to 180
Day 52: offer on the flex building
Elena offers 2.6 million dollars. The contract gives her 30 days of due diligence and a closing date of day 110, leaving room before day 180 if anything slips.
Day 70: a diligence problem
The roof report is worse than expected. Elena negotiates a price reduction instead of walking away, because her backups on the list are weaker deals.
Day 110: closing
The intermediary wires the exchange funds to the closing. Elena adds a new loan for the rest. Title passes to her, and the exchange is complete.
After year end, she reports the exchange on IRS Form 8824 with her tax return.
What makes part of the gain taxable
An exchange does not have to be all or nothing. Value Elena receives that is not like-kind property, commonly called boot, is generally taxable up to the amount of her gain.
- Cash left over. If the intermediary returns unused proceeds after the exchange, that cash is generally taxable.
- Less debt. If the new loan is smaller than the debt paid off on the old building and the difference is not made up with cash, the reduction can be treated as boot.
- Non-property items. Some closing costs paid from exchange funds can create taxable amounts. Which ones depends on the facts.
The general rule of thumb investors use: to defer all of the gain, buy property of equal or greater value, reinvest all the net cash, and replace the debt that was paid off.
Where these exchanges usually go wrong
- No intermediary at closing. Once the investor receives the sale proceeds, it is usually too late to start an exchange.
- A list that is too thin. One identified property and one bad inspection can end the exchange.
- A timeline that assumes everything goes right. Financing, title and diligence all have to fit inside 180 days.
- Changing the owner. The taxpayer who sells generally needs to be the taxpayer who buys.
For the contract terms that shape the purchase side, see commercial real estate purchase agreement terms, explained.
Where Merger fits
An exchange runs on short deadlines and many conversations: listings from brokers in WhatsApp groups, lenders on LinkedIn, owners on Signal. In Merger, the messaging accounts you connect sit in one inbox, and with your own Anthropic API key Claude can flag a conversation as a possible deal for you to approve onto the Deal Desk, with the conversation attached, so each candidate property and who sent it stays easy to find.
Sources
- IRS, Like-kind exchanges: real estate tax tips · accessed Nov 28, 2026
- IPX1031, 1031 exchange deadlines and identification requirements · accessed Nov 28, 2026