International migrant stock by country of destination and origin, 1990-2024 (UN DESA)
How many international migrants live in each country and where they come from: the United Nations' estimates of the international migrant stock at mid-year for 1990, 1995, 2000, 2005, 2010, 2015, 2020 and 2024, by sex, for 233 countries and areas, the world and UN regional, development and income groupings. Three tables: by country of destination (with total population and migrants as a share of it), by country of origin, and destination by origin. From International Migrant Stock 2024 (UN DESA, Population Division).
International migrants living in each country or region (destination), by sex, with total population and migrants as % of population, 1990-2024
Field
Type
Description
location_code
integer
UN location code (M49 for countries and areas; 900 is the world; aggregates use the UN's own codes).
location
string
Country, area or aggregate name as the UN writes it (the source's trailing "*" removed; the six geographic regions written in normal case).
loc_type
string
Country/Area, World, Geographic region, Subregion, SDG region, Development group, Income group or Special group (landlocked developing countries and small island developing states). Aggregates overlap: sum only Country/Area rows.
is_aggregate
boolean
true for the world and every UN grouping; false for countries and areas.
year
year
Reference year; estimates are at mid-year (1 July).
migrants
integer
International migrant stock at mid-year, both sexes: people living in the country who were born abroad or, where the country has only citizenship data, who are foreign citizens (see estimate_basis). Refugees and asylum seekers may already be included in the underlying data; refugees_added identifies separate additions, not whether these groups are present. See un_note for coverage exceptions.
migrants_male
integer
International migrant stock at mid-year, males.
migrants_female
integer
International migrant stock at mid-year, females.
population
integer
Total population at mid-year, persons (UN Table 2, published in thousands with three decimals, multiplied by 1,000 and rounded), from World Population Prospects 2024.
migrants_pct_population
number
International migrant stock as a percentage of the total population, both sexes, as published by the UN (Table 3), rounded to three decimals. Source values slightly exceed 100 for Bonaire, Sint Eustatius and Saba in 2010, 2020 and 2024; the archived material does not explain the discrepancies.
estimate_basis
string
What the country's estimates were derived from, from the UN's data type code: foreign-born, foreign citizens, foreign-born + foreign citizens (both kinds of data used), or imputed (no data on international migrants; the UN imputed the estimates). Empty for aggregates.
refugees_added
boolean
true where the UN added refugees, people in refugee-like situations, asylum seekers or Venezuelans displaced abroad, as reported by UNHCR (or UNRWA for Palestine refugees), to the estimates (data type code R). False means the source does not flag a separate addition; it does not establish that refugees are excluded. The source flag applies to the country's series as a whole. Empty for aggregates.
data_type_code
string
The UN's data type code as published: B foreign-born, C foreign citizens, R refugees added, I imputed. Empty for aggregates.
un_note
string
The UN's country footnote on coverage, where there is one (for example which territories' natives count as migrants).
International migrants born in (or citizens of) each country or region (origin), by sex, 1990-2024
Field
Type
Description
location_code
integer
UN location code of the place of origin (as in by-destination.csv); 2003 is Other.
location
string
Country, area or aggregate of origin. Other holds migrants the UN does not assign to a specific country or area of origin.
loc_type
string
As in by-destination.csv, plus Other.
is_aggregate
boolean
true for the world and UN groupings; false for countries, areas and Other.
year
year
Reference year; estimates are at mid-year (1 July).
migrants
integer
International migrants from this origin living in other countries at mid-year, both sexes.
migrants_male
integer
Males.
migrants_female
integer
Females.
International migrant stock by destination and origin, by sex, 1990-2024
Field
Type
Description
year
year
Reference year; estimates are at mid-year (1 July).
destination_code
integer
UN location code of the country, area or aggregate where the migrants live.
destination
string
Name of the destination.
destination_is_aggregate
boolean
true if the destination is the world or a UN grouping.
origin_code
integer
UN location code of the place of origin; 2003 is Other.
origin
string
Name of the origin.
origin_is_aggregate
boolean
true if the origin is the world or a UN grouping.
migrants
integer
Migrants from the origin living in the destination at mid-year, both sexes. Empty in one source cell (Hungary from the United Arab Emirates, 1990).
migrants_male
integer
Males.
migrants_female
integer
Females.
How many international migrants live in each country, and where they were born: the United Nations' estimates of the international migrant stock at mid-year in 1990, 1995, 2000, 2005, 2010, 2015, 2020 and 2024, by sex, for 233 countries and areas, the world and UN regional, development and income groupings. The source is International Migrant Stock 2024 from the UN Department of Economic and Social Affairs (UN DESA), Population Division, the UN's official series and its latest edition. An international migrant here is someone living in a country other than the one they were born in or, for countries that only count citizenship, someone who is not a citizen; refugees and asylum seekers can be included through the underlying data or separate additions, with coverage exceptions recorded in un_note.
What stands out
The number of international migrants in the world nearly doubled between mid-1990 and mid-2024, from 153.9 million to 304.0 million (1.98 times), while world population grew by 53%, from 5.33 billion to 8.16 billion. So migrants' share of the world's population rose only from 2.9% to 3.7%: about one person in 27.
The United States is home to far more migrants than any other country: 52.4 million in 2024, 17% of the world total and 15% of its own population. Next come Germany (16.8 million), Saudi Arabia (13.7 million), the United Kingdom (11.8 million) and France (9.2 million). Saudi Arabia's figure counts foreign citizens, not people born abroad, because that is the data it has; the United States, Germany, the UK and France count the foreign-born.
Data
Three tables, one row per place (or pair of places) and year. Years are 1990, 1995, 2000, 2005, 2010, 2015, 2020 and 2024; the estimates refer to mid-year (1 July).
data/by-destination.csv: migrants living in each country, area or grouping (2,280 rows: 233 countries and areas plus 52 aggregates, x 8 years).
location_code: UN location code (M49 for countries and areas; 900 is the world).
location: the UN's name, for example "Türkiye", "China, Hong Kong SAR".
loc_type: Country/Area, World, Geographic region, Subregion, SDG region, Development group, Income group or Special group (landlocked developing countries; small island developing states). is_aggregate: true for everything but countries and areas.
migrants, migrants_male, migrants_female: international migrant stock at mid-year.
population: total population at mid-year (from the UN's World Population Prospects 2024, as given in the same workbook).
migrants_pct_population: migrants as a percentage of the total population, as published by the UN.
estimate_basis: what the country's figures were derived from: foreign-born, foreign citizens, foreign-born + foreign citizens (both used) or imputed (no data; the UN imputed the estimates). In 2024, 180 countries and areas are based on the foreign-born, 46 on foreign citizens, 2 on both and 5 imputed.
refugees_added: true where the UN added refugees, asylum seekers and similar groups counted by UNHCR (or UNRWA, for Palestine refugees) to the estimates (159 of 233 countries and areas). False means that the source does not flag a separate addition; it does not establish that refugees are excluded. The source flag applies to the country's series as a whole. data_type_code is the UN's raw code (B, C, R, I).
un_note: the UN's footnote on coverage where there is one, for example that France's migrants include people born in its overseas departments and territories.
data/by-origin.csv: migrants from each country of origin living elsewhere (2,288 rows; same columns as above, without population and the data type columns). The origin Other (code 2003) holds migrants the UN does not assign to a specific country or area of origin: 22.1 million in 2024.
data/destination-origin.csv: migrants by destination and origin (224,224 rows, 16 MB), with year, destination_code, destination, destination_is_aggregate, origin_code, origin, origin_is_aggregate, migrants, migrants_male, migrants_female. It contains the destination-origin pairs listed by the UN, including aggregate rows and some pairs that are zero in every year; it is not a complete matrix of every possible pair. For country-to-country corridors, filter both *_is_aggregate columns to false and exclude origin_code 2003 (Other).
To get countries and areas only in either single-location table, filter loc_type = Country/Area. Aggregates overlap (an SDG region, a geographic region and an income group can contain the same country), so do not sum them together. To reproduce the world total from origins, include Other alongside country and area rows.
How this differs from refugees-by-country
refugees-by-country reports UNHCR population statistics, including refugees, asylum-seekers, internally displaced and stateless people, plus UNRWA refugee figures. Its snapshot retrieved on 2026-11-29 contains end-year reporting periods for 1951–2025 and a mid-year period for 2026; figures include estimates as well as registration counts. This dataset estimates international migrant stocks at 1 July every five years from 1990 to 2020, plus 2024, irrespective of the reason for migration. Refugee populations overlap with migrant stocks, but refugees_added identifies separate additions rather than overall inclusion. The UN report estimates that 51.7 million people forcibly displaced across borders represented about one in six international migrants in mid-2024. Internal displacement alone does not make someone an international migrant. Reference dates, coverage and revisions differ, so the totals should not be directly equated.
Caveats
Two definitions. Most countries count people born abroad; 46 count foreign citizens, which leaves out naturalised migrants and includes children born locally to foreign parents (common in the Gulf states, among others). Check estimate_basis before comparing countries.
Modelled, not counted. The UN builds the series from censuses, population registers and surveys, interpolating and extrapolating between them. Only 60 countries and areas were fully reassessed for the 2024 edition; the UN says that for the rest "the estimates generated in 2024 reflect extrapolations of estimates published in the 2020 edition". Five have no data at all and are imputed.
Borders change. Countries are those of today, and coverage follows the UN's country definitions: for example the estimates for Sudan for 1990 to 2005 refer to Sudan and South Sudan together, and several countries count people born in their own overseas territories as migrants. See un_note.
Shares slightly over 100%. For Bonaire, Sint Eustatius and Saba in 2024, the source gives 30,676 migrants and a population of 30,675; their ratio is 100.00325998%, published here as 100.003%. The source also gives shares above 100% in 2010 and 2020. The archived material does not explain these discrepancies. The Holy See (imputed) shows 100%.
Unknown origins. 22.1 million migrants (7% of the 2024 total) have origin Other. Country-specific origin totals exclude these unallocated origins; all figures remain estimates.
Saint Barthélemy and Saint Martin (French part) have no estimates in the UN workbooks (the destination-origin workbook lists only zero-valued destination–World rows for them) and are omitted from all three CSVs. One destination-origin cell (Hungary from the United Arab Emirates, 1990) has no total in the source.
Left out: the UN's female share and annual rate of change tables (computable from these columns), and its single-year region matrices (slices of destination-origin.csv). The 2024 edition has no age breakdown; age data are available in earlier editions, including 2020, 2019 and 2017.
This is a frozen snapshot taken on 2026-11-29 of the 2024 edition. The UN publishes a new edition every few years (the data page lists the 2017, 2019, 2020 and 2024 editions). scripts/fetch.mjs downloads the UN files into archive/ and scripts/build.mjs rebuilds the CSVs from them, checking that the three tables agree with each other and that country rows add up to the world.
API access
Access dataset files directly from scripts, code, or AI agents.
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.