DataBrighten

    Goods and services expense (% of expense)

    4,284 × 6rows × columns: 156 countries, 1972 to 2024

    Real data: World Bank, World Development Indicators, indicator GC.XPN.GSRV.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows4,284country-year values
    Countries156with at least one value
    Years1972 – 202453 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Goods and services include all government payments in exchange for goods and services used for the production of market and nonmarket goods and services. Use of goods and services for own account capital formation is excluded. This indicator is expressed as percentage of total expenses which is any decrease in net worth resulting from a transaction.

    Limits and exceptions (World Bank note)

    For most countries central government finance data have been consolidated into one account, but for others only budgetary central government accounts are available. Countries reporting budgetary data are noted in the country metadata. Because budgetary accounts may not include all central government units (such as social security funds), they usually provide an incomplete picture. In federal states the central government accounts provide an incomplete view of total public finance. Data on government revenue and expense are collected by the IMF through questionnaires to member countries and by the Organisation for Economic Co-operation and Development (OECD). Despite IMF efforts to standardize data collection, statistics are often incomplete, untimely, and not comparable across countries.

    The numbers in 2023

    In 2023, 86 countries have a value. The highest is Tonga (46.54); the lowest is Brazil (2.41). The median country value is 13. The World Bank's World aggregate for 2022 is 11.74.

    Top 10 countries, 2023

    % of expense

    Source: World Bank, GC.XPN.GSRV.ZS, retrieved 19 November 2026. Computed from goods-and-services-expense-percent-of-expense.csv.

    Highest, 2023

    #CountryValue
    1Tonga46.54
    2Samoa44.77
    3Ukraine35.7
    4Guinea-Bissau32.41
    5Vanuatu29.79
    6Kiribati29.38
    7United Arab Emirates28.94
    8Botswana28.41
    9Singapore27.86
    10Rwanda27.84

    Lowest, 2023

    #CountryValue
    1Brazil2.41
    2Italy2.87
    3Spain2.89
    4Argentina3.74
    5Uzbekistan4.95
    6North Macedonia5.77
    7Mexico5.92
    8Sri Lanka6.03
    9Lithuania6.43
    10United States6.49
    How many countries report, by decade
    DecadeMost countries in one year
    1970s40
    1980s44
    1990s86
    2000s119
    2010s142
    2020s133

    World aggregate by year

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

    YearWorld
    202211.74
    202112.69
    202011.52
    201912.2
    201811.71
    201712.33
    201611.7
    201512.5
    201412.52
    201311.43
    201211.77
    201111.79

    By region, 2023

    World Bank regionValue
    Latin America & Caribbean 11.74
    Europe & Central Asia8.9
    North America6.93

    First rows

    goods-and-services-expense-percent-of-expense.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200657.2163766333674
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200766.5901367809826
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200872.458784315372
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200971.7241186786376
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201074.7001121260602
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201175.7334792740754
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201268.1074557936164
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income201367.0283936941842

    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
    valuenumberGoods and services expense (% of expense), 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?

    Tonga, with 46.54.

    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("goods-and-services-expense-percent-of-expense.csv"))

    y = df[df.year == 2023]
    y[y.value == y.value.max()][["country", "value"]]

    File: goods-and-services-expense-percent-of-expense.csv

    How many countries report a value for 2023?

    86 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("goods-and-services-expense-percent-of-expense.csv"))

    (df.year == 2023).sum()

    File: goods-and-services-expense-percent-of-expense.csv

    What is the median across countries in 2023?

    13 (median of the 86 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("goods-and-services-expense-percent-of-expense.csv"))

    df[df.year == 2023]["value"].median()

    File: goods-and-services-expense-percent-of-expense.csv

    Which country rose the most between 2013 and 2023?

    Ukraine: from 10.63 to 35.7, a rise of 25.07 (out of 75 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (goods-and-services-expense-percent-of-expense-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("goods-and-services-expense-percent-of-expense.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2023] - w[2013]).dropna().nlargest(1)

    File: goods-and-services-expense-percent-of-expense.csv

    Which year has the most countries reporting?

    2017, with 142 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("goods-and-services-expense-percent-of-expense.csv"))

    df.groupby("year").size().sort_values(ascending=False).head(1)

    File: goods-and-services-expense-percent-of-expense.csv