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

Country comparison

Somalia vs South Africa

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

GDP$14.17B vs $479.96BSomalia vs South Africa
GDP per Capita$813 vs $7,503Somalia vs South Africa
Population19.65M vs 64.75MSomalia vs South Africa

Indicator by indicator

201 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 Somalia South AfricaPeriod
GDPEconomy$14.17B$479.96B2026
GDP per CapitaEconomy$813$7,5032026
Inflation RateEconomy5.9%5%2026
Central Bank Policy RateEconomy7%2026-07-01
Official Exchange RateEconomy23,581 LCU/USD16.37 LCU/USD2018/2026 ⚠
Budget BalanceEconomy-0.6%-4.9%2026
Unemployment RateEconomy18.9%32.4%2025
Public DebtEconomy78.9%2026
Trade BalanceEconomy$-9.04B$8.16B2025
GDP GrowthEconomy2.6%1%2026
GNI per CapitaEconomy$640$6,2702025
GNI per Capita (PPP)Economy$1,640$15,6002025
GDP (PPP)Economy$32.29B$1.03T2025
Agriculture (% of GDP)Economy55.8%2.8%1990/2025 ⚠
Industry (% of GDP)Economy9.7%24.1%1986/2025 ⚠
Manufacturing (% of GDP)Economy3.9%12.3%1990/2025 ⚠
Services (% of GDP)Economy63.1%2025
Investment (% of GDP)Economy28.1%13.9%2025
Remittances ReceivedEconomy$21.7M$1B1983/2025 ⚠
Remittances (% of GDP)Economy3%0.2%1983/2025 ⚠
External Debt (% of GNI)Economy14.9%44.8%2024
Foreign ReservesEconomy$23.11M$76.02B1989/2025 ⚠
Credit to Private Sector (% of GDP)Economy5.4%89.4%2024
Tax Revenue (% of GDP)Economy2.2%25.9%2024
Labor Force ParticipationEconomy33.8%55.6%2025
Female Labor Force ParticipationEconomy20.7%49.9%2025
Income Inequality (Gini)Economy54.12022
Extreme Poverty RateEconomy17.4%2022
Account OwnershipEconomy38.7%81.1%2014/2024 ⚠
Youth NEET RateEconomy51%34.6%2022/2024
Military Spending (% of GDP)Economy1.6%0.7%2024
Trade Openness (% of GDP)Economy128.1%60.9%2025
Inflation (GDP Deflator)Economy12.9%2.8%2025
Tourism ReceiptsEconomy$2.72B2020
Tourist ArrivalsEconomy3.89M2020
Current Account BalanceEconomy-8.7%-0.9%2026
Foreign Direct InvestmentEconomy$765M$2.47B2024
FDI (% of GDP)Economy6.4%0.6%2024
Government Revenue (% of GDP)Economy27.2%2024
Government Spending (% of GDP)Economy33%2024
Youth Unemployment RateEconomy17.9%60.1%2022/2024
Productive Capacity IndexEconomy19.351.72024
Natural Resource RentsEconomy11.2%7.3%2021
Oil Rents (% of GDP)Economy0%0.4%2021
Mineral Rents (% of GDP)Economy0%3.8%2021
Natural Gas Rents (% of GDP)Economy0%0%2021
Foreign Aid (% of GNI)Economy20.4%0.4%2023
Foreign Aid per CapitaEconomy$124$242023
Lending Interest RateEconomy33.7%10.7%1988/2025 ⚠
Real Interest RateEconomy-18.5%7.7%1988/2025 ⚠
Gross Savings (% of GDP)Economy12.9%2025
Adjusted Net Income per CapitaEconomy$356$5,5212021
Employment in AgricultureEconomy30%5.4%2025
Employment in IndustryEconomy17.8%20.8%2025
Employment in ServicesEconomy52.2%73.8%2025
Vulnerable EmploymentEconomy46%11.7%2025
Household Consumption (% of GDP)Economy133.3%65.8%2025
Income Share of Poorest 20%Economy3.7%2022
Bank Branches per 100,000Economy82024
ATMs per 100,000Economy462024
GDP per Capita GrowthEconomy-0.4%-0%2025
Debt Service (% of GNI)Economy0.1%5.7%2024
Poverty Rate ($3.65/day)Economy30.2%2022
Poverty Rate ($6.85/day)Economy59.6%2022
Exports of Goods & ServicesTrade$3.8B$134.18B2025
Imports of Goods & ServicesTrade$12.84B$126.02B2025
Export Diversification IndexTrade0.7740.5532024
Export Concentration IndexTrade0.7570.1452024
Liner Shipping ConnectivityTrade9.739.12021
Fuel Exports (% of Exports)Trade1.1%8.2%1982/2025 ⚠
Manufactures Exports (% of Exports)Trade1.3%38.3%1982/2025 ⚠
Food Exports (% of Exports)Trade93.7%12.8%1982/2025 ⚠
High-Tech Exports (% of Manufactured)Trade5.7%2024
Exports (% of GDP)Trade29.2%31.4%2025
Imports (% of GDP)Trade98.8%29.5%2025
Human Development IndexDevelopment0.4040.7412023
Gender Inequality IndexDevelopment0.6750.3882023
Inequality-adjusted HDIDevelopment0.2290.4762023
PopulationDemographics19.65M64.75M2025
Population GrowthDemographics3.3%1.1%2025
Life ExpectancyDemographics59 years66.3 years2024
Median AgeDemographics15.6 years28.9 years2026
Fertility RateDemographics6.012.212024
Rural PopulationDemographics44.9%36.2%2025
Population Under 15Demographics46.6%25.7%2025
Urban PopulationDemographics55.1%63.8%2025
Population DensityDemographics32.4/km²53.6/km²2026
Birth RateDemographics41.217.82026
Death RateDemographics9.559.312026
Net Migration RateDemographics0.762.012026
Life Expectancy (Female)Demographics61.6 years69.8 years2024
Life Expectancy (Male)Demographics56.5 years62.8 years2024
Urban Population GrowthDemographics4.3%1.3%2025
Infant MortalityHealth65.424.22024
HIV PrevalenceHealth0.1%17.2%2024
Health Spending (% of GDP)Health3.7%8.9%2023
Physicians per 1,000Health0.050.792014/2022 ⚠
UHC Service Coverage IndexHealth30742023
Road Traffic DeathsHealth20.224.52021
Premature NCD MortalityHealth27.6%22.7%2021
Out-of-Pocket Health SpendingHealth30.8%6.7%2023
Safely Managed SanitationHealth16.4%73.8%2024
Maternal MortalityHealth562.6117.62023
Under-Five MortalityHealth10434.72023
Neonatal MortalityHealth34.911.72023
Tuberculosis IncidenceHealth1513892024
Measles ImmunizationHealth61%66%2025
DTP3 ImmunizationHealth72%65%2025
Basic Drinking WaterHealth22.2%2024
Basic SanitationHealth28.1%3.6%2024
Diabetes PrevalenceHealth5.8%7.2%2024
Hospital Beds per 1,000Health0.872.252019/2010 ⚠
Contraceptive PrevalenceHealth6.9%54.6%2019/2016
Skilled Birth AttendanceHealth31.9%96.7%2019/2016
Nurses & Midwives per 1,000Health0.266.392014/2022 ⚠
Adolescent Fertility RateHealth115.451.82024
Health Spending per CapitaHealth$22$5372023
NCD Share of DeathsHealth25.1%37.2%2021
Smoking PrevalenceHealth23.7%2024
Antenatal Care CoverageHealth31.1%93.7%2019/2016
Child StuntingChild Welfare23.9%24.4%2024
Child WastingChild Welfare14.3%3.6%2009/2017 ⚠
Birth RegistrationChild Welfare3%88.6%2006/2017 ⚠
Child MarriageChild Welfare45.3%3.6%2006/2016 ⚠
Overweight ChildrenChild Welfare3%11.8%2009/2017 ⚠
Education Spending (% of GDP)Education0%6%2023/2024
Tertiary EnrollmentEducation2.4%23.5%1987/2023 ⚠
Adult Literacy RateEducation54.1%91.2%2022/2024
Youth Literacy RateEducation70.7%97.2%2022/2024
Primary Completion RateEducation49.8%97.6%2023/2024
Lower Secondary CompletionEducation47.9%92.5%2023/2024
Primary Net EnrollmentEducation93.9%2023
Lower Secondary EnrollmentEducation90.4%2023
Upper Secondary EnrollmentEducation86.9%2023
Upper Secondary CompletionEducation9.2%62.2%2011/2024 ⚠
Qualified Primary TeachersEducation77.9%2002
Secondary EnrollmentEducation3.3%104.1%2023
UndernourishmentFood Security53.2%10%2023
Acute Food InsecurityFood Security6.5M2026-06
Agricultural Land (% of Land)Agriculture70.3%79.4%2023
Food Production IndexAgriculture98.9113.22022
Cassava ProductionAgriculture98.46K t2024
Sorghum ProductionAgriculture56K t98K t2024
Millet ProductionAgriculture6.33K t2024
Maize ProductionAgriculture69K t12.85M t2024
Rice ProductionAgriculture2K t3.08K t2024
Wheat ProductionAgriculture1.06K t1.92M t2024
Maize YieldAgriculture690 kg/ha4,874 kg/ha2024
Rice YieldAgriculture2,000 kg/ha2,912 kg/ha2024
Wheat YieldAgriculture401 kg/ha3,809 kg/ha2024
Cattle StockAgriculture4.8M head12.1M head2024
Homicide RateGovernance43.72022
Corruption Perceptions IndexGovernance9412024
Electoral Democracy IndexGovernance0.1650.7432025
Liberal Democracy IndexGovernance0.1280.6332025
Political Corruption IndexGovernance0.870.5382025
Control of CorruptionGovernance-1.79-0.192024
Government EffectivenessGovernance-1.95-0.232024
Rule of LawGovernance-2.210.022024
Political StabilityGovernance-2.26-0.622024
Regulatory QualityGovernance-1.73-0.062024
Voice and AccountabilityGovernance-1.580.612024
Refugees HostedHumanitarian20.97K55.18K2025
Internally Displaced PeopleHumanitarian3.35M02025
Asylum Seekers HostedHumanitarian25.7K82.36K2025
Stateless PeopleHumanitarian002025
Internet UsersTechnology27.9%78.4%2024
Mobile SubscriptionsTechnology54179.32023/2024
4G CoverageTechnology61%99.4%2024
Fixed Broadband SubscriptionsTechnology0.75.32023/2024
Mobile Data PriceTechnology4%1.3%2025
3G CoverageTechnology83%99.9%2024
Fixed Broadband PriceTechnology50%3.4%2025
Mobile Bundle PriceTechnology4%1.1%2025
R&D Spending (% of GDP)Technology0.6%2022
Electricity AccessInfrastructure54.4%90.2%2024
Air Transport PassengersInfrastructure34.07K15.45M2019/2023
Slum PopulationInfrastructure48.7%24.2%2022
Renewable Energy CapacityEnergy49.5 MW16.6K MW2025
Solar CapacityEnergy45.9 MW11.3K MW2025
Wind CapacityEnergy3.6 MW4.3K MW2025
Hydropower CapacityEnergy751.7 MW2025
Renewable Energy ShareEnergy95.4%9.7%2022/2021
Clean Cooking AccessEnergy5.4%89.8%2023
Electricity Consumption per CapitaEnergy3,247 kWh2023
Power Transmission LossesEnergy10.2%2023
Off-grid Renewable CapacityEnergy49.5 MW14.1 MW2025
Rural Electricity AccessEnergy24.4%86.3%2024
Solar Share of ElectricityEnergy18.6%8%2024/2025
Wind Share of ElectricityEnergy2.3%4.7%2024/2025
Hydropower Share of ElectricityEnergy0%0.8%2024/2025
Fossil Share of ElectricityEnergy79.1%82.2%2024/2025
Electricity DemandEnergy0.4 TWh237 TWh2024/2025
Electricity Carbon IntensityEnergy512 gCO₂/kWh699 gCO₂/kWh2024/2025
Primary Energy per CapitaEnergy190 kWh21,287 kWh2023/2024
CO2 Emissions per CapitaClimate0.05 t6.88 t2024
Renewable Electricity OutputClimate11.2%6.4%2021
Forest AreaClimate9.2%14%2023
Protected AreasClimate0%12.9%2025
Freshwater WithdrawalsClimate55%47.1%2022
PM2.5 Air PollutionClimate18.5 µg/m³27.7 µ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=SO,ZA" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does Somalia or South Africa have the larger economy?

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

How do Somalia and South Africa compare across indicators?

This page compares Somalia and South Africa on 201 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=SO,ZA with a free Africa API key to get both countries' latest values as JSON.

More comparisons