54 countries · 127 indicators · 45 sourcesLiveGet API key

Economy · Africa ranking

Military Spending (% of GDP) by African country

20.9%Eritrea leads · 2003

Eritrea has the highest military expenditure as a share of GDP of any African country, at 20.9% — 2.6× Algeria's 8%.

Military expenditure as a share of GDP (SIPRI via World Bank). 52 of 54 countries, ranked · World Bank — World Development Indicators, 2003.

#1 vs #52139×Eritrea vs Mauritius
Median1.2%Rwanda
Lowest0.1%Mauritius

By region

regional average
North Africa3.5%
6 countries · led by Algeria
East Africa2.8%
15 countries · led by Eritrea
Southern Africa1.6%
7 countries · led by Botswana
West Africa1.6%
16 countries · led by Burkina Faso
Central Africa1.6%
8 countries · led by Chad

Full ranking

52 of 54 countries
#CountryMilitary Spending (% of GDP)Period
1Eritrea
20.9%2003
2Algeria
8%2024
3Libya
5.3%2023
4Burkina Faso
4.7%2024
5Mali
4.2%2024
6Burundi
3.8%2024
7Morocco
3.5%2024
8Chad
3%2024
9Botswana
2.8%2024
10Namibia
2.7%2024
11Djibouti
2.6%2008
12Central African Republic
2.5%2024
13Tunisia
2.5%2024
14Niger
2.2%2024
15Mauritania
2.2%2024
16Guinea
2.1%2024
17Togo
2%2024
18Mozambique
2%2024
19South Sudan
2%2024
20Uganda
1.9%2024
21Somalia
1.6%2024
22Lesotho
1.6%2024
23Senegal
1.6%2024
24Gabon
1.5%2024
25Eswatini
1.4%2024
26Zambia
1.3%2024
27Rwanda
1.2%2024
28Guinea-Bissau
1.2%2023
29Democratic Republic of the Congo
1.2%2024
30Republic of the Congo
1.2%2024
31Seychelles
1.2%2024
32Tanzania
1.2%2024
33Malawi
1%2024
34Cameroon
1%2024
35Angola
1%2024
36Kenya
1%2024
37Equatorial Guinea
1%2024
38Sudan
0.9%2021
39Cote d'Ivoire
0.8%2024
40Benin
0.7%2024
41Liberia
0.7%2024
42Madagascar
0.7%2024
43South Africa
0.7%2024
44Egypt
0.7%2024
45Ethiopia
0.7%2024
46Cabo Verde
0.6%2024
47Gambia
0.6%2024
48Nigeria
0.6%2024
49Sierra Leone
0.5%2024
50Ghana
0.4%2024
51Zimbabwe
0.4%2024
52Mauritius
0.1%2024

Get this ranking via API

GET /v1/data

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 APIWorld Bank — World Development Indicators, 2003. 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

free · auto-updating

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).

<iframe src="https://africa-api.com/embed/military-spending" width="100%" height="560" loading="lazy" style="border:1px solid #e3e3e3;border-radius:10px;max-width:640px" title="Military Spending (% of GDP) by African country — Africa API"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:.5rem 0"><a href="https://africa-api.com/data/military-spending">Military Spending (% of GDP) by African country — Africa API</a></p>

Frequently asked questions

Which African country has the highest military expenditure as a share of GDP?

Eritrea has the highest military expenditure as a share of GDP in Africa at 20.9% (2003), followed by Algeria and Libya.

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 52 African countries with data, at 0.1% (2024).

How many African countries report Military Spending (% of GDP) data?

52 of 54 African countries have a recent Military Spending (% of GDP) figure in the Africa API. Each value links to the country's 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