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. 23 of 54 countries, ranked · World Bank — World Development Indicators, 2024.
Latest available year varies by country (2023–2024). Only observations within 2 years of the freshest result are included, and each row shows its period.
By region
Full ranking
| # | Country | Tax Revenue (% of GDP) | |
|---|---|---|---|
| 1 | Lesotho | 35.4% | |
| 2 | Namibia | 33.9% | |
| 3 | South Africa | 25.9% | |
| 4 | Botswana | 22.5% | |
| 5 | Mozambique | 21.8% | |
| 6 | Morocco | 20.7% | |
| 7 | Mauritius | 20.5% | |
| 8 | Senegal | 19.5% | |
| 9 | Zambia | 18.8% | |
| 10 | Burkina Faso | 18.7% | |
| 11 | Malawi | 15.6% | |
| 12 | Kenya | 14.1% | |
| 13 | Togo | 13.9% | |
| 14 | Rwanda | 13.1% | |
| 15 | Cote d'Ivoire | 13% | |
| 16 | Tanzania | 12.7% | |
| 17 | Uganda | 12.6% | |
| 18 | Ghana | 12.4% | |
| 19 | Madagascar | 10.9% | |
| 20 | Guinea-Bissau | 8.3% | |
| 21 | Angola | 7.6% | |
| 22 | Ethiopia | 3.4% | |
| 23 | 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 23 African countries with data, at 2.2% (2024).
How many African countries report Tax Revenue (% of GDP) data?
23 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 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=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