Economy · Africa ranking
Tax Revenue (% of GDP) by African country
Lesotho has the highest tax revenue as a share of GDP of any African country, at 35.4%, ahead of Namibia and South Africa.
Central government tax revenue as a share of GDP. 42 of 54 countries, ranked · World Bank — World Development Indicators, 2024.
Latest available year varies by country (1979–2024); each row shows its year, and values more than 5 years behind the most recent are marked ⚠.
By region
Full ranking
| # | Country | Tax Revenue (% of GDP) | |
|---|---|---|---|
| 1 | Lesotho | 35.4% | |
| 2 | Namibia | 33.9% | |
| 3 | South Africa | 25.9% | |
| 4 | Eswatini | 24.3% | |
| 5 | Botswana | 22.5% | |
| 6 | Seychelles | 22.1% ⚠ ’08 | |
| 7 | Mozambique | 21.8% | |
| 8 | Morocco | 20.7% | |
| 9 | Mauritius | 20.5% | |
| 10 | Tunisia | 20.1% ⚠ ’12 | |
| 11 | Senegal | 19.5% | |
| 12 | Zambia | 18.8% | |
| 13 | Burkina Faso | 18.7% | |
| 14 | Cabo Verde | 18.4% | |
| 15 | Gambia | 18.2% ⚠ ’90 | |
| 16 | Malawi | 15.6% | |
| 17 | Kenya | 14.1% | |
| 18 | Togo | 13.9% | |
| 19 | Rwanda | 13.1% | |
| 20 | Cote d'Ivoire | 13% | |
| 21 | Tanzania | 12.7% | |
| 22 | Burundi | 12.7% | |
| 23 | Uganda | 12.6% | |
| 24 | Egypt | 12.5% ⚠ ’15 | |
| 25 | Ghana | 12.4% | |
| 26 | Mali | 12% | |
| 27 | Niger | 11.8% ⚠ ’80 | |
| 28 | Cameroon | 11.3% | |
| 29 | Madagascar | 10.9% | |
| 30 | Benin | 10.8% ⚠ ’79 | |
| 31 | Democratic Republic of the Congo | 10.7% | |
| 32 | Gabon | 9.5% | |
| 33 | Guinea-Bissau | 8.3% | |
| 34 | Central African Republic | 8.2% | |
| 35 | Angola | 7.6% | |
| 36 | Guinea | 7.4% ⚠ ’92 | |
| 37 | Sudan | 7.4% ⚠ ’16 | |
| 38 | Zimbabwe | 7.2% ⚠ ’18 | |
| 39 | Equatorial Guinea | 6.6% | |
| 40 | Republic of the Congo | 6.5% | |
| 41 | Ethiopia | 3.4% | |
| 42 | Somalia | 2.2% |
Get this ranking via API
One call to /v1/data returns the latest Tax 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=tax_revenue_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 tax revenue as a share of GDP?
Lesotho has the highest tax revenue as a share of GDP in Africa at 35.4% (2024), followed by Namibia and South Africa.
Which African country has the lowest tax revenue as a share of GDP?
Somalia has the lowest tax revenue as a share of GDP of the 42 African countries with data, at 2.2% (2024).
How many African countries report Tax Revenue (% of GDP) data?
42 of 54 African countries have a Tax Revenue (% of GDP) figure in the Africa API, each from the latest year available for that country (which can differ between countries, here 1979–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=tax_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