Philadelphia, PA had the highest population of 70 cities in 2025, at 1.57 million. Mechanicsburg, PA had the lowest, at 10,037. The median was 17,281 and the figure for Pennsylvania was 13.06 million. Source: the U.S. Census Bureau.
Resident population. Spain and the EU: 1 January, with Spanish figures from the official municipal register (Padrón). Norway: Statistics Norway, 1 January. United States: Census Bureau population estimates for 1 July. United Kingdom regions and local authorities: Office for National Statistics estimates for 30 June. Other countries and the World: World Bank mid-year estimates, which count all residents regardless of legal status or citizenship.
The World Bank series exists for every country, so use it (through compare) to rank countries on one basis.
Every value in the ranking comes from the same publisher and the same period, so the cities are compared on one definition. Equal values share a rank.
How to cite
U.S. Census Bureau. Annual estimates of the resident population for incorporated places, 1 July (Population Estimates Program, subcounty totals). https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/. Retrieved 2026-10-12.
Use this data in your AI agent
Invokely serves this figure to AI assistants through MCP and to code through a REST API, with the source and citation attached. Ask your assistant:
Rank Cities in Pennsylvania by population using official data, and cite the source.
rank_places {"indicator":"population","level":"municipality","within":"Pennsylvania","limit":10}
GET https://invokely.ai/api/v1/rank?indicator=population&level=municipality&within=Pennsylvania&limit=10
Philadelphia, PA, with 1.57 million in 2025, according to the U.S. Census Bureau.
Which city has the lowest population?
Mechanicsburg, PA, with 10,037 in 2025.
Where does this ranking come from?
Every value comes from one source and one period, so the places are comparable: U.S. Census Bureau, Annual estimates of the resident population for incorporated places, 1 July (Population Estimates Program, subcounty totals). Retrieved 2026-10-12.