A lawyer is needed to review and explain the proposed contract, the title insurance and survey, the loan documents and closing fee arrangements. At closing, a lawyer can insure that there is a clear title, that all charges are proper and that all documents are in order. Not all lawyers are experienced in real estate matters. Most brokers will recommend several attorneys they've worked with in the past. It's a good idea to get a referral from your private attorney or from friends or relatives who have been through a home purchase.
Prices vary depending on the type of purchase.
The Chicago Bar Association's Lawyer Referral Service has useful information about purchasing a home and the role a lawyer plays. Or, the CBA has a referral service. It will make referrals to specific, experienced lawyers depending on the caller's needs.