DataBrighten

    Foreign direct investment, net inflows (% of GDP)

    9,427 × 6rows × columns: 203 countries, 1970 to 2025

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

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

    What it measures

    Foreign direct investment is the net inflows of investment to acquire a lasting management interest (10 percent or more of voting stock) in an enterprise operating in an economy other than that of the investor. It is the sum of equity capital, reinvestment of earnings, other long-term capital, and short-term capital as shown in the balance of payments. This series shows net inflows (new investment inflows less disinvestment) in the reporting economy from foreign investors, and is divided by GDP.

    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, 184 countries have a value. The highest is Malta (51.71); the lowest is Luxembourg (-32.68). The median country value is 2.04. The World Bank's World aggregate for 2025 is 1.42.

    Top 10 countries, 2025

    % of GDP

    Source: World Bank, BX.KLT.DINV.WD.GD.ZS, retrieved 19 November 2026. Computed from foreign-direct-investment-net-inflows-percent-of-gdp.csv.

    Highest, 2025

    #CountryValue
    1Malta51.71
    2Suriname45.36
    3Guyana33.1
    4Hong Kong SAR, China28.31
    5Guinea27.39
    6Cyprus27.08
    7Singapore26.34
    8Mozambique25.78
    9Palau16.56
    10Timor-Leste13.31

    Lowest, 2025

    #CountryValue
    1Luxembourg-32.68
    2Hungary-28.37
    3Belgium-3.97
    4Papua New Guinea-3.63
    5Botswana-3.26
    6Trinidad and Tobago-3.06
    7Iraq-2.99
    8Estonia-2.19
    9Iceland-2.16
    10Austria-2.02
    How many countries report, by decade
    DecadeMost countries in one year
    1970s133
    1980s153
    1990s182
    2000s195
    2010s197
    2020s196

    World aggregate by year

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

    YearWorld
    20251.42
    20241.21
    20230.869
    20221.86
    20212.51
    20201.33
    20192.15
    20181.16
    20172.71
    20163.52
    20153.61
    20142.41

    By region, 2025

    World Bank regionValue
    Latin America & Caribbean 2.78
    Middle East, North Africa, Afghanistan & Pakistan2.33
    Sub-Saharan Africa 2.12
    East Asia & Pacific1.72
    North America1.14
    Europe & Central Asia1
    South Asia0.973

    First rows

    foreign-direct-investment-net-inflows-percent-of-gdp.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20000.00482760061734038
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20010.0241685679088889
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20021.30694987042884
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20031.27849325196424
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20043.577104200584
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20054.36867310434287
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20063.41377297323201
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20071.93570171391636

    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 (% of GDP), 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?

    Malta, with 51.71.

    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-percent-of-gdp.csv"))

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

    File: foreign-direct-investment-net-inflows-percent-of-gdp.csv

    How many countries report a value for 2025?

    184 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-percent-of-gdp.csv"))

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

    File: foreign-direct-investment-net-inflows-percent-of-gdp.csv

    What is the median across countries in 2025?

    2.04 (median of the 184 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-percent-of-gdp.csv"))

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

    File: foreign-direct-investment-net-inflows-percent-of-gdp.csv

    Which country rose the most between 2015 and 2025?

    Suriname: from 3.58 to 45.36, a rise of 41.77 (out of 181 countries with both years).

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

    Use the wide file (foreign-direct-investment-net-inflows-percent-of-gdp-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-percent-of-gdp.csv"))

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

    File: foreign-direct-investment-net-inflows-percent-of-gdp.csv

    Which year has the most countries reporting?

    2014, with 197 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-percent-of-gdp.csv"))

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

    File: foreign-direct-investment-net-inflows-percent-of-gdp.csv