Deductions & credits

 A gift has nothing to do with the basis of your property which you sold.