Skip to main content
TaxMath

1031 exchange calculator

The gain a like-kind exchange of real property defers and the gain it recognizes, by Form 8824’s own lines: boot, realized gain, the new property’s basis, and the tax on any recognized gain.

Income
W-2 box 1, before tax.
1099-DIV box 1a.
1099-DIV box 1b; part of ordinary dividends.
1099-DIV box 2a.
Household
Joint returns only.
Property you give up
What you receive
Brokerage, legal and intermediary fees, and closing costs of the exchange.
Realized gain$120,000
Recognized gain (taxed now)
$40,000
Deferred gain
$80,000
Basis of the property you receive
$170,000
Federal and state tax on the recognized gain
$6,000
Form 8824, Part III
StepAmount
Adjusted basis of the property given up$100,000
Line 15: cash, other property and net liabilities received, less exchange expenses$40,000
Line 17: line 15 plus the fair market value received$290,000
Line 18: basis given up, net amounts paid, other exchange expenses$170,000
Line 19: realized gain or (loss)$120,000
Line 20: smaller of line 15 or 19, not below zero$40,000
Line 23: recognized gain$40,000
Line 24: deferred gain or (loss)$80,000
Line 25: basis of like-kind property received$170,000
Federal tax on the recognized gain$6,000
State tax on the recognized gain$0
  • Assumed. The exchange is taken to qualify under §1031: real property held for business or investment, given up for like-kind real property, the replacement identified within 45 days and received within 180. Line 21’s recapture is $0, which holds for property with no depreciation; with depreciation the tax is not figured. A related-party exchange, non-like-kind property you give up, and splitting line 25 among property classes are not figured.

How it works

Line 15 is the cash and other property you receive plus the liabilities the other party takes over in excess of the liabilities you take on and the cash you pay, reduced, not below zero, by the exchange expenses. Line 18 is the adjusted basis you give up plus the liabilities you take on and cash you pay in excess of the liabilities you are relieved of, plus any exchange expenses line 15 did not use (the Form 8824 instructions for lines 15 and 18).

The realized gain is line 17 less line 18; the recognized gain is the smaller of line 15 and the realized gain, not below zero; the deferred gain is the rest, or the whole loss; the new basis is line 18 plus the recognized gain less line 15. A recognized gain is added to your household as a long-term capital gain and both engines are run with and without it.

Nothing you enter leaves your browser, and nothing is stored. The same calculator is available to AI agents as the tool calc_1031_exchange, in the page through WebMCP and at https://taxmath.org/mcp.

Sources

Put this calculator on your site

Paste this where the calculator should appear. Our script draws the calculator above the credit line, which is a plain link in your page. It is free, needs no signup and keeps nothing your readers type. Please keep the credit line. The embed page lists the options it takes.

<!-- TaxMath 1031 exchange calculator -->
<div class="taxmath-embed" data-taxmath-calc="1031-exchange" data-taxmath-title="1031 exchange calculator" style="max-width:680px;margin:1.5rem auto">
  <p style="font:400 13px/1.4 system-ui,sans-serif;color:#4b4b5a;margin:.5rem 0 0">
    <a href="https://taxmath.org/calculators/1031-exchange/?utm_source=embed&amp;utm_medium=referral&amp;utm_campaign=calculator-widget">1031 exchange calculator</a> by <a href="https://taxmath.org/?utm_source=embed&amp;utm_medium=referral&amp;utm_campaign=calculator-widget">TaxMath</a>
  </p>
</div>
<script src="https://taxmath.org/embed.js" async></script>
Your site strips scripts? Use the iframe version
<!-- TaxMath 1031 exchange calculator -->
<div class="taxmath-embed" style="max-width:680px;margin:1.5rem auto">
  <iframe src="https://taxmath.org/embed/v3/1031-exchange/"
          title="TaxMath — 1031 exchange calculator"
          width="100%" height="640" loading="lazy"
          style="width:100%;border:1px solid #d8dae6;border-radius:4px"></iframe>
  <p style="font:400 13px/1.4 system-ui,sans-serif;color:#4b4b5a;margin:.5rem 0 0">
    <a href="https://taxmath.org/calculators/1031-exchange/?utm_source=embed&amp;utm_medium=referral&amp;utm_campaign=calculator-widget">1031 exchange calculator</a> by <a href="https://taxmath.org/?utm_source=embed&amp;utm_medium=referral&amp;utm_campaign=calculator-widget">TaxMath</a>
  </p>
</div>
<script src="https://taxmath.org/embed.js" async></script>

Go further