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

Country comparison

Libya vs Morocco

Libya and Morocco 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$48.49B vs $160.61BLibya vs Morocco
GDP per Capita$6,569 vs $4,153Libya vs Morocco
Population7.38M vs 38.08MLibya vs Morocco

Indicator by indicator

71 indicators
Indicator Libya MoroccoPeriod
GDPEconomy$48.49B$160.61B2024
GDP per CapitaEconomy$6,569$4,1532024
Inflation RateEconomy2.1%1.7%2024
Central Bank Policy RateEconomy2.3%2026-03-19
Official Exchange RateEconomy6.35 LCU/USD9.19 LCU/USD2026-04
Budget BalanceEconomy-20.9%-3.5%2026
Unemployment RateEconomy18.8%9%2025
Public DebtEconomy65.8%2026
Trade BalanceEconomy$7.33B$-13.15B2024
GDP GrowthEconomy1.9%3.8%2024
GNI per CapitaEconomy$6,890$3,8402024
GNI per Capita (PPP)Economy$15,400$10,2602024
GDP (PPP)Economy$105.58B$402.77B2024
Agriculture (% of GDP)Economy2.4%10.6%2024
Industry (% of GDP)Economy73.5%25.6%2024
Manufacturing (% of GDP)Economy2.8%15.3%2017
Services (% of GDP)Economy28.3%52.7%2024
Investment (% of GDP)Economy14.3%30.1%2024
Remittances ReceivedEconomy$16M$12.51B2006
Remittances (% of GDP)Economy0%7.8%2006
External Debt (% of GNI)Economy44.7%2024
Foreign ReservesEconomy$92.89B$37.13B2024
Credit to Private Sector (% of GDP)Economy13%77.8%2024
Tax Revenue (% of GDP)Economy20.7%2023
Labor Force ParticipationEconomy48%43.9%2025
Female Labor Force ParticipationEconomy33%19.7%2025
Income Inequality (Gini)Economy39.52013
Extreme Poverty RateEconomy3.7%2013
Account OwnershipEconomy33.1%44.4%2024
Youth NEET RateEconomy35.3%2014
Military Spending (% of GDP)Economy5.3%3.5%2023
Trade Openness (% of GDP)Economy128.8%92.2%2024
Inflation (GDP Deflator)Economy8.5%4%2024
Tourism ReceiptsEconomy$170M$4.51B2010
Tourist ArrivalsEconomy760K2.8M2008
Human Development IndexDevelopment0.7210.712023
Gender Inequality IndexDevelopment0.2530.4382023
Inequality-adjusted HDIDevelopment0.5172023
PopulationDemographics7.38M38.08M2024
Population GrowthDemographics1%1%2024
Life ExpectancyDemographics71.1 years75.5 years2024
Median AgeDemographics28 years30.1 years2026
Fertility RateDemographics2.32.212024
Rural PopulationDemographics12.1%37.2%2024
Population Under 15Demographics27.4%25.6%2024
Infant MortalityHealth7.914.72024
HIV PrevalenceHealth0.1%0.1%2024
Health Spending (% of GDP)Health7.8%6.1%2023
Physicians per 1,000Health2.040.742017
UHC Service Coverage IndexHealth71652023
Road Traffic DeathsHealth3418.62021
Premature NCD MortalityHealth19.8%22%2021
Out-of-Pocket Health SpendingHealth19.2%37.3%2023
Safely Managed SanitationHealth21.7%8.4%2024
Education Spending (% of GDP)Education2.3%6%1999
Tertiary EnrollmentEducation58.5%48.2%2003
UndernourishmentFood Security16.5%7%2023
Agricultural Land (% of Land)Agriculture8.7%66.7%2023
Food Production IndexAgriculture105.8106.12022
Sorghum ProductionAgriculture2.02K t2024
Millet ProductionAgriculture6K t5.18K t2024
Homicide RateGovernance1.72023
Corruption Perceptions IndexGovernance13372024
Electoral Democracy IndexGovernance0.1930.2592025
Liberal Democracy IndexGovernance0.0980.2512025
Political Corruption IndexGovernance0.8110.6712025
Women in ParliamentGovernance16.5%24.3%2025
Internet UsersTechnology82%91.2%2024
Mobile SubscriptionsTechnology193153.12022
Electricity AccessInfrastructure73.2%100%2023
CO2 Emissions per CapitaClimate8.66 t1.84 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=LY,MA" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does Libya or Morocco have the larger economy?

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

How do Libya and Morocco compare across indicators?

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

More comparisons