DataBrighten

    Diabetes prevalence (% of population ages 20 to 79)

    429 × 6rows × columns: 209 countries, 2000 to 2024

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

    textnumberdateyes/no
    Rows429country-year values
    Countries209with at least one value
    Years2000 – 20243 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Diabetes prevalence refers to the percentage of people ages 20-79 who have type 1 or type 2 diabetes. It is calculated by adjusting to a standard population age-structure.

    Limits and exceptions (World Bank note)

    The limited availability of data on health status is a major constraint in assessing the health situation in developing countries. Surveillance data are lacking for many major public health concerns. Estimates of prevalence and incidence are available for some diseases but are often unreliable and incomplete. National health authorities differ widely in capacity and willingness to collect or report information.

    The numbers in 2024

    In 2024, 209 countries have a value. The highest is Pakistan (31.4); the lowest is Zimbabwe (1.5). The median country value is 8.5. The World Bank's World aggregate for 2024 is 10.8.

    Top 10 countries, 2024

    % of population ages 20 to 79

    Source: World Bank, SH.STA.DIAB.ZS, retrieved 19 November 2026. Computed from diabetes-prevalence-percent-of-population-ages-20-to-79.csv.

    Highest, 2024

    #CountryValue
    1Pakistan31.4
    2Marshall Islands25.7
    3Kuwait25.6
    4Samoa25.4
    5Kiribati24.6
    6Qatar24.6
    7Saudi Arabia23.1
    8French Polynesia22.8
    9Egypt, Arab Rep.22.4
    10Bahrain22.1

    Lowest, 2024

    #CountryValue
    1Zimbabwe1.5
    2Rwanda2.1
    3Uganda2.2
    4Ghana2.7
    5Nigeria3
    6Mozambique3
    7Kenya3.1
    8Timor-Leste3.2
    9Viet Nam3.4
    10Bolivia3.4
    How many countries report, by decade
    DecadeMost countries in one year
    2000s17
    2010s203
    2020s209

    World aggregate by year

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

    YearWorld
    202410.8
    20118.14

    By region, 2024

    World Bank regionValue
    Middle East, North Africa, Afghanistan & Pakistan20.14
    North America13.04
    Latin America & Caribbean 11.31
    East Asia & Pacific10.87
    South Asia10.72
    Europe & Central Asia8
    Sub-Saharan Africa 5.56

    First rows

    diabetes-prevalence-percent-of-population-ages-20-to-79.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20117.6
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income202411.7
    AlbaniaALBEurope & Central AsiaUpper middle income20112.8
    AlbaniaALBEurope & Central AsiaUpper middle income202410.6
    AlgeriaDZAMiddle East, North Africa, Afghanistan & PakistanUpper middle income20117
    AlgeriaDZAMiddle East, North Africa, Afghanistan & PakistanUpper middle income202417.5
    AndorraANDEurope & Central AsiaHigh income20115.4
    AndorraANDEurope & Central AsiaHigh income202410.1

    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
    valuenumberDiabetes prevalence (% of population ages 20 to 79), 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?

    Pakistan, with 31.4.

    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("diabetes-prevalence-percent-of-population-ages-20-to-79.csv"))

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

    File: diabetes-prevalence-percent-of-population-ages-20-to-79.csv

    How many countries report a value for 2024?

    209 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("diabetes-prevalence-percent-of-population-ages-20-to-79.csv"))

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

    File: diabetes-prevalence-percent-of-population-ages-20-to-79.csv

    What is the median across countries in 2024?

    8.5 (median of the 209 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("diabetes-prevalence-percent-of-population-ages-20-to-79.csv"))

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

    File: diabetes-prevalence-percent-of-population-ages-20-to-79.csv

    Which year has the most countries reporting?

    2024, with 209 countries.

    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("diabetes-prevalence-percent-of-population-ages-20-to-79.csv"))

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

    File: diabetes-prevalence-percent-of-population-ages-20-to-79.csv