People using safely managed sanitation services (% of population)
Real data: World Bank, World Development Indicators, indicator SH.STA.SMSS.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
The percentage of people using improved sanitation facilities that are not shared with other households and where excreta are safely disposed of in situ or transported and treated offsite. Improved sanitation facilities include flush/pour flush to piped sewer systems, septic tanks or pit latrines: ventilated improved pit latrines, composting toilets or pit latrines with slabs.
Limits and exceptions (World Bank note)
There are three main ways to meet the criteria for having a safely managed sanitation service (People should use improved sanitation facilities that are not shared with other households, and the excreta produced should either be: treated and disposed of in situ; stored temporarily and then emptied, transported and treated off-site, or transported through a sewer with wastewater and then treated off-site). Many countries lack information on either wastewater treatment or the management of on-site sanitation. A national estimate is produced if information is available for the dominant type of sanitation system. If no information is available, it is assumed that 50 percent is safely managed. Regional and income group estimates are made when data are available for at least 30 percent of the population.
The numbers in 2024
In 2024, 141 countries have a value. At the top, 5 countries tie at 100 (e.g. Andorra, Kuwait, Malta); the lowest is Ethiopia (8.05). The median country value is 62.17. The World Bank's World aggregate for 2024 is 58.5.
Top 10 countries, 2024
% of population
Highest, 2024
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | Andorra | 100 |
| 2 | Kuwait | 100 |
| 3 | Malta | 100 |
| 4 | Monaco | 100 |
| 5 | Singapore | 100 |
| 6 | Qatar | 99.94 |
| 7 | Switzerland | 99.69 |
| 8 | Korea, Rep. | 99.33 |
| 9 | Japan | 99.19 |
| 10 | Denmark | 98.9 |
Lowest, 2024
| # | Country | Value |
|---|---|---|
| 1 | Ethiopia | 8.05 |
| 2 | Morocco | 8.42 |
| 3 | Niger | 9.15 |
| 4 | Armenia | 10.74 |
| 5 | Chad | 11.09 |
| 6 | North Macedonia | 12.11 |
| 7 | Madagascar | 12.8 |
| 8 | Togo | 13.02 |
| 9 | Congo, Dem. Rep. | 13.08 |
| 10 | Central African Republic | 13.53 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 2000s | 143 |
| 2010s | 146 |
| 2020s | 144 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2024 | 58.5 |
| 2023 | 57.8 |
| 2022 | 57.03 |
| 2021 | 56.11 |
| 2020 | 55.19 |
| 2019 | 54.24 |
| 2018 | 52.78 |
| 2017 | 51.32 |
| 2016 | 49.85 |
| 2015 | 48.39 |
| 2014 | 46.94 |
| 2013 | 45.53 |
By region, 2024
| World Bank region | Value |
|---|---|
| North America | 95.39 |
| Europe & Central Asia | 80.2 |
| East Asia & Pacific | 63.64 |
| South Asia | 60.06 |
| Middle East, North Africa, Afghanistan & Pakistan | 54.44 |
| Latin America & Caribbean | 51.22 |
| Sub-Saharan Africa | 25.91 |
First rows
people-using-safely-managed-sanitation-services-percent-of-population.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2000 | 10.1320919546526 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2001 | 10.1314904990878 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2002 | 10.853967146747 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2003 | 11.576334568006 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2004 | 12.2981309710825 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2005 | 13.0192492149546 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2006 | 13.7401175039087 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2007 | 14.4299872853345 |
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 | People using safely managed sanitation services (% of 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 2024?
There is a tie: 5 countries share the highest value, 100 (for example Andorra, Kuwait, Malta).
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("people-using-safely-managed-sanitation-services-percent-of-population.csv"))
y = df[df.year == 2024]
y[y.value == y.value.max()][["country", "value"]]File: people-using-safely-managed-sanitation-services-percent-of-population.csv
How many countries report a value for 2024?
141 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("people-using-safely-managed-sanitation-services-percent-of-population.csv"))
(df.year == 2024).sum()File: people-using-safely-managed-sanitation-services-percent-of-population.csv
What is the median across countries in 2024?
62.17 (median of the 141 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("people-using-safely-managed-sanitation-services-percent-of-population.csv"))
df[df.year == 2024]["value"].median()File: people-using-safely-managed-sanitation-services-percent-of-population.csv
Which country rose the most between 2014 and 2024?
Georgia: from 20.8 to 62.97, a rise of 42.17 (out of 140 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (people-using-safely-managed-sanitation-services-percent-of-population-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("people-using-safely-managed-sanitation-services-percent-of-population.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2024] - w[2014]).dropna().nlargest(1)File: people-using-safely-managed-sanitation-services-percent-of-population.csv
Which year has the most countries reporting?
2016, with 146 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("people-using-safely-managed-sanitation-services-percent-of-population.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: people-using-safely-managed-sanitation-services-percent-of-population.csv