DataBrighten

    Population living in slums (% of urban population)

    2,015 × 6rows × columns: 196 countries, 2000 to 2022

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

    textnumberdateyes/no
    Rows2,015country-year values
    Countries196with at least one value
    Years2000 – 202214 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Population living in slums is the proportion of the urban population living in slum households. A slum household is defined as a group of individuals living under the same roof lacking one or more of the following conditions: access to improved water, access to improved sanitation, sufficient living area, housing durability, and security of tenure, as adopted in the Millennium Development Goal Target 7.D. The successor, the Sustainable Development Goal 11.1.1, considers inadequate housing (housing affordability) to complement the above definition of slums/informal settlements.

    The numbers in 2022

    In 2022, 181 countries have a value. The highest is South Sudan (94.2); at the bottom, 17 countries tie at 0 (e.g. Andorra, Aruba, Belgium). The median country value is 13.25. The World Bank's World aggregate for 2022 is 23.23.

    Top 10 countries, 2022

    % of urban population

    Source: World Bank, EN.POP.SLUM.UR.ZS, retrieved 19 November 2026. Computed from population-living-in-slums-percent-of-urban-population.csv.

    Highest, 2022

    #CountryValue
    1South Sudan94.2
    2Mali92.5
    3Burkina Faso87.88
    4Sao Tome and Principe82.39
    5Chad82
    6Congo, Dem. Rep.78.36
    7Congo, Rep.75.34
    8Sudan73.7
    9Afghanistan71.59
    10Niger70.44

    Lowest, 2022

    Ties are listed A to Z.

    #CountryValue
    1Switzerland0
    2Singapore0
    3Qatar0
    4Oman0
    5Norway0
    6New Zealand0
    7Netherlands0
    8Monaco0
    9Kuwait0
    10Iceland0
    How many countries report, by decade
    DecadeMost countries in one year
    2000s171
    2010s170
    2020s181

    World aggregate by year

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

    YearWorld
    202223.23
    201819.67

    By region, 2022

    World Bank regionValue
    Sub-Saharan Africa 53.71
    Middle East, North Africa, Afghanistan & Pakistan31.91
    East Asia & Pacific23.33
    Latin America & Caribbean 18.92
    Europe & Central Asia2.8
    North America0.201

    First rows

    population-living-in-slums-percent-of-urban-population.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200663.6
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200863.6
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201064.80761
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201267.24795
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201469.68829
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201672.12863
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201873.3
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income202073.3

    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 living in slums (% of urban population), 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 2022?

    South Sudan, with 94.2.

    Excel (on the long CSV: E = year, F = value)

    =FILTER(A2:A100000,(E2:E100000=2022)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2022)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2022
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2022);

    pandas (df = pd.read_csv("population-living-in-slums-percent-of-urban-population.csv"))

    y = df[df.year == 2022]
    y[y.value == y.value.max()][["country", "value"]]

    File: population-living-in-slums-percent-of-urban-population.csv

    How many countries report a value for 2022?

    181 of the 217 economies in the file's country list.

    Excel (on the long CSV: E = year, F = value)

    =COUNTIF(E2:E100000,2022)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2022;

    pandas (df = pd.read_csv("population-living-in-slums-percent-of-urban-population.csv"))

    (df.year == 2022).sum()

    File: population-living-in-slums-percent-of-urban-population.csv

    What is the median across countries in 2022?

    13.25 (median of the 181 country values; not a World Bank aggregate).

    Excel (on the long CSV: E = year, F = value)

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2022))

    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 = 2022 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2022) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2022));

    pandas (df = pd.read_csv("population-living-in-slums-percent-of-urban-population.csv"))

    df[df.year == 2022]["value"].median()

    File: population-living-in-slums-percent-of-urban-population.csv

    Which country rose the most between 2012 and 2022?

    Tuvalu: from 0.35 to 50.9, a rise of 50.55 (out of 161 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (population-living-in-slums-percent-of-urban-population-wide.csv): add a column = [2022] - [2012], 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 = 2012 AND b.year = 2022 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("population-living-in-slums-percent-of-urban-population.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2022] - w[2012]).dropna().nlargest(1)

    File: population-living-in-slums-percent-of-urban-population.csv

    Which year has the most countries reporting?

    2022, with 181 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-living-in-slums-percent-of-urban-population.csv"))

    df.groupby("year").size().sort_values(ascending=False).head(1)

    File: population-living-in-slums-percent-of-urban-population.csv