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

Country comparison

Madagascar vs Eritrea

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

GDP$21.19B vs $1.98BMadagascar vs Eritrea
GDP per Capita$656 vs $567Madagascar vs Eritrea
Population32.74M vs 3.61MMadagascar vs Eritrea

Indicator by indicator

202 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 Madagascar EritreaPeriod
GDPEconomy$21.19B$1.98B2026/2019 ⚠
GDP per CapitaEconomy$656$5672026/2019 ⚠
Inflation RateEconomy8.3%1.3%2026/2019 ⚠
Official Exchange RateEconomy4,267.43 LCU/USD15.08 LCU/USD2026-07
Budget BalanceEconomy-4.6%2.7%2026/2019 ⚠
Unemployment RateEconomy3%6%2025
Public DebtEconomy49.3%260.4%2026/2019 ⚠
Trade BalanceEconomy$-2.27B$-228.89M2025/2011 ⚠
GDP GrowthEconomy3.6%3.8%2026/2019 ⚠
GNI per CapitaEconomy$560$6502025/2011 ⚠
GNI per Capita (PPP)Economy$1,910$1,7202025/2011 ⚠
GDP (PPP)Economy$63.93B$5.22B2025/2011 ⚠
Agriculture (% of GDP)Economy21.7%14.1%2025/2009 ⚠
Industry (% of GDP)Economy23.9%21.8%2025/2009 ⚠
Manufacturing (% of GDP)Economy13.1%5.5%2024/2009 ⚠
Services (% of GDP)Economy48.8%2025
Investment (% of GDP)Economy24.1%12.6%2025/2011 ⚠
Remittances ReceivedEconomy$406.26M$3.28M2024/2000 ⚠
Remittances (% of GDP)Economy2.3%0.5%2024/2000 ⚠
External Debt (% of GNI)Economy39.2%51.5%2024/2011 ⚠
Foreign ReservesEconomy$2.78B$191.69M2024/2019 ⚠
Credit to Private Sector (% of GDP)Economy16.5%53.2%2024/2014 ⚠
Tax Revenue (% of GDP)Economy10.9%2024
Labor Force ParticipationEconomy85.5%78.3%2025
Female Labor Force ParticipationEconomy82.9%72.8%2025
Income Inequality (Gini)Economy36.82021
Extreme Poverty RateEconomy69.2%2021
Account OwnershipEconomy24.5%2024
Youth NEET RateEconomy24.3%2022
Military Spending (% of GDP)Economy0.7%20.9%2024/2003 ⚠
Trade Openness (% of GDP)Economy54.2%47.4%2025/2011 ⚠
Inflation (GDP Deflator)Economy8.4%19.5%2025/2011 ⚠
Tourism ReceiptsEconomy$202M$48M2020/2016
Tourist ArrivalsEconomy87.1K142K2020/2016
Current Account BalanceEconomy-8%13%2026/2019 ⚠
Foreign Direct InvestmentEconomy$413.31M$-27.95M2024
FDI (% of GDP)Economy2.4%-1.5%2024
Government Revenue (% of GDP)Economy13.7%2024
Government Spending (% of GDP)Economy16.2%2024
Youth Unemployment RateEconomy5.6%2022
Productive Capacity IndexEconomy25.524.92024
Natural Resource RentsEconomy5.5%27%2021/2011 ⚠
Oil Rents (% of GDP)Economy0.1%0%2021/2011 ⚠
Mineral Rents (% of GDP)Economy0%24.6%2021/2011 ⚠
Natural Gas Rents (% of GDP)Economy0%0%2021/2011 ⚠
Foreign Aid (% of GNI)Economy8%6.5%2023/2011 ⚠
Foreign Aid per CapitaEconomy$40$372023
Lending Interest RateEconomy60%2025
Real Interest RateEconomy47.6%2025
Gross Savings (% of GDP)Economy17.5%15.8%2024/2000 ⚠
Adjusted Net Income per CapitaEconomy$421$4852021/2011 ⚠
Employment in AgricultureEconomy69.2%55.5%2025
Employment in IndustryEconomy9.9%12.7%2025
Employment in ServicesEconomy20.9%31.8%2025
Vulnerable EmploymentEconomy84.4%47.9%2025
Household Consumption (% of GDP)Economy72.8%98.2%2025/2011 ⚠
Income Share of Poorest 20%Economy7.2%2021
Bank Branches per 100,000Economy2.72024
ATMs per 100,000Economy32024
GDP per Capita GrowthEconomy0.6%6.7%2025/2011 ⚠
Debt Service (% of GNI)Economy1.7%1.1%2024/2011 ⚠
Poverty Rate ($3.65/day)Economy83.9%2021
Poverty Rate ($6.85/day)Economy96.6%2021
Exports of Goods & ServicesTrade$4.19B$374.9M2025/2011 ⚠
Imports of Goods & ServicesTrade$6.46B$603.78M2025/2011 ⚠
Export Diversification IndexTrade0.8360.8222024
Export Concentration IndexTrade0.2920.3662024
Liner Shipping ConnectivityTrade7.53.52021
Fuel Exports (% of Exports)Trade2.6%0%2024/2002 ⚠
Manufactures Exports (% of Exports)Trade32.3%30.3%2024/2003 ⚠
Food Exports (% of Exports)Trade30.5%42%2024/2003 ⚠
High-Tech Exports (% of Manufactured)Trade1%2024
Exports (% of GDP)Trade21.3%18.2%2025/2011 ⚠
Imports (% of GDP)Trade32.9%29.2%2025/2011 ⚠
Human Development IndexDevelopment0.4870.5032023
Gender Inequality IndexDevelopment0.5842023
Inequality-adjusted HDIDevelopment0.3192023
PopulationDemographics32.74M3.61M2025
Population GrowthDemographics2.4%2%2025
Life ExpectancyDemographics63.8 years68.9 years2024
Median AgeDemographics19.4 years19.5 years2026
Fertility RateDemographics3.913.682024
Rural PopulationDemographics67.1%65.5%2025
Population Under 15Demographics38.9%37.6%2025
Urban PopulationDemographics32.9%34.5%2025
Population DensityDemographics57.6/km²30.4/km²2026
Birth RateDemographics30.828.62026
Death RateDemographics7.365.892026
Net Migration RateDemographics-0.08-2.042026
Life Expectancy (Female)Demographics65.6 years70.9 years2024
Life Expectancy (Male)Demographics62.1 years66.8 years2024
Urban Population GrowthDemographics3.8%2%2025
Infant MortalityHealth4324.72024
HIV PrevalenceHealth0.5%0.4%2024
Health Spending (% of GDP)Health3.4%3.7%2023
Physicians per 1,000Health0.170.092022
UHC Service Coverage IndexHealth33402023
Road Traffic DeathsHealth22.517.72021
Premature NCD MortalityHealth25.9%27.3%2021
Out-of-Pocket Health SpendingHealth27.4%48.4%2023
Safely Managed SanitationHealth12.8%2024
Maternal MortalityHealth445.4291.42023
Under-Five MortalityHealth64.835.42023
Neonatal MortalityHealth23.816.42023
Tuberculosis IncidenceHealth2241152024
Measles ImmunizationHealth49%93%2025
DTP3 ImmunizationHealth64%96%2025
Basic Drinking WaterHealth33.3%2024
Basic SanitationHealth2.6%2024
Diabetes PrevalenceHealth4.6%4.4%2024
Hospital Beds per 1,000Health0.321.022014/2023 ⚠
Contraceptive PrevalenceHealth49.7%8.7%2021/2010 ⚠
Skilled Birth AttendanceHealth45.8%34.1%2021/2010 ⚠
Nurses & Midwives per 1,000Health0.281.542022
Adolescent Fertility RateHealth128.765.22024
Health Spending per CapitaHealth$17$282023
NCD Share of DeathsHealth40%51.6%2021
Smoking PrevalenceHealth25.6%2024
Antenatal Care CoverageHealth88.9%88.5%2021/2010 ⚠
Child StuntingChild Welfare38.4%48%2024
Child WastingChild Welfare7.2%14.6%2021/2010 ⚠
Birth RegistrationChild Welfare73.8%2021
Child MarriageChild Welfare38.8%40.7%2021/2010 ⚠
Overweight ChildrenChild Welfare1.9%2.1%2021/2010 ⚠
Education Spending (% of GDP)Education3%2.1%2023/2006 ⚠
Tertiary EnrollmentEducation6.1%3.2%2023/2016 ⚠
Adult Literacy RateEducation74.7%64.7%2021/2008 ⚠
Youth Literacy RateEducation82.4%87%2021/2008 ⚠
Primary Completion RateEducation49.7%2021
Lower Secondary CompletionEducation23.5%2021
Primary Net EnrollmentEducation96.6%59.6%2024/2022
Lower Secondary EnrollmentEducation61.2%62.9%2024/2022
Upper Secondary EnrollmentEducation31%56.2%2024/2022
Upper Secondary CompletionEducation14%2021
Qualified Primary TeachersEducation15.3%76.9%2019/2022
Secondary EnrollmentEducation34.1%44%2021/2022
UndernourishmentFood Security39.5%2023
Acute Food InsecurityFood Security1.25M2026-06
Agricultural Land (% of Land)Agriculture70.3%62.7%2023
Food Production IndexAgriculture105.9106.12022
Cassava ProductionAgriculture2.57M t2024
Coffee ProductionAgriculture49.56K t2024
Cocoa ProductionAgriculture21K t2024
Sorghum ProductionAgriculture1.39K t140K t2024
Millet ProductionAgriculture25K t2024
Maize ProductionAgriculture265K t20K t2024
Rice ProductionAgriculture4.97M t2024
Wheat ProductionAgriculture1K t25K t2024
Maize YieldAgriculture1,833 kg/ha1,000 kg/ha2024
Rice YieldAgriculture2,435 kg/ha2024
Wheat YieldAgriculture2,407 kg/ha1,000 kg/ha2024
Cattle StockAgriculture7M head2.2M head2024
Homicide RateGovernance15.62012
Corruption Perceptions IndexGovernance26132024
Electoral Democracy IndexGovernance0.3610.0692025
Liberal Democracy IndexGovernance0.1870.0092025
Political Corruption IndexGovernance0.8820.7522025
Control of CorruptionGovernance-1.01-1.632024
Government EffectivenessGovernance-0.86-1.462024
Rule of LawGovernance-0.88-1.82024
Political StabilityGovernance-0.48-0.712024
Regulatory QualityGovernance-0.75-2.042024
Voice and AccountabilityGovernance-0.73-2.292024
Refugees HostedHumanitarian871192025
Internally Displaced PeopleHumanitarian002025
Asylum Seekers HostedHumanitarian1.28K02025
Stateless PeopleHumanitarian002025
Internet UsersTechnology18.7%20%2024/2023
Mobile SubscriptionsTechnology75.559.12023/2022
4G CoverageTechnology34.6%0%2024
Fixed Broadband SubscriptionsTechnology0.10.22023/2022
Mobile Data PriceTechnology12.5%2025
3G CoverageTechnology69.2%77%2024
Fixed Broadband PriceTechnology24.5%213.8%2025/2013 ⚠
Mobile Bundle PriceTechnology7.8%0%2025/2022
R&D Spending (% of GDP)Technology0%2017
Electricity AccessInfrastructure42.5%55.3%2024
Air Transport PassengersInfrastructure313.31K45.1K2023/2020
Slum PopulationInfrastructure65.7%48.7%2022
Renewable Energy CapacityEnergy256.1 MW25.9 MW2025
Solar CapacityEnergy63.2 MW25.1 MW2025
Wind CapacityEnergy0.2 MW0.8 MW2025
Hydropower CapacityEnergy192.6 MW2025
Renewable Energy ShareEnergy83.1%80.7%2022/2021
Clean Cooking AccessEnergy1.6%12%2023
Electricity Consumption per CapitaEnergy80 kWh123 kWh2023
Power Transmission LossesEnergy5.3%11.8%2023
Off-grid Renewable CapacityEnergy15.8 MW25.6 MW2025
Rural Electricity AccessEnergy26.5%43.2%2024
Solar Share of ElectricityEnergy4.1%11.1%2024
Wind Share of ElectricityEnergy0%0%2024
Hydropower Share of ElectricityEnergy37%0%2024
Fossil Share of ElectricityEnergy57.6%88.9%2024
Electricity DemandEnergy2.4 TWh0.5 TWh2024
Electricity Carbon IntensityEnergy432 gCO₂/kWh578 gCO₂/kWh2024
Primary Energy per CapitaEnergy532 kWh873 kWh2023
CO2 Emissions per CapitaClimate0.15 t0.22 t2024
Renewable Electricity OutputClimate34.1%5.1%2021
Forest AreaClimate21.3%8.6%2023
Protected AreasClimate5.1%0%2025
Freshwater WithdrawalsClimate4%20.8%2022
PM2.5 Air PollutionClimate12.4 µg/m³33.7 µ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=MG,ER" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does Madagascar or Eritrea have the larger economy?

Madagascar has the larger economy: $21.19B for Madagascar versus $1.98B for Eritrea (GDP, current US$).

How do Madagascar and Eritrea compare across indicators?

This page compares Madagascar and Eritrea on 202 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=MG,ER with a free Africa API key to get both countries' latest values as JSON.

More comparisons