AreaVibes reveals the best places to live in Pennsylvania for 2016 using our Livability Score. The Livability Score for each city in Pennsylvania is calculated out of 100 from a unique algorithm based on various metrics, including: amenities, cost of living, crime, education, employment, housing and weather. Pennsylvania has a population of 12,758,729 and a population density of 277.1 people per square mile. The capital city is Harrisburg and the largest city in Pennsylvania is Philadelphia. To filter the results, use the dropdown options to sort by population or category.