DataBrighten

    International migrant stock, total

    1,720 × 6rows × columns: 215 countries, 1990 to 2024

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

    textnumberdateyes/no
    Rows1,720country-year values
    Countries215with at least one value
    Years1990 – 20248 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    International migrant stock, total is the number of people at mid-year born in a country other than that in which they live. It also includes refugees.

    Limits and exceptions (World Bank note)

    In deriving the estimates, an international migrant was equated to a person living in a country other than that in which he or she was born. That is, the number of international migrants, also called the international migrant stock, would represent the number of foreign-born persons enumerated in the countries or areas constituting the world. However, because several countries lack data on the foreign-born, data on the number of foreigners, if available, were used instead as the basis of estimation. Consequently, the overall number of migrants in world regions or at the global level do not quite represent the overall number of foreign-born persons. The disintegration and reunification of countries causes discontinuities in the change of the international migrant stock. Because an international migrant is equated with a person who was born outside the country in which he or she resides, when a country disintegrates, persons who had been internal migrants because they had moved from one part of the country to another may become, overnight, international migrants without having moved at that time. Such changes introduce artificial but unavoidable discontinuities in the trend of the i

    The numbers in 2024

    In 2024, 215 countries have a value. The highest is United States (52.38 million); the lowest is Tuvalu (246). The median country value is 248,930. The World Bank's World aggregate for 2024 is 303.40 million.

    Top 10 countries, 2024

    value

    Source: World Bank, SM.POP.TOTL, retrieved 19 November 2026. Computed from international-migrant-stock-total.csv.

    Highest, 2024

    #CountryValue
    1United States52.38 million
    2Germany16.75 million
    3Saudi Arabia13.68 million
    4United Kingdom11.85 million
    5France9.19 million
    6Spain8.87 million
    7Canada8.81 million
    8United Arab Emirates8.16 million
    9Australia8.11 million
    10Russian Federation7.61 million

    Lowest, 2024

    #CountryValue
    1Tuvalu246
    2Sao Tome and Principe1,955
    3Cuba2,144
    4Solomon Islands2,469
    5Naoero2,548
    6Micronesia, Fed. Sts.2,894
    7Kiribati3,302
    8Marshall Islands3,309
    9Vanuatu3,315
    10Tonga3,581
    How many countries report, by decade
    DecadeMost countries in one year
    1990s215
    2000s215
    2010s215
    2020s215

    World aggregate by year

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

    YearWorld
    2024303.40 million
    2020274.71 million
    2015249.52 million
    2010220.53 million
    2005192.34 million
    2000174.17 million
    1995162.85 million
    1990153.65 million

    By region, 2024

    World Bank regionValue
    Europe & Central Asia105.63 million
    North America61.20 million
    Middle East, North Africa, Afghanistan & Pakistan52.26 million
    East Asia & Pacific32.48 million
    Sub-Saharan Africa 26.30 million
    Latin America & Caribbean 17.18 million
    South Asia8.34 million

    First rows

    international-migrant-stock-total.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199057686
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199571522
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200075917
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income200587314
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2010102276
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2015339432
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income2020144098
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income202498110

    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
    valuenumberInternational migrant stock, total, 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 2024?

    United States, with 52.38 million.

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

    =FILTER(A2:A100000,(E2:E100000=2024)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2024)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2024
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2024);

    pandas (df = pd.read_csv("international-migrant-stock-total.csv"))

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

    File: international-migrant-stock-total.csv

    How many countries report a value for 2024?

    215 of the 217 economies in the file's country list.

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

    =COUNTIF(E2:E100000,2024)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2024;

    pandas (df = pd.read_csv("international-migrant-stock-total.csv"))

    (df.year == 2024).sum()

    File: international-migrant-stock-total.csv

    What is the median across countries in 2024?

    248,930 (median of the 215 country values; not a World Bank aggregate).

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

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2024))

    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 = 2024 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2024) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2024));

    pandas (df = pd.read_csv("international-migrant-stock-total.csv"))

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

    File: international-migrant-stock-total.csv

    Which country rose the most between 2015 and 2024?

    United States: from 47.94 million to 52.38 million, a rise of 4.43 million (out of 215 countries with both years).

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

    Use the wide file (international-migrant-stock-total-wide.csv): add a column = [2024] - [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 = 2024 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("international-migrant-stock-total.csv"))

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

    File: international-migrant-stock-total.csv

    Which year has the most countries reporting?

    2024, with 215 countries.

    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("international-migrant-stock-total.csv"))

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

    File: international-migrant-stock-total.csv