Exports of goods and services (% of GDP)

Source: worldbank.org, 01.09.2025

Year: 2024

Flag Country Value Value change, % Rank
Angola Angola 37.9 -7.22% 63
Albania Albania 36.1 -6.61% 69
Argentina Argentina 15.3 +20.3% 123
Armenia Armenia 76.3 +28.4% 14
Australia Australia 24.7 -7.81% 99
Austria Austria 56.9 -4.27% 31
Azerbaijan Azerbaijan 45.9 -6.31% 46
Belgium Belgium 79.2 -5.89% 13
Benin Benin 18.8 -5.82% 116
Burkina Faso Burkina Faso 28.5 -1.3% 90
Bangladesh Bangladesh 10.5 -20.5% 128
Bulgaria Bulgaria 55.8 -9.82% 33
Bahamas Bahamas 37.8 -0.0737% 64
Bosnia & Herzegovina Bosnia & Herzegovina 42.8 -2.53% 50
Belarus Belarus 65.1 -1.46% 28
Bermuda Bermuda 56.3 +12.1% 32
Brazil Brazil 18 +0.252% 117
Brunei Brunei 74.3 -3.14% 18
Botswana Botswana 26 -19.2% 97
Central African Republic Central African Republic 15.5 +7.04% 122
Canada Canada 32.5 -2.66% 78
Switzerland Switzerland 72.2 -1.6% 20
Chile Chile 33.7 +9.45% 73
China China 20 +4.82% 112
Côte d’Ivoire Côte d’Ivoire 27.6 +13.8% 95
Cameroon Cameroon 14.7 -11.3% 124
Congo - Kinshasa Congo - Kinshasa 46.6 +6.36% 43
Congo - Brazzaville Congo - Brazzaville 52.8 -7.23% 35
Colombia Colombia 16 -10.4% 120
Comoros Comoros 9.91 -4.28% 130
Cape Verde Cape Verde 41.9 +9.22% 56
Costa Rica Costa Rica 38.5 -0.986% 62
Cyprus Cyprus 96.7 -0.48% 7
Czechia Czechia 69.2 +0.379% 25
Germany Germany 42.1 -3% 53
Djibouti Djibouti 161 +7.18% 4
Denmark Denmark 69.7 +2.6% 24
Dominican Republic Dominican Republic 22.8 +6.77% 103
Ecuador Ecuador 30.3 +6% 84
Egypt Egypt 16.4 -14.3% 119
Spain Spain 37.3 -2.01% 66
Estonia Estonia 76.3 -2.04% 15
Ethiopia Ethiopia 5.55 -15.8% 134
Finland Finland 41.6 -3.59% 59
France France 33.2 -3.02% 75
Micronesia (Federated States of) Micronesia (Federated States of) 27.5 -3.06% 96
Gabon Gabon 65.3 +1.73% 27
United Kingdom United Kingdom 30.6 -4.2% 83
Georgia Georgia 48.4 -1.83% 41
Ghana Ghana 35.3 +11% 71
Guinea Guinea 44 -0.214% 48
Gambia Gambia 6.55 -31.8% 132
Guinea-Bissau Guinea-Bissau 12.5 -8.83% 125
Equatorial Guinea Equatorial Guinea 35.2 -3.93% 72
Greece Greece 42 -3.96% 54
Guatemala Guatemala 15.9 -4.3% 121
Hong Kong SAR China Hong Kong SAR China 182 +2.8% 2
Honduras Honduras 33.5 -10.2% 74
Croatia Croatia 49.8 -5.92% 39
Haiti Haiti 3.4 -35.5% 135
Hungary Hungary 74.7 -7.63% 17
Indonesia Indonesia 22.2 +1.97% 106
India India 21.2 -1.26% 109
Ireland Ireland 148 +9.27% 5
Iran Iran 22.9 -5.4% 102
Iraq Iraq 37.5 -5.36% 65
Iceland Iceland 41.6 -4.27% 58
Israel Israel 28.4 -6.5% 91
Italy Italy 32.7 -2.39% 77
Jordan Jordan 42.6 -2.08% 52
Kenya Kenya 11.1 -4.7% 126
Cambodia Cambodia 71.4 +6.68% 21
Kiribati Kiribati 6.27 +5.92% 133
Libya Libya 74.8 -12.1% 16
Sri Lanka Sri Lanka 19.9 -3.88% 114
Lithuania Lithuania 74.1 -3.08% 19
Luxembourg Luxembourg 216 -1.04% 1
Latvia Latvia 64.6 -2.77% 29
Macao SAR China Macao SAR China 89.8 -1.76% 8
Morocco Morocco 43.3 +1.25% 49
Moldova Moldova 31.4 -10.5% 80
Madagascar Madagascar 23.6 -12.5% 101
Mexico Mexico 36.8 +1.71% 68
North Macedonia North Macedonia 62.7 -7.58% 30
Mali Mali 22.5 -9.55% 105
Malta Malta 123 -0.905% 6
Montenegro Montenegro 44.9 -10.2% 47
Mongolia Mongolia 69.1 -9.34% 26
Mozambique Mozambique 42.7 -5.62% 51
Mauritius Mauritius 46.2 -2.79% 45
Malaysia Malaysia 71.4 +4.04% 22
Namibia Namibia 41.6 -4.55% 57
Niger Niger 31.2 +31.4% 81
Nicaragua Nicaragua 40.5 -11.7% 60
Netherlands Netherlands 84.1 -4.97% 11
Norway Norway 47.6 -0.74% 42
Nepal Nepal 7.62 +8.79% 131
Nauru Nauru 39.5 -9.11% 61
Pakistan Pakistan 10.4 -0.744% 129
Peru Peru 28.5 +5.17% 89
Philippines Philippines 25.8 -3.24% 98
Poland Poland 52.3 -9.59% 37
Puerto Rico Puerto Rico 51.9 -3.26% 38
Portugal Portugal 46.5 -2.16% 44
Paraguay Paraguay 37.2 -11.6% 67
Palestinian Territories Palestinian Territories 21 +18.6% 110
Romania Romania 35.6 -9.08% 70
Russia Russia 21.9 -2.56% 108
Rwanda Rwanda 30.8 +23.3% 82
Saudi Arabia Saudi Arabia 29.2 -3.57% 87
Sudan Sudan 1.19 +7.67% 136
Senegal Senegal 28.1 +21.4% 93
Singapore Singapore 179 -1.53% 3
Sierra Leone Sierra Leone 20.9 -2.72% 111
El Salvador El Salvador 32.8 +4.34% 76
Somalia Somalia 20 +1.45% 113
Serbia Serbia 52.7 -4.33% 36
Slovakia Slovakia 85.2 -6.63% 9
Slovenia Slovenia 81.5 -2.06% 12
Sweden Sweden 54.6 -1.41% 34
Seychelles Seychelles 85.2 +2.11% 10
Chad Chad 28.1 -5.74% 92
Togo Togo 24.4 +2% 100
Thailand Thailand 70.1 +7.06% 23
Tunisia Tunisia 48.4 -9.76% 40
Turkey Turkey 28 -12.1% 94
Tanzania Tanzania 19.8 +15.3% 115
Uganda Uganda 16.9 +45.7% 118
Ukraine Ukraine 29.4 +3.92% 85
Uruguay Uruguay 28.8 +2.2% 88
United States United States 10.9 -1.04% 127
Uzbekistan Uzbekistan 22.8 -6.79% 104
Samoa Samoa 29.3 +1.95% 86
Kosovo Kosovo 41.9 +5.75% 55
South Africa South Africa 31.8 -2.76% 79
Zimbabwe Zimbabwe 22.1 +2.44% 107

The indicator "Exports of goods and services (% of GDP)" measures the proportion of a country's total production of goods and services that is sold to foreign markets. It serves as a critical metric for understanding a nation’s participation in the global economy and the extent to which it is integrated into international trade networks. This indicator not only reflects a country’s economic health but also provides insights into its competitiveness and potential for growth.

Understanding the importance of exports in the context of GDP is fundamental for policymakers and economists. A higher percentage indicates that a country is effectively capitalizing on global market opportunities, enhancing its GDP through trade. This can lead to job creation, increased investment in infrastructure, and a more innovative economy. Conversely, a lower percentage could signal a lack of competitiveness or may point to an economy that is overly reliant on domestic consumption, which could be problematic in times of national economic downturns.

The relations of this indicator with other economic indicators are manifold. For instance, there is typically a positive correlation between exports and employment rates. As firms expand to meet international demand, they may hire more workers, thereby reducing unemployment. Furthermore, exports can influence the balance of trade, which is crucial for a country’s currency valuation. A robust export sector can strengthen a nation's currency by increasing demand for it in the foreign exchange market.

Various factors can affect the exports of goods and services relative to GDP. Exchange rates play a significant role; a stronger currency can make exports more expensive and less competitive abroad. Additionally, trade policies, tariffs, and international relations can substantially impact export levels. Countries engaged in free trade agreements often see higher export percentages, as barriers to trade are lowered, allowing for more seamless international transactions.

Strategies to enhance export levels can include investing in trade facilitation measures, improving infrastructure, and providing incentives for businesses to explore foreign markets. For instance, governments can establish export promotion agencies that assist local businesses in understanding foreign market demands, regulatory requirements, and cultural considerations. Moreover, investing in research and development can provide businesses with the innovation necessary to produce goods that meet international standards, thereby improving export potential.

In order to sustain high export levels, countries might adopt several solutions. Diversification of export products and markets can protect economies from excessive reliance on a limited range of goods or unstable markets. Additionally, fostering partnerships with both private and public entities can encourage collaboration and resource sharing, leading to improved export strategies. It is also crucial to maintain and improve product quality to meet the demands of various international markets effectively.

Nonetheless, there are flaws and challenges inherent to relying heavily on exports as a driver of economic growth. Economies overly dependent on exports may be vulnerable to global economic shifts or downturns. The COVID-19 pandemic, for example, highlighted the risks associated with global supply chains, leading to substantial disruptions. If a country faces trade sanctions or hostility from trading partners, its export-driven economy could suffer significantly. Further, an overemphasis on exports might lead to neglect of domestic industries, creating imbalances that could instigate economic instability.

The latest 2023 data indicate that the average global export of goods and services stands at 29.32% of GDP. This figure is slightly lower than the previous year's median of 30.99%, which may suggest some fluctuations in global trade dynamics. The historical perspective highlights a trend of increasing export reliance, particularly since the early 2000s, where we can see a rising trajectory from about 23.51% in 2000 to close to 30% in the years preceding 2023.

Looking into top performing areas, Luxembourg, with 212.53% of GDP reliant on exports, showcases an economy that is heavily integrated into international finance and trade, benefiting from its status as a financial hub. Similarly, regions like Hong Kong SAR China and Singapore experience substantial export percentages due to their strategic geographical locations and developed infrastructure supporting global trade. On the opposite spectrum, Sudan's exports contributing only 1.11% of GDP further illustrates the challenges faced by economies that may be constrained by conflict, inadequate infrastructure, or political instability, hampering their ability to engage fruitfully in international markets.

In conclusion, while exports of goods and services as a percentage of GDP provide valuable insights into the economic health and competitiveness of a nation, it is vital to approach this indicator with a nuanced understanding of the underlying factors and broader economic context. Sustainable growth strategies that balance domestic needs with international market opportunities can lead to robust and resilient economies. The interplay amongst exports, economic policies, and global conditions will continue to shape the developments in this essential metric.

                    
# 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 = 'NE.EXP.GNFS.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 <- 'NE.EXP.GNFS.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))