Deductions & credits

If this was never a RENTAL property then a 1031 exchange would not be appropriate ...  so if this was a second home that you let your parents live in  you will have a reportable sale on which capital gains will be taxed.  Purchasing another property with the proceeds of the sale are immaterial.