54 country profiles · available indicators comparedAPI dataGet API key

Country comparison

Morocco vs Libya

166 indicators have a value for Morocco, Libya, or both. Open an indicator to see the available country ranking and source details.

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

166 indicators

Values can describe different reporting periods. When two years are shown, they follow the country order in the table.

Indicator Morocco LibyaPeriod
GDPEconomy$194.33B$52.45B2026
GDP per CapitaEconomy$5,107$6,9622026
Inflation RateEconomy-0.5%10.5%2026-07
Central Bank Policy RateEconomy2.3%2026-03-19
Official Exchange RateEconomy9.34 LCU/USD6.35 LCU/USD2026-09
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%2025
Services (% of GDP)Economy52.3%26.9%2025
Investment (% of GDP)Economy31.9%14.3%2025
Remittances ReceivedEconomy$13.66B2025
Remittances (% of GDP)Economy7.5%2025
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
Account OwnershipEconomy44.4%33.1%2024
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
Current Account BalanceEconomy-3.1%4.2%2026
Foreign Direct InvestmentEconomy$3.34B$827.57M2025
FDI (% of GDP)Economy1.8%1.9%2025
Government Revenue (% of GDP)Economy29.1%2024
Government Spending (% of GDP)Economy33%2024
Productive Capacity IndexEconomy47.138.92024
Foreign Aid (% of GNI)Economy0.5%0.8%2023
Foreign Aid per CapitaEconomy$20$492023
Gross Savings (% of GDP)Economy29.4%25.9%2025/2023
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
Bank Branches per 100,000Economy20.22024
ATMs per 100,000Economy28.52024
GDP per Capita GrowthEconomy3.6%12.2%2025
Debt Service (% of GNI)Economy5.6%2024
Exports of Goods & ServicesTrade$76.54B$34.49B2025
Imports of Goods & ServicesTrade$93.25B$31.72B2025
Export Diversification IndexTrade0.6660.8242025
Export Concentration IndexTrade0.210.7842025
Fuel Exports (% of Exports)Trade0.8%2024
Manufactures Exports (% of Exports)Trade82.9%2024
Food Exports (% of Exports)Trade12.5%2024
High-Tech Exports (% of Manufactured)Trade5.4%2023
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
UHC Service Coverage IndexHealth65712023
Out-of-Pocket Health SpendingHealth37.3%19.2%2023
Safely Managed SanitationHealth8.4%21.7%2024
Maternal MortalityHealth69.859.52023
Under-Five MortalityHealth15.79.762024
Neonatal MortalityHealth9.645.22024
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.732023
Nurses & Midwives per 1,000Health0.872023
Adolescent Fertility RateHealth24.85.832024
Health Spending per CapitaHealth$232$4702023
Smoking PrevalenceHealth12.5%24.2%2024
Child StuntingChild Welfare13.7%9.2%2024
Birth RegistrationChild Welfare99.6%2025
Child MarriageChild Welfare4.1%2025
Education Spending (% of GDP)Education6%2023
Tertiary EnrollmentEducation48.2%2024
Primary Net EnrollmentEducation99.1%2024
Lower Secondary EnrollmentEducation97.7%2024
Upper Secondary EnrollmentEducation81.1%2024
Qualified Primary TeachersEducation100%2024
Secondary EnrollmentEducation90%2024
UndernourishmentFood Security7%16.5%2023
Agricultural Land (% of Land)Agriculture66.7%8.7%2023
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
Organized Violence DeathsGovernance7 deaths0 deaths2025
State-Based Conflict DyadsGovernance102025
Non-State Conflict DyadsGovernance002025
One-Sided Violence DyadsGovernance002025
Refugees HostedHumanitarian7.3K552.52K2025
Internally Displaced PeopleHumanitarian032.79K2025
Asylum Seekers HostedHumanitarian15.03K105.95K2025
Stateless PeopleHumanitarian002025
Internet UsersTechnology91.2%82%2024
Mobile SubscriptionsTechnology153.12024
4G CoverageTechnology99.8%96%2025
Fixed Broadband SubscriptionsTechnology7.32024
Mobile Data PriceTechnology1.5%0.4%2025
3G CoverageTechnology99.8%97%2025
Fixed Broadband PriceTechnology3%0.8%2025
Mobile Bundle PriceTechnology0.8%0.6%2025
Electricity AccessInfrastructure100%77.4%2024
Air Transport PassengersInfrastructure9.35M1.09M2023
Renewable Energy CapacityEnergy4.9K MW9.5 MW2025
Solar CapacityEnergy1.1K MW9.5 MW2025
Wind CapacityEnergy2.5K MW2025
Hydropower CapacityEnergy1.3K MW2025
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%2024
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
Forest AreaClimate12.9%0.1%2023
Protected AreasClimate1.4%0.2%2025
PM2.5 Air PollutionClimate18.7 µg/m³20 µg/m³2023

Get this comparison via API

GET /v1/data

Request both countries' latest available GDP values as JSON, including 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"

More comparisons