When you say cost, it will depend on the type of loan you have depends on the cost associated with the deal. For example, if you are a VA buyer, you would have to put $500-$1000 Ernest money down (in most cases you will get it back at closeing), then you would have to pay for a home inspection ($250-$500), then you would have to pay for an appraisal ($400). You have an option to have a survey done ($250-$400 in most cases) but you are not required to do one.
Besides that all other cost are paid by the sellers at this time. The rule of thumb, depending on the lender and your credit status, closing cost can range from 3% to 4% of the purchase price. I set it up during the offer phase, to get as much as possible and if there is extra, my client's will have the option to use it towards debt, like credit cards, car payment, loans etc.
The is usually the same with an FHA loan, however you do have to put 3.5% down towards the loan, so $3,500 per $100,000 barrowed.
Get with me and I can set you up with everyone you would need during the home buying process. Thanks for the question and I hope this helps.