What is a 1031 exchange?
Written for someone who has never heard the term before, and for someone who has heard it fifty times and still is not sure how it works.
The short answer
A 1031 exchange is a rule in the United States tax code, Section 1031, that lets you sell investment real estate and buy other investment real estate without paying tax on the gain in the year of the sale. The IRS treats it as one continuous investment rather than a sale followed by a purchase.
You must reinvest the full proceeds, you may never touch the money yourself, and you must meet two hard deadlines: 45 days to identify the replacement property and 180 days to close on it. The tax is deferred, not erased.
Key facts at a glance
- Legal basis
- Internal Revenue Code Section 1031, unchanged for real estate in 2026
- What is deferred
- Federal capital gains, depreciation recapture, net investment income tax, and state tax on the gain
- Deadline to identify
- 45 calendar days from closing
- Deadline to close
- 180 calendar days from closing, or the tax return due date if sooner
- Qualifying property
- Real property held for investment or business use, including DST interests
- Required party
- An independent qualified intermediary, engaged before the sale closes
- Tax form
- IRS Form 8824, filed with the return for the year of the sale
On this page
- Why does this rule exist?
- How does a 1031 exchange actually work?
- What property qualifies, and what does not?
- The two deadlines that decide everything
- The three identification rules
- Why you have to match value and debt
- What is boot, and why does it create a surprise tax bill?
- Depreciation recapture, the tax nobody sees coming
- What if you do not want another building?
- Does the tax ever actually come due?
- The four types of exchange
- What does a 1031 exchange cost?
- Is Section 1031 going away?
Why does this rule exist?
Section 1031 has been in the tax code since 1921. The reasoning behind it is simple. If you sell one investment property and immediately put every dollar into another investment property, you have not actually taken any money off the table. Your wealth is still tied up in real estate. You have no cash to pay a tax bill with.
Congress decided that taxing that moment would freeze the market in place. Owners would hold properties they no longer wanted, simply to avoid a bill they could not pay without borrowing. So the law says: keep the money invested in real estate, follow the rules, and we will wait.
That is the whole logic. It is not a loophole, and it is not aggressive tax planning. It is a provision that has survived more than a century of tax reform because it does what it was designed to do.
How does a 1031 exchange actually work?
Here is the sequence, start to finish.
You decide before the sale closes
This is the step that gets missed. A 1031 exchange must be arranged before escrow funds. If the money reaches you first, the exchange is legally impossible and no professional can undo it. Add exchange cooperation language to your purchase agreement.
You hire a qualified intermediary
A qualified intermediary, or QI, is an independent company that holds the proceeds on your behalf. They cannot be your CPA, your attorney, your real estate agent, or a relative. They are not regulated at the federal level, so choosing one with strong bonding, segregated accounts, and a long track record matters a great deal. How to choose one →
Your sale closes and the money goes to the QI
Escrow wires the net proceeds directly to the intermediary. You never see the funds. The closing date is day zero for both deadlines.
You identify replacement property in writing
By midnight on the 45th calendar day, you must give your intermediary a signed document naming the specific properties you might buy. Addresses or legal descriptions, not general descriptions. After day 45 the list is locked. You cannot add to it, and if every property on it falls through, the exchange fails.
You close on the replacement property
The intermediary sends the funds directly to the closing. You must acquire property of equal or greater value and replace any debt that was paid off. Anything left over comes back to you and is taxable.
You report it
Your CPA files IRS Form 8824 with your return for the year of the sale. California owners who exchange into out-of-state property also file FTB Form 3840 every year afterward, so the state can track the gain it expects to tax someday.
What property qualifies, and what does not?
The property you sell and the property you buy must both be real property held for investment or for productive use in a trade or business. The term the code uses is "like-kind," which sounds restrictive but is remarkably broad. Almost any investment real estate is like-kind to almost any other investment real estate.
Qualifies
- Single-family rental houses
- Apartment buildings and duplexes
- Retail, office, industrial, and self-storage
- Raw land and farmland
- Delaware Statutory Trust interests
- Tenant-in-common interests that are properly structured
- Certain long-term leases, generally 30 years or more
- Mineral, water, and some easement rights
Does not qualify
- Your primary residence
- A vacation home you mostly use yourself
- Property bought to fix and flip, which is inventory
- Stocks, bonds, and mutual funds
- Partnership or LLC membership interests
- Equipment, vehicles, artwork, and other personal property, excluded since 2018
- Real estate held outside the United States, when exchanging from US property
You are not required to buy the same kind of property you sold. An apartment building can be exchanged for farmland. A retail strip center can be exchanged for a fractional interest in a medical office portfolio. Raw land can be exchanged for a share of an institutional apartment community. This flexibility is what makes the strategy so useful for owners who want to change what their real estate does for them.
The two deadlines that decide everything
Both clocks start on the day your sale closes, and they run at the same time. This trips people up constantly. The 180 days do not begin after the 45 days end. On day 45 you have 135 days left, not 180.
Every day counts, including weekends and federal holidays. If day 45 falls on Christmas, it is still day 45. The IRS has granted extensions only in the case of federally declared disasters. There is no hardship exception for a lender who backs out, an inspection that goes badly, or a seller who walks away.
One more detail that catches people: your 180 days are cut short if your tax return for the year of the sale is due first. If you sell in November, your April filing deadline arrives before day 180. Filing an extension restores the full 180 days, and it is often necessary.
See the full timeline, day by day, with the pressure points marked →
California owners: three extra rules apply to you →
Or see every requirement in one reference list →
The three identification rules
By day 45 you must name your candidates in writing. You may pick whichever of these three rules works best for your situation, and you only need to satisfy one of them.
| Rule | What it allows | When it is used |
|---|---|---|
| Three property rule | Identify up to three properties, at any value, and buy any or all of them. | The most common choice by far. Simple, forgiving, and enough for most exchanges. |
| 200 percent rule | Identify any number of properties, as long as their combined value does not exceed 200 percent of what you sold. | Useful when spreading across several smaller DSTs or multiple small properties. |
| 95 percent rule | Identify unlimited properties of any value, but you must actually close on at least 95 percent of the total value identified. | Rarely used. It is unforgiving and a single failed closing can break the whole exchange. |
Under the three property rule, most owners name the building they want and then leave the other two slots empty. That is a costly habit. A Delaware Statutory Trust typically closes in two to five business days because the property is already bought and the paperwork is already written. Naming one as your second or third identification gives you a guaranteed landing spot if your primary deal collapses on day 160. Without it, a failed purchase means the whole tax bill comes due.
Why you have to match value and debt
To defer the entire tax, two things have to be true about the property you buy:
- It must cost the same or more than what you sold for, net of selling costs.
- You must replace any mortgage debt that was paid off at the sale, either with a new loan or by adding cash of your own.
The second rule surprises people. Suppose you sell for $900,000 with a $200,000 mortgage that gets paid off at closing. You walk away with $700,000 in proceeds. If you then buy a $700,000 property free and clear, the IRS sees that $200,000 of debt disappeared. Debt relief counts as a benefit you received, so that $200,000 is taxable even though you never touched a dollar of cash.
You can solve this in one of two ways: borrow $200,000 on the new property, or bring $200,000 of your own cash to the closing. In a DST exchange, this is handled for you, because DSTs come with their own financing already in place and you simply select one whose loan-to-value ratio matches what you need to replace.
What is boot, and why does it create a surprise tax bill?
Boot is anything you receive in the exchange that is not like-kind property. It is the leftover. Boot does not ruin the exchange, but it is taxable, and it is taxed first, meaning boot is treated as coming out of your gain rather than your original investment.
- Cash boot. Money you keep instead of reinvesting.
- Mortgage boot. Debt that was paid off and not replaced, as described above.
- Accidental boot. Prorated rents, security deposits transferred to you, or non-transaction costs paid out of exchange funds. These are small but they are real, and a good intermediary and CPA will flag them ahead of closing.
Taking some boot deliberately is a legitimate choice. In the case study on this site, the client kept $22,000 for personal use and exchanged the rest. He paid tax on that $22,000 and deferred everything else. Partial exchanges are perfectly allowed.
Depreciation recapture, the tax nobody sees coming
Every year you owned the rental, you were entitled to deduct a portion of the building's cost as depreciation, typically over 27.5 years for residential property. That deduction reduced your taxable income each year, and it also reduced your basis in the property.
When you sell, the IRS collects that benefit back. The portion of your gain attributable to depreciation, called unrecaptured Section 1250 gain, is taxed at a federal rate of up to 25 percent rather than the lower long-term capital gains rate.
The rule is "allowed or allowable." If you were entitled to depreciation and your accountant never took it, the IRS still reduces your basis as though you had. You get the tax bill without ever having received the deduction. Owners who self-prepared returns for decades are hit by this regularly.
A 1031 exchange defers recapture along with the capital gain, and a well-structured exchange into a DST establishes a fresh depreciation schedule on your share of the new property. That new depreciation is what shelters most of the income you receive going forward.
Read the full explanation of depreciation recapture → · See all 38 questions →
What if you do not want another building?
This is the question that brings most people to this site. You are ready to stop being a landlord. Buying a different building to manage does not solve your actual problem.
The answer is that you do not have to buy a building at all. A Delaware Statutory Trust lets you own a fractional interest in large, professionally managed institutional real estate. The IRS ruled in 2004 that a properly structured DST interest is like-kind real property, so it fully qualifies as replacement property in a 1031 exchange.
You receive monthly distributions, a share of any appreciation when the property is eventually sold, and a fresh depreciation schedule that shelters much of that income. You receive no tenant calls, no repair bills, no vacancy risk on a single unit, and no property tax notices. You also give up control and liquidity, which is a real tradeoff worth understanding before you commit.
Read the full explanation of Delaware Statutory Trusts, including the risks →
Does the tax ever actually come due?
There are exactly three endings.
- You eventually sell for cash. The deferred gain from every prior exchange stacks up and comes due in that year, at whatever rates apply then.
- You exchange again. There is no limit to how many times you can do this. Each exchange carries the old deferred gain forward into the new property.
- You hold until death. Under current law, your heirs receive the property at its fair market value on the date of death. The deferred gain, accumulated across every exchange you ever did, is eliminated. Your heirs could sell the next day and owe essentially nothing on the appreciation that occurred during your lifetime.
That third path is why investors describe the strategy as "swap until you drop." For a seventy-year-old owner who wants income now and wants to leave something clean to their children, it is often the single most effective estate planning move available. It also depends on a step-up rule that Congress could change, which is worth discussing honestly rather than assuming.
The four types of exchange
| Type | How it works | Notes |
|---|---|---|
| Delayed (forward) | You sell first, then buy within 180 days. | The standard. More than nine out of ten exchanges are this kind. |
| Reverse | You buy the replacement first, parking it with an accommodation titleholder, then sell your old property within 180 days. | Allowed under a 2000 IRS safe harbor. More expensive, and usually requires cash or a lender comfortable with the structure. |
| Improvement (build-to-suit) | Exchange funds are used to build or renovate the replacement property while an intermediary holds title. | Only improvements completed within the 180 days count toward the value you must match. |
| Simultaneous | Both closings happen the same day. | Rare today. Still requires an intermediary for safety. |
What does a 1031 exchange cost?
The exchange itself is not expensive relative to what it defers. A qualified intermediary typically charges somewhere in the range of $1,000 to $1,500 for a standard delayed exchange, plus a modest per-property fee if you buy more than one. Reverse and improvement exchanges cost several thousand dollars more because of the additional entity and title work.
Beyond that you have your normal closing costs, your CPA's fee for preparing Form 8824, and, if you go the DST route, the sponsor's fees, which are disclosed in the offering documents and are built into the investment. Those fees are meaningful and deserve a careful read; we walk through them on the DST page.
Set against a tax bill that frequently runs from $150,000 to $400,000 on a long-held property, the arithmetic is usually not close. But it should still be arithmetic you do, not arithmetic you assume.
Is Section 1031 going away?
Not as of 2026. The One Big Beautiful Bill Act, passed in 2025, left Section 1031 fully intact for real estate. The last significant change was the 2017 Tax Cuts and Jobs Act, which removed personal property such as equipment and vehicles from the rule while leaving real estate untouched.
Proposals to cap the deferral or repeal the provision have appeared in various budget frameworks over the years and have not become law. Section 1031 has survived every major tax reform since 1921. That is not a guarantee, and anyone who tells you the rule is permanent is guessing. The reasonable posture is to plan around the law as it exists today and to move when you are ready, rather than waiting for certainty that will not arrive.
What to do next
If you have not signed anything, you have every option available to you. If you have signed but escrow has not funded, you likely still do, but time matters and you should make a call today rather than next week. If the money has already reached your account, the exchange is gone, and the useful conversation shifts to what can still be done with the proceeds.
Estimate your tax bill · Compare all six options · Book a free call
Not sure whether this applies to you?
Tell us the purchase price, the offer, and roughly how long you have owned it. On a free 30-minute call we will tell you what the tax would be and whether an exchange is worth the effort in your case.
Book a free 30-minute call