International migrant stock, total
Real data: World Bank, World Development Indicators, indicator SM.POP.TOTL, retrieved 19 November 2026. Values are as published; we only reshaped the file.
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
Highest, 2024
| # | Country | Value |
|---|---|---|
| 1 | United States | 52.38 million |
| 2 | Germany | 16.75 million |
| 3 | Saudi Arabia | 13.68 million |
| 4 | United Kingdom | 11.85 million |
| 5 | France | 9.19 million |
| 6 | Spain | 8.87 million |
| 7 | Canada | 8.81 million |
| 8 | United Arab Emirates | 8.16 million |
| 9 | Australia | 8.11 million |
| 10 | Russian Federation | 7.61 million |
Lowest, 2024
| # | Country | Value |
|---|---|---|
| 1 | Tuvalu | 246 |
| 2 | Sao Tome and Principe | 1,955 |
| 3 | Cuba | 2,144 |
| 4 | Solomon Islands | 2,469 |
| 5 | Naoero | 2,548 |
| 6 | Micronesia, Fed. Sts. | 2,894 |
| 7 | Kiribati | 3,302 |
| 8 | Marshall Islands | 3,309 |
| 9 | Vanuatu | 3,315 |
| 10 | Tonga | 3,581 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1990s | 215 |
| 2000s | 215 |
| 2010s | 215 |
| 2020s | 215 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2024 | 303.40 million |
| 2020 | 274.71 million |
| 2015 | 249.52 million |
| 2010 | 220.53 million |
| 2005 | 192.34 million |
| 2000 | 174.17 million |
| 1995 | 162.85 million |
| 1990 | 153.65 million |
By region, 2024
| World Bank region | Value |
|---|---|
| Europe & Central Asia | 105.63 million |
| North America | 61.20 million |
| Middle East, North Africa, Afghanistan & Pakistan | 52.26 million |
| East Asia & Pacific | 32.48 million |
| Sub-Saharan Africa | 26.30 million |
| Latin America & Caribbean | 17.18 million |
| South Asia | 8.34 million |
First rows
international-migrant-stock-total.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1990 | 57686 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1995 | 71522 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2000 | 75917 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2005 | 87314 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2010 | 102276 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2015 | 339432 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2020 | 144098 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2024 | 98110 |
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 | International 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