DataBrighten

    Foreign direct investment, net (BoP, current US$)

    7,339 × 6rows × columns: 199 countries, 1960 to 2025

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

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

    What it measures

    Foreign direct investment is a category of cross-border investment associated with a resident in one economy having control or a significant degree of influence on the management of an enterprise that is resident in another economy. Ownership of 10 percent or more of the voting power is evidence of a direct investment relationship. 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 Luxembourg (224.52 billion); the lowest is Singapore (-64.89 billion). The median country value is -698.88 million.

    Top 10 countries, 2025

    BoP, current US$

    Source: World Bank, BN.KLT.DINV.CD, retrieved 19 November 2026. Computed from foreign-direct-investment-net-bop-current-usd.csv.

    Highest, 2025

    #CountryValue
    1Luxembourg224.52 billion
    2Japan171.95 billion
    3Netherlands117.36 billion
    4United States82.58 billion
    5China77.23 billion
    6Denmark35.81 billion
    7France35.57 billion
    8Switzerland32.29 billion
    9Korea, Rep.25.43 billion
    10Italy22.02 billion

    Lowest, 2025

    #CountryValue
    1Singapore-64.89 billion
    2Brazil-47.50 billion
    3Australia-44.19 billion
    4Mexico-31.60 billion
    5United Kingdom-28.16 billion
    6Viet Nam-21.29 billion
    7Hong Kong SAR, China-21.13 billion
    8Russian Federation-16.59 billion
    9Egypt, Arab Rep.-14.76 billion
    10Indonesia-14.55 billion
    How many countries report, by decade
    DecadeMost countries in one year
    1960s6
    1970s90
    1980s110
    1990s144
    2000s182
    2010s188
    2020s182

    First rows

    foreign-direct-investment-net-bop-current-usd.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2008-47951776.133526
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2009-55860135.4655666
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2010-192022479.468454
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2011-51036283.6112608
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2012-65684511.343893
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2013-47774027.0095906
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2014-42994416.2107173
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2015-166983554.911685

    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 direct investment, net (BoP, 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?

    Luxembourg, with 224.52 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("foreign-direct-investment-net-bop-current-usd.csv"))

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

    File: foreign-direct-investment-net-bop-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("foreign-direct-investment-net-bop-current-usd.csv"))

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

    File: foreign-direct-investment-net-bop-current-usd.csv

    What is the median across countries in 2025?

    -698.88 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("foreign-direct-investment-net-bop-current-usd.csv"))

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

    File: foreign-direct-investment-net-bop-current-usd.csv

    Which country rose the most between 2015 and 2025?

    United States: from -209.36 billion to 82.58 billion, a rise of 291.94 billion (out of 136 countries with both years).

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

    Use the wide file (foreign-direct-investment-net-bop-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("foreign-direct-investment-net-bop-current-usd.csv"))

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

    File: foreign-direct-investment-net-bop-current-usd.csv

    Which year has the most countries reporting?

    2014, with 188 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-direct-investment-net-bop-current-usd.csv"))

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

    File: foreign-direct-investment-net-bop-current-usd.csv