To correct a common misconception, lawyers do not get all, or even most of what you have to pay out. The bulk goes, one way or another, to the Government.
As a buyer, you pay:
As a seller you pay:
The rates and combinations of figures make it impractical to show you comprehensive examples of the overall costs of conveyancing (and don't forget you will have survey fees when buying, and estate agent's fees and home report costs when selling, to add on), but it is a requirement for solicitors that you are provided with an accurate breakdown of costs in writing at the outset of a transaction you are instructing.