Skip to content

HIV Expenditure on Prevention and Treatment by Country, 2002–2021 — Bar Chart Race

This bar chart race ranks 171 countries by expenditure on HIV prevention and treatment (constant 2019 US$), year by year from 2002 to 2021. The data comes from Joint United Nations Programme on HIV/AIDS (2026) (via Our World in Data).

Loading chart…

Customise this chart & export videoDownload the data (CSV)

Key facts

  • South Africa leads in 2021 with 2,465,270,300 constant 2019 US$, followed by China (1,107,047,200).
  • In 2002 the leader was Guatemala with 12,571,165 constant 2019 US$.
  • The animation covers 20 time steps from 2002 to 2021 across 171 countries.

How the ranking changed

First place changed hands 7 times between 2002 and 2021: Namibia overtook Guatemala in 2003, Mexico overtook Namibia in 2005, South Africa overtook Mexico in 2006, United Kingdom overtook South Africa in 2007 and South Africa overtook United Kingdom in 2008, among others. South Africa had the longest run at the top (2008–2014).

The biggest climbers into the 2021 top ten were Nigeria (43rd in 2006, now 6th), DR Congo (30th in 2006, now 10th) and India (19th in 2008, now 7th).

South Africa, China, Kenya, Zambia and Brazil were not in the top ten in 2002 but are in it by 2021.

South Africa alone accounts for 30% of the 8.3B constant 2019 US$ total across all 171 countries in 2021, up from 12.6M constant 2019 US$ in 2002.

Top 10 in 2021

HIV Expenditure on Prevention and Treatment by Country, 2021
RankNameValue (constant 2019 US$)
1South Africa2,465,270,300
2China1,107,047,200
3Kenya871,808,100
4Zambia504,412,060
5Brazil501,399,580
6Nigeria437,756,600
7India324,458,720
8Thailand286,070,820
9Chile241,730,290
10DR Congo223,877,220

Top 10 in 2002

HIV Expenditure on Prevention and Treatment by Country, 2002
RankNameValue (constant 2019 US$)
1Guatemala12,571,165

Top 5 over time

HIV Expenditure on Prevention and Treatment by Country: top 5 at each point
Period#1#2#3#4#5
2002Guatemala12.6M constant 2019 US$————
2010South Africa2.2B constant 2019 US$Spain980.9M constant 2019 US$Brazil734.2M constant 2019 US$Kenya726.1M constant 2019 US$Russia686.6M constant 2019 US$
2020South Africa2.4B constant 2019 US$Kenya795.1M constant 2019 US$Brazil559.2M constant 2019 US$Tanzania558M constant 2019 US$Uganda538.9M constant 2019 US$
2021South Africa2.5B constant 2019 US$China1.1B constant 2019 US$Kenya871.8M constant 2019 US$Zambia504.4M constant 2019 US$Brazil501.4M constant 2019 US$

About the data

Total in-country spending on HIV programs and services.

Source: Joint United Nations Programme on HIV/AIDS (2026) (via Our World in Data), licensed CC BY 4.0 (Our World in Data); original source terms apply. Snapshot last refreshed on . Gaps in a series are interpolated between the nearest reported values.

Questions

Which country ranks first for expenditure on HIV prevention and treatment in 2021?

South Africa, with 2.5B constant 2019 US$. China is second with 1.1B constant 2019 US$ and Kenya third.

Which country was first in 2002?

Guatemala, with 12.6M constant 2019 US$. By 2021 it ranks 11th or lower.

When did South Africa become the top country?

South Africa took first place in 2017, overtaking China.

What were the top 5 countries in 2020?

1. South Africa (2.4B constant 2019 US$), 2. Kenya (795.1M constant 2019 US$), 3. Brazil (559.2M constant 2019 US$), 4. Tanzania (558M constant 2019 US$) and 5. Uganda (538.9M constant 2019 US$).

Where does the data come from?

Joint United Nations Programme on HIV/AIDS (2026) (via Our World in Data), published under CC BY 4.0 (Our World in Data); original source terms apply. The chart covers 20 time steps from 2002 to 2021 for 171 countries.

Can I export the bar chart race as a video?

Yes. The chart is rendered frame by frame in your browser and saved as an MP4 (H.264) file at up to 4K and 60 frames per second. Nothing is uploaded, so your data stays on your device.

More bar chart races