DataBrighten

    Portfolio equity, net inflows (BoP, current US$)

    6,186 × 6rows × columns: 186 countries, 1960 to 2025

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

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

    What it measures

    Portfolio equity includes net inflows from equity securities other than those recorded as direct investment and including shares, stocks, depository receipts (American or global), and direct purchases of shares in local stock markets by foreign investors. Data are in current U.S. dollars.

    Limits and exceptions (World Bank note)

    Portfolio investors typically have less of a role in the decision making of the enterprise with potentially important implications for future flows and for the volatility of the price and volume of positions. Portfolio investment differs from other investment in that it provides a direct way to access financial markets, and thus it can provide liquidity and flexibility. It is associated with financial markets and with their specialized service providers, such as exchanges, dealers, and regulators. The nature of financial derivatives as instruments through which risk is traded in its own right in financial markets sets them apart from other types of investment. Whereas other instruments may also have risk transfer elements, these other instruments also provide financial or other resources. 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 issuan

    The numbers in 2025

    In 2025, 104 countries have a value. The highest is United States (748.76 billion); the lowest is India (-18.54 billion). The median country value is 4.37 million. The World Bank's World aggregate for 2025 is 1.88 trillion.

    Top 10 countries, 2025

    BoP, current US$

    Source: World Bank, BX.PEF.TOTL.CD.WD, retrieved 19 November 2026. Computed from portfolio-equity-net-inflows-bop-current-usd.csv.

    Highest, 2025

    #CountryValue
    1United States748.76 billion
    2Luxembourg543.15 billion
    3Ireland397.03 billion
    4Japan57.42 billion
    5United Kingdom46.30 billion
    6China35.76 billion
    7Hong Kong SAR, China19.64 billion
    8Spain19.05 billion
    9Australia18.94 billion
    10France11.52 billion

    Lowest, 2025

    #CountryValue
    1India-18.54 billion
    2Germany-18.32 billion
    3Canada-12.55 billion
    4Korea, Rep.-5.75 billion
    5Brazil-4.95 billion
    6Mexico-4.68 billion
    7Russian Federation-3.76 billion
    8Poland-3.59 billion
    9Chile-3.14 billion
    10Malaysia-2.71 billion
    How many countries report, by decade
    DecadeMost countries in one year
    1960s8
    1970s124
    1980s140
    1990s120
    2000s123
    2010s132
    2020s136

    World aggregate by year

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

    YearWorld
    20251.88 trillion
    2024991.26 billion
    2023274.33 billion
    202242.50 billion
    20211.41 trillion
    20201.16 trillion
    2019400.83 billion
    2018348.84 billion
    20171.29 trillion
    2016173.76 billion
    2015642.07 billion
    20141.19 trillion

    By region, 2025

    World Bank regionValue
    Europe & Central Asia1.03 trillion
    North America736.21 billion
    East Asia & Pacific130.97 billion
    Middle East, North Africa, Afghanistan & Pakistan14.62 billion
    Sub-Saharan Africa -459.34 million
    Latin America & Caribbean -12.64 billion
    South Asia-18.73 billion

    First rows

    portfolio-equity-net-inflows-bop-current-usd.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19790
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19800
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19810
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19820
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19830
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19840
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19850
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19860

    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
    valuenumberPortfolio equity, 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 748.76 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("portfolio-equity-net-inflows-bop-current-usd.csv"))

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

    File: portfolio-equity-net-inflows-bop-current-usd.csv

    How many countries report a value for 2025?

    104 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("portfolio-equity-net-inflows-bop-current-usd.csv"))

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

    File: portfolio-equity-net-inflows-bop-current-usd.csv

    What is the median across countries in 2025?

    4.37 million (median of the 104 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("portfolio-equity-net-inflows-bop-current-usd.csv"))

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

    File: portfolio-equity-net-inflows-bop-current-usd.csv

    Which country rose the most between 2015 and 2025?

    United States: from -187.31 billion to 748.76 billion, a rise of 936.07 billion (out of 99 countries with both years).

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

    Use the wide file (portfolio-equity-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("portfolio-equity-net-inflows-bop-current-usd.csv"))

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

    File: portfolio-equity-net-inflows-bop-current-usd.csv

    Which year has the most countries reporting?

    1985, with 140 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("portfolio-equity-net-inflows-bop-current-usd.csv"))

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

    File: portfolio-equity-net-inflows-bop-current-usd.csv