Adults (ages 15+) and children (0-14 years) living with HIV
Real data: World Bank, Health Nutrition and Population Statistics, indicator SH.HIV.TOTL, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Adults and children living with HIV refers to the number of people ages 0-49 (adult ages 15-49 and children ages 0-14) who are infected with HIV.
The numbers in 2024
In 2024, 148 countries have a value. The highest is South Africa (7.80 million); at the bottom, 4 countries tie at 100 (e.g. Maldives, Solomon Islands, Tuvalu). The median country value is 23,500. The World Bank's World aggregate for 2024 is 40.80 million.
Top 10 countries, 2024
value
Highest, 2024
| # | Country | Value |
|---|---|---|
| 1 | South Africa | 7.80 million |
| 2 | India | 2.60 million |
| 3 | Mozambique | 2.50 million |
| 4 | Nigeria | 2.00 million |
| 5 | Tanzania | 1.80 million |
| 6 | Uganda | 1.50 million |
| 7 | Zambia | 1.40 million |
| 8 | Kenya | 1.30 million |
| 9 | Zimbabwe | 1.30 million |
| 10 | Brazil | 1.10 million |
Lowest, 2024
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | Vanuatu | 100 |
| 2 | Tuvalu | 100 |
| 3 | Solomon Islands | 100 |
| 4 | Maldives | 100 |
| 5 | Comoros | 200 |
| 6 | St. Kitts and Nevis | 500 |
| 7 | Montenegro | 500 |
| 8 | Iceland | 500 |
| 9 | Dominica | 500 |
| 10 | St. Lucia | 650 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1990s | 150 |
| 2000s | 150 |
| 2010s | 152 |
| 2020s | 152 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2024 | 40.80 million |
| 2023 | 40.40 million |
| 2022 | 39.90 million |
| 2021 | 39.50 million |
| 2020 | 38.90 million |
| 2019 | 38.40 million |
| 2018 | 37.80 million |
| 2017 | 37.10 million |
| 2016 | 36.40 million |
| 2015 | 35.70 million |
| 2014 | 35.00 million |
| 2013 | 34.30 million |
First rows
adults-ages-15-plus-and-children-0-14-years-living-with-hiv.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1990 | 500 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1991 | 500 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1992 | 500 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1993 | 580 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1994 | 690 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1995 | 810 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1996 | 930 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1997 | 1100 |
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 | Adults (ages 15+) and children (0-14 years) living with HIV, 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?
South Africa, with 7.80 million.
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("adults-ages-15-plus-and-children-0-14-years-living-with-hiv.csv"))
y = df[df.year == 2024]
y[y.value == y.value.max()][["country", "value"]]File: adults-ages-15-plus-and-children-0-14-years-living-with-hiv.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("adults-ages-15-plus-and-children-0-14-years-living-with-hiv.csv"))
(df.year == 2024).sum()File: adults-ages-15-plus-and-children-0-14-years-living-with-hiv.csv
What is the median across countries in 2024?
23,500 (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("adults-ages-15-plus-and-children-0-14-years-living-with-hiv.csv"))
df[df.year == 2024]["value"].median()File: adults-ages-15-plus-and-children-0-14-years-living-with-hiv.csv
Which country rose the most between 2014 and 2024?
South Africa: from 6.50 million to 7.80 million, a rise of 1.30 million (out of 147 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (adults-ages-15-plus-and-children-0-14-years-living-with-hiv-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("adults-ages-15-plus-and-children-0-14-years-living-with-hiv.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2024] - w[2014]).dropna().nlargest(1)File: adults-ages-15-plus-and-children-0-14-years-living-with-hiv.csv
Which year has the most countries reporting?
2022, with 152 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("adults-ages-15-plus-and-children-0-14-years-living-with-hiv.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: adults-ages-15-plus-and-children-0-14-years-living-with-hiv.csv