Education · Africa ranking
Education Spending (% of GDP) by African country
Namibia has the highest government education expenditure as a share of GDP of any African country, at 9.1%, ahead of Algeria and Botswana.
Government expenditure on education as a share of GDP. 54 of 54 countries, ranked · World Bank — World Development Indicators, 2024.
By region
Full ranking
| # | Country | Education Spending (% of GDP) | |
|---|---|---|---|
| 1 | Namibia | 9.1% | |
| 2 | Algeria | 9% | |
| 3 | Botswana | 8.1% | |
| 4 | Mauritania | 7.6% | |
| 5 | Tunisia | 6.7% | |
| 6 | Lesotho | 6.6% | |
| 7 | Senegal | 6.2% | |
| 8 | Eswatini | 6% | |
| 9 | South Africa | 6% | |
| 10 | Morocco | 6% | |
| 11 | Mozambique | 6% | |
| 12 | Burkina Faso | 5.3% | |
| 13 | Sao Tome and Principe | 5% | |
| 14 | Rwanda | 4.6% | |
| 15 | Burundi | 4.5% | |
| 16 | Seychelles | 4.5% | |
| 17 | Cabo Verde | 4.3% | |
| 18 | Mauritius | 4.2% | |
| 19 | Mali | 4.2% | |
| 20 | Togo | 4.1% | |
| 21 | Niger | 4.1% | |
| 22 | Zambia | 4.1% | |
| 23 | Kenya | 4% | |
| 24 | Egypt | 3.8% | |
| 25 | Djibouti | 3.8% | |
| 26 | Cote d'Ivoire | 3.6% | |
| 27 | Republic of the Congo | 3.3% | |
| 28 | Benin | 3.2% | |
| 29 | Chad | 3.2% | |
| 30 | Tanzania | 3.2% | |
| 31 | Madagascar | 3% | |
| 32 | Ghana | 2.9% | |
| 33 | Democratic Republic of the Congo | 2.8% | |
| 34 | Cameroon | 2.8% | |
| 35 | Gambia | 2.8% | |
| 36 | Malawi | 2.7% | |
| 37 | Sierra Leone | 2.6% | |
| 38 | Uganda | 2.6% | |
| 39 | Angola | 2.5% | |
| 40 | Comoros | 2.3% | |
| 41 | Gabon | 2.3% | |
| 42 | Ethiopia | 2.3% | |
| 43 | Liberia | 2.3% | |
| 44 | Libya | 2.3% | |
| 45 | Equatorial Guinea | 2.2% | |
| 46 | Eritrea | 2.1% | |
| 47 | Sudan | 2% | |
| 48 | Guinea-Bissau | 2% | |
| 49 | Central African Republic | 1.8% | |
| 50 | Guinea | 1.7% | |
| 51 | South Sudan | 1.6% | |
| 52 | Zimbabwe | 0.4% | |
| 53 | Nigeria | 0.3% | |
| 54 | Somalia | 0% |
Get this ranking via API
One call to /v1/data returns the latest Education 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_education_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 government education expenditure as a share of GDP?
Namibia has the highest government education expenditure as a share of GDP in Africa at 9.1% (2024), followed by Algeria and Botswana.
Which African country has the lowest government education expenditure as a share of GDP?
Somalia has the lowest government education expenditure as a share of GDP of the 54 African countries with data, at 0% (2023).
How many African countries report Education Spending (% of GDP) data?
54 of 54 African countries have a recent Education Spending (% 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_expenditure_education_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 education rankings