There is no simple answer to this question, since you can negotiate some costs with your real estate broker (ie comission, conveyancing, etc.), you can negotiate who pays certians costs in the contract / agreement of sale (ie seller assistance, transfer taxes, title charges, recording charges, repairs, etc), and you can negotiate loan costs with your lending professional (ie origination charges, discount points, other lender charges).
Typically on the selling side you will pay a real estate broker 6% of the sales price, 1/2 of the transfer taxes (in Philadelphia 4% = 2% for you), and whatever buyers assistance you agree to in the contract. You will also be paying off any of your property liens and unpaid taxes/municipal utilties, however any taxes paid in advance will likely be prorated at closing so that the buyer pays his portion of the taxes for the rest of the year.
On the buying side, you may be paying lender fees from 0% to 4-5% depending on the type of loan you choose and that discount points you want to lower your rate. Title insurance is less than 1%. 1/2 of the transfer taxes in Philly would be 2%. Recording charges for your deed and mortgage would be about $400. Your real estate agent may want to collect a "conveyancing fee" from you. You will also need to reimburse the seller for prepaid taxes and other costs (called prorations) for the period of the year that you will own the property. Finally, if you don't prepay for services such as Homeowners insurance, flood insurance, home inspection, etc., these items will be paid at closing.
You are welcome to contact me at my office 267-702-1520 to set up a date and time to personally discuss your closing costs expectations.
Also, Register for Buying and Selling tips that could save you money on closing costs http://goo.gl/c1vJl