DataBrighten

    External balance on goods and services (current US$)

    9,045 × 6rows × columns: 194 countries, 1960 to 2025

    Real data: World Bank, World Development Indicators, indicator NE.RSB.GNFS.CD, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows9,045country-year values
    Countries194with at least one value
    Years1960 – 202566 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    The balance of international trade in goods and services is the difference between the exports and imports of goods and services. This indicator is expressed in current prices, meaning no adjustment has been made to account for price changes over time. This indicator is expressed in United States dollars.

    The numbers in 2025

    In 2025, 138 countries have a value. The highest is China (816.19 billion); the lowest is India (-68.92 billion). The median country value is -420.23 million.

    Top 10 countries, 2025

    current US$

    Source: World Bank, NE.RSB.GNFS.CD, retrieved 19 November 2026. Computed from external-balance-on-goods-and-services-current-usd.csv.

    Highest, 2025

    #CountryValue
    1China816.19 billion
    2Ireland289.94 billion
    3Singapore213.75 billion
    4Netherlands149.52 billion
    5Germany119.04 billion
    6Korea, Rep.96.70 billion
    7Switzerland93.33 billion
    8Spain72.91 billion
    9Russian Federation69.06 billion
    10Norway62.06 billion

    Lowest, 2025

    #CountryValue
    1India-68.92 billion
    2Philippines-66.70 billion
    3Ukraine-56.80 billion
    4United Kingdom-50.57 billion
    5Egypt, Arab Rep.-42.71 billion
    6Iran, Islamic Rep.-31.68 billion
    7Pakistan-29.42 billion
    8Bangladesh-26.09 billion
    9Colombia-24.70 billion
    10Romania-22.49 billion
    How many countries report, by decade
    DecadeMost countries in one year
    1960s77
    1970s107
    1980s127
    1990s163
    2000s179
    2010s185
    2020s184

    First rows

    external-balance-on-goods-and-services-current-usd.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1960-15555546.6666667
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1961-19999991.1111111
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1962-24444431.1111111
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1963-57777795.5555556
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1964-73333306.6666667
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1965-102222208.888889
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1966-139999993.333333
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1967-124444444.444444

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberExternal balance on goods and services (current US$), 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?

    China, with 816.19 billion.

    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("external-balance-on-goods-and-services-current-usd.csv"))

    y = df[df.year == 2025]
    y[y.value == y.value.max()][["country", "value"]]

    File: external-balance-on-goods-and-services-current-usd.csv

    How many countries report a value for 2025?

    138 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("external-balance-on-goods-and-services-current-usd.csv"))

    (df.year == 2025).sum()

    File: external-balance-on-goods-and-services-current-usd.csv

    What is the median across countries in 2025?

    -420.23 million (median of the 138 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("external-balance-on-goods-and-services-current-usd.csv"))

    df[df.year == 2025]["value"].median()

    File: external-balance-on-goods-and-services-current-usd.csv

    Which country rose the most between 2015 and 2025?

    China: from 358.84 billion to 816.19 billion, a rise of 457.35 billion (out of 137 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (external-balance-on-goods-and-services-current-usd-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("external-balance-on-goods-and-services-current-usd.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2025] - w[2015]).dropna().nlargest(1)

    File: external-balance-on-goods-and-services-current-usd.csv

    Which year has the most countries reporting?

    2018, with 185 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("external-balance-on-goods-and-services-current-usd.csv"))

    df.groupby("year").size().sort_values(ascending=False).head(1)

    File: external-balance-on-goods-and-services-current-usd.csv