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
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.
- 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.
- 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.
- 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.
- 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.
- 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.
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.
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.
Frequently asked questions.
Can I use a 1031 exchange when I sell my house or a vacation home?
What exactly counts as boot?
How does debt on the two properties affect the result?
When do the 45-day and 180-day deadlines run out if I sell late in the year?
Can I still exchange machinery, vehicles or other business equipment?
Does an exchange get rid of depreciation recapture?
Why does the calculator show zero gain when I sold for less than my basis?
Is deferred gain ever forgiven?
Can I exchange property with a relative or a company I control?
Who can hold the money between the sale and the purchase?
References& sources.
- [1]IRS Fact Sheet FS-2008-18; like-kind exchange realized and recognized gain. Retrieved 2026-08-07.
- [2]U.S. Internal Revenue Service. About Form 8824, Like-Kind Exchanges. Retrieved 2026-08-07.
- [3]U.S. Internal Revenue Service. Like-kind exchanges — real estate tax tips. Retrieved 2026-08-07.
- [4]U.S. Internal Revenue Service. Publication 544, Sales and Other Dispositions of Assets. Retrieved 2026-08-07.
- [5]U.S. Internal Revenue Service. Topic no. 703, Basis of assets. Retrieved 2026-08-07.
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- 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.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1560 calculators remain free
- No billing is enabled