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

Country comparison

Madagascar vs Djibouti

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

GDP$21.19B vs $4.73BMadagascar vs Djibouti
GDP per Capita$656 vs $4,421Madagascar vs Djibouti
Population32.74M vs 1.18MMadagascar vs Djibouti

Indicator by indicator

200 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 DjiboutiPeriod
GDPEconomy$21.19B$4.73B2026
GDP per CapitaEconomy$656$4,4212026
Inflation RateEconomy8.3%1.5%2026
Official Exchange RateEconomy4,267.43 LCU/USD177.72 LCU/USD2026-07
Budget BalanceEconomy-4.6%-0.5%2026
Unemployment RateEconomy3%38.8%2025
Public DebtEconomy49.3%29.6%2026
Trade BalanceEconomy$-2.27B$679.4M2025
GDP GrowthEconomy3.6%6%2026
GNI per CapitaEconomy$560$3,9602025
GNI per Capita (PPP)Economy$1,910$8,6602025
GDP (PPP)Economy$63.93B$10.01B2025
Agriculture (% of GDP)Economy21.7%2.3%2025
Industry (% of GDP)Economy23.9%16.6%2025
Manufacturing (% of GDP)Economy13.1%5.3%2024
Services (% of GDP)Economy48.8%75.7%2025
Investment (% of GDP)Economy24.1%1.6%2025
Remittances ReceivedEconomy$406.26M$56M2024
Remittances (% of GDP)Economy2.3%1.3%2024
External Debt (% of GNI)Economy39.2%83.8%2024
Foreign ReservesEconomy$2.78B$655.74M2024/2025
Credit to Private Sector (% of GDP)Economy16.5%25.2%2024/2025
Tax Revenue (% of GDP)Economy10.9%2024
Labor Force ParticipationEconomy85.5%31.7%2025
Female Labor Force ParticipationEconomy82.9%19.4%2025
Income Inequality (Gini)Economy36.841.62021/2017
Extreme Poverty RateEconomy69.2%25.4%2021/2017
Account OwnershipEconomy24.5%12.3%2024/2011 ⚠
Youth NEET RateEconomy24.3%44%2022/2025
Military Spending (% of GDP)Economy0.7%2.6%2024/2008 ⚠
Trade Openness (% of GDP)Economy54.2%206.3%2025
Inflation (GDP Deflator)Economy8.4%4.6%2025
Tourism ReceiptsEconomy$202M$57M2020/2018
Tourist ArrivalsEconomy87.1K63K2020/2013 ⚠
Current Account BalanceEconomy-8%10.1%2026
Foreign Direct InvestmentEconomy$413.31M$67.82M2024
FDI (% of GDP)Economy2.4%1.6%2024
Government Revenue (% of GDP)Economy13.7%18%2024
Government Spending (% of GDP)Economy16.2%20.6%2024
Youth Unemployment RateEconomy5.6%72.7%2022/2025
Productive Capacity IndexEconomy25.5382024
Natural Resource RentsEconomy5.5%0.3%2021
Oil Rents (% of GDP)Economy0.1%0%2021
Mineral Rents (% of GDP)Economy0%0%2021
Natural Gas Rents (% of GDP)Economy0%0%2021
Foreign Aid (% of GNI)Economy8%5.6%2023
Foreign Aid per CapitaEconomy$40$1932023
Lending Interest RateEconomy60%2025
Real Interest RateEconomy47.6%2025
Gross Savings (% of GDP)Economy17.5%14.9%2024
Adjusted Net Income per CapitaEconomy$421$2,7472021
Employment in AgricultureEconomy69.2%1.2%2025
Employment in IndustryEconomy9.9%6.7%2025
Employment in ServicesEconomy20.9%92.2%2025
Vulnerable EmploymentEconomy84.4%30.3%2025
Household Consumption (% of GDP)Economy72.8%68.7%2025
Income Share of Poorest 20%Economy7.2%5.4%2021/2017
Bank Branches per 100,000Economy2.78.22024
ATMs per 100,000Economy317.62024
GDP per Capita GrowthEconomy0.6%5.1%2025
Debt Service (% of GNI)Economy1.7%3.3%2024
Poverty Rate ($3.65/day)Economy83.9%43.7%2021/2017
Poverty Rate ($6.85/day)Economy96.6%80.8%2021/2017
Exports of Goods & ServicesTrade$4.19B$5.11B2025
Imports of Goods & ServicesTrade$6.46B$4.43B2025
Export Diversification IndexTrade0.8360.6272024
Export Concentration IndexTrade0.2920.1722024
Liner Shipping ConnectivityTrade7.534.12021
Fuel Exports (% of Exports)Trade2.6%1%2024/2023
Manufactures Exports (% of Exports)Trade32.3%56.6%2024/2023
Food Exports (% of Exports)Trade30.5%41.5%2024/2023
High-Tech Exports (% of Manufactured)Trade1%3.3%2024/2023
Exports (% of GDP)Trade21.3%110.5%2025
Imports (% of GDP)Trade32.9%95.8%2025
Human Development IndexDevelopment0.4870.5132023
Gender Inequality IndexDevelopment0.5840.4812023
Inequality-adjusted HDIDevelopment0.3190.3412023
PopulationDemographics32.74M1.18M2025
Population GrowthDemographics2.4%1.3%2025
Life ExpectancyDemographics63.8 years66.2 years2024
Median AgeDemographics19.4 years25.2 years2026
Fertility RateDemographics3.912.622024
Rural PopulationDemographics67.1%27%2025
Population Under 15Demographics38.9%28.8%2025
Urban PopulationDemographics32.9%73%2025
Population DensityDemographics57.6/km²51.7/km²2026
Birth RateDemographics30.820.42026
Death RateDemographics7.367.532026
Net Migration RateDemographics-0.080.252026
Life Expectancy (Female)Demographics65.6 years68.7 years2024
Life Expectancy (Male)Demographics62.1 years63.7 years2024
Urban Population GrowthDemographics3.8%1.4%2025
Infant MortalityHealth43432024
HIV PrevalenceHealth0.5%0.9%2024
Health Spending (% of GDP)Health3.4%2.3%2023
Physicians per 1,000Health0.170.212022
UHC Service Coverage IndexHealth33472023
Road Traffic DeathsHealth22.523.32021
Premature NCD MortalityHealth25.9%20.6%2021
Out-of-Pocket Health SpendingHealth27.4%28.8%2023
Safely Managed SanitationHealth12.8%39.7%2024/2023
Maternal MortalityHealth445.4161.92023
Under-Five MortalityHealth64.850.42023
Neonatal MortalityHealth23.828.22023
Tuberculosis IncidenceHealth2244952024
Measles ImmunizationHealth49%75%2025
DTP3 ImmunizationHealth64%83%2025
Basic Drinking WaterHealth33.3%2024
Basic SanitationHealth2.6%27.4%2024/2023
Diabetes PrevalenceHealth4.6%6.5%2024
Hospital Beds per 1,000Health0.321.42014/2018
Contraceptive PrevalenceHealth49.7%19%2021/2012 ⚠
Skilled Birth AttendanceHealth45.8%87.4%2021/2012 ⚠
Nurses & Midwives per 1,000Health0.280.192022
Adolescent Fertility RateHealth128.719.12024
Health Spending per CapitaHealth$17$782023
NCD Share of DeathsHealth40%46.6%2021
Smoking PrevalenceHealth25.6%2024
Antenatal Care CoverageHealth88.9%87.7%2021/2012 ⚠
Child StuntingChild Welfare38.4%20.9%2024
Child WastingChild Welfare7.2%12.1%2021/2023
Birth RegistrationChild Welfare73.8%91.7%2021/2006 ⚠
Child MarriageChild Welfare38.8%6.5%2021/2019
Overweight ChildrenChild Welfare1.9%4.2%2021/2023
Education Spending (% of GDP)Education3%3.8%2023/2018 ⚠
Tertiary EnrollmentEducation6.1%5.2%2023/2011 ⚠
Adult Literacy RateEducation74.7%2021
Youth Literacy RateEducation82.4%79.6%2021/2017
Primary Completion RateEducation49.7%81%2021/2017
Lower Secondary CompletionEducation23.5%62.4%2021/2017
Primary Net EnrollmentEducation96.6%2024
Lower Secondary EnrollmentEducation61.2%2024
Upper Secondary EnrollmentEducation31%2024
Upper Secondary CompletionEducation14%39.8%2021/2017
Qualified Primary TeachersEducation15.3%66%2019/2023
Secondary EnrollmentEducation34.1%2021
UndernourishmentFood Security39.5%12.9%2023
Acute Food InsecurityFood Security1.25M2026-06
Agricultural Land (% of Land)Agriculture70.3%73.5%2023
Food Production IndexAgriculture105.91332022
Cassava ProductionAgriculture2.57M t2024
Coffee ProductionAgriculture49.56K t2024
Cocoa ProductionAgriculture21K t2024
Sorghum ProductionAgriculture1.39K t2024
Maize ProductionAgriculture265K t17.41 t2024
Rice ProductionAgriculture4.97M t2024
Wheat ProductionAgriculture1K t2024
Maize YieldAgriculture1,833 kg/ha2,041 kg/ha2024
Rice YieldAgriculture2,435 kg/ha2024
Wheat YieldAgriculture2,407 kg/ha2024
Cattle StockAgriculture7M head317.9K head2024
Corruption Perceptions IndexGovernance26312024
Electoral Democracy IndexGovernance0.3610.252025
Liberal Democracy IndexGovernance0.1870.1182025
Political Corruption IndexGovernance0.8820.7062025
Control of CorruptionGovernance-1.01-0.892024
Government EffectivenessGovernance-0.86-0.492024
Rule of LawGovernance-0.88-1.012024
Political StabilityGovernance-0.48-0.562024
Regulatory QualityGovernance-0.75-0.852024
Voice and AccountabilityGovernance-0.73-1.252024
Refugees HostedHumanitarian8724.9K2025
Internally Displaced PeopleHumanitarian002025
Asylum Seekers HostedHumanitarian1.28K10.14K2025
Stateless PeopleHumanitarian002025
Internet UsersTechnology18.7%65.3%2024
Mobile SubscriptionsTechnology75.548.52023
4G CoverageTechnology34.6%76%2024
Fixed Broadband SubscriptionsTechnology0.11.52023
Mobile Data PriceTechnology12.5%5.7%2025
3G CoverageTechnology69.2%90%2024
Fixed Broadband PriceTechnology24.5%5.3%2025
Mobile Bundle PriceTechnology7.8%7.7%2025
R&D Spending (% of GDP)Technology0%2017
Electricity AccessInfrastructure42.5%69.2%2024
Air Transport PassengersInfrastructure313.31K130.5K2023/1991 ⚠
Slum PopulationInfrastructure65.7%48.7%2022
Renewable Energy CapacityEnergy256.1 MW80.7 MW2025
Solar CapacityEnergy63.2 MW0.7 MW2025
Wind CapacityEnergy0.2 MW80 MW2025
Hydropower CapacityEnergy192.6 MW2025
Renewable Energy ShareEnergy83.1%26.9%2022
Clean Cooking AccessEnergy1.6%10%2023
Electricity Consumption per CapitaEnergy80 kWh2023
Power Transmission LossesEnergy5.3%2023
Off-grid Renewable CapacityEnergy15.8 MW20.7 MW2025
Rural Electricity AccessEnergy26.5%53.9%2024
Solar Share of ElectricityEnergy4.1%0%2024
Wind Share of ElectricityEnergy0%35%2024
Hydropower Share of ElectricityEnergy37%0%2024
Fossil Share of ElectricityEnergy57.6%65%2024
Electricity DemandEnergy2.4 TWh0.8 TWh2024
Electricity Carbon IntensityEnergy432 gCO₂/kWh450 gCO₂/kWh2024
Primary Energy per CapitaEnergy532 kWh3,056 kWh2023
CO2 Emissions per CapitaClimate0.15 t0.77 t2024
Renewable Electricity OutputClimate34.1%35.4%2021
Forest AreaClimate21.3%0.3%2023
Protected AreasClimate5.1%1.2%2025
Freshwater WithdrawalsClimate4%6.3%2022
PM2.5 Air PollutionClimate12.4 µg/m³40.3 µ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,DJ" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does Madagascar or Djibouti have the larger economy?

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

How do Madagascar and Djibouti compare across indicators?

This page compares Madagascar and Djibouti on 200 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,DJ with a free Africa API key to get both countries' latest values as JSON.

More comparisons