DataBrighten

    People using safely managed sanitation services, rural (% of rural population)

    2,464 × 6rows × columns: 100 countries, 2000 to 2024

    Real data: World Bank, World Development Indicators, indicator SH.STA.SMSS.RU.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

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

    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, 97 countries have a value. The highest is Andorra (100); the lowest is Chad (4.22). The median country value is 47.82. The World Bank's World aggregate for 2024 is 48.5.

    Top 10 countries, 2024

    % of rural population

    Source: World Bank, SH.STA.SMSS.RU.ZS, retrieved 19 November 2026. Computed from people-using-safely-managed-sanitation-services-rural-percent-of-rural-population.csv.

    Highest, 2024

    #CountryValue
    1Andorra100
    2Switzerland99.45
    3United Arab Emirates98.51
    4Netherlands97.47
    5Austria96.34
    6Kyrgyz Republic95.11
    7Israel94.64
    8Lithuania93.06
    9Sweden91.59
    10United Kingdom91.59

    Lowest, 2024

    #CountryValue
    1Chad4.22
    2Ethiopia4.68
    3Central African Republic5.71
    4Niger5.97
    5Madagascar10.03
    6Benin10.75
    7Sierra Leone10.78
    8Congo, Dem. Rep.11.17
    9Togo11.43
    10Papua New Guinea14.35
    How many countries report, by decade
    DecadeMost countries in one year
    2000s99
    2010s100
    2020s100

    World aggregate by year

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

    YearWorld
    202448.5
    202347.28
    202246.03
    202144.65
    202043.29
    201941.91
    201840.31
    201738.74
    201637.15
    201535.59
    201434.07
    201332.59

    By region, 2024

    World Bank regionValue
    Europe & Central Asia71.69
    South Asia64.28
    East Asia & Pacific44.01
    Middle East, North Africa, Afghanistan & Pakistan43.6
    Sub-Saharan Africa 21.07

    First rows

    people-using-safely-managed-sanitation-services-rural-percent-of-rural-population.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200010.2780111014705
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200110.2780111014705
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200211.0143125001154
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200311.7506138987606
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200412.4869152974057
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200513.2232166960506
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200613.9595180946958
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200714.6340569117649

    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
    valuenumberPeople using safely managed 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?

    Andorra, with 100.

    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-rural-percent-of-rural-population.csv"))

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

    File: people-using-safely-managed-sanitation-services-rural-percent-of-rural-population.csv

    How many countries report a value for 2024?

    97 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-rural-percent-of-rural-population.csv"))

    (df.year == 2024).sum()

    File: people-using-safely-managed-sanitation-services-rural-percent-of-rural-population.csv

    What is the median across countries in 2024?

    47.82 (median of the 97 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-rural-percent-of-rural-population.csv"))

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

    File: people-using-safely-managed-sanitation-services-rural-percent-of-rural-population.csv

    Which country rose the most between 2014 and 2024?

    India: from 38.59 to 66.87, a rise of 28.28 (out of 96 countries with both years).

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

    Use the wide file (people-using-safely-managed-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-safely-managed-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-safely-managed-sanitation-services-rural-percent-of-rural-population.csv

    Which year has the most countries reporting?

    2023, with 100 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-rural-percent-of-rural-population.csv"))

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

    File: people-using-safely-managed-sanitation-services-rural-percent-of-rural-population.csv