DataBrighten

    People using safely managed drinking water services (% of population)

    3,716 × 6rows × columns: 151 countries, 2000 to 2024

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

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

    What it measures

    The percentage of people using drinking water from an improved source that is accessible on premises, available when needed and free from fecal and priority chemical contamination. Improved water sources include piped water, boreholes or tubewells, protected dug wells, protected springs, and packaged or delivered water.

    Limits and exceptions (World Bank note)

    In order to meet the criteria for a safely managed drinking water service, an improved water source should meet three criteria: it should be accessible on the premises (accessibility), water should be available when needed (availability), and the water supplied should be free from contamination (quality). Many countries lack data on one or more elements of safely managed drinking water. The WHO/UNICEF Joint Monitoring Programme for Water Supply, Sanitation and Hygiene (JMP) provide national estimates only when data are available on drinking water quality and at least one of the other criteria (accessibility and availability). 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, 148 countries have a value. At the top, 10 countries tie at 100 (e.g. Gibraltar, Hong Kong SAR, China, Hungary); the lowest is Central African Republic (6.22). The median country value is 80.72. The World Bank's World aggregate for 2024 is 73.67.

    Highest, 2024

    Ties are listed A to Z.

    #CountryValue
    1Gibraltar100
    2Hong Kong SAR, China100
    3Hungary100
    4Iceland100
    5Kuwait100
    6Liechtenstein100
    7Macao SAR, China100
    8Monaco100
    9New Zealand100
    10Singapore100

    Lowest, 2024

    #CountryValue
    1Central African Republic6.22
    2Chad6.34
    3Tuvalu8.72
    4Sierra Leone10.9
    5Congo, Dem. Rep.11.87
    6Ethiopia13.55
    7Kiribati15.09
    8Nepal16.49
    9Benin17.7
    10Uganda18.1
    How many countries report, by decade
    DecadeMost countries in one year
    2000s150
    2010s151
    2020s150

    World aggregate by year

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

    YearWorld
    202473.67
    202371.99
    202271.51
    202171
    202070.48
    201969.95
    201869.39
    201768.82
    201668.24
    201567.65
    201467.06
    201366.47

    By region, 2024

    World Bank regionValue
    North America97.4
    Europe & Central Asia92.47
    Latin America & Caribbean 78.96
    South Asia77.55
    East Asia & Pacific75.23
    Middle East, North Africa, Afghanistan & Pakistan65.62
    Sub-Saharan Africa 32.42

    First rows

    people-using-safely-managed-drinking-water-services-percent-of-population.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200011.4830526030791
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200111.4952007602954
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200212.2981002329931
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200313.1007499034299
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200413.9102665546506
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200514.7265543080656
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200615.5424169809884
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200716.6502497184612

    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 drinking water 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: 10 countries share the highest value, 100 (for example Gibraltar, Hong Kong SAR, China, Hungary).

    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-drinking-water-services-percent-of-population.csv"))

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

    File: people-using-safely-managed-drinking-water-services-percent-of-population.csv

    How many countries report a value for 2024?

    148 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-drinking-water-services-percent-of-population.csv"))

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

    File: people-using-safely-managed-drinking-water-services-percent-of-population.csv

    What is the median across countries in 2024?

    80.72 (median of the 148 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-drinking-water-services-percent-of-population.csv"))

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

    File: people-using-safely-managed-drinking-water-services-percent-of-population.csv

    Which country rose the most between 2014 and 2024?

    Lao PDR: from 11.74 to 35.19, a rise of 23.45 (out of 147 countries with both years).

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

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

    Which year has the most countries reporting?

    2017, with 151 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-drinking-water-services-percent-of-population.csv"))

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

    File: people-using-safely-managed-drinking-water-services-percent-of-population.csv