DataBrighten

    People using at least basic drinking water services (% of population)

    5,209 × 6rows × columns: 214 countries, 2000 to 2024

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

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

    What it measures

    The percentage of people using at least basic water services. This indicator encompasses both people using basic water services as well as those using safely managed water services. Basic drinking water services is defined as drinking water from an improved source, provided collection time is not more than 30 minutes for a round trip. 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)

    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, 202 countries have a value. At the top, 31 countries tie at 100 (e.g. American Samoa, Andorra, Belgium); the lowest is Congo, Dem. Rep. (35.68). The median country value is 97.38. The World Bank's World aggregate for 2024 is 91.45.

    Highest, 2024

    Ties are listed A to Z.

    #CountryValue
    1American Samoa100
    2Andorra100
    3Belgium100
    4Bermuda100
    5Brunei Darussalam100
    6Curacao100
    7Faroe Islands100
    8French Polynesia100
    9Germany100
    10Gibraltar100

    Lowest, 2024

    #CountryValue
    1Congo, Dem. Rep.35.68
    2Central African Republic36.5
    3South Sudan39.75
    4Burkina Faso50
    5Chad52.21
    6Papua New Guinea53.3
    7Niger53.43
    8Madagascar55.34
    9Ethiopia55.6
    10Rwanda61.39
    How many countries report, by decade
    DecadeMost countries in one year
    2000s212
    2010s214
    2020s205

    World aggregate by year

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

    YearWorld
    202491.45
    202391.22
    202290.86
    202190.42
    202090.02
    201989.65
    201889.26
    201788.87
    201688.52
    201588.12
    201487.71
    201387.31

    By region, 2024

    World Bank regionValue
    North America99.8
    Europe & Central Asia97.99
    Latin America & Caribbean 97.55
    South Asia95.94
    East Asia & Pacific95.27
    Middle East, North Africa, Afghanistan & Pakistan92.9
    Sub-Saharan Africa 67.54

    First rows

    people-using-at-least-basic-drinking-water-services-percent-of-population.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200029.7309664339367
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200129.7629255070812
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200231.8360773279001
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200333.9086290770251
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200435.9993546342258
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200538.1080542246859
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200640.2157630407476
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200742.4294955631251

    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 at least basic 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: 31 countries share the highest value, 100 (for example American Samoa, Andorra, Belgium).

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

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

    File: people-using-at-least-basic-drinking-water-services-percent-of-population.csv

    How many countries report a value for 2024?

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

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

    File: people-using-at-least-basic-drinking-water-services-percent-of-population.csv

    What is the median across countries in 2024?

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

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

    File: people-using-at-least-basic-drinking-water-services-percent-of-population.csv

    Which country rose the most between 2014 and 2024?

    Somalia, Fed. Rep.: from 51.86 to 75.29, a rise of 23.43 (out of 201 countries with both years).

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

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

    Which year has the most countries reporting?

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

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

    File: people-using-at-least-basic-drinking-water-services-percent-of-population.csv