Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

1031 exchange calculator

See how much of your gain a 1031 exchange defers: the realized gain, cash and mortgage boot, the taxable part, and your 45-day and 180-day deadlines.

Property you're selling (relinquished)

Property you're buying (replacement)

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Selling without an exchange? Estimate the tax with the capital gains tax calculator. Sizing up the replacement? Try the cap rate calculator.

How the 1031 numbers are worked out

Realized gain = sale price − selling costs − adjusted basis
Cash boot = equity from the sale − cash needed for the replacement (if positive)
Mortgage boot = old mortgage − new loan − extra cash you add (if positive)
Recognized (taxable) gain = the smaller of realized gain and total boot
Deferred gain = realized gain − recognized gain · New basis = replacement price − deferred gain

"Boot" is anything you get that isn't like-kind property. The IRS says that if you also receive money or other property in the exchange, you must recognize gain to the extent of that money and property, and you can't recognize a loss. Debt you're relieved of counts like cash, but new debt you take on, or extra cash you add, offsets it. Form 8824 works the same way: the recognized gain on line 20 is generally the smaller of the boot (line 15) and the realized gain (line 19).

Worked example

You sell a rental for $800,000 with $40,000 of selling costs. Your adjusted basis is $400,000, so the realized gain is 800,000 − 40,000 − 400,000 = $360,000. After paying off the $300,000 mortgage you have $460,000 of equity. The $900,000 replacement has a $500,000 loan, so it needs $400,000 of cash. The $60,000 you don't reinvest is cash boot. The new loan is bigger than the old one, so there's no mortgage boot.

Recognized gain = smaller of $360,000 and $60,000 = $60,000, taxable this year. Deferred gain = $300,000. The new property's basis is 900,000 − 300,000 = $600,000. Had you taken a $240,000 loan on a $700,000 property instead, all the equity would be reinvested, but the $60,000 drop in debt would be mortgage boot.

The 45-day and 180-day deadlines

In a delayed exchange, the IRS instructions for Form 8824 say the replacement property must be identified within 45 days after you transfer the property you're giving up, and received within 180 days or by the due date of your tax return for that year (including extensions), whichever is earlier. The calculator counts calendar days from the closing date. If day 180 falls after your return's due date, file an extension to keep the full period.

Limitations

  • This is an estimate for planning, not tax or legal advice. Talk to a tax professional and a qualified intermediary before you sell, because touching the sale proceeds yourself can break the exchange.
  • For 2018 and later, only real property qualifies. Property held mainly for sale and a home used only as your personal residence don't.
  • Depreciation recapture, state taxes, related-party rules and exchange expenses paid out of pocket aren't modeled.
  • Selling costs are assumed to come out of the sale proceeds.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • $800k sale, $40k costs, $400k basis: $360k gain; $60k cash boot is taxable, $300k deferred ✓
  • Same sale: $460k equity, $400k needed, so $60k cash boot ✓
  • Paying off $300k but taking only a $240k loan: $60k mortgage boot ✓
  • All equity reinvested and more debt taken on: nothing taxable ✓
  • Sold March 1, 2026: identify by April 15, close by August 28, 2026 ✓
  • Edge: selling below basis gives no gain to defer ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

What is boot in a 1031 exchange?

Anything you receive that isn't like-kind property: cash you keep (cash boot) or debt relief that isn't replaced by new debt or extra cash (mortgage boot). Boot is taxable up to the amount of your gain.

How do I avoid boot?

Buy a replacement worth at least as much as the net sale price, reinvest all the equity, and take on at least as much debt as you paid off, or add cash to make up the difference.

What are the 1031 exchange deadlines?

You must identify replacement property within 45 days of selling, and close on it within 180 days or by your tax return's due date for that year, if that's earlier.

How is the basis of the replacement property figured?

Roughly, the replacement's price minus the deferred gain. Buy for $900,000 with $300,000 of deferred gain and the new basis is $600,000.

Is a 1031 exchange tax-free?

It's tax-deferred. The gain carries into the new property's lower basis and can be taxed when you sell it later without another exchange.

Related calculators