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

Country comparison

Madagascar vs South Africa

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

GDP$21.19B vs $479.96BMadagascar vs South Africa
GDP per Capita$656 vs $7,503Madagascar vs South Africa
Population32.74M vs 64.75MMadagascar vs South Africa

Indicator by indicator

203 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 South AfricaPeriod
GDPEconomy$21.19B$479.96B2026
GDP per CapitaEconomy$656$7,5032026
Inflation RateEconomy8.3%5%2026
Central Bank Policy RateEconomy7%2026-07-01
Official Exchange RateEconomy4,267.43 LCU/USD16.37 LCU/USD2026-07
Budget BalanceEconomy-4.6%-4.9%2026
Unemployment RateEconomy3%32.4%2025
Public DebtEconomy49.3%78.9%2026
Trade BalanceEconomy$-2.27B$8.16B2025
GDP GrowthEconomy3.6%1%2026
GNI per CapitaEconomy$560$6,2702025
GNI per Capita (PPP)Economy$1,910$15,6002025
GDP (PPP)Economy$63.93B$1.03T2025
Agriculture (% of GDP)Economy21.7%2.8%2025
Industry (% of GDP)Economy23.9%24.1%2025
Manufacturing (% of GDP)Economy13.1%12.3%2024/2025
Services (% of GDP)Economy48.8%63.1%2025
Investment (% of GDP)Economy24.1%13.9%2025
Remittances ReceivedEconomy$406.26M$1B2024/2025
Remittances (% of GDP)Economy2.3%0.2%2024/2025
External Debt (% of GNI)Economy39.2%44.8%2024
Foreign ReservesEconomy$2.78B$76.02B2024/2025
Credit to Private Sector (% of GDP)Economy16.5%89.4%2024
Tax Revenue (% of GDP)Economy10.9%25.9%2024
Labor Force ParticipationEconomy85.5%55.6%2025
Female Labor Force ParticipationEconomy82.9%49.9%2025
Income Inequality (Gini)Economy36.854.12021/2022
Extreme Poverty RateEconomy69.2%17.4%2021/2022
Account OwnershipEconomy24.5%81.1%2024
Youth NEET RateEconomy24.3%34.6%2022/2024
Military Spending (% of GDP)Economy0.7%0.7%2024
Trade Openness (% of GDP)Economy54.2%60.9%2025
Inflation (GDP Deflator)Economy8.4%2.8%2025
Tourism ReceiptsEconomy$202M$2.72B2020
Tourist ArrivalsEconomy87.1K3.89M2020
Current Account BalanceEconomy-8%-0.9%2026
Foreign Direct InvestmentEconomy$413.31M$2.47B2024
FDI (% of GDP)Economy2.4%0.6%2024
Government Revenue (% of GDP)Economy13.7%27.2%2024
Government Spending (% of GDP)Economy16.2%33%2024
Youth Unemployment RateEconomy5.6%60.1%2022/2024
Productive Capacity IndexEconomy25.551.72024
Natural Resource RentsEconomy5.5%7.3%2021
Oil Rents (% of GDP)Economy0.1%0.4%2021
Mineral Rents (% of GDP)Economy0%3.8%2021
Natural Gas Rents (% of GDP)Economy0%0%2021
Foreign Aid (% of GNI)Economy8%0.4%2023
Foreign Aid per CapitaEconomy$40$242023
Lending Interest RateEconomy60%10.7%2025
Real Interest RateEconomy47.6%7.7%2025
Gross Savings (% of GDP)Economy17.5%12.9%2024/2025
Adjusted Net Income per CapitaEconomy$421$5,5212021
Employment in AgricultureEconomy69.2%5.4%2025
Employment in IndustryEconomy9.9%20.8%2025
Employment in ServicesEconomy20.9%73.8%2025
Vulnerable EmploymentEconomy84.4%11.7%2025
Household Consumption (% of GDP)Economy72.8%65.8%2025
Income Share of Poorest 20%Economy7.2%3.7%2021/2022
Bank Branches per 100,000Economy2.782024
ATMs per 100,000Economy3462024
GDP per Capita GrowthEconomy0.6%-0%2025
Debt Service (% of GNI)Economy1.7%5.7%2024
Poverty Rate ($3.65/day)Economy83.9%30.2%2021/2022
Poverty Rate ($6.85/day)Economy96.6%59.6%2021/2022
Exports of Goods & ServicesTrade$4.19B$134.18B2025
Imports of Goods & ServicesTrade$6.46B$126.02B2025
Export Diversification IndexTrade0.8360.5532024
Export Concentration IndexTrade0.2920.1452024
Liner Shipping ConnectivityTrade7.539.12021
Fuel Exports (% of Exports)Trade2.6%8.2%2024/2025
Manufactures Exports (% of Exports)Trade32.3%38.3%2024/2025
Food Exports (% of Exports)Trade30.5%12.8%2024/2025
High-Tech Exports (% of Manufactured)Trade1%5.7%2024
Exports (% of GDP)Trade21.3%31.4%2025
Imports (% of GDP)Trade32.9%29.5%2025
Human Development IndexDevelopment0.4870.7412023
Gender Inequality IndexDevelopment0.5840.3882023
Inequality-adjusted HDIDevelopment0.3190.4762023
PopulationDemographics32.74M64.75M2025
Population GrowthDemographics2.4%1.1%2025
Life ExpectancyDemographics63.8 years66.3 years2024
Median AgeDemographics19.4 years28.9 years2026
Fertility RateDemographics3.912.212024
Rural PopulationDemographics67.1%36.2%2025
Population Under 15Demographics38.9%25.7%2025
Urban PopulationDemographics32.9%63.8%2025
Population DensityDemographics57.6/km²53.6/km²2026
Birth RateDemographics30.817.82026
Death RateDemographics7.369.312026
Net Migration RateDemographics-0.082.012026
Life Expectancy (Female)Demographics65.6 years69.8 years2024
Life Expectancy (Male)Demographics62.1 years62.8 years2024
Urban Population GrowthDemographics3.8%1.3%2025
Infant MortalityHealth4324.22024
HIV PrevalenceHealth0.5%17.2%2024
Health Spending (% of GDP)Health3.4%8.9%2023
Physicians per 1,000Health0.170.792022
UHC Service Coverage IndexHealth33742023
Road Traffic DeathsHealth22.524.52021
Premature NCD MortalityHealth25.9%22.7%2021
Out-of-Pocket Health SpendingHealth27.4%6.7%2023
Safely Managed SanitationHealth12.8%73.8%2024
Maternal MortalityHealth445.4117.62023
Under-Five MortalityHealth64.834.72023
Neonatal MortalityHealth23.811.72023
Tuberculosis IncidenceHealth2243892024
Measles ImmunizationHealth49%66%2025
DTP3 ImmunizationHealth64%65%2025
Basic Drinking WaterHealth33.3%22.2%2024
Basic SanitationHealth2.6%3.6%2024
Diabetes PrevalenceHealth4.6%7.2%2024
Hospital Beds per 1,000Health0.322.252014/2010
Contraceptive PrevalenceHealth49.7%54.6%2021/2016 ⚠
Skilled Birth AttendanceHealth45.8%96.7%2021/2016 ⚠
Nurses & Midwives per 1,000Health0.286.392022
Adolescent Fertility RateHealth128.751.82024
Health Spending per CapitaHealth$17$5372023
NCD Share of DeathsHealth40%37.2%2021
Smoking PrevalenceHealth25.6%23.7%2024
Antenatal Care CoverageHealth88.9%93.7%2021/2016 ⚠
Child StuntingChild Welfare38.4%24.4%2024
Child WastingChild Welfare7.2%3.6%2021/2017
Birth RegistrationChild Welfare73.8%88.6%2021/2017
Child MarriageChild Welfare38.8%3.6%2021/2016 ⚠
Overweight ChildrenChild Welfare1.9%11.8%2021/2017
Education Spending (% of GDP)Education3%6%2023/2024
Tertiary EnrollmentEducation6.1%23.5%2023
Adult Literacy RateEducation74.7%91.2%2021/2024
Youth Literacy RateEducation82.4%97.2%2021/2024
Primary Completion RateEducation49.7%97.6%2021/2024
Lower Secondary CompletionEducation23.5%92.5%2021/2024
Primary Net EnrollmentEducation96.6%93.9%2024/2023
Lower Secondary EnrollmentEducation61.2%90.4%2024/2023
Upper Secondary EnrollmentEducation31%86.9%2024/2023
Upper Secondary CompletionEducation14%62.2%2021/2024
Qualified Primary TeachersEducation15.3%77.9%2019/2002 ⚠
Secondary EnrollmentEducation34.1%104.1%2021/2023
UndernourishmentFood Security39.5%10%2023
Acute Food InsecurityFood Security1.25M2026-06
Agricultural Land (% of Land)Agriculture70.3%79.4%2023
Food Production IndexAgriculture105.9113.22022
Cassava ProductionAgriculture2.57M t2024
Coffee ProductionAgriculture49.56K t2024
Cocoa ProductionAgriculture21K t2024
Sorghum ProductionAgriculture1.39K t98K t2024
Millet ProductionAgriculture6.33K t2024
Maize ProductionAgriculture265K t12.85M t2024
Rice ProductionAgriculture4.97M t3.08K t2024
Wheat ProductionAgriculture1K t1.92M t2024
Maize YieldAgriculture1,833 kg/ha4,874 kg/ha2024
Rice YieldAgriculture2,435 kg/ha2,912 kg/ha2024
Wheat YieldAgriculture2,407 kg/ha3,809 kg/ha2024
Cattle StockAgriculture7M head12.1M head2024
Homicide RateGovernance43.72022
Corruption Perceptions IndexGovernance26412024
Electoral Democracy IndexGovernance0.3610.7432025
Liberal Democracy IndexGovernance0.1870.6332025
Political Corruption IndexGovernance0.8820.5382025
Control of CorruptionGovernance-1.01-0.192024
Government EffectivenessGovernance-0.86-0.232024
Rule of LawGovernance-0.880.022024
Political StabilityGovernance-0.48-0.622024
Regulatory QualityGovernance-0.75-0.062024
Voice and AccountabilityGovernance-0.730.612024
Refugees HostedHumanitarian8755.18K2025
Internally Displaced PeopleHumanitarian002025
Asylum Seekers HostedHumanitarian1.28K82.36K2025
Stateless PeopleHumanitarian002025
Internet UsersTechnology18.7%78.4%2024
Mobile SubscriptionsTechnology75.5179.32023/2024
4G CoverageTechnology34.6%99.4%2024
Fixed Broadband SubscriptionsTechnology0.15.32023/2024
Mobile Data PriceTechnology12.5%1.3%2025
3G CoverageTechnology69.2%99.9%2024
Fixed Broadband PriceTechnology24.5%3.4%2025
Mobile Bundle PriceTechnology7.8%1.1%2025
R&D Spending (% of GDP)Technology0%0.6%2017/2022 ⚠
Electricity AccessInfrastructure42.5%90.2%2024
Air Transport PassengersInfrastructure313.31K15.45M2023
Slum PopulationInfrastructure65.7%24.2%2022
Renewable Energy CapacityEnergy256.1 MW16.6K MW2025
Solar CapacityEnergy63.2 MW11.3K MW2025
Wind CapacityEnergy0.2 MW4.3K MW2025
Hydropower CapacityEnergy192.6 MW751.7 MW2025
Renewable Energy ShareEnergy83.1%9.7%2022/2021
Clean Cooking AccessEnergy1.6%89.8%2023
Electricity Consumption per CapitaEnergy80 kWh3,247 kWh2023
Power Transmission LossesEnergy5.3%10.2%2023
Off-grid Renewable CapacityEnergy15.8 MW14.1 MW2025
Rural Electricity AccessEnergy26.5%86.3%2024
Solar Share of ElectricityEnergy4.1%8%2024/2025
Wind Share of ElectricityEnergy0%4.7%2024/2025
Hydropower Share of ElectricityEnergy37%0.8%2024/2025
Fossil Share of ElectricityEnergy57.6%82.2%2024/2025
Electricity DemandEnergy2.4 TWh237 TWh2024/2025
Electricity Carbon IntensityEnergy432 gCO₂/kWh699 gCO₂/kWh2024/2025
Primary Energy per CapitaEnergy532 kWh21,287 kWh2023/2024
CO2 Emissions per CapitaClimate0.15 t6.88 t2024
Renewable Electricity OutputClimate34.1%6.4%2021
Forest AreaClimate21.3%14%2023
Protected AreasClimate5.1%12.9%2025
Freshwater WithdrawalsClimate4%47.1%2022
PM2.5 Air PollutionClimate12.4 µg/m³27.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,ZA" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Frequently asked questions

Does Madagascar or South Africa have the larger economy?

South Africa has the larger economy: $21.19B for Madagascar versus $479.96B for South Africa (GDP, current US$).

How do Madagascar and South Africa compare across indicators?

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

More comparisons