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

Country comparison

Algeria vs Libya

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

GDP$317.17B vs $52.45BAlgeria vs Libya
GDP per Capita$6,628 vs $6,962Algeria vs Libya
Population47.44M vs 7.46MAlgeria vs Libya

Indicator by indicator

197 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 Algeria LibyaPeriod
GDPEconomy$317.17B$52.45B2026
GDP per CapitaEconomy$6,628$6,9622026
Inflation RateEconomy4.9%10.5%2026-04
Official Exchange RateEconomy133.15 LCU/USD6.35 LCU/USD2026-07
Budget BalanceEconomy-10.2%-20.9%2026
Unemployment RateEconomy11.6%18.8%2025
Public DebtEconomy59.2%2026
Trade BalanceEconomy$-15.24B$2.77B2025
GDP GrowthEconomy3.8%6.7%2026
GNI per CapitaEconomy$5,850$7,2502025
GNI per Capita (PPP)Economy$18,240$17,1502025
GDP (PPP)Economy$881.65B$123.23B2025
Agriculture (% of GDP)Economy14.5%1.5%2025
Industry (% of GDP)Economy34.8%73.2%2025
Manufacturing (% of GDP)Economy9.5%2.8%2024/2017 ⚠
Services (% of GDP)Economy45.7%26.9%2025
Investment (% of GDP)Economy45.3%14.3%2025
Remittances ReceivedEconomy$1.8B$16M2024/2006 ⚠
Remittances (% of GDP)Economy0.7%0%2024/2006 ⚠
External Debt (% of GNI)Economy2.7%2024
Foreign ReservesEconomy$72.5B$104.66B2025
Credit to Private Sector (% of GDP)Economy19.6%12.5%2025
Labor Force ParticipationEconomy40.8%48%2025
Female Labor Force ParticipationEconomy14.1%33%2025
Income Inequality (Gini)Economy27.62011
Extreme Poverty RateEconomy0%2011
Account OwnershipEconomy35.3%33.1%2024
Youth NEET RateEconomy21%2017
Military Spending (% of GDP)Economy8%5.3%2024/2023
Trade Openness (% of GDP)Economy39%137.7%2025
Inflation (GDP Deflator)Economy0.8%-3.9%2025
Tourism ReceiptsEconomy$50M$170M2020/2010 ⚠
Tourist ArrivalsEconomy591K760K2020/2008 ⚠
Current Account BalanceEconomy-1.2%4.2%2026
Foreign Direct InvestmentEconomy$1.44B$702M2024/2013 ⚠
FDI (% of GDP)Economy0.5%0.9%2024/2013 ⚠
Government Revenue (% of GDP)Economy23%2024
Government Spending (% of GDP)Economy36.8%2024
Youth Unemployment RateEconomy29%48.7%2017/2012 ⚠
Productive Capacity IndexEconomy4338.92024
Natural Resource RentsEconomy22.6%61%2021
Oil Rents (% of GDP)Economy14.5%56.4%2021
Mineral Rents (% of GDP)Economy0%0%2021
Natural Gas Rents (% of GDP)Economy8%4.6%2021
Foreign Aid (% of GNI)Economy0.1%0.8%2023
Foreign Aid per CapitaEconomy$4$492023
Lending Interest RateEconomy8%6%2025/2014 ⚠
Real Interest RateEconomy7.2%7.1%2025/2014 ⚠
Gross Savings (% of GDP)Economy39.4%25.9%2024/2023
Adjusted Net Income per CapitaEconomy$2,810$4,6392021
Employment in AgricultureEconomy9.5%10%2025
Employment in IndustryEconomy32.3%18.6%2025
Employment in ServicesEconomy58.3%71.4%2025
Vulnerable EmploymentEconomy25.6%21.6%2025
Household Consumption (% of GDP)Economy41.8%30.9%2025
Income Share of Poorest 20%Economy9.4%2011
Bank Branches per 100,000Economy4.911.62024/2022
ATMs per 100,000Economy12.116.12024/2022
GDP per Capita GrowthEconomy2.5%12.2%2025
Debt Service (% of GNI)Economy0.2%2024
Poverty Rate ($3.65/day)Economy4.7%2011
Poverty Rate ($6.85/day)Economy41.8%2011
Exports of Goods & ServicesTrade$48.32B$34.49B2025
Imports of Goods & ServicesTrade$63.56B$31.72B2025
Export Diversification IndexTrade0.80.8352024
Export Concentration IndexTrade0.4790.8592024
Liner Shipping ConnectivityTrade12.212.42021
Fuel Exports (% of Exports)Trade96.1%94.4%2017/2019
Manufactures Exports (% of Exports)Trade2.7%0.6%2017/2019
Food Exports (% of Exports)Trade1%0.1%2017/2019
High-Tech Exports (% of Manufactured)Trade1%0.6%2017/2019
Exports (% of GDP)Trade16.8%71.7%2025
Imports (% of GDP)Trade22.1%65.9%2025
Human Development IndexDevelopment0.7630.7212023
Gender Inequality IndexDevelopment0.4430.2532023
Inequality-adjusted HDIDevelopment0.6012023
PopulationDemographics47.44M7.46M2025
Population GrowthDemographics1.3%1%2025
Life ExpectancyDemographics76.5 years71.1 years2024
Median AgeDemographics28.8 years28 years2026
Fertility RateDemographics2.722.32024
Rural PopulationDemographics24.2%12.1%2025
Population Under 15Demographics29.9%26.8%2025
Urban PopulationDemographics75.8%87.9%2025
Population DensityDemographics20.2/km²4.5/km²2026
Birth RateDemographics17.315.82026
Death RateDemographics4.684.922026
Net Migration RateDemographics-0.60.352026
Life Expectancy (Female)Demographics77.9 years72.7 years2024
Life Expectancy (Male)Demographics75.1 years69.6 years2024
Urban Population GrowthDemographics2%1.1%2025
Infant MortalityHealth19.57.92024
HIV PrevalenceHealth0.1%0.1%2024
Health Spending (% of GDP)Health4.4%7.8%2023
Physicians per 1,000Health1.662.042022/2017 ⚠
UHC Service Coverage IndexHealth70712023
Road Traffic DeathsHealth18.3342021
Premature NCD MortalityHealth13.3%19.8%2021
Out-of-Pocket Health SpendingHealth45%19.2%2023
Safely Managed SanitationHealth62.5%21.7%2024
Maternal MortalityHealth62.559.52023
Under-Five MortalityHealth2230.82023
Neonatal MortalityHealth15.35.712023
Tuberculosis IncidenceHealth54632024
Measles ImmunizationHealth96%93%2025
DTP3 ImmunizationHealth94%90%2025
Basic Drinking WaterHealth23.4%2024
Basic SanitationHealth23.4%66.8%2024
Diabetes PrevalenceHealth17.5%15.8%2024
Hospital Beds per 1,000Health1.613.52017/2022 ⚠
Contraceptive PrevalenceHealth53.6%27.7%2019/2014 ⚠
Skilled Birth AttendanceHealth98.8%99.9%2019/2013 ⚠
Nurses & Midwives per 1,000Health2.516.382022/2017 ⚠
Adolescent Fertility RateHealth8.585.832024
Health Spending per CapitaHealth$233$4702023
NCD Share of DeathsHealth73.9%62.7%2021
Smoking PrevalenceHealth22.4%24.2%2024
Antenatal Care CoverageHealth95.3%93%2019/2007 ⚠
Child StuntingChild Welfare8.9%9.2%2024
Child WastingChild Welfare2.7%3.5%2019/2022
Birth RegistrationChild Welfare99.6%99.6%2019/2025 ⚠
Child MarriageChild Welfare3.8%4.1%2019/2025 ⚠
Overweight ChildrenChild Welfare12.8%4.6%2019/2022
Education Spending (% of GDP)Education9%2.3%2024/1999 ⚠
Tertiary EnrollmentEducation54.4%58.5%2024/2003 ⚠
Adult Literacy RateEducation75.1%2008
Youth Literacy RateEducation93.8%2008
Primary Completion RateEducation94.1%2019
Lower Secondary CompletionEducation73.2%2019
Primary Net EnrollmentEducation98.4%2025
Lower Secondary EnrollmentEducation22.4%2025
Upper Secondary EnrollmentEducation79.6%2025
Upper Secondary CompletionEducation46.5%2019
Qualified Primary TeachersEducation100%2025
Secondary EnrollmentEducation105.2%97.6%2024/2006 ⚠
UndernourishmentFood Security2.5%16.5%2023
Agricultural Land (% of Land)Agriculture17.4%8.7%2023
Food Production IndexAgriculture111.2105.82022
Sorghum ProductionAgriculture660.76 t2024
Millet ProductionAgriculture6K t2024
Maize ProductionAgriculture12K t3.8K t2024
Rice ProductionAgriculture313.12 t2024
Wheat ProductionAgriculture3M t90K t2024
Maize YieldAgriculture6,000 kg/ha2,219 kg/ha2024
Rice YieldAgriculture1,899 kg/ha2024
Wheat YieldAgriculture1,667 kg/ha768 kg/ha2024
Cattle StockAgriculture1.8M head208.9K head2024
Homicide RateGovernance1.22023
Corruption Perceptions IndexGovernance34132024
Electoral Democracy IndexGovernance0.2650.1932025
Liberal Democracy IndexGovernance0.1260.0982025
Political Corruption IndexGovernance0.6620.8112025
Control of CorruptionGovernance-0.59-1.532024
Government EffectivenessGovernance-0.25-1.422024
Rule of LawGovernance-0.7-1.72024
Political StabilityGovernance-0.69-1.92024
Regulatory QualityGovernance-0.75-1.742024
Voice and AccountabilityGovernance-1.05-1.342024
Refugees HostedHumanitarian180.58K552.52K2025
Internally Displaced PeopleHumanitarian032.79K2025
Asylum Seekers HostedHumanitarian3.69K105.95K2025
Stateless PeopleHumanitarian002025
Internet UsersTechnology77.4%82%2024
Mobile SubscriptionsTechnology115.51932024/2022
4G CoverageTechnology99.1%90%2024
Fixed Broadband SubscriptionsTechnology13.34.52024/2022
Mobile Data PriceTechnology0.5%0.4%2025
3G CoverageTechnology99.1%98%2024
Fixed Broadband PriceTechnology2.6%0.8%2025
Mobile Bundle PriceTechnology1.6%0.6%2025
R&D Spending (% of GDP)Technology0.4%2024
Electricity AccessInfrastructure100%77.4%2024
Air Transport PassengersInfrastructure7.16M1.09M2023
Slum PopulationInfrastructure13.2%16.6%2022
Renewable Energy CapacityEnergy600.7 MW9.5 MW2025
Solar CapacityEnergy461.8 MW9.5 MW2025
Wind CapacityEnergy10 MW2025
Hydropower CapacityEnergy128.9 MW2025
Renewable Energy ShareEnergy0.1%3.1%2021
Clean Cooking AccessEnergy99.7%2023
Electricity Consumption per CapitaEnergy1,828 kWh3,796 kWh2023
Power Transmission LossesEnergy9.2%20.2%2023
Off-grid Renewable CapacityEnergy57.9 MW6.3 MW2025
Rural Electricity AccessEnergy100%0.8%2024/2012 ⚠
Solar Share of ElectricityEnergy1%0%2024
Wind Share of ElectricityEnergy0%0%2024
Hydropower Share of ElectricityEnergy0%0%2024
Fossil Share of ElectricityEnergy98.9%100%2024
Electricity DemandEnergy94 TWh35 TWh2024
Electricity Carbon IntensityEnergy633 gCO₂/kWh827 gCO₂/kWh2024
Primary Energy per CapitaEnergy16,237 kWh29,554 kWh2024/2023
CO2 Emissions per CapitaClimate3.98 t8.66 t2024
Renewable Electricity OutputClimate0.9%0%2021
Forest AreaClimate0.8%0.1%2023
Protected AreasClimate4.4%0.2%2025
Freshwater WithdrawalsClimate91.5%817.1%2022
PM2.5 Air PollutionClimate16.5 µ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=DZ,LY" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does Algeria or Libya have the larger economy?

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

How do Algeria and Libya compare across indicators?

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

More comparisons