DataBrighten

    Government expenditure on education, total (% of GDP)

    5,125 × 6rows × columns: 203 countries, 1970 to 2025

    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.

    textnumberdateyes/no
    Rows5,125country-year values
    Countries203with at least one value
    Years1970 – 202556 years with data
    LicenceCC BY 4.0credit the World Bank

    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

    Source: World Bank, SE.XPD.TOTL.GD.ZS, retrieved 19 November 2026. Computed from government-expenditure-on-education-total-percent-of-gdp.csv.

    Highest, 2023

    #CountryValue
    1Kiribati16.39
    2Tuvalu12.85
    3Solomon Islands8.29
    4Bolivia7.89
    5Vanuatu7.58
    6Lesotho7.29
    7Kyrgyz Republic6.83
    8Tunisia6.73
    9Moldova6.56
    10St. Vincent and the Grenadines6.46

    Lowest, 2023

    #CountryValue
    1Somalia, Fed. Rep.8.14e-06
    2Nigeria0.319
    3Zimbabwe0.385
    4Papua New Guinea0.782
    5Haiti0.965
    6Lao PDR1.23
    7Indonesia1.28
    8Lebanon1.5
    9Cayman Islands1.57
    10Guinea1.72
    How many countries report, by decade
    DecadeMost countries in one year
    1970s56
    1980s64
    1990s115
    2000s121
    2010s171
    2020s170

    World aggregate by year

    As published by the World Bank (in the regions file, not the country file).

    YearWorld
    20233.57
    20223.86
    20214.2
    20204.34
    20194.16
    20184.18
    20174.09
    20164.15
    20154.21
    20144.2
    20134.34
    20124.03

    By region, 2023

    World Bank regionValue
    Latin America & Caribbean 3.82
    East Asia & Pacific3.51
    Sub-Saharan Africa 3.26
    South Asia2.16

    First rows

    government-expenditure-on-education-total-percent-of-gdp.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20103.4794499874115
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20113.4620099067688
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20122.60420989990234
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20133.45445990562439
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20143.69521999359131
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20153.25578999519348
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20164.5439600944519
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20174.34319019317627

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberGovernment 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