54 countries · side-by-side on every indicatorLiveGet API key

Country comparison

South Africa vs Uganda

South Africa and Uganda side by side across 203 indicators — each row links to the full 54-country ranking, with sources and the API call behind every figure.

GDP$479.96B vs $73.37BSouth Africa vs Uganda
GDP per Capita$7,503 vs $1,476South Africa vs Uganda
Population64.75M vs 51.38MSouth Africa vs Uganda

Indicator by indicator

203 indicators

Each country shows its latest available year, which can differ by indicator. Rows where the two sides are 5+ years apart are marked in the Period column.

Indicator South Africa UgandaPeriod
GDPEconomy$479.96B$73.37B2026
GDP per CapitaEconomy$7,503$1,4762026
Inflation RateEconomy5%3.7%2026-07
Central Bank Policy RateEconomy7%2026-07-01
Official Exchange RateEconomy16.37 LCU/USD3,681.36 LCU/USD2026-07
Budget BalanceEconomy-4.9%-5.9%2026
Unemployment RateEconomy32.4%2.7%2025
Public DebtEconomy78.9%55%2026
Trade BalanceEconomy$8.16B$-4.54B2025
GDP GrowthEconomy1%7.5%2026
GNI per CapitaEconomy$6,270$1,1202025
GNI per Capita (PPP)Economy$15,600$3,4102025
GDP (PPP)Economy$1.03T$179.21B2025
Agriculture (% of GDP)Economy2.8%26.1%2025
Industry (% of GDP)Economy24.1%24.3%2025
Manufacturing (% of GDP)Economy12.3%14.5%2025
Services (% of GDP)Economy63.1%42.1%2025
Investment (% of GDP)Economy13.9%22.6%2025
Remittances ReceivedEconomy$1B$1.43B2025/2024
Remittances (% of GDP)Economy0.2%2.7%2025/2024
External Debt (% of GNI)Economy44.8%39.2%2024
Foreign ReservesEconomy$76.02B$3.48B2025/2024
Credit to Private Sector (% of GDP)Economy89.4%14.3%2024
Tax Revenue (% of GDP)Economy25.9%12.6%2024
Labor Force ParticipationEconomy55.6%80%2025
Female Labor Force ParticipationEconomy49.9%75.6%2025
Income Inequality (Gini)Economy54.142.72022/2019
Extreme Poverty RateEconomy17.4%59.8%2022/2019
Account OwnershipEconomy81.1%72.8%2024
Youth NEET RateEconomy34.6%13.8%2024/2021
Military Spending (% of GDP)Economy0.7%1.9%2024
Trade Openness (% of GDP)Economy60.9%50.2%2025
Inflation (GDP Deflator)Economy2.8%5.2%2025
Tourism ReceiptsEconomy$2.72B$518M2020
Tourist ArrivalsEconomy3.89M473K2020
Current Account BalanceEconomy-0.9%-3.9%2026
Foreign Direct InvestmentEconomy$2.47B$3.3B2024
FDI (% of GDP)Economy0.6%5.9%2024
Government Revenue (% of GDP)Economy27.2%14.7%2024
Government Spending (% of GDP)Economy33%18.7%2024
Youth Unemployment RateEconomy60.1%5.2%2024/2021
Productive Capacity IndexEconomy51.729.42024
Natural Resource RentsEconomy7.3%7.5%2021
Oil Rents (% of GDP)Economy0.4%0%2021
Mineral Rents (% of GDP)Economy3.8%0%2021
Natural Gas Rents (% of GDP)Economy0%0%2021
Foreign Aid (% of GNI)Economy0.4%4.7%2023
Foreign Aid per CapitaEconomy$24$462023
Lending Interest RateEconomy10.7%19.8%2025/2018 ⚠
Real Interest RateEconomy7.7%14.7%2025/2018 ⚠
Gross Savings (% of GDP)Economy12.9%24.7%2025/2024
Adjusted Net Income per CapitaEconomy$5,521$6542021
Employment in AgricultureEconomy5.4%64.9%2025
Employment in IndustryEconomy20.8%7.3%2025
Employment in ServicesEconomy73.8%27.9%2025
Vulnerable EmploymentEconomy11.7%74.4%2025
Household Consumption (% of GDP)Economy65.8%65.2%2025
Income Share of Poorest 20%Economy3.7%6.1%2022/2019
Bank Branches per 100,000Economy82.12024
ATMs per 100,000Economy463.62024
GDP per Capita GrowthEconomy-0%3.5%2025
Debt Service (% of GNI)Economy5.7%3%2024
Poverty Rate ($3.65/day)Economy30.2%76.3%2022/2019
Poverty Rate ($6.85/day)Economy59.6%93.6%2022/2019
Exports of Goods & ServicesTrade$134.18B$13.29B2025
Imports of Goods & ServicesTrade$126.02B$17.83B2025
Export Diversification IndexTrade0.5530.8012024
Export Concentration IndexTrade0.1450.4192024
Liner Shipping ConnectivityTrade39.12021
Fuel Exports (% of Exports)Trade8.2%2.3%2025/2024
Manufactures Exports (% of Exports)Trade38.3%14.3%2025/2024
Food Exports (% of Exports)Trade12.8%39.3%2025/2024
High-Tech Exports (% of Manufactured)Trade5.7%1.9%2024
Exports (% of GDP)Trade31.4%21.4%2025
Imports (% of GDP)Trade29.5%28.8%2025
Human Development IndexDevelopment0.7410.5822023
Gender Inequality IndexDevelopment0.3880.5242023
Inequality-adjusted HDIDevelopment0.4760.42023
PopulationDemographics64.75M51.38M2025
Population GrowthDemographics1.1%2.7%2025
Life ExpectancyDemographics66.3 years68.5 years2024
Median AgeDemographics28.9 years17.1 years2026
Fertility RateDemographics2.214.172024
Rural PopulationDemographics36.2%68.1%2025
Population Under 15Demographics25.7%43.1%2025
Urban PopulationDemographics63.8%31.9%2025
Population DensityDemographics53.6/km²264.1/km²2026
Birth RateDemographics17.833.12026
Death RateDemographics9.314.662026
Net Migration RateDemographics2.01-2.312026
Life Expectancy (Female)Demographics69.8 years71.4 years2024
Life Expectancy (Male)Demographics62.8 years65.5 years2024
Urban Population GrowthDemographics1.3%4.8%2025
Infant MortalityHealth24.235.92024
HIV PrevalenceHealth17.2%4.9%2024
Health Spending (% of GDP)Health8.9%4.2%2023
Physicians per 1,000Health0.790.192022
UHC Service Coverage IndexHealth74542023
Road Traffic DeathsHealth24.5162021
Premature NCD MortalityHealth22.7%21.5%2021
Out-of-Pocket Health SpendingHealth6.7%32.2%2023
Safely Managed SanitationHealth73.8%20.4%2024
Maternal MortalityHealth117.6170.32023
Under-Five MortalityHealth34.738.82023
Neonatal MortalityHealth11.717.92023
Tuberculosis IncidenceHealth3891972024
Measles ImmunizationHealth66%92%2025
DTP3 ImmunizationHealth65%97%2025
Basic Drinking WaterHealth22.2%44.9%2024
Basic SanitationHealth3.6%3.5%2024
Diabetes PrevalenceHealth7.2%2.2%2024
Hospital Beds per 1,000Health2.250.52010
Contraceptive PrevalenceHealth54.6%43%2016/2022 ⚠
Skilled Birth AttendanceHealth96.7%74.2%2016
Nurses & Midwives per 1,000Health6.392.272022
Adolescent Fertility RateHealth51.8104.72024
Health Spending per CapitaHealth$537$452023
NCD Share of DeathsHealth37.2%36.9%2021
Smoking PrevalenceHealth23.7%7.5%2024
Antenatal Care CoverageHealth93.7%95.1%2016/2019
Child StuntingChild Welfare24.4%23.5%2024
Child WastingChild Welfare3.6%3.2%2017/2022 ⚠
Birth RegistrationChild Welfare88.6%32.2%2017/2016
Child MarriageChild Welfare3.6%34%2016
Overweight ChildrenChild Welfare11.8%3.4%2017/2022 ⚠
Education Spending (% of GDP)Education6%2.6%2024/2022
Tertiary EnrollmentEducation23.5%4.6%2023/2014 ⚠
Adult Literacy RateEducation91.2%77%2024
Youth Literacy RateEducation97.2%85.2%2024
Primary Completion RateEducation97.6%38.7%2024
Lower Secondary CompletionEducation92.5%21.3%2024
Primary Net EnrollmentEducation93.9%95.9%2023/2013 ⚠
Lower Secondary EnrollmentEducation90.4%2023
Upper Secondary EnrollmentEducation86.9%24.6%2023/2008 ⚠
Upper Secondary CompletionEducation62.2%10.1%2024
Qualified Primary TeachersEducation77.9%79.6%2002/2017 ⚠
Secondary EnrollmentEducation104.1%24.1%2023/2007 ⚠
UndernourishmentFood Security10%22%2023
Acute Food InsecurityFood Security1.75M2024-11
Agricultural Land (% of Land)Agriculture79.4%71.9%2023
Food Production IndexAgriculture113.2135.52022
Cassava ProductionAgriculture1.63M t2024
Coffee ProductionAgriculture402K t2024
Cocoa ProductionAgriculture55K t2024
Sorghum ProductionAgriculture98K t225K t2024
Millet ProductionAgriculture6.33K t120K t2024
Maize ProductionAgriculture12.85M t5M t2024
Rice ProductionAgriculture3.08K t300K t2024
Wheat ProductionAgriculture1.92M t25K t2024
Maize YieldAgriculture4,874 kg/ha2,174 kg/ha2024
Rice YieldAgriculture2,912 kg/ha1,304 kg/ha2024
Wheat YieldAgriculture3,809 kg/ha1,667 kg/ha2024
Cattle StockAgriculture12.1M head14.7M head2024
Homicide RateGovernance43.792022/2023
Corruption Perceptions IndexGovernance41262024
Electoral Democracy IndexGovernance0.7430.2532025
Liberal Democracy IndexGovernance0.6330.1652025
Political Corruption IndexGovernance0.5380.8892025
Control of CorruptionGovernance-0.19-1.122024
Government EffectivenessGovernance-0.23-0.352024
Rule of LawGovernance0.02-0.742024
Political StabilityGovernance-0.62-1.022024
Regulatory QualityGovernance-0.06-0.522024
Voice and AccountabilityGovernance0.61-1.012024
Refugees HostedHumanitarian55.18K1.94M2025
Internally Displaced PeopleHumanitarian002025
Asylum Seekers HostedHumanitarian82.36K35.25K2025
Stateless PeopleHumanitarian010.28K2025
Internet UsersTechnology78.4%8.9%2024
Mobile SubscriptionsTechnology179.383.22024
4G CoverageTechnology99.4%82%2024
Fixed Broadband SubscriptionsTechnology5.30.22024
Mobile Data PriceTechnology1.3%6.1%2025
3G CoverageTechnology99.9%97.8%2024
Fixed Broadband PriceTechnology3.4%34%2025
Mobile Bundle PriceTechnology1.1%3.9%2025
R&D Spending (% of GDP)Technology0.6%0.4%2022/2023
Electricity AccessInfrastructure90.2%55.3%2024
Air Transport PassengersInfrastructure15.45M21.65K2023
Slum PopulationInfrastructure24.2%52.7%2022
Renewable Energy CapacityEnergy16.6K MW1.9K MW2025
Solar CapacityEnergy11.3K MW95.8 MW2025
Wind CapacityEnergy4.3K MW2025
Hydropower CapacityEnergy751.7 MW1.7K MW2025
Renewable Energy ShareEnergy9.7%90.9%2021/2022
Clean Cooking AccessEnergy89.8%1.8%2023
Electricity Consumption per CapitaEnergy3,247 kWh95 kWh2023
Power Transmission LossesEnergy10.2%18.9%2023
Off-grid Renewable CapacityEnergy14.1 MW12.3 MW2025
Rural Electricity AccessEnergy86.3%44.8%2024
Solar Share of ElectricityEnergy8%2.9%2025/2024
Wind Share of ElectricityEnergy4.7%0%2025/2024
Hydropower Share of ElectricityEnergy0.8%86.1%2025/2024
Fossil Share of ElectricityEnergy82.2%2.9%2025/2024
Electricity DemandEnergy237 TWh5.4 TWh2025/2024
Electricity Carbon IntensityEnergy699 gCO₂/kWh59 gCO₂/kWh2025/2024
Primary Energy per CapitaEnergy21,287 kWh660 kWh2024/2023
CO2 Emissions per CapitaClimate6.88 t0.17 t2024
Renewable Electricity OutputClimate6.4%90%2021
Forest AreaClimate14%11%2023
Protected AreasClimate12.9%16.1%2025
Freshwater WithdrawalsClimate47.1%1.6%2022
PM2.5 Air PollutionClimate27.7 µg/m³31.2 µg/m³2023

Get this comparison via API

GET /v1/data

One call returns both countries' latest value for any indicator — JSON, with source metadata.

curl "https://api.africa-api.com/v1/data?metric_key=gdp_current_usd&latest=true&country_codes=ZA,UG" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does South Africa or Uganda have the larger economy?

South Africa has the larger economy: $479.96B for South Africa versus $73.37B for Uganda (GDP, current US$).

How do South Africa and Uganda compare across indicators?

This page compares South Africa and Uganda on 203 indicators — economy, demographics, health, governance and more — each with its latest value, source, and a link to the full 54-country ranking.

How do I get this comparison via the API?

Call GET /v1/data?metric_key=<key>&latest=true&country_codes=ZA,UG with a free Africa API key to get both countries' latest values as JSON.

More comparisons