Government expenditure on education, total (% of government expenditure)
Real data: World Bank, World Development Indicators, indicator SE.XPD.TOTL.GB.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
General government expenditure on education (current, capital, and transfers) is expressed as a percentage of total general government expenditure on all sectors (including health, education, social services, etc.). It includes expenditure funded by transfers from international sources to government. General government usually refers to local, regional and central governments.
Limits and exceptions (World Bank note)
Data on government expenditure on education may refer to spending by the ministry of education only (excluding spending on educational activities by other ministries). In addition, definitions and methods of data on total general government expenditure may differ across countries.
The numbers in 2023
In 2023, 113 countries have a value. The highest is Kenya (24.99); the lowest is Venezuela, RB (0.00953). The median country value is 13.22. The World Bank's World aggregate for 2023 is 13.96.
Top 10 countries, 2023
% of government expenditure
Highest, 2023
| # | Country | Value |
|---|---|---|
| 1 | Kenya | 24.99 |
| 2 | Solomon Islands | 23.2 |
| 3 | Sint Maarten (Dutch part) | 23.04 |
| 4 | Morocco | 22.83 |
| 5 | Uzbekistan | 22.65 |
| 6 | Guatemala | 22.64 |
| 7 | Senegal | 22.55 |
| 8 | Kyrgyz Republic | 22.11 |
| 9 | Paraguay | 21.99 |
| 10 | Kiribati | 21.64 |
Lowest, 2023
| # | Country | Value |
|---|---|---|
| 1 | Venezuela, RB | 0.00953 |
| 2 | Papua New Guinea | 3.54 |
| 3 | Somalia, Fed. Rep. | 3.59 |
| 4 | Nigeria | 3.65 |
| 5 | Naoero | 4.89 |
| 6 | Dominica | 6.41 |
| 7 | Suriname | 7.54 |
| 8 | Bahrain | 7.72 |
| 9 | Monaco | 7.73 |
| 10 | Angola | 7.74 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1980s | 60 |
| 1990s | 114 |
| 2000s | 117 |
| 2010s | 166 |
| 2020s | 163 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2023 | 13.96 |
| 2022 | 13.11 |
| 2021 | 12.79 |
| 2020 | 13.63 |
| 2019 | 13.47 |
| 2018 | 14.1 |
| 2017 | 14.5 |
| 2016 | 13.98 |
| 2015 | 14.11 |
| 2014 | 14.25 |
| 2013 | 14.51 |
| 2012 | 14.39 |
By region, 2023
| World Bank region | Value |
|---|---|
| Latin America & Caribbean | 16.55 |
| Sub-Saharan Africa | 15.02 |
| South Asia | 13 |
| East Asia & Pacific | 12.95 |
First rows
government-expenditure-on-education-total-percent-of-government-expenditure.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1981 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1982 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1983 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1999 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2000 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2001 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2010 | 17.0771293640137 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2011 | 16.0484294891357 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Government expenditure on education, total (% of government expenditure), exactly as the World Bank API returns it (not rounded) |
Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.
Practice questions
answers computed from the file
Which country has the highest value in 2023?
Kenya, with 24.99.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2023)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2023)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2023
AND value = (SELECT MAX(value) FROM wb WHERE year = 2023);pandas (df = pd.read_csv("government-expenditure-on-education-total-percent-of-government-expenditure.csv"))
y = df[df.year == 2023]
y[y.value == y.value.max()][["country", "value"]]File: government-expenditure-on-education-total-percent-of-government-expenditure.csv
How many countries report a value for 2023?
113 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2023)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2023;pandas (df = pd.read_csv("government-expenditure-on-education-total-percent-of-government-expenditure.csv"))
(df.year == 2023).sum()File: government-expenditure-on-education-total-percent-of-government-expenditure.csv
What is the median across countries in 2023?
13.22 (median of the 113 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2023))SQL (table wb = the CSV)
-- SQLite has no MEDIAN(); this picks the middle value(s)
SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2023 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2023) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2023));pandas (df = pd.read_csv("government-expenditure-on-education-total-percent-of-government-expenditure.csv"))
df[df.year == 2023]["value"].median()File: government-expenditure-on-education-total-percent-of-government-expenditure.csv
Which country rose the most between 2013 and 2023?
Puerto Rico (US): from 0 to 17.49, a rise of 17.49 (out of 85 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (government-expenditure-on-education-total-percent-of-government-expenditure-wide.csv): add a column = [2023] - [2013], then sort it largest to smallest.SQL (table wb = the CSV)
SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
WHERE a.year = 2013 AND b.year = 2023 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("government-expenditure-on-education-total-percent-of-government-expenditure.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2023] - w[2013]).dropna().nlargest(1)File: government-expenditure-on-education-total-percent-of-government-expenditure.csv
Which year has the most countries reporting?
2017, with 166 countries. (Later years are still filling in as countries report.)
Excel (on the long CSV: E = year, F = value)
Make a pivot table: year in Rows, Count of value in Values, then sort by the count.SQL (table wb = the CSV)
SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;pandas (df = pd.read_csv("government-expenditure-on-education-total-percent-of-government-expenditure.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: government-expenditure-on-education-total-percent-of-government-expenditure.csv