Foreign direct investment, net inflows (BoP, current US$)
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.
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$
Highest, 2025
| # | Country | Value |
|---|---|---|
| 1 | United States | 307.02 billion |
| 2 | Singapore | 159.09 billion |
| 3 | Hong Kong SAR, China | 120.98 billion |
| 4 | Germany | 95.19 billion |
| 5 | China | 79.98 billion |
| 6 | Brazil | 77.68 billion |
| 7 | Ireland | 75.00 billion |
| 8 | Canada | 70.13 billion |
| 9 | France | 61.10 billion |
| 10 | United Arab Emirates | 48.24 billion |
Lowest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Hungary | -69.94 billion |
| 2 | Luxembourg | -33.06 billion |
| 3 | Belgium | -28.79 billion |
| 4 | Austria | -11.68 billion |
| 5 | Iraq | -7.62 billion |
| 6 | Norway | -7.08 billion |
| 7 | South Africa | -2.16 billion |
| 8 | Papua New Guinea | -1.18 billion |
| 9 | Estonia | -1.03 billion |
| 10 | Kazakhstan | -916.40 million |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1970s | 147 |
| 1980s | 159 |
| 1990s | 186 |
| 2000s | 197 |
| 2010s | 200 |
| 2020s | 202 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2025 | 1.80 trillion |
| 2024 | 1.37 trillion |
| 2023 | 952.07 billion |
| 2022 | 1.96 trillion |
| 2021 | 2.52 trillion |
| 2020 | 1.17 trillion |
| 2019 | 1.94 trillion |
| 2018 | 1.04 trillion |
| 2017 | 2.25 trillion |
| 2016 | 2.75 trillion |
| 2015 | 2.79 trillion |
| 2014 | 1.97 trillion |
By region, 2025
| World Bank region | Value |
|---|---|
| East Asia & Pacific | 577.92 billion |
| North America | 376.97 billion |
| Europe & Central Asia | 322.37 billion |
| Latin America & Caribbean | 276.31 billion |
| Middle East, North Africa, Afghanistan & Pakistan | 155.19 billion |
| Sub-Saharan Africa | 46.92 billion |
| South Asia | 44.53 billion |
First rows
foreign-direct-investment-net-inflows-bop-current-usd.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1970 | 230000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1971 | 450000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1972 | 150000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1973 | 270000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1976 | 40000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1977 | -240000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1979 | 1200000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1980 | 9000000 |
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 (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