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

Country comparison

Morocco vs Tanzania

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

GDP$194.33B vs $94.89BMorocco vs Tanzania
GDP per Capita$5,107 vs $1,362Morocco vs Tanzania
Population38.43M vs 70.55MMorocco vs Tanzania

Indicator by indicator

202 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 Morocco TanzaniaPeriod
GDPEconomy$194.33B$94.89B2026
GDP per CapitaEconomy$5,107$1,3622026
Inflation RateEconomy1.2%4%2026-05
Central Bank Policy RateEconomy2.3%6.3%2026-03-19
Official Exchange RateEconomy9.35 LCU/USD2,629.23 LCU/USD2026-07
Budget BalanceEconomy-3.5%-3.2%2026
Unemployment RateEconomy9%1.6%2025
Public DebtEconomy65.8%48.7%2026
Trade BalanceEconomy$-16.71B$-903.42M2025
GDP GrowthEconomy4.9%5.9%2026
GNI per CapitaEconomy$4,360$1,2702025
GNI per Capita (PPP)Economy$10,960$4,3702025
GDP (PPP)Economy$433.71B$305.6B2025
Agriculture (% of GDP)Economy10.5%22.9%2025
Industry (% of GDP)Economy25.2%29.8%2025
Manufacturing (% of GDP)Economy14.9%8.1%2025/2024
Services (% of GDP)Economy52.3%28.8%2025
Investment (% of GDP)Economy31.9%40.7%2025
Remittances ReceivedEconomy$13.66B$1.12B2025/2024
Remittances (% of GDP)Economy7.5%1.4%2025/2024
External Debt (% of GNI)Economy44.7%47.3%2024
Foreign ReservesEconomy$48.45B$5.05B2025/2018 ⚠
Credit to Private Sector (% of GDP)Economy77.8%16.7%2024
Tax Revenue (% of GDP)Economy20.7%12.7%2023/2024
Labor Force ParticipationEconomy43.9%83.7%2025
Female Labor Force ParticipationEconomy19.7%80.3%2025
Income Inequality (Gini)Economy39.540.52013/2018 ⚠
Extreme Poverty RateEconomy3.7%51.3%2013/2018 ⚠
Account OwnershipEconomy44.4%59.8%2024
Youth NEET RateEconomy35.3%12.8%2014/2024 ⚠
Military Spending (% of GDP)Economy3.5%1.2%2024
Trade Openness (% of GDP)Economy93.1%39%2025
Inflation (GDP Deflator)Economy2.1%5.1%2025
Tourism ReceiptsEconomy$4.51B$2.62B2020/2019
Tourist ArrivalsEconomy2.8M1.53M2020/2019
Current Account BalanceEconomy-3.1%-2.3%2026
Foreign Direct InvestmentEconomy$1.64B$1.72B2024
FDI (% of GDP)Economy1%2.1%2024
Government Revenue (% of GDP)Economy29.1%16.1%2024
Government Spending (% of GDP)Economy33%19.1%2024
Youth Unemployment RateEconomy32.7%4.7%2022/2024
Productive Capacity IndexEconomy47.130.92024
Natural Resource RentsEconomy0.4%6.7%2021
Oil Rents (% of GDP)Economy0%0%2021
Mineral Rents (% of GDP)Economy0.3%4%2021
Natural Gas Rents (% of GDP)Economy0%0.2%2021
Foreign Aid (% of GNI)Economy0.5%3.9%2023
Foreign Aid per CapitaEconomy$20$462023
Lending Interest RateEconomy16.7%2020
Real Interest RateEconomy9.6%2020
Gross Savings (% of GDP)Economy29.4%36.5%2025/2024
Adjusted Net Income per CapitaEconomy$3,373$9722021
Employment in AgricultureEconomy27.9%64.6%2025
Employment in IndustryEconomy23.8%8.1%2025
Employment in ServicesEconomy48.3%27.3%2025
Vulnerable EmploymentEconomy35.5%83.7%2025
Household Consumption (% of GDP)Economy59.3%50.5%2025
Income Share of Poorest 20%Economy6.7%6.9%2013/2018 ⚠
Bank Branches per 100,000Economy20.22.42024
ATMs per 100,000Economy28.55.52024
GDP per Capita GrowthEconomy3.6%2.9%2025
Debt Service (% of GNI)Economy5.6%2.6%2024
Poverty Rate ($3.65/day)Economy11.6%70%2013/2018 ⚠
Poverty Rate ($6.85/day)Economy49%91.5%2013/2018 ⚠
Exports of Goods & ServicesTrade$76.54B$17.11B2025
Imports of Goods & ServicesTrade$93.25B$18.02B2025
Export Diversification IndexTrade0.6570.7482024
Export Concentration IndexTrade0.1910.352024
Liner Shipping ConnectivityTrade69.315.82021
Fuel Exports (% of Exports)Trade0.8%2.2%2024
Manufactures Exports (% of Exports)Trade82.9%10.8%2024
Food Exports (% of Exports)Trade12.5%37.4%2024
High-Tech Exports (% of Manufactured)Trade5.4%3%2023/2024
Exports (% of GDP)Trade42%19%2025
Imports (% of GDP)Trade51.1%20%2025
Human Development IndexDevelopment0.710.5552023
Gender Inequality IndexDevelopment0.4380.5042023
Inequality-adjusted HDIDevelopment0.5170.3912023
PopulationDemographics38.43M70.55M2025
Population GrowthDemographics0.9%2.9%2025
Life ExpectancyDemographics75.5 years67.2 years2024
Median AgeDemographics30.1 years17.6 years2026
Fertility RateDemographics2.214.542024
Rural PopulationDemographics36.9%63.1%2025
Population Under 15Demographics25.2%42.3%2025
Urban PopulationDemographics63.1%36.9%2025
Population DensityDemographics86.9/km²81.9/km²2026
Birth RateDemographics15.833.92026
Death RateDemographics5.915.592026
Net Migration RateDemographics-1.57-0.352026
Life Expectancy (Female)Demographics77.8 years70 years2024
Life Expectancy (Male)Demographics73.3 years64.4 years2024
Urban Population GrowthDemographics1.4%4.8%2025
Infant MortalityHealth14.728.72024
HIV PrevalenceHealth0.1%3.5%2024
Health Spending (% of GDP)Health6.1%3.1%2023
Physicians per 1,000Health0.740.132021/2022
UHC Service Coverage IndexHealth65492023
Road Traffic DeathsHealth18.615.82021
Premature NCD MortalityHealth22%18.8%2021
Out-of-Pocket Health SpendingHealth37.3%27.9%2023
Safely Managed SanitationHealth8.4%28.5%2024
Maternal MortalityHealth69.8275.82023
Under-Five MortalityHealth16.638.92023
Neonatal MortalityHealth10.220.62023
Tuberculosis IncidenceHealth981722024
Measles ImmunizationHealth98%84%2025
DTP3 ImmunizationHealth96%83%2025
Basic Drinking WaterHealth12.2%33.3%2024
Basic SanitationHealth79.4%8.8%2024
Diabetes PrevalenceHealth11.9%9.8%2024
Hospital Beds per 1,000Health0.730.842023/2022
Contraceptive PrevalenceHealth70.8%37.6%2018/2022
Skilled Birth AttendanceHealth86.6%63.5%2018/2016
Nurses & Midwives per 1,000Health0.870.692023
Adolescent Fertility RateHealth24.8112.62024
Health Spending per CapitaHealth$232$362023
NCD Share of DeathsHealth74%38.8%2021
Smoking PrevalenceHealth12.5%7.7%2024
Antenatal Care CoverageHealth88.5%98%2018/2017
Child StuntingChild Welfare13.7%29.9%2024
Child WastingChild Welfare2.4%3.1%2019/2022
Birth RegistrationChild Welfare96.9%67.7%2018/2022
Child MarriageChild Welfare13.7%29.1%2018/2022
Overweight ChildrenChild Welfare12.7%3.7%2019/2022
Education Spending (% of GDP)Education6%3.2%2023/2024
Tertiary EnrollmentEducation48.2%4%2024
Adult Literacy RateEducation64.3%78.2%2014/2022 ⚠
Youth Literacy RateEducation89.1%87.1%2014/2022 ⚠
Primary Completion RateEducation69.4%74.5%2010/2022 ⚠
Lower Secondary CompletionEducation37.6%28%2010/2022 ⚠
Primary Net EnrollmentEducation99.1%83.6%2024
Lower Secondary EnrollmentEducation97.7%49%2024
Upper Secondary EnrollmentEducation81.1%15%2024
Upper Secondary CompletionEducation46.9%8.9%2017/2022 ⚠
Qualified Primary TeachersEducation100%99.2%2024/2016 ⚠
Secondary EnrollmentEducation90%28.2%2024/2021
UndernourishmentFood Security7%20.2%2023
Agricultural Land (% of Land)Agriculture66.7%44.6%2023
Food Production IndexAgriculture106.1109.92022
Cassava ProductionAgriculture10.53M t2024
Coffee ProductionAgriculture77.42K t2024
Cocoa ProductionAgriculture15K t2024
Sorghum ProductionAgriculture2.02K t800K t2024
Millet ProductionAgriculture5.18K t325K t2024
Maize ProductionAgriculture73.23K t10.08M t2024
Rice ProductionAgriculture6.01K t4.05M t2024
Wheat ProductionAgriculture2.44M t119K t2024
Maize YieldAgriculture722 kg/ha1,756 kg/ha2024
Rice YieldAgriculture6,500 kg/ha3,106 kg/ha2024
Wheat YieldAgriculture1,388 kg/ha1,376 kg/ha2024
Cattle StockAgriculture2.4M head39.1M head2024
Homicide RateGovernance1.73.72023/2020
Corruption Perceptions IndexGovernance37412024
Electoral Democracy IndexGovernance0.2590.3652025
Liberal Democracy IndexGovernance0.2510.2972025
Political Corruption IndexGovernance0.6710.3292025
Control of CorruptionGovernance-0.52-0.292024
Government EffectivenessGovernance0.18-0.292024
Rule of LawGovernance-0.37-0.522024
Political StabilityGovernance-0.44-0.392024
Regulatory QualityGovernance-0.03-0.542024
Voice and AccountabilityGovernance-0.73-0.642024
Refugees HostedHumanitarian7.3K171.14K2025
Internally Displaced PeopleHumanitarian002025
Asylum Seekers HostedHumanitarian15.03K43.26K2025
Stateless PeopleHumanitarian002025
Internet UsersTechnology91.2%31.2%2024
Mobile SubscriptionsTechnology153.1126.62024
4G CoverageTechnology99.8%88%2024
Fixed Broadband SubscriptionsTechnology7.30.22024
Mobile Data PriceTechnology1.5%4.8%2025
3G CoverageTechnology99.4%91%2024
Fixed Broadband PriceTechnology3%28%2025
Mobile Bundle PriceTechnology0.8%4.8%2025
R&D Spending (% of GDP)Technology0.7%0.5%2010/2013
Electricity AccessInfrastructure100%52.4%2024
Air Transport PassengersInfrastructure9.35M1.91M2023
Slum PopulationInfrastructure10.9%70.1%2022
Renewable Energy CapacityEnergy4.9K MW2.9K MW2025
Solar CapacityEnergy1.1K MW12.2 MW2025
Wind CapacityEnergy2.5K MW2.4 MW2025
Hydropower CapacityEnergy1.3K MW2.8K MW2025
Renewable Energy ShareEnergy10.9%78.3%2021
Clean Cooking AccessEnergy98.1%9.8%2023
Electricity Consumption per CapitaEnergy997 kWh135 kWh2023
Power Transmission LossesEnergy18.2%16.8%2023
Off-grid Renewable CapacityEnergy28 MW63.2 MW2025
Rural Electricity AccessEnergy100%33.7%2024
Solar Share of ElectricityEnergy5.8%0.5%2025/2024
Wind Share of ElectricityEnergy16%0%2025/2024
Hydropower Share of ElectricityEnergy2%31.7%2025/2024
Fossil Share of ElectricityEnergy76%67.1%2025/2024
Electricity DemandEnergy48 TWh9 TWh2025/2024
Electricity Carbon IntensityEnergy596 gCO₂/kWh345 gCO₂/kWh2025/2024
Primary Energy per CapitaEnergy7,257 kWh1,199 kWh2024/2023
CO2 Emissions per CapitaClimate1.84 t0.31 t2024
Renewable Electricity OutputClimate19.3%37.2%2021
Forest AreaClimate12.9%50.1%2023
Protected AreasClimate1.4%32.3%2025
Freshwater WithdrawalsClimate36.5%6.2%2022
PM2.5 Air PollutionClimate18.7 µg/m³20.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=MA,TZ" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does Morocco or Tanzania have the larger economy?

Morocco has the larger economy: $194.33B for Morocco versus $94.89B for Tanzania (GDP, current US$).

How do Morocco and Tanzania compare across indicators?

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

More comparisons