Population in largest city
Real data: World Bank, World Development Indicators, indicator EN.URB.LCTY, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Population in largest city is the urban population living in the country's largest metropolitan area.
Limits and exceptions (World Bank note)
Aggregation of urban and rural population may not add up to total population because of different country coverage. There is no consistent and universally accepted standard for distinguishing urban from rural areas, in part because of the wide variety of situations across countries. Most countries use an urban classification related to the size or characteristics of settlements. Some define urban areas based on the presence of certain infrastructure and services. And other countries designate urban areas based on administrative arrangements. Because of national differences in the characteristics that distinguish urban from rural areas, the distinction between urban and rural population is not amenable to a single definition that would be applicable to all countries. For example, in Botswana, agglomeration of 5,000 or more inhabitants where 75 per cent of the economic activity is non-agricultural is considered "urban" while in Iceland localities of 200 or more inhabitants, and in Peru population centers with 100 or more dwellings, are considered "urban." In the United States places of 2,500 or more inhabitants, generally having population densities of 1,000 persons
The numbers in 2025
In 2025, 153 countries have a value. The highest is Japan (37.04 million); the lowest is Bosnia and Herzegovina (348,404). The median country value is 2.38 million.
Top 10 countries, 2025
value
Highest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Japan | 37.04 million |
| 2 | India | 34.67 million |
| 3 | China | 30.48 million |
| 4 | Bangladesh | 24.65 million |
| 5 | Egypt, Arab Rep. | 23.07 million |
| 6 | Brazil | 22.99 million |
| 7 | Mexico | 22.75 million |
| 8 | United States | 19.15 million |
| 9 | Pakistan | 18.08 million |
| 10 | Congo, Dem. Rep. | 17.78 million |
Lowest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Bosnia and Herzegovina | 348,404 |
| 2 | Papua New Guinea | 431,903 |
| 3 | Slovak Republic | 443,679 |
| 4 | Estonia | 457,657 |
| 5 | Moldova | 484,352 |
| 6 | South Sudan | 500,088 |
| 7 | Gambia, The | 510,303 |
| 8 | Namibia | 511,369 |
| 9 | Equatorial Guinea | 512,750 |
| 10 | Albania | 535,702 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1960s | 153 |
| 1970s | 153 |
| 1980s | 153 |
| 1990s | 153 |
| 2000s | 153 |
| 2010s | 153 |
| 2020s | 153 |
First rows
population-in-largest-city.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1960 | 285352 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1961 | 300359 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1962 | 316177 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1963 | 332829 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1964 | 350382 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1965 | 368809 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1966 | 388232 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1967 | 408087 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Population in largest city, exactly as the World Bank API returns it (not rounded) |
Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.
Practice questions
answers computed from the file
Which country has the highest value in 2025?
Japan, with 37.04 million.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2025)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2025)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2025
AND value = (SELECT MAX(value) FROM wb WHERE year = 2025);pandas (df = pd.read_csv("population-in-largest-city.csv"))
y = df[df.year == 2025]
y[y.value == y.value.max()][["country", "value"]]File: population-in-largest-city.csv
How many countries report a value for 2025?
153 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2025)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2025;pandas (df = pd.read_csv("population-in-largest-city.csv"))
(df.year == 2025).sum()File: population-in-largest-city.csv
What is the median across countries in 2025?
2.38 million (median of the 153 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2025))SQL (table wb = the CSV)
-- SQLite has no MEDIAN(); this picks the middle value(s)
SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2025 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2025) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2025));pandas (df = pd.read_csv("population-in-largest-city.csv"))
df[df.year == 2025]["value"].median()File: population-in-largest-city.csv
Which country rose the most between 2015 and 2025?
India: from 25.87 million to 34.67 million, a rise of 8.80 million (out of 153 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (population-in-largest-city-wide.csv): add a column = [2025] - [2015], then sort it largest to smallest.SQL (table wb = the CSV)
SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
WHERE a.year = 2015 AND b.year = 2025 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("population-in-largest-city.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2025] - w[2015]).dropna().nlargest(1)File: population-in-largest-city.csv
Which year has the most countries reporting?
2025, with 153 countries.
Excel (on the long CSV: E = year, F = value)
Make a pivot table: year in Rows, Count of value in Values, then sort by the count.SQL (table wb = the CSV)
SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;pandas (df = pd.read_csv("population-in-largest-city.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: population-in-largest-city.csv