Several factors can contribute to how expensive it is to live in a certain city. These can include the average rent prices, the cost of groceries and other necessary items, and the overall cost of living in that city.