The 1031 exchange rules let you sell investment real estate and defer the capital gains tax, as long as you reinvest in other real estate held for investment, identify the replacement within 45 days, close within 180 days, and never touch the sale proceeds yourself. Miss any one of those conditions and the gain becomes taxable in the year you sold.
This guide covers each rule with its source, a worked example, why most flips and wholesale deals are shut out, and the mistakes that cost investors the deferral.
What a 1031 exchange actually does
Section 1031 of the Internal Revenue Code says no gain or loss is recognized when you exchange real property held for productive use in a trade or business or for investment solely for other real property of like kind that you will also hold for business or investment. You can read the statute itself on Cornell’s copy of 26 U.S. Code § 1031.
The key word is defer. The tax does not disappear. Your old basis carries into the new property, so the gain you did not pay tax on today is built into the replacement and is taxed when you eventually sell without exchanging again. Two things can make the deferral permanent in practice: exchanging again and again for the rest of your life, or holding the final property until death, when heirs generally receive a basis equal to fair market value on the date of death under Section 1014.
Since January 1, 2018, the exchange applies only to real property. The Tax Cuts and Jobs Act removed equipment, vehicles, artwork, and other personal property, which the IRS confirmed in its notice that like-kind exchanges are now limited to real property. Later regulations allow a small amount of personal property that is incidental to the real estate, such as appliances in a rental, to ride along. The 2025 federal tax bill left Section 1031 unchanged, so the rules below are the current ones.
The 1031 exchange rules, one at a time
Rule 1: Both properties must be held for investment or business use
The property you sell (the relinquished property) and the property you buy (the replacement) must both be held for productive use in a trade or business or for investment. A rental house, a small apartment building, a commercial building, raw land held for appreciation, and a triple-net leased store can all qualify. Your primary residence does not.
The statute specifically excludes real property held primarily for sale. That is the rule that matters most to readers of this site, and it gets its own section below.
Rule 2: “Like-kind” is broad for real estate
US real estate is like-kind to other US real estate regardless of type: land for a fourplex, or a duplex for a warehouse. The one hard boundary is geography: US real property and foreign real property are not like-kind, as the IRS real estate tax tips on like-kind exchanges explain.
Rule 3: The 45-day identification window
You have 45 days from the day you transfer the relinquished property to identify possible replacements. The deadline runs to midnight of day 45, weekends and holidays included.
The identification must be in writing, signed by you, and delivered before the deadline to a person involved in the exchange who is not you or a disqualified person, typically the qualified intermediary. A signed written exchange agreement that names the property also works. The details are in Treasury Regulation § 1.1031(k)-1.
Rule 4: How many properties you can identify
The regulation gives you three ways to stay within the limits:
- Three-property rule: identify up to three properties of any value.
- 200 percent rule: identify any number of properties as long as their combined fair market value does not exceed 200 percent of the value of what you sold.
- 95 percent rule: if you exceed both limits, the identification still works only if you actually acquire at least 95 percent of the total value you identified.
Most investors use the three-property rule: a first choice plus two backups.
Rule 5: The 180-day exchange period
You must receive the replacement property within 180 days of transferring the relinquished property, or by the due date of your tax return for that year including extensions, whichever comes first. The two windows run at the same time, so the 45 days are part of the 180, not added to them.
The return-date cutoff catches people who sell late in the year. If you sell on November 15, day 180 falls in mid-May, but your individual return is due April 15. Unless you file an extension, the exchange period ends on April 15. File the extension.
Rule 6: You cannot touch the money
If you have actual or constructive receipt of the sale proceeds, even briefly, the exchange fails. Money credited to your account, set aside for you, or available for you to draw on counts as received. That is why nearly every delayed exchange uses a qualified intermediary, who holds the funds under a written agreement that expressly limits your access to them.
Not just anyone can serve as your intermediary. Under the same regulation, a person who acted as your employee, attorney, accountant, investment banker or broker, or real estate agent or broker within the two years before the transfer is a disqualified person. Routine title, escrow, and financial services do not disqualify someone, and neither does having provided 1031 exchange services.
Rule 7: Report it on Form 8824
Every exchange is reported on Form 8824 with your return for the year of the transfer. The Form 8824 instructions walk through the calculation of recognized gain and the basis of the new property.
Boot: the part of the exchange that is taxable
An exchange does not have to be all or nothing. If you receive anything other than like-kind property, that extra value is called boot, and it is taxable up to the amount of your gain. Boot comes in two main forms:
- Cash boot: sale proceeds you take out, or money used at closing for things that are not part of the purchase price.
- Mortgage boot: debt relief. If the loan you paid off on the old property is larger than the debt on the new property, and you do not add cash to cover the difference, the net reduction counts like cash received.
Two practical rules prevent most boot. First, buy replacement property of equal or greater value than the net sale price. Second, reinvest all the equity and replace the old debt with new debt or with your own added cash. Cash you add can offset debt relief, but new debt cannot offset cash you take out.
A worked example, with the numbers
The figures below are hypothetical, chosen to show the math. Your own numbers will differ.
The sale. An investor bought a duplex eight years ago for $250,000 and has taken $72,000 of depreciation, so the adjusted basis is $178,000. The duplex sells for $420,000, with $25,000 in selling costs, for an amount realized of $395,000. The realized gain is $217,000. The existing loan payoff is $160,000, so $235,000 of equity goes to the qualified intermediary.
| Item | Amount |
|---|---|
| Sale price | $420,000 |
| Selling costs | -$25,000 |
| Amount realized | $395,000 |
| Adjusted basis ($250,000 cost – $72,000 depreciation) | $178,000 |
| Realized gain | $217,000 |
| Loan payoff | $160,000 |
| Equity held by the intermediary | $235,000 |
Scenario A: full deferral. Within 45 days the investor identifies a fourplex, and closes on day 110 at $520,000 with a new $285,000 loan and all $235,000 of the exchange equity. The new property costs more than the old one sold for, all equity was reinvested, and the new debt exceeds the old debt. No boot, so the full $217,000 gain is deferred.
The basis of the fourplex is its $520,000 cost minus the $217,000 deferred gain, or $303,000. That lower basis is how the deferred gain follows the investor forward, and it also means smaller depreciation deductions than a fresh purchase at the same price would give.
What did the exchange save? Roughly, the $72,000 of depreciation would have been taxed as unrecaptured Section 1250 gain at a maximum federal rate of 25 percent, and the remaining $145,000 at the long-term capital gains rate, which is 15 percent for many investors and 20 percent at the top bracket under the IRS rules on capital gains. At 25 percent and 15 percent, that is about $18,000 plus $21,750, or roughly $39,750 of federal tax, before any state tax and before the 3.8 percent net investment income tax that applies above certain income levels. That money stays invested in the fourplex instead.
Scenario B: a partial exchange. Suppose the investor instead buys a $360,000 property with a $150,000 loan, uses $210,000 of the equity, and takes the other $25,000 in cash. The cash is boot. The old loan was $160,000 and the new one is $150,000, so there is also $10,000 of net debt relief. Total boot is $35,000, which is taxable this year, and the remaining $182,000 of gain is deferred.
| Scenario A | Scenario B | |
|---|---|---|
| Replacement price | $520,000 | $360,000 |
| New loan | $285,000 | $150,000 |
| Cash taken out | $0 | $25,000 |
| Net debt relief | $0 | $10,000 |
| Taxable boot | $0 | $35,000 |
| Gain deferred | $217,000 | $182,000 |
Taking some cash out on purpose is fine; the point is to know the taxable number before closing.
Why most flips and wholesale deals do not qualify
This is the section most 1031 guides skip, and it is the one wholesalers and flippers most need. Section 1031(a)(2) excludes real property held primarily for sale. The IRS and courts look at your intent and conduct: how long you held the property, whether you improved it to resell, how often you buy and sell, and how you marketed it.
Apply that to the strategies taught on this site:
- Wholesale assignments. When you assign a purchase contract for a fee, you are selling your contract rights, and you acquired them to resell. Our reading of the statute is that this is property held for sale, and the fee is ordinary income. Our guide to wholesale real estate taxes covers how that income is usually treated.
- Fix-and-flips. A house bought to renovate and resell is classic inventory. Even if the profit is large, rolling it into another flip through a 1031 exchange generally does not work.
- Double closings and wholetails. Holding title for a day or a few weeks does not change the intent. The property was still bought to sell.
The picture changes when you keep property as a rental. A house you buy, renovate, rent out, and hold under the BRRRR method is held for investment, and when you eventually sell it, the 1031 exchange rules can apply. Many active investors keep their flips and their long-term rentals in separate entities, with separate books, so the intent behind each property is clear.
There is no fixed minimum holding period in the statute. Many tax advisors are uncomfortable with holds under a year or two, because a short hold makes investment intent harder to show, but the real test is the facts as a whole.
How the 1031 exchange rules affect the buyers on your list
Even if you never do an exchange yourself, your buyers will. Landlords and commercial investors who are mid-exchange are some of the most motivated buyers in any market, because the 45-day clock is running and they need replacement property they can actually close on.
- Ask about exchanges when you build your buyers list. A buyer who tells you they have a sale closing next month and $300,000 sitting with an intermediary is a buyer to call first.
- Expect them to care about value and debt. To avoid boot they often need to buy at or above a certain price and carry a certain amount of debt. A deal that fits their number can beat a cheaper deal that does not.
- Expect them to read the income first. Exchange buyers tend to compare deals on income, using metrics like the cap rate and cash-on-cash return. Run your deal through the cash-on-cash return calculator before you send it.
Reverse exchanges and vacation homes
Two variations come up often enough to know by name.
Reverse exchanges. Sometimes the replacement shows up before the old property sells. Under Revenue Procedure 2000-37, an exchange accommodation titleholder can take title to one of the properties while you sell the other. You must identify the relinquished property within 45 days, and the combined time the titleholder holds the properties cannot exceed 180 days.
Vacation and second homes. A property used partly for personal enjoyment is a gray area. Revenue Procedure 2008-16 offers a safe harbor: you must own the unit for 24 months before (or after) the exchange, rent it at a fair rental for at least 14 days in each of the two 12-month periods, and limit personal use in each period to the greater of 14 days or 10 percent of the days it was rented.
State rules that follow the property
Federal law is the same in every state, but state tax treatment is not. Most states that tax income follow the federal deferral. A few track the gain after you move it out of state:
| State | What happens | Where to read more |
|---|---|---|
| California | If you exchange California property for property in another state, you must file Form FTB 3840 every year until the deferred California gain is recognized. | FTB 3840 instructions |
| Oregon | Similar tracking: Form OR-24 is filed each year until the replacement property is disposed of. | Oregon Department of Revenue |
| Montana | The deferred gain keeps its Montana source and is taxed by Montana when it is eventually recognized, without an annual form. | Montana administrative rules |
Some states also require withholding on sales by out-of-state sellers, with exemptions or reduced withholding for qualifying exchanges. Ask the title company handling your sale what applies in that state, because withholding errors are easier to prevent at closing than to fix afterward.
Where investors lose the deferral
Most failed exchanges come down to a short list of mistakes:
- Calling the exchange company after closing. The intermediary has to be in place before the relinquished property closes. Once proceeds hit your account, it is too late.
- Identifying only one property. If that deal falls apart on day 60, you have nothing to buy. Name backups.
- Ignoring the tax-return deadline. Late-year sales need an extension to get the full 180 days.
- Trading down without noticing. Buying cheaper property or carrying less debt creates boot. Run the numbers before you sign.
- Trying to exchange inventory. Flips and contract assignments held for sale do not qualify, no matter how the paperwork is labeled.
When a 1031 exchange is the wrong move
A 1031 exchange is a strong tool, but it is not always the right one.
- Small gains. If the gain is modest, intermediary fees, the pressure of the deadlines, and the risk of overpaying for a replacement can cost more than the tax.
- When you need the cash. If you want liquidity for a new business, a down payment on your home, or to pay off debt, paying the tax may be the better trade.
- Forced buying. The worst exchanges happen when investors buy a mediocre property on day 44 just to avoid tax. Saving 20 percent in tax on a property that loses value is not a win.
The bottom line on 1031 exchange rules
The 1031 exchange rules reward investors who plan before they sell: an intermediary in place, a realistic short list of replacements, a clear picture of debt and equity, and properties that were truly held for investment. They do not help with wholesale fees or flips, which is why many investors use wholesaling to build capital and rentals to build long-term, tax-deferred wealth. If you want help mapping that path from first deals to long-term holds, our mentorship program covers how to structure both. For your own transaction, bring the numbers to a qualified exchange company and a tax professional before the first sale closes.
Build long-term wealth from your deals
Start with deals that build your capital
The free starter kit gives you a deal analyzer to check returns before you commit, starter contracts, a seller script, and a buyer’s list checklist that helps you find the landlords and exchange buyers who close fastest.