Net migration
Real data: World Bank, World Development Indicators, indicator SM.POP.NETM, retrieved 19 November 2026. Values are as published; we only reshaped the file.
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
Highest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Ukraine | 1.70 million |
| 2 | United States | 1.23 million |
| 3 | Syrian Arab Republic | 421,693 |
| 4 | United Kingdom | 389,911 |
| 5 | Canada | 326,204 |
| 6 | Sudan | 291,469 |
| 7 | Malaysia | 166,615 |
| 8 | United Arab Emirates | 158,634 |
| 9 | South Africa | 146,370 |
| 10 | Japan | 140,579 |
Lowest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Pakistan | -1.24 million |
| 2 | India | -495,753 |
| 3 | Bangladesh | -402,100 |
| 4 | Nepal | -364,699 |
| 5 | Germany | -334,072 |
| 6 | Poland | -330,820 |
| 7 | Jordan | -303,267 |
| 8 | China | -268,126 |
| 9 | Turkiye | -258,205 |
| 10 | Russian Federation | -251,822 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1960s | 217 |
| 1970s | 217 |
| 1980s | 217 |
| 1990s | 217 |
| 2000s | 217 |
| 2010s | 217 |
| 2020s | 217 |
By region, 2025
| World Bank region | Value |
|---|---|
| North America | 1.56 million |
| Europe & Central Asia | 1.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
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1960 | 2606 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1961 | 6109 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1962 | 7016 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1963 | 6681 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1964 | 7079 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1965 | 10695 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1966 | 3563 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1967 | 6824 |
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 | Net 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