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

Country comparison

Morocco vs Libya

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

GDP$160.61B vs $48.49BMorocco vs Libya
GDP per Capita$4,153 vs $6,569Morocco vs Libya
Population38.08M vs 7.38MMorocco vs Libya

Indicator by indicator

71 indicators
Indicator Morocco LibyaPeriod
GDPEconomy$160.61B$48.49B2024
GDP per CapitaEconomy$4,153$6,5692024
Inflation RateEconomy1.7%2.1%2026-04
Central Bank Policy RateEconomy2.3%2026-03-19
Official Exchange RateEconomy9.19 LCU/USD6.35 LCU/USD2026-05
Budget BalanceEconomy-3.5%-20.9%2026
Unemployment RateEconomy9%18.8%2025
Public DebtEconomy65.8%2026
Trade BalanceEconomy$-13.15B$7.33B2024
GDP GrowthEconomy3.8%1.9%2024
GNI per CapitaEconomy$3,840$6,8902024
GNI per Capita (PPP)Economy$10,260$15,4002024
GDP (PPP)Economy$402.77B$105.58B2024
Agriculture (% of GDP)Economy10.6%2.4%2024
Industry (% of GDP)Economy25.6%73.5%2024
Manufacturing (% of GDP)Economy15.3%2.8%2024
Services (% of GDP)Economy52.7%28.3%2024
Investment (% of GDP)Economy30.1%14.3%2024
Remittances ReceivedEconomy$12.51B$16M2024
Remittances (% of GDP)Economy7.8%0%2024
External Debt (% of GNI)Economy44.7%2024
Foreign ReservesEconomy$37.13B$92.89B2024
Credit to Private Sector (% of GDP)Economy77.8%13%2024
Tax Revenue (% of GDP)Economy20.7%2023
Labor Force ParticipationEconomy43.9%48%2025
Female Labor Force ParticipationEconomy19.7%33%2025
Income Inequality (Gini)Economy39.52013
Extreme Poverty RateEconomy3.7%2013
Account OwnershipEconomy44.4%33.1%2024
Youth NEET RateEconomy35.3%2014
Military Spending (% of GDP)Economy3.5%5.3%2024
Trade Openness (% of GDP)Economy92.2%128.8%2024
Inflation (GDP Deflator)Economy4%8.5%2024
Tourism ReceiptsEconomy$4.51B$170M2020
Tourist ArrivalsEconomy2.8M760K2020
Human Development IndexDevelopment0.710.7212023
Gender Inequality IndexDevelopment0.4380.2532023
Inequality-adjusted HDIDevelopment0.5172023
PopulationDemographics38.08M7.38M2024
Population GrowthDemographics1%1%2024
Life ExpectancyDemographics75.5 years71.1 years2024
Median AgeDemographics30.1 years28 years2026
Fertility RateDemographics2.212.32024
Rural PopulationDemographics37.2%12.1%2024
Population Under 15Demographics25.6%27.4%2024
Infant MortalityHealth14.77.92024
HIV PrevalenceHealth0.1%0.1%2024
Health Spending (% of GDP)Health6.1%7.8%2023
Physicians per 1,000Health0.742.042021
UHC Service Coverage IndexHealth65712023
Road Traffic DeathsHealth18.6342021
Premature NCD MortalityHealth22%19.8%2021
Out-of-Pocket Health SpendingHealth37.3%19.2%2023
Safely Managed SanitationHealth8.4%21.7%2024
Education Spending (% of GDP)Education6%2.3%2023
Tertiary EnrollmentEducation48.2%58.5%2024
UndernourishmentFood Security7%16.5%2023
Agricultural Land (% of Land)Agriculture66.7%8.7%2023
Food Production IndexAgriculture106.1105.82022
Sorghum ProductionAgriculture2.02K t2024
Millet ProductionAgriculture5.18K t6K t2024
Homicide RateGovernance1.72023
Corruption Perceptions IndexGovernance37132024
Electoral Democracy IndexGovernance0.2590.1932025
Liberal Democracy IndexGovernance0.2510.0982025
Political Corruption IndexGovernance0.6710.8112025
Women in ParliamentGovernance24.3%16.5%2025
Internet UsersTechnology91.2%82%2024
Mobile SubscriptionsTechnology153.11932024
Electricity AccessInfrastructure100%73.2%2023
CO2 Emissions per CapitaClimate1.84 t8.66 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,LY" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does Morocco or Libya have the larger economy?

Morocco has the larger economy: $160.61B for Morocco versus $48.49B for Libya (GDP, current US$).

How do Morocco and Libya compare across indicators?

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

More comparisons