Merchandise exports to high-income economies (% of total merchandise exports)

Source: worldbank.org, 03.09.2025

Year: 2023

Flag Country Value Value change, % Rank
Aruba Aruba 43.9 -2.34% 154
Afghanistan Afghanistan 12.9 0.0000% 195
Angola Angola 34.4 -8.23% 174
Albania Albania 77.7 -1.51% 64
United Arab Emirates United Arab Emirates 46.8 +3.66% 147
Argentina Argentina 40.9 +2.24% 161
Armenia Armenia 86.1 +11.2% 36
American Samoa American Samoa 73.2 -8.4% 83
Antigua & Barbuda Antigua & Barbuda 88.6 +3,046% 29
Australia Australia 45.9 -12.5% 150
Austria Austria 90.3 -0.26% 23
Azerbaijan Azerbaijan 74.6 -3.46% 75
Burundi Burundi 48.9 -14.5% 141
Belgium Belgium 88.7 +0.22% 27
Benin Benin 11.5 +88.1% 197
Burkina Faso Burkina Faso 82.4 -2.07% 52
Bangladesh Bangladesh 88.5 -1.51% 30
Bulgaria Bulgaria 73.6 -1.65% 81
Bahrain Bahrain 74.9 -0.481% 73
Bahamas Bahamas 52.1 +21.3% 132
Bosnia & Herzegovina Bosnia & Herzegovina 78.1 -0.428% 63
Belarus Belarus 81.9 +2.21% 53
Belize Belize 75.3 +5.32% 71
Bermuda Bermuda 71.8 +34.6% 84
Bolivia Bolivia 34.8 +7.72% 173
Brazil Brazil 42.6 -7.05% 159
Barbados Barbados 69.4 +2.54% 89
Brunei Brunei 61.3 -0.495% 116
Bhutan Bhutan 3.23 -20.9% 202
Botswana Botswana 64.5 -4.79% 110
Central African Republic Central African Republic 84.3 +26.6% 43
Canada Canada 90.6 -0.2% 21
Switzerland Switzerland 75.5 -0.704% 69
Chile Chile 42.9 -0.184% 156
China China 65.7 -2.56% 103
Côte d’Ivoire Côte d’Ivoire 50.4 +11.5% 138
Cameroon Cameroon 51.6 -11% 134
Congo - Kinshasa Congo - Kinshasa 19.8 -25.6% 187
Congo - Brazzaville Congo - Brazzaville 38.5 +50.2% 166
Colombia Colombia 64.6 -2.44% 107
Comoros Comoros 46.7 +0.276% 148
Cape Verde Cape Verde 83.4 +1.55% 48
Costa Rica Costa Rica 75.3 +1.77% 72
Cuba Cuba 66.6 -5.41% 100
Curaçao Curaçao 94.3 +7.79% 7
Cyprus Cyprus 51.6 -19.2% 133
Czechia Czechia 92.5 -0.909% 11
Germany Germany 83.1 -0.732% 50
Djibouti Djibouti 9.76 +23.5% 198
Dominica Dominica 24.1 -69% 184
Denmark Denmark 87.1 -0.537% 35
Dominican Republic Dominican Republic 81.5 +5.85% 56
Algeria Algeria 80.2 -1.79% 58
Ecuador Ecuador 65.7 -2.22% 102
Egypt Egypt 56.8 -8.83% 122
Eritrea Eritrea 11.9 -42.9% 196
Spain Spain 83.8 -0.371% 46
Estonia Estonia 91.5 -0.404% 15
Ethiopia Ethiopia 67.5 -5.17% 94
Finland Finland 84.7 -0.312% 40
Fiji Fiji 63.3 -2.05% 112
France France 83.7 -0.944% 47
Faroe Islands Faroe Islands 87.8 +0.067% 33
Micronesia (Federated States of) Micronesia (Federated States of) 15.1 +1.28% 191
Gabon Gabon 42.6 +6.62% 158
United Kingdom United Kingdom 84.2 +1.79% 44
Georgia Georgia 28.3 -22% 179
Ghana Ghana 56.6 +4.58% 124
Gibraltar Gibraltar 57.4 -6.3% 120
Guinea Guinea 18.9 -7.32% 189
Gambia Gambia 0.154 -99.3% 204
Guinea-Bissau Guinea-Bissau 67.3 +19.2% 97
Equatorial Guinea Equatorial Guinea 61.4 -2.91% 115
Greece Greece 75.4 +1.16% 70
Grenada Grenada 66.2 -15.9% 101
Greenland Greenland 97 +0.969% 2
Guatemala Guatemala 51.2 +0.345% 135
Guam Guam 13.6 -18.3% 193
Guyana Guyana 92.3 +2.96% 13
Hong Kong SAR China Hong Kong SAR China 29.3 -0.339% 178
Honduras Honduras 65 -0.0957% 105
Croatia Croatia 75.6 -0.991% 68
Haiti Haiti 91 -0.617% 18
Hungary Hungary 89.3 +0.348% 25
Indonesia Indonesia 42.7 -4.46% 157
India India 64.8 +3.65% 106
Ireland Ireland 90.2 +1.09% 24
Iran Iran 19.1 +6.9% 188
Iraq Iraq 39.2 +3.38% 164
Iceland Iceland 95.2 -0.313% 5
Israel Israel 79.5 +4.86% 60
Italy Italy 84 -1.05% 45
Jamaica Jamaica 92.3 -1.65% 12
Jordan Jordan 56.8 +11.4% 123
Japan Japan 61.7 +2.73% 114
Kazakhstan Kazakhstan 64.6 -7.43% 108
Kenya Kenya 39.6 -7.04% 163
Kyrgyzstan Kyrgyzstan 67.5 +25.8% 95
Cambodia Cambodia 73.4 -6.18% 82
Kiribati Kiribati 79.7 +4.6% 59
St. Kitts & Nevis St. Kitts & Nevis 90.7 +21.1% 19
South Korea South Korea 53.5 +6.02% 131
Kuwait Kuwait 48.5 -2.46% 143
Laos Laos 13.3 0.00000% 194
Lebanon Lebanon 55.1 -0.371% 127
Liberia Liberia 76 +26% 67
Libya Libya 85.6 +5.65% 38
St. Lucia St. Lucia 78.8 +0.263% 61
Sri Lanka Sri Lanka 74.1 -2.58% 79
Lesotho Lesotho 58.7 +6.14% 119
Lithuania Lithuania 81.8 -3.08% 54
Luxembourg Luxembourg 91.4 -0.872% 16
Latvia Latvia 85.9 -3.1% 37
Macao SAR China Macao SAR China 93.8 +1.42% 10
Morocco Morocco 78.1 +12.1% 62
Moldova Moldova 73.9 +7.39% 80
Madagascar Madagascar 74.5 +4.35% 76
Maldives Maldives 35.1 -2.34% 172
Mexico Mexico 93.9 +0.82% 9
Marshall Islands Marshall Islands 65.4 -19.6% 104
North Macedonia North Macedonia 81.5 -0.498% 55
Mali Mali 35.4 -12.6% 171
Malta Malta 82.5 -1.86% 51
Myanmar (Burma) Myanmar (Burma) 40.2 -6.16% 162
Montenegro Montenegro 47.3 -9.82% 146
Mongolia Mongolia 7.57 -34.3% 201
Mozambique Mozambique 38.8 -13% 165
Mauritania Mauritania 60.7 -0.105% 118
Mauritius Mauritius 69 +8.44% 91
Malawi Malawi 46.1 +2.25% 149
Malaysia Malaysia 61.8 +1.64% 113
Namibia Namibia 31 -11.6% 176
New Caledonia New Caledonia 45.9 -4.66% 151
Niger Niger 67.4 +52.2% 96
Nigeria Nigeria 64.1 +27.6% 111
Nicaragua Nicaragua 71.6 +7.86% 85
Netherlands Netherlands 90.5 -0.44% 22
Norway Norway 93.9 -1.07% 8
Nepal Nepal 26.9 +11.7% 182
Nauru Nauru 16.7 +5.45% 190
New Zealand New Zealand 55.2 +3.99% 126
Oman Oman 53.6 +0.0444% 130
Pakistan Pakistan 67.2 -5.05% 98
Panama Panama 47.8 -7.99% 145
Peru Peru 48.5 -9.38% 142
Philippines Philippines 70.9 -1.62% 88
Palau Palau 68.5 -2.03% 93
Papua New Guinea Papua New Guinea 69.3 -0.483% 90
Poland Poland 88.9 -1.46% 26
North Korea North Korea 2.81 -31.5% 203
Portugal Portugal 88.4 -1% 31
Paraguay Paraguay 27.3 -15.5% 180
Palestinian Territories Palestinian Territories 90.7 -1.2% 20
French Polynesia French Polynesia 87.1 -10.4% 34
Qatar Qatar 55 -9.67% 128
Romania Romania 83.1 +0.0548% 49
Russia Russia 23.6 -50.1% 185
Rwanda Rwanda 27.3 -36.5% 181
Saudi Arabia Saudi Arabia 53.7 +2.31% 129
Sudan Sudan 76.3 0.0000% 66
Senegal Senegal 35.8 -2.38% 170
Singapore Singapore 49.8 -1.42% 140
Solomon Islands Solomon Islands 42.5 +2.92% 160
Sierra Leone Sierra Leone 13.7 -10.7% 192
El Salvador El Salvador 45.3 -5.95% 153
San Marino San Marino 76.9 -3.34% 65
Somalia Somalia 85.2 -3.61% 39
Serbia Serbia 74.2 -1.13% 78
South Sudan South Sudan 48 -18.4% 144
São Tomé & Príncipe São Tomé & Príncipe 96.7 +6.49% 3
Suriname Suriname 81.4 -10.9% 57
Slovakia Slovakia 91.3 -0.912% 17
Slovenia Slovenia 87.8 +1.24% 32
Sweden Sweden 88.7 -0.658% 28
Eswatini Eswatini 8.99 +47.8% 200
Sint Maarten Sint Maarten 97.8 +0.52% 1
Seychelles Seychelles 95.8 +4.64% 4
Syria Syria 37 0.00000% 167
Chad Chad 74.7 +3.43% 74
Togo Togo 20.7 -13.6% 186
Thailand Thailand 56.8 +2.7% 121
Tajikistan Tajikistan 25.8 +26.9% 183
Turkmenistan Turkmenistan 9.51 +110% 199
Timor-Leste Timor-Leste 43.2 -16.1% 155
Tonga Tonga 91.8 -6.67% 14
Trinidad & Tobago Trinidad & Tobago 71.5 -7.65% 86
Tunisia Tunisia 84.5 +2.98% 42
Turkey Turkey 68.6 +1.87% 92
Tuvalu Tuvalu 84.6 +1.43% 41
Tanzania Tanzania 31.4 -10.1% 175
Uganda Uganda 45.5 +57.1% 152
Ukraine Ukraine 71 -0.443% 87
Uruguay Uruguay 31 +16.6% 177
United States United States 61 +1.43% 117
Uzbekistan Uzbekistan 37 +18.9% 168
St. Vincent & Grenadines St. Vincent & Grenadines 74.4 +10.3% 77
Venezuela Venezuela 64.5 +41.4% 109
Vietnam Vietnam 66.9 -3.62% 99
Vanuatu Vanuatu 51 +7.05% 136
Samoa Samoa 95 -1.64% 6
Kosovo Kosovo 55.7 -5.79% 125
Yemen Yemen 0.121 -98.3% 205
South Africa South Africa 50.1 -9.42% 139
Zambia Zambia 51 -4.65% 137
Zimbabwe Zimbabwe 37 -7.91% 169

The indicator of merchandise exports to high-income economies as a percentage of total merchandise exports provides vital insights into the global trade dynamics of countries. This metric reflects the extent to which nations rely on wealthier markets for their export revenues. Analyzing this data is crucial because it not only indicates the health of an economy but also illustrates how interconnected global trade relationships are with high-income countries, which typically have higher purchasing powers.

In 2020, the world average for merchandise exports to high-income economies stood at 68.45%. This figure captures a significant aspect of trade economics, suggesting that most countries are heavily reliant on selling goods to more affluent nations. The median value of 58.82% provides a useful benchmark to discern how various regions are performing in comparison to the global stage.

Regions that scored highest in this indicator included Greenland (97.42%), French Polynesia (94.32%), Iceland (93.66%), Liberia (93.61%), and Cape Verde (93.46%). These figures highlight the overwhelming dependence of these territories on high-income economies. For example, Greenland's economy heavily relies on exports to affluent nations, primarily due to its limited domestic market and geographical constraints, which restrict its economic diversity and growth opportunities. In contrast, regions with the lowest percentages such as Kiribati (0.85%), Bhutan (1.54%), Gambia (3.5%), North Korea (3.97%), and Turkmenistan (4.51%) reveal a starkly different reality. These countries may have a more insular economic structure or lack the production capabilities to effectively engage with high-income economies. The low numbers point to potential challenges in accessing lucrative markets, thereby impairing their economic growth.

The importance of this indicator cannot be overstated. Nations that are more integrated into high-income economies tend to experience better economic stability, faster growth rates, and improved access to resources and technology. Conversely, countries with low export figures to wealthier markets may face economic isolation, resulting in slower development paths and a potential struggle to meet global standards in various sectors. Furthermore, sustained engagement with high-income partners can lead to the transfer of knowledge, investments, and innovations, which can considerably bolster a developing nation’s economy.

It is essential to consider that the reliance on high-income economies can also be a double-edged sword. Dependence on a limited range of markets exposes countries to risks, particularly in times of economic downturn, trade restrictions, or global shocks (such as the COVID-19 pandemic). In 2020, we saw that the merchandise export performance was severely impacted by disruptions in global trade, leading to cautious scrutiny of these flows moving forward.

Several factors can affect a country's merchandise exports to high-income economies, including trade policies, economic conditions, and the nature of domestic production. Countries with favorable trade agreements or direct access to large affluent markets can benefit considerably. Additionally, the presence of a competitive manufacturing base capable of producing goods aligned with high-income consumer preferences is pivotal. For example, nations that invest substantially in technology and skilled labor to boost their production capabilities find themselves in positions to enhance their export figures. On the other hand, countries that lack such infrastructures face hurdles in growing their export numbers to these markets.

To increase their exports to high-income economies, nations can adopt various strategies. First, investing in infrastructure and improving logistical capabilities can facilitate smoother and cheaper access to global markets. Countries should also focus on enhancing the quality of their goods, improving brand recognition, and ensuring competitive pricing to attract buyers from wealthier nations. Participation in international trade fairs and exhibitions can raise awareness and offer opportunities for smaller nations to showcase their products to larger audiences. Additionally, forging multinational partnerships with firms in high-income economies can help to unlock doors for export opportunities as these partnerships extend access to wider channels of distribution and marketing.

However, it is also necessary to recognize potential flaws in relying heavily on merchandise exports to high-income economies. This dependency can create an imbalance where domestic markets might suffer due to a focus on producing goods for export rather than catering to local demands. Such an approach may result in vulnerability during global economic fluctuations. Therefore, diversifying export markets while bolstering domestic production may be essential for long-term economic resilience.

In summary, the percentage of merchandise exports to high-income economies serves as a key economic indicator reflecting reliance on affluent markets and the broader global trade dynamics. It emphasizes the importance of understanding that while engaging with high-income countries can foster growth, it also necessitates strategies that ensure a balanced and stable economic environment. As nations continue to navigate through changing global landscapes, focusing on sustainable development alongside strategic trade partnerships will be essential in enhancing their economic prospects.

                    
# Install missing packages
import sys
import subprocess

def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])

# Required packages
for package in ['wbdata', 'country_converter']:
try:
__import__(package)
except ImportError:
install(package)

# Import libraries
import wbdata
import country_converter as coco
from datetime import datetime

# Define World Bank indicator code
dataset_code = 'TX.VAL.MRCH.HI.ZS'

# Download data from World Bank API
data = wbdata.get_dataframe({dataset_code: 'value'},
date=(datetime(1960, 1, 1), datetime.today()),
parse_dates=True,
keep_levels=True).reset_index()

# Extract year
data['year'] = data['date'].dt.year

# Convert country names to ISO codes using country_converter
cc = coco.CountryConverter()
data['iso2c'] = cc.convert(names=data['country'], to='ISO2', not_found=None)
data['iso3c'] = cc.convert(names=data['country'], to='ISO3', not_found=None)

# Filter out rows where ISO codes could not be matched — likely not real countries
data = data[data['iso2c'].notna() & data['iso3c'].notna()]

# Sort for calculation
data = data.sort_values(['iso3c', 'year'])

# Calculate YoY absolute and percent change
data['value_change'] = data.groupby('iso3c')['value'].diff()
data['value_change_percent'] = data.groupby('iso3c')['value'].pct_change() * 100

# Calculate ranks (higher GDP per capita = better rank)
data['rank'] = data.groupby('year')['value'].rank(ascending=False, method='dense')

# Calculate rank change from previous year
data['rank_change'] = data.groupby('iso3c')['rank'].diff()

# Select desired columns
final_df = data[['country', 'iso2c', 'iso3c', 'year', 'value',
'value_change', 'value_change_percent', 'rank', 'rank_change']].copy()

# Optional: Add labels as metadata (could be useful for export or UI)
column_labels = {
'country': 'Country name',
'iso2c': 'ISO 2-letter country code',
'iso3c': 'ISO 3-letter country code',
'year': 'Year',
'value': 'GDP per capita (current US$)',
'value_change': 'Year-over-Year change in value',
'value_change_percent': 'Year-over-Year percent change in value',
'rank': 'Country rank by GDP per capita (higher = richer)',
'rank_change': 'Change in rank from previous year'
}

# Display first few rows
print(final_df.head(10))

# Optional: Save to CSV
#final_df.to_csv("gdp_per_capita_cleaned.csv", index=False)
                    
                
                    
# Check and install required packages
required_packages <- c("WDI", "countrycode", "dplyr")

for (pkg in required_packages) {
  if (!requireNamespace(pkg, quietly = TRUE)) {
    install.packages(pkg)
  }
}

# Load the necessary libraries
library(WDI)
library(dplyr)
library(countrycode)

# Define the dataset code (World Bank indicator code)
dataset_code <- 'TX.VAL.MRCH.HI.ZS'

# Download data using WDI package
dat <- WDI(indicator = dataset_code)

# Filter only countries using 'is_country' from countrycode
# This uses iso2c to identify whether the entry is a recognized country
dat <- dat %>%
  filter(countrycode(iso2c, origin = 'iso2c', destination = 'country.name', warn = FALSE) %in%
           countrycode::codelist$country.name.en)

# Ensure dataset is ordered by country and year
dat <- dat %>%
  arrange(iso3c, year)

# Rename the dataset_code column to "value" for easier manipulation
dat <- dat %>%
  rename(value = !!dataset_code)

# Calculate year-over-year (YoY) change and percentage change
dat <- dat %>%
  group_by(iso3c) %>%
  mutate(
    value_change = value - lag(value),                              # Absolute change from previous year
    value_change_percent = 100 * (value - lag(value)) / lag(value) # Percent change from previous year
  ) %>%
  ungroup()

# Calculate rank by year (higher value => higher rank)
dat <- dat %>%
  group_by(year) %>%
  mutate(rank = dense_rank(desc(value))) %>% # Rank countries by descending value
  ungroup()

# Calculate rank change (positive = moved up, negative = moved down)
dat <- dat %>%
  group_by(iso3c) %>%
  mutate(rank_change = rank - lag(rank)) %>% # Change in rank compared to previous year
  ungroup()

# Select and reorder final columns
final_data <- dat %>%
  select(
    country,
    iso2c,
    iso3c,
    year,
    value,
    value_change,
    value_change_percent,
    rank,
    rank_change
  )

# Add labels (variable descriptions)
attr(final_data$country, "label") <- "Country name"
attr(final_data$iso2c, "label") <- "ISO 2-letter country code"
attr(final_data$iso3c, "label") <- "ISO 3-letter country code"
attr(final_data$year, "label") <- "Year"
attr(final_data$value, "label") <- "GDP per capita (current US$)"
attr(final_data$value_change, "label") <- "Year-over-Year change in value"
attr(final_data$value_change_percent, "label") <- "Year-over-Year percent change in value"
attr(final_data$rank, "label") <- "Country rank by GDP per capita (higher = richer)"
attr(final_data$rank_change, "label") <- "Change in rank from previous year"

# Print the first few rows of the final dataset
print(head(final_data, 10))