DataBrighten

    Trade (% of GDP)

    9,029 × 6rows × columns: 194 countries, 1960 to 2025

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

    textnumberdateyes/no
    Rows9,029country-year values
    Countries194with at least one value
    Years1960 – 202566 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Trade is the sum of exports and imports of goods and services. 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.

    The numbers in 2025

    In 2025, 138 countries have a value. The highest is Hong Kong SAR, China (396.6); the lowest is Sudan (2.38). The median country value is 79.68. The World Bank's World aggregate for 2025 is 68.49.

    Top 10 countries, 2025

    % of GDP

    Source: World Bank, NE.TRD.GNFS.ZS, retrieved 19 November 2026. Computed from trade-percent-of-gdp.csv.

    Highest, 2025

    #CountryValue
    1Hong Kong SAR, China396.6
    2Luxembourg349.9
    3Singapore320.3
    4Ireland240
    5Malta219
    6Djibouti206.3
    7Viet Nam190.3
    8Cyprus189.5
    9Seychelles172.3
    10Slovak Republic170.3

    Lowest, 2025

    #CountryValue
    1Sudan2.38
    2Haiti15.89
    3Venezuela, RB25.01
    4Pakistan27.19
    5Bangladesh27.95
    6Turkmenistan28.17
    7Argentina30.36
    8Cameroon33.38
    9Ethiopia33.46
    10Russian Federation33.71
    How many countries report, by decade
    DecadeMost countries in one year
    1960s75
    1970s106
    1980s127
    1990s163
    2000s179
    2010s185
    2020s184

    World aggregate by year

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

    YearWorld
    202568.49
    202456.72
    202358.07
    202262.15
    202156.5
    202051.87
    201955.8
    201856.99
    201755.46
    201653.79
    201555.62
    201458.03

    By region, 2025

    World Bank regionValue
    Europe & Central Asia81.82
    East Asia & Pacific63.84
    Middle East, North Africa, Afghanistan & Pakistan57.23
    Latin America & Caribbean 49.14
    South Asia44.62

    First rows

    trade-percent-of-gdp.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income202046.7098945514103
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income202151.4117163747271
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income202272.8854696086536
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income202366.9995780621951
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income202483.763025087768
    AlbaniaALBEurope & Central AsiaUpper middle income198047.4940925041872
    AlbaniaALBEurope & Central AsiaUpper middle income198146.1004662837047
    AlbaniaALBEurope & Central AsiaUpper middle income198244.8105616083383

    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
    valuenumberTrade (% 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 2025?

    Hong Kong SAR, China, with 396.6.

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

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

    SQL (table wb = the CSV)

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

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

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

    File: trade-percent-of-gdp.csv

    How many countries report a value for 2025?

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

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

    =COUNTIF(E2:E100000,2025)

    SQL (table wb = the CSV)

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

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

    (df.year == 2025).sum()

    File: trade-percent-of-gdp.csv

    What is the median across countries in 2025?

    79.68 (median of the 138 country values; not a World Bank aggregate).

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

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

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

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

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

    File: trade-percent-of-gdp.csv

    Which country rose the most between 2015 and 2025?

    Libya: from 56.9 to 137.7, a rise of 80.75 (out of 137 countries with both years).

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

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

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

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

    File: trade-percent-of-gdp.csv

    Which year has the most countries reporting?

    2018, with 185 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("trade-percent-of-gdp.csv"))

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

    File: trade-percent-of-gdp.csv