54 countries · 127 indicators · 45 sourcesLiveGet API key

Economy · Africa ranking

Military Spending (% of GDP) by African country

8%Algeria leads · 2024

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 (20232024). Only observations within 2 years of the freshest result are included, and each row shows its period.

#1 vs #4953×Algeria vs Mauritius
Median1.2%Rwanda
Lowest0.1%Mauritius

By region

regional average
North Africa4%
5 countries · led by Algeria
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
East Africa1.4%
13 countries · led by Burundi

Full ranking

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

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?

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