Foreign direct investment, net inflows (% of GDP)
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.
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
Highest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Malta | 51.71 |
| 2 | Suriname | 45.36 |
| 3 | Guyana | 33.1 |
| 4 | Hong Kong SAR, China | 28.31 |
| 5 | Guinea | 27.39 |
| 6 | Cyprus | 27.08 |
| 7 | Singapore | 26.34 |
| 8 | Mozambique | 25.78 |
| 9 | Palau | 16.56 |
| 10 | Timor-Leste | 13.31 |
Lowest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Luxembourg | -32.68 |
| 2 | Hungary | -28.37 |
| 3 | Belgium | -3.97 |
| 4 | Papua New Guinea | -3.63 |
| 5 | Botswana | -3.26 |
| 6 | Trinidad and Tobago | -3.06 |
| 7 | Iraq | -2.99 |
| 8 | Estonia | -2.19 |
| 9 | Iceland | -2.16 |
| 10 | Austria | -2.02 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1970s | 133 |
| 1980s | 153 |
| 1990s | 182 |
| 2000s | 195 |
| 2010s | 197 |
| 2020s | 196 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2025 | 1.42 |
| 2024 | 1.21 |
| 2023 | 0.869 |
| 2022 | 1.86 |
| 2021 | 2.51 |
| 2020 | 1.33 |
| 2019 | 2.15 |
| 2018 | 1.16 |
| 2017 | 2.71 |
| 2016 | 3.52 |
| 2015 | 3.61 |
| 2014 | 2.41 |
By region, 2025
| World Bank region | Value |
|---|---|
| Latin America & Caribbean | 2.78 |
| Middle East, North Africa, Afghanistan & Pakistan | 2.33 |
| Sub-Saharan Africa | 2.12 |
| East Asia & Pacific | 1.72 |
| North America | 1.14 |
| Europe & Central Asia | 1 |
| South Asia | 0.973 |
First rows
foreign-direct-investment-net-inflows-percent-of-gdp.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2000 | 0.00482760061734038 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2001 | 0.0241685679088889 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2002 | 1.30694987042884 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2003 | 1.27849325196424 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2004 | 3.577104200584 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2005 | 4.36867310434287 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2006 | 3.41377297323201 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2007 | 1.93570171391636 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Foreign 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