DataBrighten

    Merchandise trade (% of GDP)

    11,013 × 6rows × columns: 205 countries, 1960 to 2025

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

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

    What it measures

    General merchandise trade includes goods whose economic ownership is changed between a resident and a non-resident and that are not included in the following specific categories: goods under merchanting, non-monetary gold, and parts of travel, construction, and government goods and services n.i.e. It is the total of merchandise exports plus merchandise imports. 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, 189 countries have a value. The highest is Hong Kong SAR, China (371); the lowest is Sudan (14.96). The median country value is 53.56. The World Bank's World aggregate for 2025 is 43.89.

    Top 10 countries, 2025

    % of GDP

    Source: World Bank, TG.VAL.TOTL.GD.ZS, retrieved 19 November 2026. Computed from merchandise-trade-percent-of-gdp.csv.

    Highest, 2025

    #CountryValue
    1Hong Kong SAR, China371
    2Djibouti267.1
    3Slovenia237.4
    4Viet Nam180
    5Singapore177.6
    6Slovak Republic160.5
    7Belgium152.4
    8Malaysia151.7
    9Kiribati147.8
    10Netherlands139.5

    Lowest, 2025

    #CountryValue
    1Sudan14.96
    2Haiti16.15
    3United States18.5
    4Niger21.25
    5Kenya22.23
    6Afghanistan22.24
    7Venezuela, RB22.48
    8Sao Tome and Principe22.52
    9Comoros23.09
    10Pakistan23.67
    How many countries report, by decade
    DecadeMost countries in one year
    1960s120
    1970s139
    1980s162
    1990s190
    2000s197
    2010s204
    2020s204

    World aggregate by year

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

    YearWorld
    202543.89
    202444.3
    202345.03
    202249.32
    202145.54
    202041.19
    201943.24
    201845.15
    201743.56
    201641.92
    201543.98
    201447.55

    By region, 2025

    World Bank regionValue
    Europe & Central Asia62.17
    East Asia & Pacific50.62
    Middle East, North Africa, Afghanistan & Pakistan47.17
    Sub-Saharan Africa 44.53
    Latin America & Caribbean 44.2
    South Asia30.04
    North America20.62

    First rows

    merchandise-trade-percent-of-gdp.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200037.2861153562819
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200162.6961085165883
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200266.706721386688
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200349.6577396307908
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200447.503331331458
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200546.0242129627266
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200645.3257251908116
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200735.6590129713989

    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
    valuenumberMerchandise trade (% 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 371.

    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("merchandise-trade-percent-of-gdp.csv"))

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

    File: merchandise-trade-percent-of-gdp.csv

    How many countries report a value for 2025?

    189 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("merchandise-trade-percent-of-gdp.csv"))

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

    File: merchandise-trade-percent-of-gdp.csv

    What is the median across countries in 2025?

    53.56 (median of the 189 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("merchandise-trade-percent-of-gdp.csv"))

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

    File: merchandise-trade-percent-of-gdp.csv

    Which country rose the most between 2015 and 2025?

    Djibouti: from 41.45 to 267.1, a rise of 225.7 (out of 188 countries with both years).

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

    Use the wide file (merchandise-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("merchandise-trade-percent-of-gdp.csv"))

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

    File: merchandise-trade-percent-of-gdp.csv

    Which year has the most countries reporting?

    2021, with 204 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("merchandise-trade-percent-of-gdp.csv"))

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

    File: merchandise-trade-percent-of-gdp.csv