How the 1031 exchange calculator figures boot and deferred gain
Under section 1031 of the Internal Revenue Code, no gain or loss is recognized when you exchange real property held for use in a business or for investment solely for real property of like kind, held the same way. Property held mainly for sale doesn't qualify. In a deferred exchange, a qualified intermediary sells your property, holds the money and buys the replacement for you, so you never receive the proceeds.
The gain isn't forgiven, it's postponed. The calculator follows the lines of Form 8824, where the exchange is reported. Your realized gain is what you would have had on a sale: the price less selling costs and your adjusted basis. Anything you receive that isn't like-kind property is boot, and gain is recognized up to the amount of the boot.
- \text{boot}
- Cash boot (proceeds you keep) plus mortgage boot (debt paid off beyond the new debt and the cash you add)
- \text{realized gain}
- Sale price less selling costs and adjusted basis
- \text{deferred gain}
- Realized gain less recognized gain
Two kinds of boot matter in a typical exchange. Cash boot is exchange money left over after the purchase. Mortgage boot arises when the mortgage paid off on the property you sell is larger than the new mortgage plus any cash you add. Debt you're relieved of is offset by debt you take on and cash you put in, but cash you receive isn't offset by new debt. Selling costs paid at closing reduce the boot first. If the purchase needs more cash than the exchange holds, the calculator assumes you add it and says so.
Worked example: trading a $600,000 rental
An investor sells a rental for $600,000 on March 10, 2026. Selling costs are $36,000, the adjusted basis is $250,000 after $100,000 of depreciation, and $200,000 of mortgage is paid off, leaving $364,000.00 with the intermediary. The realized gain is $314,000.00. How much of it is deferred depends on the replacement:
| Replacement | Cash boot | Mortgage boot | Recognized gain | Deferred gain | New basis | Tax now |
|---|---|---|---|---|---|---|
| $700,000, $336,000 loan | $0.00 | $0.00 | $0.00 | $314,000.00 | $386,000.00 | $0.00 |
| $650,000, $300,000 loan | $14,000.00 | $0.00 | $14,000.00 | $300,000.00 | $350,000.00 | $3,080.00 |
| $500,000, $100,000 loan | $0.00 | $64,000.00 | $64,000.00 | $250,000.00 | $250,000.00 | $14,724.00 |
Buying up with as much debt as before defers everything. The $650,000 purchase leaves $14,000.00 of cash boot, taxed now at $3,080.00, and defers $300,000.00. Buying down to $500,000 with a $100,000 loan needs $36,000.00 of the investor's own cash, and still leaves $64,000.00 of mortgage boot, because the debt fell. A plain sale would have cost $63,216.00 in federal tax.
This estimate taxes recognized gain as depreciation first: up to the $100,000 of depreciation taken, it is taxed at ordinary rates capped at 25%, and the rest at capital gains rates, with the 3.8% net investment income tax where it applies. That ordering is our reading of how the rules combine; a tax professional can confirm it for your exchange.
The 45-day and 180-day deadlines
The clocks start on the day the sale of your property closes. You must identify replacement property by midnight on the 45th day after it, and receive the replacement by midnight on the earlier of the 180th day and the due date, including extensions, of your tax return for the year of the sale. Property identified late or received late isn't treated as like-kind, so the exchange fails and the gain is taxed.
The second rule catches late-year sales. A sale closing November 20, 2026 has an identification deadline of January 4, 2027. Its 180th day is May 19, 2027, but the 2026 return is due April 15, 2027, so that is the deadline unless the return is extended; with an extension, the deadline is the full May 19, 2027.
You can identify up to three properties whatever their value, or any number whose total value doesn't exceed 200% of the property you sold. Identify more than that and it counts as if you identified none, unless you acquire at least 95% of the value of everything you identified.
The replacement property basis, and what happens later
The deferred gain stays with you through the new property's basis: in the example, the $650,000 replacement has a basis of only $350,000.00. You depreciate from that carried-over basis, and when you eventually sell without exchanging, the deferred gain and the depreciation you take on the replacement come due. A loss can't be deducted in an exchange either; it carries into the new basis.
A qualified intermediary is a person who isn't you or someone disqualified (such as your agent), signs a written exchange agreement with you, and acquires and transfers both properties under it. To see the tax a plain sale would cost instead, with state tax and the net investment income tax, use the rental property capital gains tax calculator; the rental property depreciation calculator works out the depreciation behind your adjusted basis.
The bottom line
A 1031 exchange defers tax on the gain from selling an investment property when you reinvest in like-kind real estate, but any boot is taxed now. In the example, a $650,000 replacement defers $300,000.00 of a $314,000.00 gain and leaves $14,000.00 taxable.
Line up a qualified intermediary before the sale closes, run your numbers through the 1031 exchange calculator, and buy at least as much property, with at least as much debt or added cash, if you want to defer it all.
Frequently asked questions
What is taxable boot in a 1031 exchange?
Taxable boot is anything you receive in the exchange that isn't like-kind real property: cash left over after buying the replacement, debt relief that isn't offset by new debt or added cash, and other property. Gain is recognized up to the amount of boot, but never more than the realized gain.
What is mortgage boot?
Mortgage boot is the amount by which the debt paid off on the property you sell exceeds the debt on the replacement plus the cash you add. If you pay off a $200,000 mortgage and take a $100,000 loan on the replacement, adding $36,000 of your own cash, $64,000 of mortgage boot is taxable.
What is cash boot?
Cash boot is exchange money you end up receiving, usually because the replacement costs less than the property you sold or because you take cash out at closing. Cash you receive is taxable boot even if you take on a larger mortgage, because new debt doesn't offset cash received.
How is the deferred gain calculated?
The deferred gain is the realized gain less the gain recognized because of boot. Realized gain is the sale price less selling costs and your adjusted basis; recognized gain is the smaller of the boot and that realized gain. The deferred gain reduces the basis of the replacement property.
When is the 45-day identification deadline?
The 45-day identification deadline is midnight on the 45th day after the sale of your property closes. By then you must identify the replacement in writing; up to three properties of any value, or more if their total value is no more than 200% of the property you sold.
When is the 180-day exchange deadline?
You must receive the replacement property by midnight on the earlier of the 180th day after the sale closes and the due date of your tax return, with extensions, for the year of the sale. For sales late in the year, the return can be due first, so filing an extension preserves the full 180-day exchange deadline.
What is the replacement property basis after a 1031 exchange?
Your replacement property basis is what the replacement cost, reduced by the deferred gain (or increased by a deferred loss). On Form 8824 it is line 18 plus the recognized gain, less the boot on line 15. You depreciate the replacement from that basis.
Sources and further reading
- 26 U.S. Code § 1031, Exchange of real property held for productive use or investment (opens in a new tab), Legal Information Institute, Cornell Law School
- 26 CFR § 1.1031(k)-1, Treatment of deferred exchanges (opens in a new tab), Legal Information Institute, Cornell Law School
- Instructions for Form 8824, Like-Kind Exchanges (opens in a new tab), Internal Revenue Service
- Publication 544, Sales and Other Dispositions of Assets (opens in a new tab), Internal Revenue Service
Related calculators
- Rental Property Capital Gains Tax CalculatorSelling without an exchange? Estimate the federal and state tax on the whole gain.
- Rental Property Depreciation CalculatorNeed your adjusted basis? Build the depreciation schedule from the IRS tables.
- Section 121 Exclusion CalculatorPlanning to move into the replacement one day? See how the home sale exclusion treats a former rental.