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.
- 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
| Step | Amount |
|---|---|
| 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.