DataBrighten

    Children orphaned by HIV/AIDS

    4,774 × 6rows × columns: 138 countries, 1990 to 2024

    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.

    textnumberdateyes/no
    Rows4,774country-year values
    Countries138with at least one value
    Years1990 – 202435 years with data
    LicenceCC BY 4.0credit the World Bank

    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

    Source: World Bank, SH.HIV.ORPH, retrieved 19 November 2026. Computed from children-orphaned-by-hiv-aids.csv.

    Highest, 2024

    #CountryValue
    1Nigeria1.30 million
    2Mozambique1.20 million
    3Tanzania930,000
    4Uganda890,000
    5South Africa630,000
    6Kenya570,000
    7Congo, Dem. Rep.510,000
    8Zimbabwe510,000
    9Cameroon410,000
    10Malawi360,000

    Lowest, 2024

    Ties are listed A to Z.

    #CountryValue
    1St. Kitts and Nevis100
    2Slovenia100
    3Slovak Republic100
    4Qatar100
    5Norway100
    6North Macedonia100
    7Montenegro100
    8Malta100
    9Maldives100
    10Luxembourg100
    How many countries report, by decade
    DecadeMost countries in one year
    1990s136
    2000s136
    2010s138
    2020s138

    World aggregate by year

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

    YearWorld
    202413.80 million
    202314.60 million
    202215.40 million
    202116.00 million
    202016.50 million
    201917.00 million
    201817.40 million
    201717.80 million
    201618.30 million
    201518.60 million
    201419.10 million
    201319.40 million

    First rows

    children-orphaned-by-hiv-aids.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1990100
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1991100
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1992100
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1993200
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1994200
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1995500
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1996500
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1997500

    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
    valuenumberChildren 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