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

Country comparison

Morocco vs Libya

Morocco and Libya 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$194.33B vs $52.45BMorocco vs Libya
GDP per Capita$5,107 vs $6,962Morocco vs Libya
Population38.43M vs 7.46MMorocco vs Libya

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 Morocco LibyaPeriod
GDPEconomy$194.33B$52.45B2026
GDP per CapitaEconomy$5,107$6,9622026
Inflation RateEconomy1.2%10.5%2026-05
Central Bank Policy RateEconomy2.3%2026-03-19
Official Exchange RateEconomy9.35 LCU/USD6.35 LCU/USD2026-07
Budget BalanceEconomy-3.5%-20.9%2026
Unemployment RateEconomy9%18.8%2025
Public DebtEconomy65.8%2026
Trade BalanceEconomy$-16.71B$2.77B2025
GDP GrowthEconomy4.9%6.7%2026
GNI per CapitaEconomy$4,360$7,2502025
GNI per Capita (PPP)Economy$10,960$17,1502025
GDP (PPP)Economy$433.71B$123.23B2025
Agriculture (% of GDP)Economy10.5%1.5%2025
Industry (% of GDP)Economy25.2%73.2%2025
Manufacturing (% of GDP)Economy14.9%2.8%2025/2017 ⚠
Services (% of GDP)Economy52.3%26.9%2025
Investment (% of GDP)Economy31.9%14.3%2025
Remittances ReceivedEconomy$13.66B$16M2025/2006 ⚠
Remittances (% of GDP)Economy7.5%0%2025/2006 ⚠
External Debt (% of GNI)Economy44.7%2024
Foreign ReservesEconomy$48.45B$104.66B2025
Credit to Private Sector (% of GDP)Economy77.8%12.5%2024/2025
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/2023
Trade Openness (% of GDP)Economy93.1%137.7%2025
Inflation (GDP Deflator)Economy2.1%-3.9%2025
Tourism ReceiptsEconomy$4.51B$170M2020/2010 ⚠
Tourist ArrivalsEconomy2.8M760K2020/2008 ⚠
Current Account BalanceEconomy-3.1%4.2%2026
Foreign Direct InvestmentEconomy$1.64B$702M2024/2013 ⚠
FDI (% of GDP)Economy1%0.9%2024/2013 ⚠
Government Revenue (% of GDP)Economy29.1%2024
Government Spending (% of GDP)Economy33%2024
Youth Unemployment RateEconomy32.7%48.7%2022/2012 ⚠
Productive Capacity IndexEconomy47.138.92024
Natural Resource RentsEconomy0.4%61%2021
Oil Rents (% of GDP)Economy0%56.4%2021
Mineral Rents (% of GDP)Economy0.3%0%2021
Natural Gas Rents (% of GDP)Economy0%4.6%2021
Foreign Aid (% of GNI)Economy0.5%0.8%2023
Foreign Aid per CapitaEconomy$20$492023
Lending Interest RateEconomy6%2014
Real Interest RateEconomy7.1%2014
Gross Savings (% of GDP)Economy29.4%25.9%2025/2023
Adjusted Net Income per CapitaEconomy$3,373$4,6392021
Employment in AgricultureEconomy27.9%10%2025
Employment in IndustryEconomy23.8%18.6%2025
Employment in ServicesEconomy48.3%71.4%2025
Vulnerable EmploymentEconomy35.5%21.6%2025
Household Consumption (% of GDP)Economy59.3%30.9%2025
Income Share of Poorest 20%Economy6.7%2013
Bank Branches per 100,000Economy20.211.62024/2022
ATMs per 100,000Economy28.516.12024/2022
GDP per Capita GrowthEconomy3.6%12.2%2025
Debt Service (% of GNI)Economy5.6%2024
Poverty Rate ($3.65/day)Economy11.6%2013
Poverty Rate ($6.85/day)Economy49%2013
Exports of Goods & ServicesTrade$76.54B$34.49B2025
Imports of Goods & ServicesTrade$93.25B$31.72B2025
Export Diversification IndexTrade0.6570.8352024
Export Concentration IndexTrade0.1910.8592024
Liner Shipping ConnectivityTrade69.312.42021
Fuel Exports (% of Exports)Trade0.8%94.4%2024/2019 ⚠
Manufactures Exports (% of Exports)Trade82.9%0.6%2024/2019 ⚠
Food Exports (% of Exports)Trade12.5%0.1%2024/2019 ⚠
High-Tech Exports (% of Manufactured)Trade5.4%0.6%2023/2019
Exports (% of GDP)Trade42%71.7%2025
Imports (% of GDP)Trade51.1%65.9%2025
Human Development IndexDevelopment0.710.7212023
Gender Inequality IndexDevelopment0.4380.2532023
Inequality-adjusted HDIDevelopment0.5172023
PopulationDemographics38.43M7.46M2025
Population GrowthDemographics0.9%1%2025
Life ExpectancyDemographics75.5 years71.1 years2024
Median AgeDemographics30.1 years28 years2026
Fertility RateDemographics2.212.32024
Rural PopulationDemographics36.9%12.1%2025
Population Under 15Demographics25.2%26.8%2025
Urban PopulationDemographics63.1%87.9%2025
Population DensityDemographics86.9/km²4.5/km²2026
Birth RateDemographics15.815.82026
Death RateDemographics5.914.922026
Net Migration RateDemographics-1.570.352026
Life Expectancy (Female)Demographics77.8 years72.7 years2024
Life Expectancy (Male)Demographics73.3 years69.6 years2024
Urban Population GrowthDemographics1.4%1.1%2025
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/2017
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
Maternal MortalityHealth69.859.52023
Under-Five MortalityHealth16.630.82023
Neonatal MortalityHealth10.25.712023
Tuberculosis IncidenceHealth98632024
Measles ImmunizationHealth98%93%2025
DTP3 ImmunizationHealth96%90%2025
Basic Drinking WaterHealth12.2%2024
Basic SanitationHealth79.4%66.8%2024
Diabetes PrevalenceHealth11.9%15.8%2024
Hospital Beds per 1,000Health0.733.52023/2022
Contraceptive PrevalenceHealth70.8%27.7%2018/2014
Skilled Birth AttendanceHealth86.6%99.9%2018/2013 ⚠
Nurses & Midwives per 1,000Health0.876.382023/2017 ⚠
Adolescent Fertility RateHealth24.85.832024
Health Spending per CapitaHealth$232$4702023
NCD Share of DeathsHealth74%62.7%2021
Smoking PrevalenceHealth12.5%24.2%2024
Antenatal Care CoverageHealth88.5%93%2018/2007 ⚠
Child StuntingChild Welfare13.7%9.2%2024
Child WastingChild Welfare2.4%3.5%2019/2022
Birth RegistrationChild Welfare96.9%99.6%2018/2025 ⚠
Child MarriageChild Welfare13.7%4.1%2018/2025 ⚠
Overweight ChildrenChild Welfare12.7%4.6%2019/2022
Education Spending (% of GDP)Education6%2.3%2023/1999 ⚠
Tertiary EnrollmentEducation48.2%58.5%2024/2003 ⚠
Adult Literacy RateEducation64.3%2014
Youth Literacy RateEducation89.1%2014
Primary Completion RateEducation69.4%2010
Lower Secondary CompletionEducation37.6%2010
Primary Net EnrollmentEducation99.1%2024
Lower Secondary EnrollmentEducation97.7%2024
Upper Secondary EnrollmentEducation81.1%2024
Upper Secondary CompletionEducation46.9%2017
Qualified Primary TeachersEducation100%2024
Secondary EnrollmentEducation90%97.6%2024/2006 ⚠
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
Maize ProductionAgriculture73.23K t3.8K t2024
Rice ProductionAgriculture6.01K t2024
Wheat ProductionAgriculture2.44M t90K t2024
Maize YieldAgriculture722 kg/ha2,219 kg/ha2024
Rice YieldAgriculture6,500 kg/ha2024
Wheat YieldAgriculture1,388 kg/ha768 kg/ha2024
Cattle StockAgriculture2.4M head208.9K head2024
Homicide RateGovernance1.72023
Corruption Perceptions IndexGovernance37132024
Electoral Democracy IndexGovernance0.2590.1932025
Liberal Democracy IndexGovernance0.2510.0982025
Political Corruption IndexGovernance0.6710.8112025
Control of CorruptionGovernance-0.52-1.532024
Government EffectivenessGovernance0.18-1.422024
Rule of LawGovernance-0.37-1.72024
Political StabilityGovernance-0.44-1.92024
Regulatory QualityGovernance-0.03-1.742024
Voice and AccountabilityGovernance-0.73-1.342024
Refugees HostedHumanitarian7.3K552.52K2025
Internally Displaced PeopleHumanitarian032.79K2025
Asylum Seekers HostedHumanitarian15.03K105.95K2025
Stateless PeopleHumanitarian002025
Internet UsersTechnology91.2%82%2024
Mobile SubscriptionsTechnology153.11932024/2022
4G CoverageTechnology99.8%90%2024
Fixed Broadband SubscriptionsTechnology7.34.52024/2022
Mobile Data PriceTechnology1.5%0.4%2025
3G CoverageTechnology99.4%98%2024
Fixed Broadband PriceTechnology3%0.8%2025
Mobile Bundle PriceTechnology0.8%0.6%2025
R&D Spending (% of GDP)Technology0.7%2010
Electricity AccessInfrastructure100%77.4%2024
Air Transport PassengersInfrastructure9.35M1.09M2023
Slum PopulationInfrastructure10.9%16.6%2022
Renewable Energy CapacityEnergy4.9K MW9.5 MW2025
Solar CapacityEnergy1.1K MW9.5 MW2025
Wind CapacityEnergy2.5K MW2025
Hydropower CapacityEnergy1.3K MW2025
Renewable Energy ShareEnergy10.9%3.1%2021
Clean Cooking AccessEnergy98.1%2023
Electricity Consumption per CapitaEnergy997 kWh3,796 kWh2023
Power Transmission LossesEnergy18.2%20.2%2023
Off-grid Renewable CapacityEnergy28 MW6.3 MW2025
Rural Electricity AccessEnergy100%0.8%2024/2012 ⚠
Solar Share of ElectricityEnergy5.8%0%2025/2024
Wind Share of ElectricityEnergy16%0%2025/2024
Hydropower Share of ElectricityEnergy2%0%2025/2024
Fossil Share of ElectricityEnergy76%100%2025/2024
Electricity DemandEnergy48 TWh35 TWh2025/2024
Electricity Carbon IntensityEnergy596 gCO₂/kWh827 gCO₂/kWh2025/2024
Primary Energy per CapitaEnergy7,257 kWh29,554 kWh2024/2023
CO2 Emissions per CapitaClimate1.84 t8.66 t2024
Renewable Electricity OutputClimate19.3%0%2021
Forest AreaClimate12.9%0.1%2023
Protected AreasClimate1.4%0.2%2025
Freshwater WithdrawalsClimate36.5%817.1%2022
PM2.5 Air PollutionClimate18.7 µg/m³20 µ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,LY" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does Morocco or Libya have the larger economy?

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

How do Morocco and Libya compare across indicators?

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

More comparisons