People using at least basic sanitation services, rural (% of rural population)
Real data: World Bank, World Development Indicators, indicator SH.STA.BASS.RU.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
The percentage of people using at least basic sanitation services, that is, improved sanitation facilities that are not shared with other households. This indicator encompasses both people using basic sanitation services as well as those using safely managed sanitation services. 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)
National, regional and income group estimates are made when data are available for at least 50 percent of the population.
The numbers in 2024
In 2024, 159 countries have a value. At the top, 8 countries tie at 100 (e.g. Andorra, Antigua and Barbuda, Austria); the lowest is Chad (4.51). The median country value is 86.83. The World Bank's World aggregate for 2024 is 71.95.
Top 10 countries, 2024
% of rural population
Highest, 2024
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | Andorra | 100 |
| 2 | Antigua and Barbuda | 100 |
| 3 | Austria | 100 |
| 4 | Chile | 100 |
| 5 | Iceland | 100 |
| 6 | Malta | 100 |
| 7 | New Zealand | 100 |
| 8 | Spain | 100 |
| 9 | Turkmenistan | 99.93 |
| 10 | United Arab Emirates | 99.92 |
Lowest, 2024
| # | Country | Value |
|---|---|---|
| 1 | Chad | 4.51 |
| 2 | Central African Republic | 5.74 |
| 3 | Ethiopia | 6.11 |
| 4 | South Sudan | 8.04 |
| 5 | Niger | 8.69 |
| 6 | Liberia | 10.06 |
| 7 | Madagascar | 10.56 |
| 8 | Congo, Dem. Rep. | 11.22 |
| 9 | Benin | 11.83 |
| 10 | Togo | 14.31 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 2000s | 168 |
| 2010s | 171 |
| 2020s | 166 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2024 | 71.95 |
| 2023 | 70.84 |
| 2022 | 69.17 |
| 2021 | 67.51 |
| 2020 | 65.91 |
| 2019 | 64.24 |
| 2018 | 62.57 |
| 2017 | 60.91 |
| 2016 | 59.21 |
| 2015 | 57.54 |
| 2014 | 55.9 |
| 2013 | 54.25 |
By region, 2024
| World Bank region | Value |
|---|---|
| North America | 98.44 |
| Europe & Central Asia | 93.17 |
| East Asia & Pacific | 90.96 |
| South Asia | 79.88 |
| Latin America & Caribbean | 76 |
| Middle East, North Africa, Afghanistan & Pakistan | 72.61 |
| Sub-Saharan Africa | 27.09 |
First rows
people-using-at-least-basic-sanitation-services-rural-percent-of-rural-population.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2000 | 19.5685688573726 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2001 | 19.5685688573726 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2002 | 20.9555558378488 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2003 | 22.3425428183254 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2004 | 23.729529798802 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2005 | 25.1165167792782 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2006 | 26.5035037597548 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2007 | 27.773274499904 |
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 at least basic sanitation services, rural (% of rural 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: 8 countries share the highest value, 100 (for example Andorra, Antigua and Barbuda, Austria).
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-at-least-basic-sanitation-services-rural-percent-of-rural-population.csv"))
y = df[df.year == 2024]
y[y.value == y.value.max()][["country", "value"]]File: people-using-at-least-basic-sanitation-services-rural-percent-of-rural-population.csv
How many countries report a value for 2024?
159 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-at-least-basic-sanitation-services-rural-percent-of-rural-population.csv"))
(df.year == 2024).sum()File: people-using-at-least-basic-sanitation-services-rural-percent-of-rural-population.csv
What is the median across countries in 2024?
86.83 (median of the 159 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-at-least-basic-sanitation-services-rural-percent-of-rural-population.csv"))
df[df.year == 2024]["value"].median()File: people-using-at-least-basic-sanitation-services-rural-percent-of-rural-population.csv
Which country rose the most between 2014 and 2024?
Cambodia: from 43.38 to 79.89, a rise of 36.51 (out of 158 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (people-using-at-least-basic-sanitation-services-rural-percent-of-rural-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-at-least-basic-sanitation-services-rural-percent-of-rural-population.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2024] - w[2014]).dropna().nlargest(1)File: people-using-at-least-basic-sanitation-services-rural-percent-of-rural-population.csv
Which year has the most countries reporting?
2016, with 171 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-at-least-basic-sanitation-services-rural-percent-of-rural-population.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: people-using-at-least-basic-sanitation-services-rural-percent-of-rural-population.csv