DataBrighten

    Population density (people per sq. km of land area)

    12,534 × 6rows × columns: 216 countries, 1961 to 2024

    Real data: World Bank, World Development Indicators, indicator EN.POP.DNST, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows12,534country-year values
    Countries216with at least one value
    Years1961 – 202464 years with data
    LicenceCC BY 4.0credit the World Bank

    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

    Source: World Bank, EN.POP.DNST, retrieved 19 November 2026. Computed from population-density-people-per-sq-km-of-land-area.csv.

    Highest, 2024

    #CountryValue
    1Macao SAR, China20,631
    2Monaco18,537
    3Singapore8,329
    4Hong Kong SAR, China7,166
    5Gibraltar3,933
    6Bahrain1,986
    7Malta1,805
    8Maldives1,771
    9Bangladesh1,333
    10Sint Maarten (Dutch part)1,275

    Lowest, 2024

    #CountryValue
    1Greenland0.138
    2Mongolia2.26
    3Australia3.54
    4Namibia3.68
    5Iceland3.83
    6Guyana3.94
    7Suriname3.95
    8Libya4.19
    9Botswana4.45
    10Canada4.69
    How many countries report, by decade
    DecadeMost countries in one year
    1960s179
    1970s179
    1980s179
    1990s207
    2000s211
    2010s216
    2020s216

    World aggregate by year

    As published by the World Bank (in the regions file, not the country file).

    YearWorld
    202362.14
    202261.56
    202161.01
    202060.43
    201959.85
    201859.23
    201758.59
    201657.93
    201557.27
    201456.6
    201355.92
    201255.23

    First rows

    population-density-people-per-sq-km-of-land-area.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income196114.127045674072
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income196214.4188491789706
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income196314.7256136638916
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income196415.0473268632231
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income196515.3872222988823
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income196615.7404519877957
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income196716.1077518666728
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income196816.4925287091977

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberPopulation 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