DataBrighten

    Government expenditure on education, total (% of government expenditure)

    4,559 × 6rows × columns: 201 countries, 1980 to 2025

    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.

    textnumberdateyes/no
    Rows4,559country-year values
    Countries201with at least one value
    Years1980 – 202546 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 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

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

    Highest, 2023

    #CountryValue
    1Kenya24.99
    2Solomon Islands23.2
    3Sint Maarten (Dutch part)23.04
    4Morocco22.83
    5Uzbekistan22.65
    6Guatemala22.64
    7Senegal22.55
    8Kyrgyz Republic22.11
    9Paraguay21.99
    10Kiribati21.64

    Lowest, 2023

    #CountryValue
    1Venezuela, RB0.00953
    2Papua New Guinea3.54
    3Somalia, Fed. Rep.3.59
    4Nigeria3.65
    5Naoero4.89
    6Dominica6.41
    7Suriname7.54
    8Bahrain7.72
    9Monaco7.73
    10Angola7.74
    How many countries report, by decade
    DecadeMost countries in one year
    1980s60
    1990s114
    2000s117
    2010s166
    2020s163

    World aggregate by year

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

    YearWorld
    202313.96
    202213.11
    202112.79
    202013.63
    201913.47
    201814.1
    201714.5
    201613.98
    201514.11
    201414.25
    201314.51
    201214.39

    By region, 2023

    World Bank regionValue
    Latin America & Caribbean 16.55
    Sub-Saharan Africa 15.02
    South Asia13
    East Asia & Pacific12.95

    First rows

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

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19810
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19820
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19830
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19990
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20000
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20010
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201017.0771293640137
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201116.0484294891357

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