A retention fee is an upfront payment made by a client for future legal services. Lawyers calculate these fees by multiplying their hourly rate by the number of hours they expect to take on a matter. The client pays the fee before the work is completed and the law firm holds the funds in a designated account. When lawyers complete their work, they deduct their fee from the fee.