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

Country comparison

South Africa vs Morocco

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

GDP$479.96B vs $194.33BSouth Africa vs Morocco
GDP per Capita$7,503 vs $5,107South Africa vs Morocco
Population64.75M vs 38.43MSouth Africa vs Morocco

Indicator by indicator

173 indicators
Indicator South Africa MoroccoPeriod
GDPEconomy$479.96B$194.33B2026
GDP per CapitaEconomy$7,503$5,1072026
Inflation RateEconomy5%-0.5%2026-07
Central Bank Policy RateEconomy7%2.3%2026-07-01
Official Exchange RateEconomy16.17 LCU/USD9.28 LCU/USD2026-08
Budget BalanceEconomy-4.9%-3.5%2026
Unemployment RateEconomy32.4%9%2025
Public DebtEconomy78.9%65.8%2026
Trade BalanceEconomy$8.16B$-16.71B2025
GDP GrowthEconomy1%4.9%2026
GNI per CapitaEconomy$6,270$4,3602025
GNI per Capita (PPP)Economy$15,600$10,9602025
GDP (PPP)Economy$1.03T$433.71B2025
Agriculture (% of GDP)Economy2.8%10.5%2025
Industry (% of GDP)Economy24.1%25.2%2025
Manufacturing (% of GDP)Economy12.3%14.9%2025
Services (% of GDP)Economy63.1%52.3%2025
Investment (% of GDP)Economy13.9%31.9%2025
Remittances ReceivedEconomy$1B$13.66B2025
Remittances (% of GDP)Economy0.2%7.5%2025
External Debt (% of GNI)Economy44.8%44.7%2024
Foreign ReservesEconomy$76.02B$48.45B2025
Credit to Private Sector (% of GDP)Economy89.4%77.8%2024
Tax Revenue (% of GDP)Economy25.9%20.7%2024/2023
Labor Force ParticipationEconomy55.6%43.9%2025
Female Labor Force ParticipationEconomy49.9%19.7%2025
Account OwnershipEconomy81.1%44.4%2024
Youth NEET RateEconomy34.6%2024
Military Spending (% of GDP)Economy0.7%3.5%2024
Trade Openness (% of GDP)Economy60.9%93.1%2025
Inflation (GDP Deflator)Economy2.8%2.1%2025
Current Account BalanceEconomy-0.9%-3.1%2026
Foreign Direct InvestmentEconomy$-2.31B$3.34B2025
FDI (% of GDP)Economy-0.5%1.8%2025
Government Revenue (% of GDP)Economy27.2%29.1%2024
Government Spending (% of GDP)Economy33%33%2024
Youth Unemployment RateEconomy60.1%2024
Productive Capacity IndexEconomy51.747.12024
Foreign Aid (% of GNI)Economy0.4%0.5%2023
Foreign Aid per CapitaEconomy$24$202023
Lending Interest RateEconomy10.7%2025
Real Interest RateEconomy7.7%2025
Gross Savings (% of GDP)Economy12.9%29.4%2025
Employment in AgricultureEconomy5.4%27.9%2025
Employment in IndustryEconomy20.8%23.8%2025
Employment in ServicesEconomy73.8%48.3%2025
Vulnerable EmploymentEconomy11.7%35.5%2025
Household Consumption (% of GDP)Economy65.8%59.3%2025
Bank Branches per 100,000Economy820.22024
ATMs per 100,000Economy4628.52024
GDP per Capita GrowthEconomy-0%3.6%2025
Debt Service (% of GNI)Economy5.7%5.6%2024
Exports of Goods & ServicesTrade$134.18B$76.54B2025
Imports of Goods & ServicesTrade$126.02B$93.25B2025
Export Diversification IndexTrade0.5570.6662025
Export Concentration IndexTrade0.1530.212025
Fuel Exports (% of Exports)Trade8.2%0.8%2025/2024
Manufactures Exports (% of Exports)Trade38.3%82.9%2025/2024
Food Exports (% of Exports)Trade12.8%12.5%2025/2024
High-Tech Exports (% of Manufactured)Trade5.7%5.4%2024/2023
Exports (% of GDP)Trade31.4%42%2025
Imports (% of GDP)Trade29.5%51.1%2025
Human Development IndexDevelopment0.7410.712023
Gender Inequality IndexDevelopment0.3880.4382023
Inequality-adjusted HDIDevelopment0.4760.5172023
PopulationDemographics64.75M38.43M2025
Population GrowthDemographics1.1%0.9%2025
Life ExpectancyDemographics66.3 years75.5 years2024
Median AgeDemographics28.9 years30.1 years2026
Fertility RateDemographics2.212.212024
Rural PopulationDemographics36.2%36.9%2025
Population Under 15Demographics25.7%25.2%2025
Urban PopulationDemographics63.8%63.1%2025
Population DensityDemographics53.6/km²86.9/km²2026
Birth RateDemographics17.815.82026
Death RateDemographics9.315.912026
Net Migration RateDemographics2.01-1.572026
Life Expectancy (Female)Demographics69.8 years77.8 years2024
Life Expectancy (Male)Demographics62.8 years73.3 years2024
Urban Population GrowthDemographics1.3%1.4%2025
Infant MortalityHealth24.214.72024
HIV PrevalenceHealth17.2%0.1%2024
Health Spending (% of GDP)Health8.9%6.1%2023
UHC Service Coverage IndexHealth74652023
Out-of-Pocket Health SpendingHealth6.7%37.3%2023
Safely Managed SanitationHealth73.8%8.4%2024
Maternal MortalityHealth117.669.82023
Under-Five MortalityHealth35.115.72024
Neonatal MortalityHealth12.49.642024
Tuberculosis IncidenceHealth389982024
Measles ImmunizationHealth66%98%2025
DTP3 ImmunizationHealth65%96%2025
Basic Drinking WaterHealth22.2%12.2%2024
Basic SanitationHealth3.6%79.4%2024
Diabetes PrevalenceHealth7.2%11.9%2024
Hospital Beds per 1,000Health0.732023
Nurses & Midwives per 1,000Health0.872023
Adolescent Fertility RateHealth51.824.82024
Health Spending per CapitaHealth$537$2322023
Smoking PrevalenceHealth23.7%12.5%2024
Child StuntingChild Welfare24.4%13.7%2024
Education Spending (% of GDP)Education6%6%2024/2023
Tertiary EnrollmentEducation23.5%48.2%2023/2024
Adult Literacy RateEducation91.2%2024
Youth Literacy RateEducation97.2%2024
Primary Completion RateEducation97.6%2024
Lower Secondary CompletionEducation92.5%2024
Primary Net EnrollmentEducation93.9%99.1%2023/2024
Lower Secondary EnrollmentEducation90.4%97.7%2023/2024
Upper Secondary EnrollmentEducation86.9%81.1%2023/2024
Upper Secondary CompletionEducation62.2%2024
Qualified Primary TeachersEducation100%2024
Secondary EnrollmentEducation104.1%90%2023/2024
UndernourishmentFood Security10%7%2023
Agricultural Land (% of Land)Agriculture79.4%66.7%2023
Sorghum ProductionAgriculture98K t2.02K t2024
Millet ProductionAgriculture6.33K t5.18K t2024
Maize ProductionAgriculture12.85M t73.23K t2024
Rice ProductionAgriculture3.08K t6.01K t2024
Wheat ProductionAgriculture1.92M t2.44M t2024
Maize YieldAgriculture4,874 kg/ha722 kg/ha2024
Rice YieldAgriculture2,912 kg/ha6,500 kg/ha2024
Wheat YieldAgriculture3,809 kg/ha1,388 kg/ha2024
Cattle StockAgriculture12.1M head2.4M head2024
Homicide RateGovernance1.72023
Corruption Perceptions IndexGovernance41372024
Electoral Democracy IndexGovernance0.7430.2592025
Liberal Democracy IndexGovernance0.6330.2512025
Political Corruption IndexGovernance0.5380.6712025
Control of CorruptionGovernance-0.19-0.522024
Government EffectivenessGovernance-0.230.182024
Rule of LawGovernance0.02-0.372024
Political StabilityGovernance-0.62-0.442024
Regulatory QualityGovernance-0.06-0.032024
Voice and AccountabilityGovernance0.61-0.732024
Organized Violence DeathsGovernance17 deaths7 deaths2025
State-Based Conflict DyadsGovernance012025
Non-State Conflict DyadsGovernance202025
One-Sided Violence DyadsGovernance002025
Refugees HostedHumanitarian55.18K7.3K2025
Internally Displaced PeopleHumanitarian002025
Asylum Seekers HostedHumanitarian82.36K15.03K2025
Stateless PeopleHumanitarian002025
Internet UsersTechnology78.4%91.2%2024
Mobile SubscriptionsTechnology179.3153.12024
4G CoverageTechnology99.5%99.8%2025
Fixed Broadband SubscriptionsTechnology5.37.32024
Mobile Data PriceTechnology1.3%1.5%2025
3G CoverageTechnology99.9%99.8%2025
Fixed Broadband PriceTechnology3.4%3%2025
Mobile Bundle PriceTechnology1.1%0.8%2025
Electricity AccessInfrastructure90.2%100%2024
Air Transport PassengersInfrastructure15.45M9.35M2023
Renewable Energy CapacityEnergy16.6K MW4.9K MW2025
Solar CapacityEnergy11.3K MW1.1K MW2025
Wind CapacityEnergy4.3K MW2.5K MW2025
Hydropower CapacityEnergy751.7 MW1.3K MW2025
Clean Cooking AccessEnergy89.8%98.1%2023
Electricity Consumption per CapitaEnergy3,247 kWh997 kWh2023
Power Transmission LossesEnergy10.2%18.2%2023
Off-grid Renewable CapacityEnergy14.1 MW28 MW2025
Rural Electricity AccessEnergy86.3%100%2024
Solar Share of ElectricityEnergy8%5.8%2025
Wind Share of ElectricityEnergy4.7%16%2025
Hydropower Share of ElectricityEnergy0.8%2%2025
Fossil Share of ElectricityEnergy82.2%76%2025
Electricity DemandEnergy237 TWh48 TWh2025
Electricity Carbon IntensityEnergy699 gCO₂/kWh596 gCO₂/kWh2025
Primary Energy per CapitaEnergy21,287 kWh7,257 kWh2024
CO2 Emissions per CapitaClimate6.88 t1.84 t2024
Forest AreaClimate14%12.9%2023
Protected AreasClimate12.9%1.4%2025
PM2.5 Air PollutionClimate27.7 µg/m³18.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=ZA,MA" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does South Africa or Morocco have the larger economy?

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

How do South Africa and Morocco compare across indicators?

This page compares South Africa and Morocco on 173 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,MA with a free Africa API key to get both countries' latest values as JSON.

More comparisons