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

Country comparison

South Africa vs Morocco

South Africa and Morocco side by side across 199 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

199 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 MoroccoPeriod
GDPEconomy$479.96B$194.33B2026
GDP per CapitaEconomy$7,503$5,1072026
Inflation RateEconomy5%1.2%2026-07
Central Bank Policy RateEconomy7%2.3%2026-07-01
Official Exchange RateEconomy16.37 LCU/USD9.35 LCU/USD2026-07
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
Income Inequality (Gini)Economy54.139.52022/2013 ⚠
Extreme Poverty RateEconomy17.4%3.7%2022/2013 ⚠
Account OwnershipEconomy81.1%44.4%2024
Youth NEET RateEconomy34.6%35.3%2024/2014 ⚠
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
Tourism ReceiptsEconomy$2.72B$4.51B2020
Tourist ArrivalsEconomy3.89M2.8M2020
Current Account BalanceEconomy-0.9%-3.1%2026
Foreign Direct InvestmentEconomy$2.47B$1.64B2024
FDI (% of GDP)Economy0.6%1%2024
Government Revenue (% of GDP)Economy27.2%29.1%2024
Government Spending (% of GDP)Economy33%33%2024
Youth Unemployment RateEconomy60.1%32.7%2024/2022
Productive Capacity IndexEconomy51.747.12024
Natural Resource RentsEconomy7.3%0.4%2021
Oil Rents (% of GDP)Economy0.4%0%2021
Mineral Rents (% of GDP)Economy3.8%0.3%2021
Natural Gas Rents (% of GDP)Economy0%0%2021
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
Adjusted Net Income per CapitaEconomy$5,521$3,3732021
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
Income Share of Poorest 20%Economy3.7%6.7%2022/2013 ⚠
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
Poverty Rate ($3.65/day)Economy30.2%11.6%2022/2013 ⚠
Poverty Rate ($6.85/day)Economy59.6%49%2022/2013 ⚠
Exports of Goods & ServicesTrade$134.18B$76.54B2025
Imports of Goods & ServicesTrade$126.02B$93.25B2025
Export Diversification IndexTrade0.5530.6572024
Export Concentration IndexTrade0.1450.1912024
Liner Shipping ConnectivityTrade39.169.32021
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
Physicians per 1,000Health0.790.742022/2021
UHC Service Coverage IndexHealth74652023
Road Traffic DeathsHealth24.518.62021
Premature NCD MortalityHealth22.7%22%2021
Out-of-Pocket Health SpendingHealth6.7%37.3%2023
Safely Managed SanitationHealth73.8%8.4%2024
Maternal MortalityHealth117.669.82023
Under-Five MortalityHealth34.716.62023
Neonatal MortalityHealth11.710.22023
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,000Health2.250.732010/2023 ⚠
Contraceptive PrevalenceHealth54.6%70.8%2016/2018
Skilled Birth AttendanceHealth96.7%86.6%2016/2018
Nurses & Midwives per 1,000Health6.390.872022/2023
Adolescent Fertility RateHealth51.824.82024
Health Spending per CapitaHealth$537$2322023
NCD Share of DeathsHealth37.2%74%2021
Smoking PrevalenceHealth23.7%12.5%2024
Antenatal Care CoverageHealth93.7%88.5%2016/2018
Child StuntingChild Welfare24.4%13.7%2024
Child WastingChild Welfare3.6%2.4%2017/2019
Birth RegistrationChild Welfare88.6%96.9%2017/2018
Child MarriageChild Welfare3.6%13.7%2016/2018
Overweight ChildrenChild Welfare11.8%12.7%2017/2019
Education Spending (% of GDP)Education6%6%2024/2023
Tertiary EnrollmentEducation23.5%48.2%2023/2024
Adult Literacy RateEducation91.2%64.3%2024/2014 ⚠
Youth Literacy RateEducation97.2%89.1%2024/2014 ⚠
Primary Completion RateEducation97.6%69.4%2024/2010 ⚠
Lower Secondary CompletionEducation92.5%37.6%2024/2010 ⚠
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%46.9%2024/2017 ⚠
Qualified Primary TeachersEducation77.9%100%2002/2024 ⚠
Secondary EnrollmentEducation104.1%90%2023/2024
UndernourishmentFood Security10%7%2023
Agricultural Land (% of Land)Agriculture79.4%66.7%2023
Food Production IndexAgriculture113.2106.12022
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 RateGovernance43.71.72022/2023
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
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.4%99.8%2024
Fixed Broadband SubscriptionsTechnology5.37.32024
Mobile Data PriceTechnology1.3%1.5%2025
3G CoverageTechnology99.9%99.4%2024
Fixed Broadband PriceTechnology3.4%3%2025
Mobile Bundle PriceTechnology1.1%0.8%2025
R&D Spending (% of GDP)Technology0.6%0.7%2022/2010 ⚠
Electricity AccessInfrastructure90.2%100%2024
Air Transport PassengersInfrastructure15.45M9.35M2023
Slum PopulationInfrastructure24.2%10.9%2022
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
Renewable Energy ShareEnergy9.7%10.9%2021
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
Renewable Electricity OutputClimate6.4%19.3%2021
Forest AreaClimate14%12.9%2023
Protected AreasClimate12.9%1.4%2025
Freshwater WithdrawalsClimate47.1%36.5%2022
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 199 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