DataBrighten

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

    9,791 × 6rows × columns: 205 countries, 1970 to 2025

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

    textnumberdateyes/no
    Rows9,791country-year values
    Countries205with at least one value
    Years1970 – 202556 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Foreign direct investment refers to direct investment equity flows in the reporting economy. It is the sum of equity capital, reinvestment of earnings, and other capital. 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 ordinary shares of voting stock is the criterion for determining the existence of a direct investment relationship. Data are in current U.S. dollars.

    Limits and exceptions (World Bank note)

    FDI data do not give a complete picture of international investment in an economy. Balance of payments data on FDI do not include capital raised locally, an important source of investment financing in some developing countries. In addition, FDI data omit nonequity cross-border transactions such as intra-unit flows of goods and services. The volume of global private financial flows reported by the World Bank generally differs from that reported by other sources because of differences in sources, classification of economies, and method used to adjust and disaggregate reported information. In addition, particularly for debt financing, differences may also reflect how some installments of the transactions and certain offshore issuances are treated. Data on equity flows are shown for all countries for which data are available.

    The numbers in 2025

    In 2025, 200 countries have a value. The highest is United States (307.02 billion); the lowest is Hungary (-69.94 billion). The median country value is 885.95 million. The World Bank's World aggregate for 2025 is 1.80 trillion.

    Top 10 countries, 2025

    BoP, current US$

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

    Highest, 2025

    #CountryValue
    1United States307.02 billion
    2Singapore159.09 billion
    3Hong Kong SAR, China120.98 billion
    4Germany95.19 billion
    5China79.98 billion
    6Brazil77.68 billion
    7Ireland75.00 billion
    8Canada70.13 billion
    9France61.10 billion
    10United Arab Emirates48.24 billion

    Lowest, 2025

    #CountryValue
    1Hungary-69.94 billion
    2Luxembourg-33.06 billion
    3Belgium-28.79 billion
    4Austria-11.68 billion
    5Iraq-7.62 billion
    6Norway-7.08 billion
    7South Africa-2.16 billion
    8Papua New Guinea-1.18 billion
    9Estonia-1.03 billion
    10Kazakhstan-916.40 million
    How many countries report, by decade
    DecadeMost countries in one year
    1970s147
    1980s159
    1990s186
    2000s197
    2010s200
    2020s202

    World aggregate by year

    As published by the World Bank (in the regions file, not the country file).

    YearWorld
    20251.80 trillion
    20241.37 trillion
    2023952.07 billion
    20221.96 trillion
    20212.52 trillion
    20201.17 trillion
    20191.94 trillion
    20181.04 trillion
    20172.25 trillion
    20162.75 trillion
    20152.79 trillion
    20141.97 trillion

    By region, 2025

    World Bank regionValue
    East Asia & Pacific577.92 billion
    North America376.97 billion
    Europe & Central Asia322.37 billion
    Latin America & Caribbean 276.31 billion
    Middle East, North Africa, Afghanistan & Pakistan155.19 billion
    Sub-Saharan Africa 46.92 billion
    South Asia44.53 billion

    First rows

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

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1970230000
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1971450000
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1972150000
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1973270000
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income197640000
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1977-240000
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19791200000
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19809000000

    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 inflows (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?

    United States, with 307.02 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-inflows-bop-current-usd.csv"))

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

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

    How many countries report a value for 2025?

    200 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-inflows-bop-current-usd.csv"))

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

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

    What is the median across countries in 2025?

    885.95 million (median of the 200 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-inflows-bop-current-usd.csv"))

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

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

    Which country rose the most between 2015 and 2025?

    Singapore: from 69.77 billion to 159.09 billion, a rise of 89.31 billion (out of 197 countries with both years).

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

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

    Which year has the most countries reporting?

    2021, with 202 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-inflows-bop-current-usd.csv"))

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

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