DataBrighten

    Foreign assets (current US$)

    3,831 × 6rows × columns: 150 countries, 1995 to 2020

    Real data: World Bank, Wealth Accounts, indicator NW.NFA.TO.CD, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows3,831country-year values
    Countries150with at least one value
    Years1995 – 202026 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Nominal foreign financial assets include portfolio equity, foreign direct investment (FDI), debt assets, financial derivatives, and foreign exchange reserves (excluding gold). The values are reported in current US dollars, obtained directly from the External Wealth of Nations (EWN) database.

    The numbers in 2020

    In 2020, 150 countries have a value. The highest is United States (31.55 trillion); the lowest is Sao Tome and Principe (236.00 million). The median country value is 35.88 billion.

    Top 10 countries, 2020

    current US$

    Source: World Bank, NW.NFA.TO.CD, retrieved 19 November 2026. Computed from foreign-assets-current-usd.csv.

    Highest, 2020

    #CountryValue
    1United States31.55 trillion
    2United Kingdom17.35 trillion
    3Luxembourg13.62 trillion
    4Germany12.66 trillion
    5Netherlands11.35 trillion
    6Japan11.00 trillion
    7France9.77 trillion
    8China8.74 trillion
    9Ireland8.31 trillion
    10Switzerland5.93 trillion

    Lowest, 2020

    #CountryValue
    1Sao Tome and Principe236.00 million
    2Comoros354.00 million
    3Central African Republic582.00 million
    4Belize605.00 million
    5Chad643.00 million
    6Liberia660.00 million
    7Gambia, The673.00 million
    8Burundi844.00 million
    9Guinea-Bissau926.00 million
    10Solomon Islands940.00 million
    How many countries report, by decade
    DecadeMost countries in one year
    1990s145
    2000s149
    2010s150
    2020s150

    First rows

    foreign-assets-current-usd.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AlbaniaALBEurope & Central AsiaUpper middle income1995521000000
    AlbaniaALBEurope & Central AsiaUpper middle income1996662000000
    AlbaniaALBEurope & Central AsiaUpper middle income1997615000000
    AlbaniaALBEurope & Central AsiaUpper middle income1998779000000
    AlbaniaALBEurope & Central AsiaUpper middle income1999981000000
    AlbaniaALBEurope & Central AsiaUpper middle income20001129000000
    AlbaniaALBEurope & Central AsiaUpper middle income20011407000000
    AlbaniaALBEurope & Central AsiaUpper middle income20021505000000

    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
    valuenumberForeign assets (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 2020?

    United States, with 31.55 trillion.

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

    =FILTER(A2:A100000,(E2:E100000=2020)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2020)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2020
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2020);

    pandas (df = pd.read_csv("foreign-assets-current-usd.csv"))

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

    File: foreign-assets-current-usd.csv

    How many countries report a value for 2020?

    150 of the 217 economies in the file's country list.

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

    =COUNTIF(E2:E100000,2020)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2020;

    pandas (df = pd.read_csv("foreign-assets-current-usd.csv"))

    (df.year == 2020).sum()

    File: foreign-assets-current-usd.csv

    What is the median across countries in 2020?

    35.88 billion (median of the 150 country values; not a World Bank aggregate).

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

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2020))

    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 = 2020 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2020) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2020));

    pandas (df = pd.read_csv("foreign-assets-current-usd.csv"))

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

    File: foreign-assets-current-usd.csv

    Which country rose the most between 2010 and 2020?

    United States: from 21.40 trillion to 31.55 trillion, a rise of 10.15 trillion (out of 149 countries with both years).

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

    Use the wide file (foreign-assets-current-usd-wide.csv): add a column = [2020] - [2010], 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 = 2010 AND b.year = 2020 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("foreign-assets-current-usd.csv"))

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

    File: foreign-assets-current-usd.csv

    Which year has the most countries reporting?

    2020, with 150 countries.

    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("foreign-assets-current-usd.csv"))

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

    File: foreign-assets-current-usd.csv