These are called Closing Costs. They are the costs to buy or sell a home. These include: lender fees, title fees, appraisal, etc.
Generally when purchasing a home, they will be 2-3% of the purchase price. When selling, it will be about 1% of the purchase price. These are only approximations.