1031 exchange calculator
1031 exchange calculator: enter the property you gave up, the cash you took out and the mortgage you were released from, and the calculator splits your realized gain in two. The part matched by boot is taxed this year. The rest is deferred into the replacement property's basis.
The mechanism is section 1031: swap real property held for investment or business use for other real property and no gain is recognized on the swap itself. Cash received and net debt relief, less your exchange expenses, are boot, and boot is the ceiling on what gets taxed now. The calculator prices both sides, the exchange and the outright sale it replaces, with this site's federal engine, and shows the replacement property's new basis, depreciation included.
- Realized gain
- $295,000
- Net mortgage relief
- $30,000
- Boot after exchange expenses
- $55,000
- Recognized gain, taxed now
- $55,000
- Deferred gain
- $240,000
- Replacement property basis
- $360,000
- Federal tax on the recognized gain, 2026
- $12,664
- Federal tax if sold outright
- $59,034
- Tax the exchange leaves unpaid this year
- $46,370
The rest of your year's sales
The exchange calculator above covers the swap. The real estate sale calculator below is for everything else on the return: enter the recognized gain as a sale, or add other property, stock and crypto sales, and it totals the year.
How it works
How the deferral works
The realized gain is what an outright sale would report: the property's value, less exchange expenses, less the adjusted basis, which is what it cost to buy and improve less the depreciation taken. Sell for cash and the whole amount lands on this year's return.
In an exchange the gain is recognized only to the extent of boot. Boot is cash received plus net mortgage relief (the debt you were released from minus the debt you took on with the replacement), less your qualified exchange expenses such as brokerage and legal fees. The recognized gain is the smaller of the realized gain and the boot. The calculator prices exactly that slice through the same engine any other sale runs through, with the portion up to the depreciation you took taxed as unrecaptured section 1250 gain at a maximum 25%. The remainder is deferred, and deferral works by subtraction: the deferred gain comes straight off the replacement property's starting basis. A realized loss is not recognized at all: it stays in the replacement property's basis.
The exchange runs on a statutory clock, stated here as mechanism only: the replacement property must be identified in a fixed window after the relinquished property closes, and the whole exchange must close within a second, longer window that includes it. The calculator tracks neither deadline.
Worked example
A $295,000 gain with $55,000 of net boot: $12,664 taxed now
The calculator above opens on this exchange, so you can change any figure and watch the split move. You bought a rental property in June 2016 for $420,000, spent $30,000 improving it and took $90,000 of depreciation, an adjusted basis of $360,000. In May 2026 you exchange it. The property is worth $700,000 and exchange expenses are $45,000, so the realized gain is $295,000. Wages are $95,000, filing single.
The replacement property is worth $600,000. You take a new mortgage of $190,000 on it, the buyer assumes your $220,000 loan, and $70,000 cash comes back to you at closing. Boot: $70,000 cash plus $30,000 of net mortgage relief is $100,000, and the $45,000 of exchange expenses net against it, leaving $55,000. Recognized gain: the smaller of $295,000 and $55,000, which is $55,000. Deferred: $240,000.
Tax on the recognized slice, computed by the calculator's engine on the same income: all $55,000 is within the $90,000 of depreciation, so it is unrecaptured section 1250 gain taxed at your ordinary rate up to 25%. The tax is $12,664, and modified adjusted gross income of $150,000 stays under the $200,000 net investment income tax threshold, so the surcharge adds nothing.
Had you sold outright, the full $295,000 gain, $90,000 of it unrecaptured section 1250 gain, would pay $51,814 of income tax plus $7,220 of net investment income tax, $59,034 in total, because the bigger gain pushes income $190,000 past the threshold. The exchange leaves $46,370 unpaid this year, and the replacement property starts at $360,000: its $600,000 value less the $240,000 deferred gain.
One exchange, 2026, single filer
| Step | Amount |
|---|---|
| Value of the relinquished property | $700,000 |
| Exchange expenses | $45,000 |
| Purchase price plus improvements | $450,000 |
| Depreciation taken | $90,000 |
| Adjusted basis | $360,000 |
| Realized gain | $295,000 |
| Cash boot received | $70,000 |
| Net mortgage relief | $30,000 |
| Exchange expenses netted against boot | $45,000 |
| Boot after expenses, the recognized gain | $55,000 |
| Federal tax on the recognized gain, unrecaptured section 1250 gain | $12,664 |
| Federal tax had the property been sold outright | $59,034 |
| Gain deferred into the replacement basis | $240,000 |
The rules that decide it
What a 1031 exchange turns on
- Real property for real property. The swap must exchange investment or business real property for other real property of like kind.
- Boot is the trigger. Cash taken out and net debt relief, less qualified exchange expenses, are taxed now, and recognized gain can never exceed the boot. Take no boot and no gain is recognized, whatever the properties are worth.
- Deferral is a basis cut, not forgiveness. The deferred gain lowers the replacement property's basis, here to $360,000, and resurfaces when that property is later sold. A deferred loss does the opposite and raises it.
- Depreciation counts twice. It lowers the adjusted basis that sizes the realized gain, and recognized gain up to the depreciation taken is unrecaptured section 1250 gain, taxed at a maximum 25%.
- Exchange expenses reduce the realized gain in both worlds and also net against the boot, so the calculator applies them on each side of the comparison.
- The deadlines are strict statutory windows, identification first and closing second. This page computes the tax arithmetic and leaves the calendar to you.
Questions
Frequently asked questions
How much of my gain is taxed in a 1031 exchange?
The smaller of the realized gain and the boot. In the worked example, a $295,000 realized gain with $55,000 of boot after expenses meant $55,000 taxed now and $240,000 deferred.
What counts as boot?
Cash or cash-equivalents you receive, plus net mortgage relief (the debt you were released from minus the debt you took on), less your qualified exchange expenses. In the example, $70,000 cash plus $30,000 of relief was $100,000, and $45,000 of expenses brought the boot to $55,000.
Does a 1031 exchange eliminate the tax?
No, it postpones it. The deferred gain lowers the replacement property's basis and is taxed when that property is sold, unless it is exchanged again.
What is the replacement property's basis?
Its value less the deferred gain, or plus the deferred loss when the exchange realized a loss. The $600,000 replacement carrying a $240,000 deferred gain starts at $360,000, and depreciation or a later sale works from that lower figure.
Do the identification and closing deadlines matter?
They decide whether the exchange exists at all. The replacement must be identified within a fixed statutory window after the relinquished property closes and the exchange closed within a second, longer window. The calculator does not track them.
Why does the no-exchange column show a net investment income tax?
Because the full gain lifted income $190,000 past the $200,000 threshold for a single filer, so the federal 3.8% surcharge applied. With only the boot recognized, income stayed under the threshold and the surcharge was zero.
Sources
Where these figures come from
Also on capitalgainstax.net