You cannot deduct transfer taxes and similar taxes and charges on the sale of a personal home. If you are the buyer and you pay them, include them in the cost basis of the property. If you are the seller and you pay them, they are expenses of the sale and reduce the amount realized on the sale.