Population living in slums (% of urban population)
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.
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
Highest, 2022
| # | Country | Value |
|---|---|---|
| 1 | South Sudan | 94.2 |
| 2 | Mali | 92.5 |
| 3 | Burkina Faso | 87.88 |
| 4 | Sao Tome and Principe | 82.39 |
| 5 | Chad | 82 |
| 6 | Congo, Dem. Rep. | 78.36 |
| 7 | Congo, Rep. | 75.34 |
| 8 | Sudan | 73.7 |
| 9 | Afghanistan | 71.59 |
| 10 | Niger | 70.44 |
Lowest, 2022
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | Switzerland | 0 |
| 2 | Singapore | 0 |
| 3 | Qatar | 0 |
| 4 | Oman | 0 |
| 5 | Norway | 0 |
| 6 | New Zealand | 0 |
| 7 | Netherlands | 0 |
| 8 | Monaco | 0 |
| 9 | Kuwait | 0 |
| 10 | Iceland | 0 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 2000s | 171 |
| 2010s | 170 |
| 2020s | 181 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2022 | 23.23 |
| 2018 | 19.67 |
By region, 2022
| World Bank region | Value |
|---|---|
| Sub-Saharan Africa | 53.71 |
| Middle East, North Africa, Afghanistan & Pakistan | 31.91 |
| East Asia & Pacific | 23.33 |
| Latin America & Caribbean | 18.92 |
| Europe & Central Asia | 2.8 |
| North America | 0.201 |
First rows
population-living-in-slums-percent-of-urban-population.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2006 | 63.6 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2008 | 63.6 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2010 | 64.80761 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2012 | 67.24795 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2014 | 69.68829 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2016 | 72.12863 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2018 | 73.3 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2020 | 73.3 |
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 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