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

Country comparison

Somalia vs Nigeria

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

GDP$14.17B vs $377.37BSomalia vs Nigeria
GDP per Capita$813 vs $1,556Somalia vs Nigeria
Population19.65M vs 237.53MSomalia vs Nigeria

Indicator by indicator

200 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 NigeriaPeriod
GDPEconomy$14.17B$377.37B2026
GDP per CapitaEconomy$813$1,5562026
Inflation RateEconomy5.9%15.9%2026
Central Bank Policy RateEconomy26.5%2026-07-01
Official Exchange RateEconomy23,581 LCU/USD1,376.34 LCU/USD2018/2026 ⚠
Budget BalanceEconomy-0.6%-4.4%2026
Unemployment RateEconomy18.9%3.1%2025
Public DebtEconomy32.3%2026
Trade BalanceEconomy$-9.04B$-322.41M2025/1960 ⚠
GDP GrowthEconomy2.6%4.1%2026
GNI per CapitaEconomy$640$1,3602025
GNI per Capita (PPP)Economy$1,640$9,2302025
GDP (PPP)Economy$32.29B$2.26T2025
Agriculture (% of GDP)Economy55.8%23%1990/2025 ⚠
Industry (% of GDP)Economy9.7%16.4%1986/2025 ⚠
Manufacturing (% of GDP)Economy3.9%8.3%1990/2025 ⚠
Services (% of GDP)Economy58.2%2025
Investment (% of GDP)Economy28.1%2025
Remittances ReceivedEconomy$21.7M$22.79B1983/2025 ⚠
Remittances (% of GDP)Economy3%7.8%1983/2025 ⚠
External Debt (% of GNI)Economy14.9%60%2024
Foreign ReservesEconomy$23.11M$46.02B1989/2025 ⚠
Credit to Private Sector (% of GDP)Economy5.4%9.6%2024/2022
Tax Revenue (% of GDP)Economy2.2%2024
Labor Force ParticipationEconomy33.8%82.5%2025
Female Labor Force ParticipationEconomy20.7%80.7%2025
Income Inequality (Gini)Economy33.92022
Extreme Poverty RateEconomy41.8%2022
Account OwnershipEconomy38.7%63.3%2014/2024 ⚠
Youth NEET RateEconomy51%11.9%2022/2024
Military Spending (% of GDP)Economy1.6%0.6%2024
Trade Openness (% of GDP)Economy128.1%26.2%2025/1960 ⚠
Inflation (GDP Deflator)Economy12.9%13.9%2025
Tourism ReceiptsEconomy$321M2020
Tourist ArrivalsEconomy5.27M2016
Current Account BalanceEconomy-8.7%5.8%2026
Foreign Direct InvestmentEconomy$765M$1.08B2024
FDI (% of GDP)Economy6.4%0.4%2024
Government Revenue (% of GDP)Economy10.8%2024
Government Spending (% of GDP)Economy12.3%2024
Youth Unemployment RateEconomy17.9%5.4%2022/2024
Productive Capacity IndexEconomy19.330.72024
Natural Resource RentsEconomy11.2%8.6%2021
Oil Rents (% of GDP)Economy0%6.2%2021
Mineral Rents (% of GDP)Economy0%0%2021
Natural Gas Rents (% of GDP)Economy0%1.2%2021
Foreign Aid (% of GNI)Economy20.4%0.8%2023
Foreign Aid per CapitaEconomy$124$162023
Lending Interest RateEconomy33.7%14%1988/2023 ⚠
Real Interest RateEconomy-18.5%2.9%1988/2023 ⚠
Adjusted Net Income per CapitaEconomy$356$1,6632021
Employment in AgricultureEconomy30%33.5%2025
Employment in IndustryEconomy17.8%17%2025
Employment in ServicesEconomy52.2%49.5%2025
Vulnerable EmploymentEconomy46%66.5%2025
Household Consumption (% of GDP)Economy133.3%2025
Income Share of Poorest 20%Economy7.5%2022
Bank Branches per 100,000Economy3.32024
ATMs per 100,000Economy12.82024
GDP per Capita GrowthEconomy-0.4%1.9%2025
Debt Service (% of GNI)Economy0.1%5.5%2024
Poverty Rate ($3.65/day)Economy64%2022
Poverty Rate ($6.85/day)Economy92.9%2022
Exports of Goods & ServicesTrade$3.8B$387.79M2025/1960 ⚠
Imports of Goods & ServicesTrade$12.84B$710.2M2025/1960 ⚠
Export Diversification IndexTrade0.7740.8262024
Export Concentration IndexTrade0.7570.6942024
Liner Shipping ConnectivityTrade9.720.82021
Fuel Exports (% of Exports)Trade1.1%88.6%1982/2024 ⚠
Manufactures Exports (% of Exports)Trade1.3%3.5%1982/2024 ⚠
Food Exports (% of Exports)Trade93.7%6%1982/2024 ⚠
High-Tech Exports (% of Manufactured)Trade2.7%2024
Exports (% of GDP)Trade29.2%9.2%2025/1960 ⚠
Imports (% of GDP)Trade98.8%16.9%2025/1960 ⚠
Human Development IndexDevelopment0.4040.562023
Gender Inequality IndexDevelopment0.6750.6772023
Inequality-adjusted HDIDevelopment0.2290.3792023
PopulationDemographics19.65M237.53M2025
Population GrowthDemographics3.3%2.1%2025
Life ExpectancyDemographics59 years54.6 years2024
Median AgeDemographics15.6 years18.3 years2026
Fertility RateDemographics6.014.382024
Rural PopulationDemographics44.9%36.2%2025
Population Under 15Demographics46.6%40.5%2025
Urban PopulationDemographics55.1%63.8%2025
Population DensityDemographics32.4/km²266.2/km²2026
Birth RateDemographics41.231.82026
Death RateDemographics9.5511.52026
Net Migration RateDemographics0.76-0.012026
Life Expectancy (Female)Demographics61.6 years54.9 years2024
Life Expectancy (Male)Demographics56.5 years54.3 years2024
Urban Population GrowthDemographics4.3%3.3%2025
Infant MortalityHealth65.469.82024
HIV PrevalenceHealth0.1%1.2%2024
Health Spending (% of GDP)Health3.7%4.2%2023
Physicians per 1,000Health0.050.382014/2023 ⚠
UHC Service Coverage IndexHealth30472023
Road Traffic DeathsHealth20.217.22021
Premature NCD MortalityHealth27.6%17.7%2021
Out-of-Pocket Health SpendingHealth30.8%70.9%2023
Safely Managed SanitationHealth16.4%32.2%2024
Maternal MortalityHealth562.6992.82023
Under-Five MortalityHealth104104.92023
Neonatal MortalityHealth34.933.72023
Tuberculosis IncidenceHealth1512192024
Measles ImmunizationHealth61%56%2025
DTP3 ImmunizationHealth72%62%2025
Basic Drinking WaterHealth52.3%2024
Basic SanitationHealth28.1%15.7%2024
Diabetes PrevalenceHealth5.8%3%2024
Hospital Beds per 1,000Health0.870.52019/2004 ⚠
Contraceptive PrevalenceHealth6.9%21.6%2019/2021
Skilled Birth AttendanceHealth31.9%50.7%2019/2022
Nurses & Midwives per 1,000Health0.261.652014/2022 ⚠
Adolescent Fertility RateHealth115.4842024
Health Spending per CapitaHealth$22$672023
NCD Share of DeathsHealth25.1%27.7%2021
Smoking PrevalenceHealth3.1%2024
Antenatal Care CoverageHealth31.1%67%2019/2018
Child StuntingChild Welfare23.9%33.8%2024
Child WastingChild Welfare14.3%11.6%2009/2021 ⚠
Birth RegistrationChild Welfare3%39.7%2006/2024 ⚠
Child MarriageChild Welfare45.3%33.4%2006/2024 ⚠
Overweight ChildrenChild Welfare3%1.5%2009/2021 ⚠
Education Spending (% of GDP)Education0%0.3%2023
Tertiary EnrollmentEducation2.4%9.7%1987/2011 ⚠
Adult Literacy RateEducation54.1%70.4%2022/2024
Youth Literacy RateEducation70.7%81.4%2022/2024
Primary Completion RateEducation49.8%77.4%2023/2024
Lower Secondary CompletionEducation47.9%74.1%2023/2024
Primary Net EnrollmentEducation75.7%2023
Upper Secondary CompletionEducation9.2%68.5%2011/2024 ⚠
Qualified Primary TeachersEducation62.2%2018
Secondary EnrollmentEducation3.3%46.9%2023
UndernourishmentFood Security53.2%19.9%2023
Acute Food InsecurityFood Security6.5M16.5M2026-06
Agricultural Land (% of Land)Agriculture70.3%76.2%2023
Food Production IndexAgriculture98.9119.92022
Cassava ProductionAgriculture98.46K t62.62M t2024
Coffee ProductionAgriculture1.81K t2024
Cocoa ProductionAgriculture350K t2024
Sorghum ProductionAgriculture56K t6.5M t2024
Millet ProductionAgriculture1.55M t2024
Maize ProductionAgriculture69K t11.16M t2024
Rice ProductionAgriculture2K t9.13M t2024
Wheat ProductionAgriculture1.06K t43.93K t2024
Maize YieldAgriculture690 kg/ha2,030 kg/ha2024
Rice YieldAgriculture2,000 kg/ha1,997 kg/ha2024
Wheat YieldAgriculture401 kg/ha1,574 kg/ha2024
Cattle StockAgriculture4.8M head20.9M head2024
Homicide RateGovernance15.72023
Corruption Perceptions IndexGovernance9262024
Electoral Democracy IndexGovernance0.1650.5052025
Liberal Democracy IndexGovernance0.1280.3112025
Political Corruption IndexGovernance0.870.8342025
Control of CorruptionGovernance-1.79-1.112024
Government EffectivenessGovernance-1.95-1.012024
Rule of LawGovernance-2.21-1.012024
Political StabilityGovernance-2.26-22024
Regulatory QualityGovernance-1.73-0.632024
Voice and AccountabilityGovernance-1.58-0.732024
Refugees HostedHumanitarian20.97K123.85K2025
Internally Displaced PeopleHumanitarian3.35M3.54M2025
Asylum Seekers HostedHumanitarian25.7K18.19K2025
Stateless PeopleHumanitarian002025
Internet UsersTechnology27.9%41.2%2024
Mobile SubscriptionsTechnology5470.82023/2024
4G CoverageTechnology61%84.6%2024
Fixed Broadband SubscriptionsTechnology0.70.12023/2024
Mobile Data PriceTechnology4%1.6%2025
3G CoverageTechnology83%89.4%2024
Fixed Broadband PriceTechnology50%15.5%2025
Mobile Bundle PriceTechnology4%2.7%2025
R&D Spending (% of GDP)Technology0.3%2019
Electricity AccessInfrastructure54.4%62.5%2024
Air Transport PassengersInfrastructure34.07K5.27M2019/2023
Slum PopulationInfrastructure48.7%48.5%2022
Renewable Energy CapacityEnergy49.5 MW3.2K MW2025
Solar CapacityEnergy45.9 MW284.5 MW2025
Wind CapacityEnergy3.6 MW2025
Hydropower CapacityEnergy2.9K MW2025
Renewable Energy ShareEnergy95.4%80.3%2022/2021
Clean Cooking AccessEnergy5.4%26.2%2023
Electricity Consumption per CapitaEnergy144 kWh2023
Power Transmission LossesEnergy14.2%2023
Off-grid Renewable CapacityEnergy49.5 MW118.1 MW2025
Rural Electricity AccessEnergy24.4%23.5%2024
Solar Share of ElectricityEnergy18.6%0.3%2024/2025
Wind Share of ElectricityEnergy2.3%0%2024/2025
Hydropower Share of ElectricityEnergy0%30.9%2024/2025
Fossil Share of ElectricityEnergy79.1%68.7%2024/2025
Electricity DemandEnergy0.4 TWh39 TWh2024/2025
Electricity Carbon IntensityEnergy512 gCO₂/kWh456 gCO₂/kWh2024/2025
Primary Energy per CapitaEnergy190 kWh2,343 kWh2023
CO2 Emissions per CapitaClimate0.05 t0.57 t2024
Renewable Electricity OutputClimate11.2%22.2%2021
Forest AreaClimate9.2%23.2%2023
Protected AreasClimate0%11.6%2025
Freshwater WithdrawalsClimate55%5.6%2022
PM2.5 Air PollutionClimate18.5 µg/m³65.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,NG" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does Somalia or Nigeria have the larger economy?

Nigeria has the larger economy: $14.17B for Somalia versus $377.37B for Nigeria (GDP, current US$).

How do Somalia and Nigeria compare across indicators?

This page compares Somalia and Nigeria on 200 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,NG with a free Africa API key to get both countries' latest values as JSON.

More comparisons