Population density (people per sq. km of land area)
Real data: World Bank, World Development Indicators, indicator EN.POP.DNST, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Population density is midyear population divided by land area in square kilometers. Population is based on the de facto definition of population, which counts all residents regardless of legal status or citizenship--except for refugees not permanently settled in the country of asylum, who are generally considered part of the population of their country of origin. Land area is a country's total area, excluding area under inland water bodies, national claims to continental shelf, and exclusive economic zones. In most cases the definition of inland water bodies includes major rivers and lakes.
Limits and exceptions (World Bank note)
Current population estimates for developing countries that lack recent census data and pre- and post-census estimates for countries with census data are provided by the United Nations Population Division and other agencies. The cohort component method - a standard method for estimating and projecting population - requires fertility, mortality, and net migration data, often collected from sample surveys, which can be small or limited in coverage. Population estimates are from demographic modeling and so are susceptible to biases and errors from shortcomings in the model and in the data. Because the five-year age group is the cohort unit and five-year period data are used, interpolations to obtain annual data or single age structure may not reflect actual events or age composition. The quality and reliability of official demographic data are also affected by public trust in the government, government commitment to full and accurate enumeration, confidentiality and protection against misuse of census data, and census agencies' independence from political influence. Moreover, comparability of population indicators is limited by differences in the concepts, definitions,
The numbers in 2024
In 2024, 214 countries have a value. The highest is Macao SAR, China (20,631); the lowest is Greenland (0.138). The median country value is 97.02. The World Bank's World aggregate for 2023 is 62.14.
Top 10 countries, 2024
people per sq. km of land area
Highest, 2024
| # | Country | Value |
|---|---|---|
| 1 | Macao SAR, China | 20,631 |
| 2 | Monaco | 18,537 |
| 3 | Singapore | 8,329 |
| 4 | Hong Kong SAR, China | 7,166 |
| 5 | Gibraltar | 3,933 |
| 6 | Bahrain | 1,986 |
| 7 | Malta | 1,805 |
| 8 | Maldives | 1,771 |
| 9 | Bangladesh | 1,333 |
| 10 | Sint Maarten (Dutch part) | 1,275 |
Lowest, 2024
| # | Country | Value |
|---|---|---|
| 1 | Greenland | 0.138 |
| 2 | Mongolia | 2.26 |
| 3 | Australia | 3.54 |
| 4 | Namibia | 3.68 |
| 5 | Iceland | 3.83 |
| 6 | Guyana | 3.94 |
| 7 | Suriname | 3.95 |
| 8 | Libya | 4.19 |
| 9 | Botswana | 4.45 |
| 10 | Canada | 4.69 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1960s | 179 |
| 1970s | 179 |
| 1980s | 179 |
| 1990s | 207 |
| 2000s | 211 |
| 2010s | 216 |
| 2020s | 216 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2023 | 62.14 |
| 2022 | 61.56 |
| 2021 | 61.01 |
| 2020 | 60.43 |
| 2019 | 59.85 |
| 2018 | 59.23 |
| 2017 | 58.59 |
| 2016 | 57.93 |
| 2015 | 57.27 |
| 2014 | 56.6 |
| 2013 | 55.92 |
| 2012 | 55.23 |
First rows
population-density-people-per-sq-km-of-land-area.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1961 | 14.127045674072 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1962 | 14.4188491789706 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1963 | 14.7256136638916 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1964 | 15.0473268632231 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1965 | 15.3872222988823 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1966 | 15.7404519877957 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1967 | 16.1077518666728 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1968 | 16.4925287091977 |
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 density (people per sq. km of land area), 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 2024?
Macao SAR, China, with 20,631.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2024)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2024)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2024
AND value = (SELECT MAX(value) FROM wb WHERE year = 2024);pandas (df = pd.read_csv("population-density-people-per-sq-km-of-land-area.csv"))
y = df[df.year == 2024]
y[y.value == y.value.max()][["country", "value"]]File: population-density-people-per-sq-km-of-land-area.csv
How many countries report a value for 2024?
214 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2024)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2024;pandas (df = pd.read_csv("population-density-people-per-sq-km-of-land-area.csv"))
(df.year == 2024).sum()File: population-density-people-per-sq-km-of-land-area.csv
What is the median across countries in 2024?
97.02 (median of the 214 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2024))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 = 2024 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2024) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2024));pandas (df = pd.read_csv("population-density-people-per-sq-km-of-land-area.csv"))
df[df.year == 2024]["value"].median()File: population-density-people-per-sq-km-of-land-area.csv
Which country rose the most between 2014 and 2024?
Monaco: from 17,823 to 18,537, a rise of 713.6 (out of 214 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (population-density-people-per-sq-km-of-land-area-wide.csv): add a column = [2024] - [2014], 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 = 2014 AND b.year = 2024 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("population-density-people-per-sq-km-of-land-area.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2024] - w[2014]).dropna().nlargest(1)File: population-density-people-per-sq-km-of-land-area.csv
Which year has the most countries reporting?
2021, with 216 countries. (Later years are still filling in as countries report.)
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-density-people-per-sq-km-of-land-area.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: population-density-people-per-sq-km-of-land-area.csv