Audited 05 Aug 2026·Last updated 28 Oct 2026·5 citations·Tier 1·0 uses

1031 Exchange Calculator

Split the gain on a 1031 like-kind exchange into the part taxed now because of boot and the part deferred, from sale price, selling costs, basis and boot.

1031 Exchange Calculator

$
Broker commissions, title and escrow fees, transfer taxes, qualified-intermediary and legal fees. They reduce the gain and, under Form 8824 line 15, the boot.
$
$
Cash paid to you and the market value of any non-real property, before subtracting exchange expenses. Do not include debt relief here; use the debt fields.
$
Mortgages paid off or assumed by the buyer at closing. Leave 0 if the property was debt-free.
New mortgage on the property you receive, plus any cash or non-like-kind property you contribute. It offsets debt relief before debt counts as boot.
Recognized gain (Form 8824 line 20)
20,000.00
Dollars of gain taxed in the year of the exchange: the smaller of realized gain and net boot, as on Form 8824 line 20. Net boot is cash, other property and net debt relief, reduced (not below zero) by exchange expenses.
Realized gain
320,000.00
Gain deferred under simplified exchange
300,000.00
Net boot (Form 8824 line 15)
20,000.00

Background.

Sell a rental building you have owned for fifteen years and the tax bill can be startling: the gain is measured against a basis that years of depreciation have pushed well below what you paid. Section 1031 of the Internal Revenue Code offers a way to postpone that bill. If you exchange real property held for business or investment for other real property held the same way, the gain is not taxed in the year of the trade. It follows you into the replacement property instead.

The postponement is rarely total. Anything you walk away with that is not like-kind property — cash taken out of the deal, a note, personal property thrown in, or a smaller mortgage on the new building than the one paid off on the old, unless you add cash to make up the difference — is called boot, and gain is taxed up to the amount of boot received. The rest stays deferred until the replacement property is sold in an ordinary taxable sale.

That split is what you get here. From the sale price, the costs of selling and your adjusted basis, the calculator works out the gain you realized; it then taxes the smaller of that gain and your net boot, and reports the remainder as deferred. Net boot follows Form 8824 line 15: cash and other property you received, plus the debt the other party took over net of new debt and cash you added, reduced by your exchange expenses. These are the same figures Form 8824 asks for on lines 15, 19, 20 and 24.

Since January 1, 2018, only real property qualifies: equipment, vehicles, artwork and other personal property can no longer be exchanged tax-free. The rules on timing are strict. You have 45 days after the sale to identify replacement property and 180 days, or until your return is due if that comes first, to close on it. The identification is limited as well: up to three candidate properties of any value, or a longer list only if the candidates' combined value stays within 200% of the property sold. Proceeds must sit with a qualified intermediary rather than in your own account. None of those conditions can be tested by arithmetic, so the figures assume the exchange qualifies.

What is 1031 exchange calculator?

A like-kind exchange produces three different gains. Realized gain is the economic profit: what you received for the old property, less selling costs, less its adjusted basis. Recognized gain is the part of that profit the law taxes in the year of the exchange, which in a qualifying exchange is limited to the boot you received. Deferred gain is the difference; it is not forgiven but carried into the replacement property by giving that property a lower basis than its cost. A loss on a like-kind exchange is never recognized, even when boot is received.

Like-kind describes the nature of the property, not its grade or quality. Raw land can be exchanged for an apartment building, a warehouse for a retail strip, a farm for an office condominium; whether the real estate is improved does not matter. Two things never match: real property in the United States and real property abroad are not like-kind to each other, and real property held primarily for sale — a developer's lots, a renovator's houses bought to resell — is excluded altogether.

The reason investors go to the trouble is the time value of the tax. At a 15% long-term rate, the 300,000 deferred in the worked example below stands for 45,000 of tax that stays invested in the replacement building rather than being paid this year; depreciation-related gain taxed at up to 25%, and state income tax where it applies, push that figure higher.

How to use this calculator.

  1. Enter the contract sale price of the property you gave up, taken from the settlement statement for that closing rather than from an appraisal or listing price.
  2. Enter the selling and exchange expenses paid at closing — broker's commission, title and escrow fees, transfer taxes, qualified-intermediary and legal fees. Leave out the mortgage payoff that appears on the same statement: it repays debt and is not a cost of selling. These expenses reduce both the gain and, as on Form 8824 line 15, the boot.
  3. Enter the adjusted basis: what you paid for the property, plus capital improvements, minus every dollar of depreciation allowed or allowable. Your depreciation schedule (Form 4562 history) is the source for the last figure, and a missing year still reduces basis.
  4. Enter the cash paid to you and the market value of any non-real property you received, before subtracting expenses. Then enter the debt on the property you gave up that the other party took over, and, in the last box, the new debt you assumed on the replacement plus any cash or other property you added. Only the excess of debt relief over that last figure counts as boot.
  5. Read the realized gain first, then the recognized and deferred parts. If realized gain shows zero, the exchange is at a loss or break-even, and nothing is taxed or deferred.

The formula.

net boot = max(0, cash and other property + max(0, debt relieved − new debt and cash added) − exchange expenses); realized gain = max(0, P − C − B); recognized gain = min(net boot, realized gain)

Four lines of arithmetic. Amount realized is the sale price P minus selling and exchange expenses C. Realized gain G = max(0, P − C − B), where B is the adjusted basis; a loss is shown as zero because an exchange can never produce a deductible loss. Net boot K, Form 8824 line 15, is the cash and non-like-kind property you received, plus net debt relief, reduced but not below zero by the exchange expenses C. Net debt relief is the excess of the debt the other party took over on the property you gave up over the new debt you assumed and any cash or other property you added. Recognized gain R = min(G, K): boot can trigger gain, but never more gain than you actually made. Deferred gain D = G − R. The structure mirrors Form 8824, where net boot goes on line 15, realized gain on line 19, the smaller of the two on line 20, and the deferred amount on line 24. Several parts of the form are deliberately left out. The calculator does not split recognized gain into depreciation recapture and capital gain, which matters because gain attributable to straight-line depreciation on buildings — unrecaptured section 1250 gain — is taxed at up to 25% rather than the usual long-term rates of 0%, 15% or 20%. It does not compute the basis of the replacement property, which Form 8824 works out on line 25. And it does not apply the special rules for a home used as a residence. In practice the answer is most sensitive to B, because decades of depreciation can halve it.

A worked example.

Example

An investor sells a rental property for 600,000, pays 30,000 in commissions and closing fees, and has an adjusted basis of 250,000 after years of depreciation. She receives 50,000 of cash from the exchange and lets the intermediary put the rest into a replacement building. The old building was owned free of debt and she borrows nothing on the new one. Amount realized is 600,000 − 30,000 = 570,000. Realized gain is 570,000 − 250,000 = 320,000. The cash received is 50,000, but under Form 8824 line 15 her 30,000 of exchange expenses reduce it, so the net boot is 50,000 − 30,000 = 20,000. That is smaller than the gain, so the recognized gain is 20,000, taxed this year, and the deferred gain is 320,000 − 20,000 = 300,000. If the expenses had been smaller than the cash, the difference is what counts: with only 10,000 of expenses, the net boot would be 40,000 and the recognized gain 40,000. If the cash received were 30,000 or less, expenses would absorb all of it, the net boot would be zero and nothing would be taxed. Debt works the same way. Had a 200,000 mortgage on the old building been taken over by the buyer while she assumed 150,000 on the new one, the 50,000 of net debt relief would add to the boot: 50,000 cash + 50,000 relief − 30,000 expenses = 70,000 recognized, with 250,000 deferred. At the other extreme, taking 400,000 of cash out would give a net boot of 370,000, larger than the whole 320,000 gain: all 320,000 is recognized, nothing is deferred, and the exchange has bought nothing but intermediary fees and deadlines.

selling Costs30,000
sale Price600,000
cash And Other Boot50,000
adjusted Basis250,000
new Money And Debt Assumed0
liabilities Relieved0

Frequently asked questions.

Can I use a 1031 exchange when I sell my house or a vacation home?
Not for property used mainly for personal purposes. Both the property you give up and the one you receive must be held for use in a trade or business or for investment, and the IRS specifically names a primary residence, a second home and a vacation home as not qualifying. A main home sale has its own exclusion instead.
What exactly counts as boot?
Cash or its equivalent paid to you, the fair market value of anything you receive that is not like-kind real property, and net relief from debt, all reduced by your exchange expenses. Taking a 50,000 cash distribution and also trading down from a 300,000 mortgage to a 250,000 one would mean 100,000 of boot; after the example's 30,000 of exchange expenses, 70,000 is recognized and 250,000 deferred.
How does debt on the two properties affect the result?
Debt paid off on the property you give up counts as money received; debt you take on for the replacement, and cash you add, offset it. Only the excess relief is boot, and the calculator works it out from the two debt boxes before subtracting your exchange expenses. Investors who want full deferral therefore buy replacement property of equal or greater value and carry at least as much debt, or add cash to cover the shortfall.
When do the 45-day and 180-day deadlines run out if I sell late in the year?
Both count from the day you transfer the old property. A sale on November 15, 2026 must be followed by written identification by December 30, 2026, and closing by May 14, 2027 — unless your 2026 return is due first, normally in mid-April. Filing an extension keeps the full 180 days available; the periods are not extended for hardship except after presidentially declared disasters.
Can I still exchange machinery, vehicles or other business equipment?
No. The Tax Cuts and Jobs Act limited section 1031 to real property for exchanges after 2017, with a transition rule only for trades already under way by the end of 2017. Equipment sold today is a taxable sale, though gain on it is often recaptured depreciation taxed as ordinary income.
Does an exchange get rid of depreciation recapture?
It postpones it along with the rest of the gain. Recognized gain can include a recapture element that Form 8824 reports on line 21 as ordinary income, and gain from straight-line depreciation on buildings is taxed at up to 25%. Deferred gain carries its depreciation history into the replacement and surfaces when that property is sold.
Why does the calculator show zero gain when I sold for less than my basis?
Because an exchange cannot produce a deductible loss. Gain is recognized to the extent of boot, but a loss is never recognized, so a loss is shown as zero everywhere. If the property has genuinely lost value, a plain taxable sale may serve you better, since a loss on rental or business real estate can then be claimed on the return for the year of sale.
Is deferred gain ever forgiven?
Not by the exchange itself: it is taxed when the replacement is sold outside another exchange. Owners can keep exchanging for decades, and if they still hold the property at death, the heirs generally receive a basis equal to its market value at that date, so under current law the postponed gain is not taxed to anyone.
Can I exchange property with a relative or a company I control?
Yes, but the deferral is lost if either side disposes of the exchanged property within two years of the last transfer, and the deferred gain must then be reported in the year of that disposition. Form 8824 asks about any relationship between the parties, and after a related-party exchange you file the form again for each of the following two years.
Who can hold the money between the sale and the purchase?
A qualified intermediary or other exchange facilitator, never you. Taking control of the proceeds can disqualify the whole exchange. Your own agent — a broker, accountant or attorney who has acted for you within the previous two years — cannot serve, and the IRS warns that some facilitators have failed while holding client funds.

How this page was produced

Published by
Quanta Calculator
Primary sources
5 cited below
Method
net boot = max(0, cash and other property + max(0, debt relieved − new debt and cash added) − exchange expenses); realized gain = max(0, P − C − B); recognized gain = min(net boot, realized gain)
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon