GDP (current US$)

Source: worldbank.org, 01.09.2025

Year: 2024

Flag Country Value Value change, % Rank
Angola Angola 80,396,942,242 -5.28% 78
Albania Albania 27,177,735,528 +15.4% 109
Andorra Andorra 4,039,844,390 +6.73% 157
United Arab Emirates United Arab Emirates 537,078,829,135 +4.46% 27
Argentina Argentina 633,266,692,534 -1.98% 22
Armenia Armenia 25,786,585,950 +7.06% 113
Antigua & Barbuda Antigua & Barbuda 2,224,814,815 +10.9% 164
Australia Australia 1,752,193,307,380 +1.4% 13
Austria Austria 521,642,466,922 +1.95% 29
Azerbaijan Azerbaijan 74,315,882,353 +2.61% 81
Burundi Burundi 2,162,378,759 -17.8% 166
Belgium Belgium 664,564,181,487 +3.09% 21
Benin Benin 21,482,643,720 +9.2% 121
Burkina Faso Burkina Faso 23,250,214,910 +14.4% 119
Bangladesh Bangladesh 450,119,424,622 +2.9% 33
Bulgaria Bulgaria 112,211,952,704 +9.59% 66
Bahrain Bahrain 47,736,702,128 +3.34% 93
Bahamas Bahamas 15,832,800,000 +3.68% 133
Bosnia & Herzegovina Bosnia & Herzegovina 28,343,394,203 +2.72% 108
Belarus Belarus 75,961,865,472 +4.81% 80
Belize Belize 3,515,783,329 +14.6% 158
Bermuda Bermuda 8,980,200,000 +4.67% 147
Bolivia Bolivia 49,668,296,744 +10% 92
Brazil Brazil 2,179,412,080,829 -0.535% 10
Barbados Barbados 7,165,000,000 +6.61% 150
Brunei Brunei 15,463,134,387 +2.44% 135
Botswana Botswana 19,400,774,882 -0.0541% 127
Central African Republic Central African Republic 2,751,544,520 +7.67% 160
Canada Canada 2,241,253,230,970 +3.12% 9
Switzerland Switzerland 936,564,198,049 +4.71% 19
Chile Chile 330,267,137,372 -1.57% 44
China China 18,743,803,170,827 +2.59% 2
Côte d’Ivoire Côte d’Ivoire 86,538,413,923 +8.69% 73
Cameroon Cameroon 51,326,764,685 +4.15% 89
Congo - Kinshasa Congo - Kinshasa 70,749,355,652 +5.59% 84
Congo - Brazzaville Congo - Brazzaville 15,719,985,776 +2.6% 134
Colombia Colombia 418,542,042,920 +14.3% 37
Comoros Comoros 1,546,164,420 +8.08% 172
Cape Verde Cape Verde 2,767,599,017 +8.99% 159
Costa Rica Costa Rica 95,350,423,177 +10.2% 69
Cyprus Cyprus 36,333,022,329 +7.22% 102
Czechia Czechia 345,036,675,975 +0.533% 43
Germany Germany 4,659,929,336,891 +2.97% 3
Djibouti Djibouti 4,086,402,719 +4.32% 156
Dominica Dominica 688,881,481 +4.49% 179
Denmark Denmark 429,457,372,072 +5.49% 35
Dominican Republic Dominican Republic 124,282,245,639 +3.18% 63
Algeria Algeria 263,619,794,507 +6.46% 50
Ecuador Ecuador 124,676,074,700 +2.91% 61
Egypt Egypt 389,059,911,004 -1.73% 40
Spain Spain 1,722,745,978,335 +6.34% 14
Estonia Estonia 42,764,929,169 +3.57% 100
Finland Finland 299,835,625,551 +1.66% 46
Fiji Fiji 5,840,564,073 +7.32% 152
France France 3,162,079,073,496 +3.61% 7
Micronesia (Federated States of) Micronesia (Federated States of) 471,425,099 +6.2% 180
Gabon Gabon 20,867,044,936 +4.05% 122
United Kingdom United Kingdom 3,643,834,188,783 +8.13% 6
Georgia Georgia 33,776,141,251 +9.74% 104
Ghana Ghana 82,825,288,889 +2.83% 76
Guinea Guinea 25,334,307,879 +13.1% 114
Gambia Gambia 2,507,519,958 +4.65% 162
Guinea-Bissau Guinea-Bissau 2,119,865,935 +2.02% 167
Equatorial Guinea Equatorial Guinea 12,765,777,677 +3.47% 141
Greece Greece 257,144,811,302 +5.6% 52
Grenada Grenada 1,391,435,993 +5.09% 173
Guatemala Guatemala 113,199,586,004 +8.46% 65
Guyana Guyana 24,835,899,826 +46.8% 116
Hong Kong SAR China Hong Kong SAR China 407,106,738,445 +6.83% 38
Honduras Honduras 37,093,565,854 +7.97% 101
Croatia Croatia 92,526,176,109 +9.64% 71
Haiti Haiti 25,224,154,991 +27.1% 115
Hungary Hungary 222,904,723,252 +4.15% 53
Indonesia Indonesia 1,396,300,098,191 +1.83% 15
India India 3,912,686,168,582 +7.54% 5
Ireland Ireland 577,389,475,010 +4.71% 24
Iran Iran 436,906,331,672 +7.98% 34
Iraq Iraq 279,641,257,615 +4% 49
Iceland Iceland 33,462,807,983 +6.39% 105
Israel Israel 540,379,921,262 +5.5% 26
Italy Italy 2,372,774,547,793 +2.96% 8
Jamaica Jamaica 19,930,288,337 +2.61% 124
Jordan Jordan 53,352,289,577 +4.43% 88
Japan Japan 4,026,210,821,147 -4.44% 4
Kazakhstan Kazakhstan 288,406,138,231 +10.1% 48
Kenya Kenya 124,498,691,699 +15.2% 62
Kyrgyzstan Kyrgyzstan 17,478,259,659 +15.1% 129
Cambodia Cambodia 46,352,647,035 +9.49% 95
Kiribati Kiribati 307,862,547 +6.67% 181
St. Kitts & Nevis St. Kitts & Nevis 1,066,681,481 +0.94% 177
Kuwait Kuwait 160,227,273,001 -3.12% 57
Laos Laos 16,502,933,121 +4.16% 132
Liberia Liberia 4,750,000,000 +8.2% 154
Libya Libya 46,636,278,902 +3.41% 94
St. Lucia St. Lucia 2,549,062,963 +4.89% 161
Sri Lanka Sri Lanka 98,963,185,510 +18.2% 68
Lesotho Lesotho 2,271,541,846 +7.25% 163
Lithuania Lithuania 84,869,215,513 +6.37% 75
Luxembourg Luxembourg 93,197,329,012 +6.42% 70
Latvia Latvia 43,520,773,851 +2.23% 98
Macao SAR China Macao SAR China 50,183,212,761 +9.56% 90
Morocco Morocco 154,430,996,473 +6.93% 58
Moldova Moldova 18,200,340,854 +8.91% 128
Madagascar Madagascar 17,420,814,801 +9.77% 130
Maldives Maldives 6,975,146,349 +5.83% 151
Mexico Mexico 1,852,722,885,258 +3.28% 12
Marshall Islands Marshall Islands 280,357,844 +8.12% 182
North Macedonia North Macedonia 16,685,236,492 +5.85% 131
Mali Mali 26,588,067,731 +7.99% 110
Malta Malta 24,322,006,608 +9.51% 117
Myanmar (Burma) Myanmar (Burma) 74,079,772,652 +11% 82
Montenegro Montenegro 8,069,536,126 +7.16% 148
Mongolia Mongolia 23,586,055,802 +16% 118
Mozambique Mozambique 22,416,650,343 +6.98% 120
Mauritania Mauritania 10,766,731,874 +1.08% 145
Mauritius Mauritius 14,952,555,415 +6.04% 136
Malawi Malawi 11,008,925,323 -13.4% 144
Malaysia Malaysia 421,972,102,254 +5.57% 36
Namibia Namibia 13,372,354,269 +7.77% 140
Niger Niger 19,537,639,288 +17% 126
Nigeria Nigeria 187,759,703,100 -48.4% 56
Nicaragua Nicaragua 19,693,982,968 +10.6% 125
Netherlands Netherlands 1,227,543,925,316 +6.34% 18
Norway Norway 483,727,398,216 +0.161% 30
Nepal Nepal 42,914,268,287 +4.55% 99
Nauru Nauru 160,350,640 +5.87% 183
New Zealand New Zealand 260,235,932,559 +1.98% 51
Oman Oman 106,942,782,835 +0.989% 67
Pakistan Pakistan 373,071,855,732 +10.4% 42
Panama Panama 86,260,400,000 +3.53% 74
Peru Peru 289,221,969,060 +8.34% 47
Philippines Philippines 461,617,509,782 +5.62% 32
Papua New Guinea Papua New Guinea 32,538,480,024 +5.59% 106
Poland Poland 914,696,430,325 +12.6% 20
Puerto Rico Puerto Rico 125,841,500,000 +6.31% 60
Portugal Portugal 308,683,317,393 +6.55% 45
Paraguay Paraguay 44,458,118,400 +3.11% 96
Palestinian Territories Palestinian Territories 13,711,100,000 -23.2% 139
Qatar Qatar 217,982,967,033 +2.34% 54
Romania Romania 382,767,571,329 +9.12% 41
Russia Russia 2,173,835,806,672 +4.94% 11
Rwanda Rwanda 14,251,642,231 -0.559% 137
Saudi Arabia Saudi Arabia 1,237,529,866,667 +1.55% 17
Sudan Sudan 49,909,807,030 +25.1% 91
Senegal Senegal 32,267,254,425 +5.12% 107
Singapore Singapore 547,386,645,892 +8.3% 25
Solomon Islands Solomon Islands 1,760,767,447 +6.01% 169
Sierra Leone Sierra Leone 7,547,843,281 +17.7% 149
El Salvador El Salvador 35,364,960,000 +4.46% 103
Somalia Somalia 12,108,515,110 +10.4% 142
Serbia Serbia 89,083,506,277 +9.52% 72
São Tomé & Príncipe São Tomé & Príncipe 764,274,043 +12.6% 178
Suriname Suriname 4,714,267,822 +36.4% 155
Slovakia Slovakia 141,775,733,420 +5.88% 59
Slovenia Slovenia 72,485,008,929 +4.83% 83
Sweden Sweden 610,117,791,237 +4.21% 23
Eswatini Eswatini 4,891,883,720 +6.25% 153
Sint Maarten Sint Maarten 1,735,210,228 +6.6% 171
Seychelles Seychelles 2,167,239,562 -0.921% 165
Turks & Caicos Islands Turks & Caicos Islands 1,745,378,000 +6.51% 170
Chad Chad 20,625,711,665 +7.94% 123
Togo Togo 9,925,732,120 +8.23% 146
Thailand Thailand 526,411,265,428 +2.04% 28
Tajikistan Tajikistan 14,204,575,549 +16% 138
Turkmenistan Turkmenistan 64,239,891,739 +5.96% 85
Timor-Leste Timor-Leste 1,881,265,333 -9.55% 168
Trinidad & Tobago Trinidad & Tobago 26,428,963,758 +3.69% 111
Tunisia Tunisia 53,409,988,745 +10.8% 87
Turkey Turkey 1,323,254,808,059 +18.3% 16
Tanzania Tanzania 78,779,864,877 -0.357% 79
Uganda Uganda 53,651,874,314 +10% 86
Ukraine Ukraine 190,741,263,732 +5.25% 55
Uruguay Uruguay 80,961,511,074 +3.81% 77
United States United States 29,184,890,000,000 +5.28% 1
Uzbekistan Uzbekistan 114,965,293,467 +12% 64
St. Vincent & Grenadines St. Vincent & Grenadines 1,157,207,407 +7.92% 175
Vietnam Vietnam 476,388,230,307 +9.8% 31
Vanuatu Vanuatu 1,161,251,868 +3.1% 174
Samoa Samoa 1,068,025,244 +13.8% 176
Kosovo Kosovo 11,148,602,233 +6.5% 143
South Africa South Africa 400,260,724,226 +5.14% 39
Zambia Zambia 26,325,775,287 -4.54% 112
Zimbabwe Zimbabwe 44,187,704,410 +25.4% 97

The Gross Domestic Product (GDP) in current US dollars is a crucial economic indicator that measures the total monetary value of all goods and services produced within a country's borders in a specific time period, typically a year. It reflects the economic activity of a nation and serves as a comprehensive scorecard of the country’s economic health. When we discuss GDP in current US dollars, we are referring to the value at which these goods and services would be sold based on the exchange rate at that specific time, thus allowing for real-time assessment without being adjusted for inflation.

Understanding GDP is pivotal not only for economists but also for policymakers, business leaders, and investors. This metric provides insight into the size of an economy and its overall performance. High GDP figures often signal a booming economy with potential for job creation, increased consumer spending, and investment opportunities. Conversely, a declining or stagnant GDP can indicate economic troubles which may lead to increased unemployment and reduced business activities.

GDP does not operate in isolation; it is closely related to other economic indicators. For instance, unemployment rates are inversely related to GDP growth. When GDP grows, businesses tend to hire more, reducing unemployment rates. Additionally, inflation is another factor often analyzed alongside GDP. A growing GDP may also lead to inflationary pressures if the economy overheats and demand outstrips supply. It is essential to assess GDP alongside these and other indicators, such as the Consumer Price Index (CPI) and trade balances, to get a full picture of economic health.

Several factors can heavily influence GDP figures. Consumption patterns are crucial—when consumers feel confident, they spend more, propelling GDP. Investment from businesses in infrastructure, technology, and workforce training also enhances productivity, contributing positively to GDP. Government spending on services and public works can provide a substantial boost. On the flip side, factors such as economic recessions, changes in consumer confidence, and global economic trends can all negatively impact GDP.

To boost GDP, various strategies can be applied. Governments can implement fiscal policy measures, such as tax cuts or increased public spending, to stimulate economic growth. Additionally, investing in education and infrastructure leads to long-term productivity gains. From a business perspective, companies may look to innovate or expand their operations to capture market share and drive revenue growth. International trade agreements may also open new markets for goods and services, further enhancing GDP.

While GDP is an important measure, it is not without flaws. It does not account for the distribution of income among residents of a country, which means that increasing GDP could coincide with increasing inequality. Furthermore, GDP does not measure the informal economy or consider environmental factors; growth that leads to ecological degradation is not reflected in GDP metrics. Thus, while GDP provides a snapshot of economic activity, it should be analyzed alongside other measures of well-being and sustainability to grasp a complete understanding of a country’s economic health.

As of 2023, the global GDP sits at approximately $106.17 trillion. Observing the latest data, we see that the median GDP value among global economies is around $42.65 billion, highlighting significant disparities. The largest economies dominate the charts, with the United States leading at a staggering $27.72 trillion, followed by China at $17.79 trillion, Germany at $4.53 trillion, Japan at $4.20 trillion, and India at $3.57 trillion. These numbers encapsulate the economic prowess of these nations and reflect their significant roles in the global market.

On the other end of the spectrum, the five smallest economies—Tuvalu, Nauru, Marshall Islands, Kiribati, and Palau—further underscore the vast inequalities present in global economic structures, with GDP figures barely surpassing $62 million for Tuvalu. Such figures highlight the economic challenges these nations face and the need for targeted development strategies and international support to uplift these economies into more sustainable growth trajectories.

The historical progression of GDP from 1960 to 2023 reveals a remarkable upward trajectory, growing from just over $1.37 trillion to recent totals exceeding $106 trillion. This growth accentuates advancements in technology, globalization, and the interconnectedness of the world economy. Indeed, this historical context allows for a clear vision of how economies have evolved and adapted, facing challenges such as global recessions and pandemics, yet continuing to grow overall. Over decades, we have witnessed fluctuations, such as the stark decline during the 2008 financial crisis and the impacts of the COVID-19 pandemic in 2020, but recovery patterns show resilience in the global economic landscape.

In conclusion, GDP (current US$) is an essential indicator for understanding economic dynamics. While it provides a useful framework for assessing economic size and growth trends, it must be viewed critically, considering its limitations. Analyzing GDP in conjunction with other socio-economic factors can yield deeper insights into a country’s overall health and well-being, guiding policymakers towards more sustainable and equitable economic strategies.

                    
# 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 = 'NY.GDP.MKTP.CD'

# 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 <- 'NY.GDP.MKTP.CD'

# 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))