DataBrighten

    GDP by country

    5,208 × 6rows × columns in the file

    Updated 3 November 2026. Real data: World Bank, World Development Indicators, NY.GDP.MKTP.CD (GDP, current US$).

    textnumberdateyes/no
    Rows5,208in the file
    Columns6with a data dictionary below
    Dates2000 – 2023range in the file
    LicenceCC BY 4.0credit the source

    What is in it

    Gross domestic product by country and year (current US$) from the World Bank's World Development Indicators, one row per country per year, with blanks where no value is published.

    Countries and economies only: regional and income aggregates are removed. Blank = no value published for that year.

    First rows

    point at a column to light it up

    countrytextiso3textregiontextincome_grouptextyearnumbergdp_usdnumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20003521418060
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20012813571754
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20023825701439
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20034520946819
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20045224896719
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20056203256539
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20066971758282
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20079747886187
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200810109297048
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200912416152732

    Ten largest economies, 2023

    USD, trillions

    United States27.81China18.27Germany4.56Japan4.38India3.50United Kingdom3.42France3.06Italy2.32Canada2.20Brazil2.19
    Show as a table
    iso3value
    United States27.81
    China18.27
    Germany4.56
    Japan4.38
    India3.50
    United Kingdom3.42
    France3.06
    Italy2.32
    Canada2.20
    Brazil2.19
    Source: World Bank, World Development Indicators, NY.GDP.MKTP.CD (GDP, current US$).

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy (World Bank name)
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearintegerYear
    gdp_usdintegerGDP in current U.S. dollars, rounded to the dollar

    Practice questions

    answers checked in SQL and in Python

    The five largest economies by GDP (current US$) in 2023?

    United States $27.81 trillion; China $18.27 trillion; Germany $4.56 trillion; Japan $4.38 trillion; India $3.50 trillion

    SQL

    SELECT country, gdp_usd FROM world_gdp WHERE year=2023 AND gdp_usd IS NOT NULL ORDER BY gdp_usd DESC LIMIT 5

    File: world-gdp

    How many countries have no GDP value for 2023?

    13 of 217

    SQL

    SELECT COUNT(*) FROM world_gdp WHERE year=2023 AND gdp_usd IS NULL

    File: world-gdp