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).
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
| Rank | Name | Value (constant 2019 US$) |
|---|---|---|
| 1 | South Africa | 2,465,270,300 |
| 2 | China | 1,107,047,200 |
| 3 | Kenya | 871,808,100 |
| 4 | Zambia | 504,412,060 |
| 5 | Brazil | 501,399,580 |
| 6 | Nigeria | 437,756,600 |
| 7 | India | 324,458,720 |
| 8 | Thailand | 286,070,820 |
| 9 | Chile | 241,730,290 |
| 10 | DR Congo | 223,877,220 |
Top 10 in 2002
| Rank | Name | Value (constant 2019 US$) |
|---|---|---|
| 1 | Guatemala | 12,571,165 |
Top 5 over time
| Period | #1 | #2 | #3 | #4 | #5 |
|---|---|---|---|---|---|
| 2002 | Guatemala12.6M constant 2019 US$ | — | — | — | — |
| 2010 | South 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$ |
| 2020 | South Africa2.4B constant 2019 US$ | Kenya795.1M constant 2019 US$ | Brazil559.2M constant 2019 US$ | Tanzania558M constant 2019 US$ | Uganda538.9M constant 2019 US$ |
| 2021 | South 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
- Life Expectancy by Country
- Life Expectancy at Age 15 by Country
- Child Mortality by Income Level of Country by Country
- Total Healthcare Spending as a Share of GDP by Country
- Number of Child Deaths per Woman by Country
- Total Health Spending per Person by Country
- Government Health Spending as a Share of GDP by Country
- Child Mortality Rate by Country
- All health charts