54 countries · 127 indicators · 45 sourcesLiveGet API key

Economy · Africa ranking

Government Revenue (% of GDP) by African country

62.5%Lesotho leads · 2024

Lesotho has the highest general government revenue as a share of GDP of any African country, at 62.5% — 1.7× Namibia's 36.3%.

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

#1 vs #3721×Lesotho vs Sudan
Median17.5%Burundi
Lowest2.9%Sudan

By region

regional average
Southern Africa39.4%
4 countries · led by Lesotho
North Africa20.7%
4 countries · led by Morocco
East Africa18.5%
11 countries · led by Seychelles
Central Africa18.3%
7 countries · led by Republic of the Congo
West Africa16.5%
11 countries · led by Cabo Verde

Full ranking

37 of 54 countries
#CountryGovernment Revenue (% of GDP)Period
1Lesotho
62.5%2024
2Namibia
36.3%2024
3Seychelles
33.1%2024
4Eswatini
31.5%2024
5Morocco
29.1%2024
6Tunisia
27.9%2024
7South Africa
27.2%2024
8Mozambique
27.1%2024
9Republic of the Congo
25.3%2024
10Cabo Verde
25%2024
11Algeria
23%2024
12Rwanda
22.2%2024
13Burkina Faso
22%2024
14Gabon
20.9%2024
15Senegal
20.1%2024
16Togo
19%2024
17Djibouti
18%2024
18Equatorial Guinea
17.9%2024
19Burundi
17.5%2024
20Kenya
17.5%2024
21Angola
17.4%2024
22Chad
16.7%2024
23Cote d'Ivoire
16.4%2024
24Comoros
16.2%2024
25Tanzania
16.1%2024
26Ghana
15.9%2024
27Guinea
15.6%2024
28Democratic Republic of the Congo
15.2%2024
29Benin
15%2024
30Uganda
14.7%2024
31Central African Republic
14.5%2024
32Madagascar
13.7%2024
33Guinea-Bissau
13.1%2024
34Nigeria
10.8%2024
35Niger
9.2%2024
36Ethiopia
7.5%2024
37Sudan
2.9%2024

Get this ranking via API

GET /v1/data

One call to /v1/data returns the latest Government Revenue (% 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_revenue_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-revenue" width="100%" height="560" loading="lazy" style="border:1px solid #e3e3e3;border-radius:10px;max-width:640px" title="Government Revenue (% 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-revenue">Government Revenue (% of GDP) by African country — Africa API</a></p>

Frequently asked questions

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

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

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

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

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

37 of 54 African countries have a recent Government Revenue (% 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=government_revenue_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