Deductions & credits

@eduardtorar one has nothing to do with the other.  Selling your home gets recorded on your tax return (under most but not all circumstances).  The purchase does not impact the tax return.