Diabetes prevalence (% of population ages 20 to 79)
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.
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
Highest, 2024
| # | Country | Value |
|---|---|---|
| 1 | Pakistan | 31.4 |
| 2 | Marshall Islands | 25.7 |
| 3 | Kuwait | 25.6 |
| 4 | Samoa | 25.4 |
| 5 | Kiribati | 24.6 |
| 6 | Qatar | 24.6 |
| 7 | Saudi Arabia | 23.1 |
| 8 | French Polynesia | 22.8 |
| 9 | Egypt, Arab Rep. | 22.4 |
| 10 | Bahrain | 22.1 |
Lowest, 2024
| # | Country | Value |
|---|---|---|
| 1 | Zimbabwe | 1.5 |
| 2 | Rwanda | 2.1 |
| 3 | Uganda | 2.2 |
| 4 | Ghana | 2.7 |
| 5 | Nigeria | 3 |
| 6 | Mozambique | 3 |
| 7 | Kenya | 3.1 |
| 8 | Timor-Leste | 3.2 |
| 9 | Viet Nam | 3.4 |
| 10 | Bolivia | 3.4 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 2000s | 17 |
| 2010s | 203 |
| 2020s | 209 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2024 | 10.8 |
| 2011 | 8.14 |
By region, 2024
| World Bank region | Value |
|---|---|
| Middle East, North Africa, Afghanistan & Pakistan | 20.14 |
| North America | 13.04 |
| Latin America & Caribbean | 11.31 |
| East Asia & Pacific | 10.87 |
| South Asia | 10.72 |
| Europe & Central Asia | 8 |
| Sub-Saharan Africa | 5.56 |
First rows
diabetes-prevalence-percent-of-population-ages-20-to-79.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2011 | 7.6 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2024 | 11.7 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2011 | 2.8 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2024 | 10.6 |
| Algeria | DZA | Middle East, North Africa, Afghanistan & Pakistan | Upper middle income | 2011 | 7 |
| Algeria | DZA | Middle East, North Africa, Afghanistan & Pakistan | Upper middle income | 2024 | 17.5 |
| Andorra | AND | Europe & Central Asia | High income | 2011 | 5.4 |
| Andorra | AND | Europe & Central Asia | High income | 2024 | 10.1 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Diabetes 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