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

Country comparison

Morocco vs Tanzania

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

GDP$160.61B vs $78.84BMorocco vs Tanzania
GDP per Capita$4,153 vs $1,187Morocco vs Tanzania
Population38.08M vs 68.56MMorocco vs Tanzania

Indicator by indicator

74 indicators
Indicator Morocco TanzaniaPeriod
GDPEconomy$160.61B$78.84B2024
GDP per CapitaEconomy$4,153$1,1872024
Inflation RateEconomy1.7%4.2%2026-04
Central Bank Policy RateEconomy2.3%5.8%2026-03-19
Official Exchange RateEconomy9.19 LCU/USD2,602.56 LCU/USD2026-05
Budget BalanceEconomy-3.5%-3.2%2026
Unemployment RateEconomy9%1.6%2025
Public DebtEconomy65.8%48.7%2026
Trade BalanceEconomy$-13.15B$-1.46B2024
GDP GrowthEconomy3.8%5.5%2024
GNI per CapitaEconomy$3,840$1,2102024
GNI per Capita (PPP)Economy$10,260$4,1302024
GDP (PPP)Economy$402.77B$280.43B2024
Agriculture (% of GDP)Economy10.6%23.3%2024
Industry (% of GDP)Economy25.6%28.6%2024
Manufacturing (% of GDP)Economy15.3%8.1%2024
Services (% of GDP)Economy52.7%29.6%2024
Investment (% of GDP)Economy30.1%39.8%2024
Remittances ReceivedEconomy$12.51B$1.12B2024
Remittances (% of GDP)Economy7.8%1.4%2024
External Debt (% of GNI)Economy44.7%47.3%2024
Foreign ReservesEconomy$37.13B$5.05B2024
Credit to Private Sector (% of GDP)Economy77.8%16.8%2024
Tax Revenue (% of GDP)Economy20.7%12.8%2023
Labor Force ParticipationEconomy43.9%83.7%2025
Female Labor Force ParticipationEconomy19.7%80.3%2025
Income Inequality (Gini)Economy39.540.52013
Extreme Poverty RateEconomy3.7%51.3%2013
Account OwnershipEconomy44.4%59.8%2024
Youth NEET RateEconomy35.3%12.8%2014
Military Spending (% of GDP)Economy3.5%1.2%2024
Trade Openness (% of GDP)Economy92.2%41.5%2024
Inflation (GDP Deflator)Economy4%3.1%2024
Tourism ReceiptsEconomy$4.51B$2.62B2020
Tourist ArrivalsEconomy2.8M1.53M2020
Human Development IndexDevelopment0.710.5552023
Gender Inequality IndexDevelopment0.4380.5042023
Inequality-adjusted HDIDevelopment0.5170.3912023
PopulationDemographics38.08M68.56M2024
Population GrowthDemographics1%2.9%2024
Life ExpectancyDemographics75.5 years67.2 years2024
Median AgeDemographics30.1 years17.6 years2026
Fertility RateDemographics2.214.542024
Rural PopulationDemographics37.2%63.8%2024
Population Under 15Demographics25.6%42.5%2024
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
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
Education Spending (% of GDP)Education6%3.2%2023
Tertiary EnrollmentEducation48.2%4%2024
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
Homicide RateGovernance1.73.72023
Corruption Perceptions IndexGovernance37412024
Electoral Democracy IndexGovernance0.2590.3652025
Liberal Democracy IndexGovernance0.2510.2972025
Political Corruption IndexGovernance0.6710.3292025
Women in ParliamentGovernance24.3%37.8%2025
Internet UsersTechnology91.2%31.2%2024
Mobile SubscriptionsTechnology153.1126.62024
Electricity AccessInfrastructure100%48.3%2023
CO2 Emissions per CapitaClimate1.84 t0.31 t2024

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: $160.61B for Morocco versus $78.84B for Tanzania (GDP, current US$).

How do Morocco and Tanzania compare across indicators?

This page compares Morocco and Tanzania on 74 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