DataBrighten

    Adults (ages 15+) living with HIV

    5,233 × 6rows × columns: 152 countries, 1990 to 2024

    Real data: World Bank, Health Nutrition and Population Statistics, indicator SH.DYN.AIDS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

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

    What it measures

    Adults living with HIV refers to the number of people ages 15-49 who are infected with HIV.

    The numbers in 2024

    In 2024, 147 countries have a value. The highest is South Africa (7.70 million); at the bottom, 4 countries tie at 100 (e.g. Maldives, Solomon Islands, Tuvalu). The median country value is 22,000. The World Bank's World aggregate for 2024 is 39.40 million.

    Top 10 countries, 2024

    value

    Source: World Bank, SH.DYN.AIDS, retrieved 19 November 2026. Computed from adults-ages-15-plus-living-with-hiv.csv.

    Highest, 2024

    #CountryValue
    1South Africa7.70 million
    2India2.50 million
    3Mozambique2.30 million
    4Nigeria1.80 million
    5Tanzania1.70 million
    6Uganda1.50 million
    7Kenya1.30 million
    8Zambia1.30 million
    9Zimbabwe1.20 million
    10Malawi940,000

    Lowest, 2024

    Ties are listed A to Z.

    #CountryValue
    1Vanuatu100
    2Tuvalu100
    3Solomon Islands100
    4Maldives100
    5Comoros200
    6St. Kitts and Nevis500
    7Montenegro500
    8Iceland500
    9Dominica500
    10St. Vincent and the Grenadines650
    How many countries report, by decade
    DecadeMost countries in one year
    1990s149
    2000s149
    2010s151
    2020s151

    World aggregate by year

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

    YearWorld
    202439.40 million
    202338.90 million
    202238.40 million
    202137.80 million
    202037.20 million
    201936.60 million
    201835.90 million
    201735.10 million
    201634.30 million
    201533.50 million
    201432.70 million
    201331.90 million

    First rows

    adults-ages-15-plus-living-with-hiv.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1990500
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1991500
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1992500
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1993540
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1994650
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1995760
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1996870
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1997980

    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
    valuenumberAdults (ages 15+) 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.70 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-living-with-hiv.csv"))

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

    File: adults-ages-15-plus-living-with-hiv.csv

    How many countries report a value for 2024?

    147 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-living-with-hiv.csv"))

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

    File: adults-ages-15-plus-living-with-hiv.csv

    What is the median across countries in 2024?

    22,000 (median of the 147 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-living-with-hiv.csv"))

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

    File: adults-ages-15-plus-living-with-hiv.csv

    Which country rose the most between 2014 and 2024?

    South Africa: from 6.20 million to 7.70 million, a rise of 1.50 million (out of 146 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (adults-ages-15-plus-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-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-living-with-hiv.csv

    Which year has the most countries reporting?

    2022, with 151 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-living-with-hiv.csv"))

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

    File: adults-ages-15-plus-living-with-hiv.csv