There are certain standard costs associated with closing the sale of a house. These fees are split between the buyer and the seller, as spelled out in the sales contract.
Buyers will receive a "Good Faith Estimate" of closing costs at the time of loan application. Once you have received your Good Faith Estimate, the loan officer will review all costs with you.