You took the deduction now, with a look-back. When you sell, some of it can come back as tax. This is an illustration of the moving parts under assumptions you control, not an estimate of your own exit tax. Move the inputs to see how each piece behaves, then read the notes on what it leaves out.
A like-kind exchange can defer the gain and §1250 recapture on the qualifying real property, but only if the replacement qualifies and you carry equal or greater value and debt. It is not an automatic zero. Since 2018 only real property qualifies, so the §1245 personal property above generally does not defer and its recapture can still come due (shown at right). Cash taken out, debt relief, and other property received are taxable boot. A basis step-up at death can eliminate what remains for heirs. Confirm any exchange with your CPA before you rely on it.