DataBrighten

    Net migration

    14,322 × 6rows × columns: 217 countries, 1960 to 2025

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

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

    What it measures

    Net migration is the net total of migrants during the period, that is, the number of immigrants minus the number of emigrants, including both citizens and noncitizens.

    Limits and exceptions (World Bank note)

    International migration is the component of population change most difficult to measure and estimate reliably. Thus, the quality and quantity of the data used in the estimation and projection of net migration varies considerably by country. Furthermore, the movement of people across international boundaries, which is very often a response to changing socio-economic, political and environmental forces, is subject to a great deal of volatility. Refugee movements, for instance, may involve large numbers of people moving across boundaries in a short time. For these reasons, projections of future international migration levels are the least robust part of current population projections and reflect mainly a continuation of recent levels and trends in net migration.

    The numbers in 2025

    In 2025, 217 countries have a value. The highest is Ukraine (1.70 million); the lowest is Pakistan (-1.24 million). The median country value is -1,051.

    Top 10 countries, 2025

    value

    Source: World Bank, SM.POP.NETM, retrieved 19 November 2026. Computed from net-migration.csv.

    Highest, 2025

    #CountryValue
    1Ukraine1.70 million
    2United States1.23 million
    3Syrian Arab Republic421,693
    4United Kingdom389,911
    5Canada326,204
    6Sudan291,469
    7Malaysia166,615
    8United Arab Emirates158,634
    9South Africa146,370
    10Japan140,579

    Lowest, 2025

    #CountryValue
    1Pakistan-1.24 million
    2India-495,753
    3Bangladesh-402,100
    4Nepal-364,699
    5Germany-334,072
    6Poland-330,820
    7Jordan-303,267
    8China-268,126
    9Turkiye-258,205
    10Russian Federation-251,822
    How many countries report, by decade
    DecadeMost countries in one year
    1960s217
    1970s217
    1980s217
    1990s217
    2000s217
    2010s217
    2020s217

    By region, 2025

    World Bank regionValue
    North America1.56 million
    Europe & Central Asia1.18 million
    East Asia & Pacific-37,630
    Sub-Saharan Africa -223,909
    Latin America & Caribbean -401,848
    Middle East, North Africa, Afghanistan & Pakistan-775,711
    South Asia-1.30 million

    First rows

    net-migration.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19602606
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19616109
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19627016
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19636681
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19647079
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income196510695
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19663563
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19676824

    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
    valuenumberNet migration, 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?

    Ukraine, with 1.70 million.

    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("net-migration.csv"))

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

    File: net-migration.csv

    How many countries report a value for 2025?

    217 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("net-migration.csv"))

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

    File: net-migration.csv

    What is the median across countries in 2025?

    -1,051 (median of the 217 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("net-migration.csv"))

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

    File: net-migration.csv

    Which country rose the most between 2015 and 2025?

    Ukraine: from -21,992 to 1.70 million, a rise of 1.72 million (out of 217 countries with both years).

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

    Use the wide file (net-migration-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("net-migration.csv"))

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

    File: net-migration.csv

    Which year has the most countries reporting?

    2025, with 217 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("net-migration.csv"))

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

    File: net-migration.csv