DataBrighten

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

    2,585 × 6rows × columns: 104 countries, 2000 to 2024

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

    textnumberdateyes/no
    Rows2,585country-year values
    Countries104with 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, 102 countries have a value. At the top, 9 countries tie at 100 (e.g. France, Gibraltar, Hong Kong SAR, China); the lowest is Tuvalu (10.38). The median country value is 74.91. The World Bank's World aggregate for 2024 is 83.41.

    Top 10 countries, 2024

    % of urban population

    Source: World Bank, SH.H2O.SMDW.UR.ZS, retrieved 19 November 2026. Computed from people-using-safely-managed-drinking-water-services-urban-percent-of-urban-population.csv.

    Highest, 2024

    Ties are listed A to Z.

    #CountryValue
    1France100
    2Gibraltar100
    3Hong Kong SAR, China100
    4Hungary100
    5Kuwait100
    6Macao SAR, China100
    7Monaco100
    8San Marino100
    9Singapore100
    10Germany100

    Lowest, 2024

    #CountryValue
    1Tuvalu10.38
    2Central African Republic11.25
    3Sierra Leone12.5
    4Chad17.59
    5Naoero18.66
    6Kiribati20.87
    7Nepal23.62
    8Congo, Dem. Rep.24.15
    9Benin28.44
    10Togo34.61
    How many countries report, by decade
    DecadeMost countries in one year
    2000s104
    2010s104
    2020s104

    World aggregate by year

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

    YearWorld
    202483.41
    202383.46
    202283.44
    202183.4
    202083.36
    201983.3
    201883.22
    201783.14
    201683.05
    201582.96
    201482.87
    201382.79

    By region, 2024

    World Bank regionValue
    North America97.51
    Europe & Central Asia95.27
    East Asia & Pacific85.31
    Latin America & Caribbean 84.5
    South Asia83.6
    Middle East, North Africa, Afghanistan & Pakistan74.57
    Sub-Saharan Africa 52.76

    First rows

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

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200021.8852585198528
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200121.8852585198528
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200222.5701543827451
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200323.2550502456374
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200423.9399461085298
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200524.6248419714221
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200625.3097378343145
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200725.9946336972068

    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, urban (% of urban 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: 9 countries share the highest value, 100 (for example France, Gibraltar, Hong Kong SAR, China).

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

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

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

    How many countries report a value for 2024?

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

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

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

    What is the median across countries in 2024?

    74.91 (median of the 102 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-urban-percent-of-urban-population.csv"))

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

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

    Which country rose the most between 2014 and 2024?

    Lao PDR: from 19.55 to 50.85, a rise of 31.3 (out of 102 countries with both years).

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

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

    Which year has the most countries reporting?

    2021, with 104 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-urban-percent-of-urban-population.csv"))

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

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