Children orphaned by HIV/AIDS
Real data: World Bank, Health Nutrition and Population Statistics, indicator SH.HIV.ORPH, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Number of children orphaned by HIV/AIDS is the estimated number of children who have lost their mother or both parents to AIDS before age 15 since the epidemic began. Some of the orphaned children included in this cumulative total are no longer alive; others are no longer under age 15.
The numbers in 2024
In 2024, 131 countries have a value. The highest is Nigeria (1.30 million); at the bottom, 14 countries tie at 100 (e.g. Bahrain, Comoros, Dominica). The median country value is 8,400. The World Bank's World aggregate for 2024 is 13.80 million.
Top 10 countries, 2024
value
Highest, 2024
| # | Country | Value |
|---|---|---|
| 1 | Nigeria | 1.30 million |
| 2 | Mozambique | 1.20 million |
| 3 | Tanzania | 930,000 |
| 4 | Uganda | 890,000 |
| 5 | South Africa | 630,000 |
| 6 | Kenya | 570,000 |
| 7 | Congo, Dem. Rep. | 510,000 |
| 8 | Zimbabwe | 510,000 |
| 9 | Cameroon | 410,000 |
| 10 | Malawi | 360,000 |
Lowest, 2024
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | St. Kitts and Nevis | 100 |
| 2 | Slovenia | 100 |
| 3 | Slovak Republic | 100 |
| 4 | Qatar | 100 |
| 5 | Norway | 100 |
| 6 | North Macedonia | 100 |
| 7 | Montenegro | 100 |
| 8 | Malta | 100 |
| 9 | Maldives | 100 |
| 10 | Luxembourg | 100 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1990s | 136 |
| 2000s | 136 |
| 2010s | 138 |
| 2020s | 138 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2024 | 13.80 million |
| 2023 | 14.60 million |
| 2022 | 15.40 million |
| 2021 | 16.00 million |
| 2020 | 16.50 million |
| 2019 | 17.00 million |
| 2018 | 17.40 million |
| 2017 | 17.80 million |
| 2016 | 18.30 million |
| 2015 | 18.60 million |
| 2014 | 19.10 million |
| 2013 | 19.40 million |
First rows
children-orphaned-by-hiv-aids.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1990 | 100 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1991 | 100 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1992 | 100 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1993 | 200 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1994 | 200 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1995 | 500 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1996 | 500 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1997 | 500 |
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 | Children orphaned by HIV/AIDS, 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?
Nigeria, with 1.30 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("children-orphaned-by-hiv-aids.csv"))
y = df[df.year == 2024]
y[y.value == y.value.max()][["country", "value"]]File: children-orphaned-by-hiv-aids.csv
How many countries report a value for 2024?
131 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("children-orphaned-by-hiv-aids.csv"))
(df.year == 2024).sum()File: children-orphaned-by-hiv-aids.csv
What is the median across countries in 2024?
8,400 (median of the 131 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("children-orphaned-by-hiv-aids.csv"))
df[df.year == 2024]["value"].median()File: children-orphaned-by-hiv-aids.csv
Which country rose the most between 2014 and 2024?
Pakistan: from 34,000 to 160,000, a rise of 126,000 (out of 131 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (children-orphaned-by-hiv-aids-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("children-orphaned-by-hiv-aids.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2024] - w[2014]).dropna().nlargest(1)File: children-orphaned-by-hiv-aids.csv
Which year has the most countries reporting?
2022, with 138 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("children-orphaned-by-hiv-aids.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: children-orphaned-by-hiv-aids.csv