Deductions & credits

So if I am understanding this right, this kind of transaction where there is a sale as well as a gift of equity, the gift of equity increases the costs basis of the seller, and decreases the cost basis of the buyer, even though the buyer has an appraised value purchase price on the property.