Government expenditure on education, total (% of GDP)
Real data: World Bank, World Development Indicators, indicator SE.XPD.TOTL.GD.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 GDP. 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 may refer to spending by the ministry of education only (excluding spending on educational activities by other ministries).
The numbers in 2023
In 2023, 121 countries have a value. The highest is Kiribati (16.39); the lowest is Somalia, Fed. Rep. (8.14e-06). The median country value is 3.66. The World Bank's World aggregate for 2023 is 3.57.
Top 10 countries, 2023
% of GDP
Highest, 2023
| # | Country | Value |
|---|---|---|
| 1 | Kiribati | 16.39 |
| 2 | Tuvalu | 12.85 |
| 3 | Solomon Islands | 8.29 |
| 4 | Bolivia | 7.89 |
| 5 | Vanuatu | 7.58 |
| 6 | Lesotho | 7.29 |
| 7 | Kyrgyz Republic | 6.83 |
| 8 | Tunisia | 6.73 |
| 9 | Moldova | 6.56 |
| 10 | St. Vincent and the Grenadines | 6.46 |
Lowest, 2023
| # | Country | Value |
|---|---|---|
| 1 | Somalia, Fed. Rep. | 8.14e-06 |
| 2 | Nigeria | 0.319 |
| 3 | Zimbabwe | 0.385 |
| 4 | Papua New Guinea | 0.782 |
| 5 | Haiti | 0.965 |
| 6 | Lao PDR | 1.23 |
| 7 | Indonesia | 1.28 |
| 8 | Lebanon | 1.5 |
| 9 | Cayman Islands | 1.57 |
| 10 | Guinea | 1.72 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1970s | 56 |
| 1980s | 64 |
| 1990s | 115 |
| 2000s | 121 |
| 2010s | 171 |
| 2020s | 170 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2023 | 3.57 |
| 2022 | 3.86 |
| 2021 | 4.2 |
| 2020 | 4.34 |
| 2019 | 4.16 |
| 2018 | 4.18 |
| 2017 | 4.09 |
| 2016 | 4.15 |
| 2015 | 4.21 |
| 2014 | 4.2 |
| 2013 | 4.34 |
| 2012 | 4.03 |
By region, 2023
| World Bank region | Value |
|---|---|
| Latin America & Caribbean | 3.82 |
| East Asia & Pacific | 3.51 |
| Sub-Saharan Africa | 3.26 |
| South Asia | 2.16 |
First rows
government-expenditure-on-education-total-percent-of-gdp.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2010 | 3.4794499874115 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2011 | 3.4620099067688 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2012 | 2.60420989990234 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2013 | 3.45445990562439 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2014 | 3.69521999359131 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2015 | 3.25578999519348 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2016 | 4.5439600944519 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2017 | 4.34319019317627 |
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 GDP), 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?
Kiribati, with 16.39.
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-gdp.csv"))
y = df[df.year == 2023]
y[y.value == y.value.max()][["country", "value"]]File: government-expenditure-on-education-total-percent-of-gdp.csv
How many countries report a value for 2023?
121 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-gdp.csv"))
(df.year == 2023).sum()File: government-expenditure-on-education-total-percent-of-gdp.csv
What is the median across countries in 2023?
3.66 (median of the 121 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-gdp.csv"))
df[df.year == 2023]["value"].median()File: government-expenditure-on-education-total-percent-of-gdp.csv
Which country rose the most between 2013 and 2023?
Kiribati: from 12.09 to 16.39, a rise of 4.3 (out of 96 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (government-expenditure-on-education-total-percent-of-gdp-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-gdp.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-gdp.csv
Which year has the most countries reporting?
2017, with 171 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-gdp.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: government-expenditure-on-education-total-percent-of-gdp.csv