DataBrighten

    Foreign liabilities (real chained 2019 US$)

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

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

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

    What it measures

    Foreign financial liabilities include portfolio equity, FDI, debt liabilities, and financial derivatives. These liabilities are reported in real chained 2019 US dollars, adjusted for inflation using the consumer price index (CPI).

    The numbers in 2020

    In 2020, 149 countries have a value. The highest is United States (46.18 trillion); the lowest is Comoros (377.36 million). The median country value is 73.11 billion.

    Top 10 countries, 2020

    real chained 2019 US$

    Source: World Bank, NW.NFL.TO, retrieved 19 November 2026. Computed from foreign-liabilities-real-chained-2019-usd.csv.

    Highest, 2020

    #CountryValue
    1United States46.18 trillion
    2United Kingdom17.70 trillion
    3Luxembourg13.46 trillion
    4France10.74 trillion
    5Netherlands10.15 trillion
    6Germany10.13 trillion
    7Ireland9.15 trillion
    8Japan7.62 trillion
    9China6.42 trillion
    10Switzerland5.16 trillion

    Lowest, 2020

    #CountryValue
    1Comoros377.36 million
    2Solomon Islands809.02 million
    3Guinea-Bissau1.51 billion
    4Liberia1.70 billion
    5Eswatini2.02 billion
    6Gambia, The2.08 billion
    7Lesotho2.14 billion
    8Central African Republic2.22 billion
    9St. Lucia2.89 billion
    10Sierra Leone3.07 billion
    How many countries report, by decade
    DecadeMost countries in one year
    1990s143
    2000s148
    2010s150
    2020s149

    First rows

    foreign-liabilities-real-chained-2019-usd.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AlbaniaALBEurope & Central AsiaUpper middle income19951814031926.54988
    AlbaniaALBEurope & Central AsiaUpper middle income19961902073512.3907
    AlbaniaALBEurope & Central AsiaUpper middle income19971533266157.65049
    AlbaniaALBEurope & Central AsiaUpper middle income19981567674802.70804
    AlbaniaALBEurope & Central AsiaUpper middle income19991862023353.99306
    AlbaniaALBEurope & Central AsiaUpper middle income20002583690927.85807
    AlbaniaALBEurope & Central AsiaUpper middle income20012870246705.95608
    AlbaniaALBEurope & Central AsiaUpper middle income20022875722435.83863

    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 liabilities (real chained 2019 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 46.18 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-liabilities-real-chained-2019-usd.csv"))

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

    File: foreign-liabilities-real-chained-2019-usd.csv

    How many countries report a value for 2020?

    149 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-liabilities-real-chained-2019-usd.csv"))

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

    File: foreign-liabilities-real-chained-2019-usd.csv

    What is the median across countries in 2020?

    73.11 billion (median of the 149 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-liabilities-real-chained-2019-usd.csv"))

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

    File: foreign-liabilities-real-chained-2019-usd.csv

    Which country rose the most between 2010 and 2020?

    United States: from 28.47 trillion to 46.18 trillion, a rise of 17.71 trillion (out of 148 countries with both years).

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

    Use the wide file (foreign-liabilities-real-chained-2019-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-liabilities-real-chained-2019-usd.csv"))

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

    File: foreign-liabilities-real-chained-2019-usd.csv

    Which year has the most countries reporting?

    2019, with 150 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("foreign-liabilities-real-chained-2019-usd.csv"))

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

    File: foreign-liabilities-real-chained-2019-usd.csv