54 countries · 127 indicators · 45 sourcesLiveGet API key

Economy · Africa ranking

Government Spending (% of GDP) by African country

53.5%Lesotho leads · 2024

Lesotho has the highest general government expenditure as a share of GDP of any African country, at 53.5% — 1.3× Namibia's 39.9%.

General government total expenditure as a share of GDP. 37 of 54 countries, ranked · IMF MACRO FINANCIAL, 2024.

#1 vs #378.4×Lesotho vs Sudan
Median21.7%Republic of the Congo
Lowest6.4%Sudan

By region

regional average
Southern Africa39.8%
4 countries · led by Lesotho
North Africa27.5%
4 countries · led by Algeria
East Africa22.2%
11 countries · led by Seychelles
West Africa22%
11 countries · led by Senegal
Central Africa19.8%
7 countries · led by Gabon

Full ranking

37 of 54 countries
#CountryGovernment Spending (% of GDP)Period
1Lesotho
53.5%2024
2Namibia
39.9%2024
3Algeria
36.8%2024
4Tunisia
33.8%2024
5Seychelles
33.8%2024
6Senegal
33.5%2024
7Mozambique
33.2%2024
8Morocco
33%2024
9South Africa
33%2024
10Eswatini
32.8%2024
11Rwanda
28.8%2024
12Burkina Faso
27.8%2024
13Togo
26.4%2024
14Cabo Verde
26.1%2024
15Gabon
24.8%2024
16Kenya
23.3%2024
17Ghana
23.2%2024
18Burundi
22.3%2024
19Republic of the Congo
21.7%2024
20Djibouti
20.6%2024
21Guinea
20.6%2024
22Cote d'Ivoire
20.4%2024
23Guinea-Bissau
20.4%2024
24Central African Republic
19.5%2024
25Comoros
19.1%2024
26Tanzania
19.1%2024
27Chad
18.8%2024
28Uganda
18.7%2024
29Equatorial Guinea
18.5%2024
30Angola
18.4%2024
31Benin
18.1%2024
32Democratic Republic of the Congo
16.7%2024
33Madagascar
16.2%2024
34Niger
13.4%2024
35Nigeria
12.3%2024
36Ethiopia
9.5%2024
37Sudan
6.4%2024

Get this ranking via API

GET /v1/data

One call to /v1/data returns the latest Government 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=government_expenditure_pct_gdp&latest=true&country_codes=NG,KE,ZA,EG" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Cite or republish this ranking

Data: Africa APIIMF MACRO FINANCIAL, 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/government-spending" width="100%" height="560" loading="lazy" style="border:1px solid #e3e3e3;border-radius:10px;max-width:640px" title="Government 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/government-spending">Government Spending (% of GDP) by African country — Africa API</a></p>

Frequently asked questions

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

Lesotho has the highest general government expenditure as a share of GDP in Africa at 53.5% (2024), followed by Namibia and Algeria.

Which African country has the lowest general government expenditure as a share of GDP?

Sudan has the lowest general government expenditure as a share of GDP of the 37 African countries with data, at 6.4% (2024).

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

37 of 54 African countries have a Government Spending (% of GDP) figure in the Africa API, each from the latest year available for that country (which can differ between countries). 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=government_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