The cost can vary depending on the location, type of vehicle, and the complexity of the programming required. On average, you can expect to pay anywhere from $50 to $500 for key programming. It's best to shop around and compare prices before choosing a locksmith or dealership to do the job.