Merchandise trade (% of GDP)
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.
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
Highest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Hong Kong SAR, China | 371 |
| 2 | Djibouti | 267.1 |
| 3 | Slovenia | 237.4 |
| 4 | Viet Nam | 180 |
| 5 | Singapore | 177.6 |
| 6 | Slovak Republic | 160.5 |
| 7 | Belgium | 152.4 |
| 8 | Malaysia | 151.7 |
| 9 | Kiribati | 147.8 |
| 10 | Netherlands | 139.5 |
Lowest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Sudan | 14.96 |
| 2 | Haiti | 16.15 |
| 3 | United States | 18.5 |
| 4 | Niger | 21.25 |
| 5 | Kenya | 22.23 |
| 6 | Afghanistan | 22.24 |
| 7 | Venezuela, RB | 22.48 |
| 8 | Sao Tome and Principe | 22.52 |
| 9 | Comoros | 23.09 |
| 10 | Pakistan | 23.67 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1960s | 120 |
| 1970s | 139 |
| 1980s | 162 |
| 1990s | 190 |
| 2000s | 197 |
| 2010s | 204 |
| 2020s | 204 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2025 | 43.89 |
| 2024 | 44.3 |
| 2023 | 45.03 |
| 2022 | 49.32 |
| 2021 | 45.54 |
| 2020 | 41.19 |
| 2019 | 43.24 |
| 2018 | 45.15 |
| 2017 | 43.56 |
| 2016 | 41.92 |
| 2015 | 43.98 |
| 2014 | 47.55 |
By region, 2025
| World Bank region | Value |
|---|---|
| Europe & Central Asia | 62.17 |
| East Asia & Pacific | 50.62 |
| Middle East, North Africa, Afghanistan & Pakistan | 47.17 |
| Sub-Saharan Africa | 44.53 |
| Latin America & Caribbean | 44.2 |
| South Asia | 30.04 |
| North America | 20.62 |
First rows
merchandise-trade-percent-of-gdp.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2000 | 37.2861153562819 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2001 | 62.6961085165883 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2002 | 66.706721386688 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2003 | 49.6577396307908 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2004 | 47.503331331458 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2005 | 46.0242129627266 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2006 | 45.3257251908116 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2007 | 35.6590129713989 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Merchandise 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