DataBrighten

    Tax revenue (% of GDP)

    4,708 × 6rows × columns: 161 countries, 1972 to 2024

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

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

    What it measures

    Taxes are compulsory, unrequited payments, in cash or in kind, made by institutional units to government units. This indicator is expressed as a percentage of Gross Domestic Product (GDP) which is the total income earned through the production of goods and services in an economic territory during an accounting period.

    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 2024

    In 2024, 93 countries have a value. The highest is Lesotho (35.42); the lowest is United Arab Emirates (0.648). The median country value is 18.02. The World Bank's World aggregate for 2024 is 13.86.

    Top 10 countries, 2024

    % of GDP

    Source: World Bank, GC.TAX.TOTL.GD.ZS, retrieved 19 November 2026. Computed from tax-revenue-percent-of-gdp.csv.

    Highest, 2024

    #CountryValue
    1Lesotho35.42
    2Namibia33.87
    3Denmark33.36
    4New Zealand29.52
    5Luxembourg28.64
    6Macao SAR, China27.42
    7Greece27.38
    8Sweden27.23
    9United Kingdom26.89
    10South Africa25.88

    Lowest, 2024

    #CountryValue
    1United Arab Emirates0.648
    2Somalia, Fed. Rep.2.24
    3Ethiopia3.4
    4China7.02
    5Panama7.18
    6Angola7.59
    7Saudi Arabia8.09
    8Guinea-Bissau8.3
    9Switzerland9.45
    10Argentina10.43
    How many countries report, by decade
    DecadeMost countries in one year
    1970s47
    1980s50
    1990s95
    2000s123
    2010s146
    2020s137

    World aggregate by year

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

    YearWorld
    202413.86
    202313.89
    202214.5
    202114.33
    202013.66
    201913.77
    201813.86
    201714.16
    201613.88
    201514
    201414
    201314

    By region, 2024

    World Bank regionValue
    Europe & Central Asia19.66
    Latin America & Caribbean 14.72
    North America11.02

    First rows

    tax-revenue-percent-of-gdp.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20066.96759757507017
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20075.28345660398282
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20086.08796493020769
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20098.48175836103604
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20109.16975191915408
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20118.91679399595736
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20127.70780060287773
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20137.12277329020889

    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
    valuenumberTax revenue (% 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 2024?

    Lesotho, with 35.42.

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

    =FILTER(A2:A100000,(E2:E100000=2024)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2024)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2024
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2024);

    pandas (df = pd.read_csv("tax-revenue-percent-of-gdp.csv"))

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

    File: tax-revenue-percent-of-gdp.csv

    How many countries report a value for 2024?

    93 of the 217 economies in the file's country list.

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

    =COUNTIF(E2:E100000,2024)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2024;

    pandas (df = pd.read_csv("tax-revenue-percent-of-gdp.csv"))

    (df.year == 2024).sum()

    File: tax-revenue-percent-of-gdp.csv

    What is the median across countries in 2024?

    18.02 (median of the 93 country values; not a World Bank aggregate).

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

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2024))

    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 = 2024 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2024) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2024));

    pandas (df = pd.read_csv("tax-revenue-percent-of-gdp.csv"))

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

    File: tax-revenue-percent-of-gdp.csv

    Which country rose the most between 2014 and 2024?

    Bahamas, The: from 11.29 to 17.28, a rise of 5.99 (out of 88 countries with both years).

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

    Use the wide file (tax-revenue-percent-of-gdp-wide.csv): add a column = [2024] - [2014], 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 = 2014 AND b.year = 2024 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("tax-revenue-percent-of-gdp.csv"))

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

    File: tax-revenue-percent-of-gdp.csv

    Which year has the most countries reporting?

    2015, with 146 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("tax-revenue-percent-of-gdp.csv"))

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

    File: tax-revenue-percent-of-gdp.csv