Economy · Africa ranking
Military Spending (% of GDP) by African country
Algeria has the highest military expenditure as a share of GDP of any African country, at 8% — 1.5× Libya's 5.3%.
Military expenditure as a share of GDP (SIPRI via World Bank). 49 of 54 countries, ranked · World Bank — World Development Indicators, 2024.
Latest available year varies by country (2023–2024). Only observations within 2 years of the freshest result are included, and each row shows its period.
By region
Full ranking
| # | Country | Military Spending (% of GDP) | |
|---|---|---|---|
| 1 | Algeria | 8% | |
| 2 | Libya | 5.3% | |
| 3 | Burkina Faso | 4.7% | |
| 4 | Mali | 4.2% | |
| 5 | Burundi | 3.8% | |
| 6 | Morocco | 3.5% | |
| 7 | Chad | 3% | |
| 8 | Botswana | 2.8% | |
| 9 | Namibia | 2.7% | |
| 10 | Central African Republic | 2.5% | |
| 11 | Tunisia | 2.5% | |
| 12 | Niger | 2.2% | |
| 13 | Mauritania | 2.2% | |
| 14 | Guinea | 2.1% | |
| 15 | Togo | 2% | |
| 16 | Mozambique | 2% | |
| 17 | South Sudan | 2% | |
| 18 | Uganda | 1.9% | |
| 19 | Somalia | 1.6% | |
| 20 | Lesotho | 1.6% | |
| 21 | Senegal | 1.6% | |
| 22 | Gabon | 1.5% | |
| 23 | Eswatini | 1.4% | |
| 24 | Zambia | 1.3% | |
| 25 | Rwanda | 1.2% | |
| 26 | Guinea-Bissau | 1.2% | |
| 27 | Democratic Republic of the Congo | 1.2% | |
| 28 | Republic of the Congo | 1.2% | |
| 29 | Seychelles | 1.2% | |
| 30 | Tanzania | 1.2% | |
| 31 | Malawi | 1% | |
| 32 | Cameroon | 1% | |
| 33 | Angola | 1% | |
| 34 | Kenya | 1% | |
| 35 | Equatorial Guinea | 1% | |
| 36 | Cote d'Ivoire | 0.8% | |
| 37 | Benin | 0.7% | |
| 38 | Liberia | 0.7% | |
| 39 | Madagascar | 0.7% | |
| 40 | South Africa | 0.7% | |
| 41 | Egypt | 0.7% | |
| 42 | Ethiopia | 0.7% | |
| 43 | Cabo Verde | 0.6% | |
| 44 | Gambia | 0.6% | |
| 45 | Nigeria | 0.6% | |
| 46 | Sierra Leone | 0.5% | |
| 47 | Ghana | 0.4% | |
| 48 | Zimbabwe | 0.4% | |
| 49 | Mauritius | 0.1% |
Get this ranking via API
One call to /v1/data returns the latest Military Spending (% of GDP) figure for every country you pass — JSON, with source metadata on each observation.
curl "https://api.africa-api.com/v1/data?metric_key=military_expenditure_pct_gdp&latest=true&country_codes=NG,KE,ZA,EG" \
-H "Authorization: Bearer $AFRICA_API_KEY"Cite or republish this ranking
Data: Africa API — World Bank — World Development Indicators, 2024. Free to republish with a link to this page. Pull the live figures via the API above so your version never goes stale.
Embed this ranking
Drop this chart into your article or site — it stays live as the data updates. Paste the snippet anywhere HTML is allowed (a citation link is included).
Frequently asked questions
Which African country has the highest military expenditure as a share of GDP?
Algeria has the highest military expenditure as a share of GDP in Africa at 8% (2024), followed by Libya and Burkina Faso.
Which African country has the lowest military expenditure as a share of GDP?
Mauritius has the lowest military expenditure as a share of GDP of the 49 African countries with data, at 0.1% (2024).
How many African countries report Military Spending (% of GDP) data?
49 of 54 African countries have a Military Spending (% of GDP) figure in the Africa API, each from the latest year available for that country (which can differ between countries, here 2023–2024). Every value links to its full series with source and history.
How do I get this ranking via API?
Call GET /v1/data?metric_key=military_expenditure_pct_gdp&latest=true with the country codes you need and a free Africa API key — the response returns the latest value per country as JSON.
More economy rankings