54 countries · 127 indicators · 45 sourcesLiveGet API key

Education · Africa ranking

Education Spending (% of GDP) by African country

9.1%Namibia leads · 2024

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.

#1 vs #541116021×Namibia vs Somalia
Median3.2%Benin
Lowest0%Somalia

By region

regional average
Southern Africa5.8%
7 countries · led by Namibia
North Africa5%
6 countries · led by Algeria
West Africa3.6%
16 countries · led by Mauritania
East Africa3.2%
16 countries · led by Mozambique
Central Africa2.9%
9 countries · led by Sao Tome and Principe

Full ranking

54 of 54 countries
#CountryEducation Spending (% of GDP)Period
1Namibia
9.1%2024
2Algeria
9%2024
3Botswana
8.1%2020
4Mauritania
7.6%2024
5Tunisia
6.7%2023
6Lesotho
6.6%2024
7Senegal
6.2%2023
8Eswatini
6%2024
9South Africa
6%2024
10Morocco
6%2023
11Mozambique
6%2022
12Burkina Faso
5.3%2023
13Sao Tome and Principe
5%2023
14Rwanda
4.6%2024
15Burundi
4.5%2025
16Seychelles
4.5%2023
17Cabo Verde
4.3%2023
18Mauritius
4.2%2024
19Mali
4.2%2023
20Togo
4.1%2023
21Niger
4.1%2023
22Zambia
4.1%2023
23Kenya
4%2024
24Egypt
3.8%2008
25Djibouti
3.8%2018
26Cote d'Ivoire
3.6%2024
27Republic of the Congo
3.3%2023
28Benin
3.2%2023
29Chad
3.2%2023
30Tanzania
3.2%2024
31Madagascar
3%2023
32Ghana
2.9%2022
33Democratic Republic of the Congo
2.8%2022
34Cameroon
2.8%2023
35Gambia
2.8%2023
36Malawi
2.7%2022
37Sierra Leone
2.6%2023
38Uganda
2.6%2022
39Angola
2.5%2023
40Comoros
2.3%2023
41Gabon
2.3%2023
42Ethiopia
2.3%2024
43Liberia
2.3%2023
44Libya
2.3%1999
45Equatorial Guinea
2.2%1998
46Eritrea
2.1%2006
47Sudan
2%2009
48Guinea-Bissau
2%2013
49Central African Republic
1.8%2023
50Guinea
1.7%2023
51South Sudan
1.6%2016
52Zimbabwe
0.4%2023
53Nigeria
0.3%2023
54Somalia
0%2023

Get this ranking via API

GET /v1/data

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 APIWorld 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

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

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