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).

Report an issue
Downloads
12
Last updated
Data files
3
Total size
16 MB
Format
csv
License
CC-BY-3.0

International migrants living in each country or region (destination), by sex, with total population and migrants as % of population, 1990-2024

International migrants born in (or citizens of) each country or region (origin), by sex, 1990-2024

International migrant stock by destination and origin, by sex, 1990-2024

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.

Source and licence

United Nations Department of Economic and Social Affairs, Population Division (2024). International Migrant Stock 2024. Retrieved 2026-11-29 from https://www.un.org/development/desa/pd/content/international-migrant-stock (keyless downloads):

Licence: Creative Commons Attribution 3.0 IGO (CC BY 3.0 IGO), http://creativecommons.org/licenses/by/3.0/igo/. Each sheet of the UN workbooks says: "Copyright © 2024 by United Nations, made available under a Creative Commons license CC BY 3.0 IGO". You may reuse and adapt the data, including commercially, if you credit the source: United Nations Department of Economic and Social Affairs, Population Division (2024). International Migrant Stock 2024. This dataset (the UN tables reshaped into long CSVs) is shared under the same licence; it is DataHub's compilation, not an official UN product.

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.

  1. Fetch datapackage.json to inspect schema and resources
  2. Download data resources listed in datapackage.json
  3. Read README.md for full context
/core/international-migrant-stock/6 files
  • README.mddocumentationhttps://datahub.io/core/international-migrant-stock/_r/-/README.md
  • config.jsonhttps://datahub.io/core/international-migrant-stock/_r/-/config.json
  • data/by-destination.csvhttps://datahub.io/core/international-migrant-stock/_r/-/data/by-destination.csv
  • data/by-origin.csvhttps://datahub.io/core/international-migrant-stock/_r/-/data/by-origin.csv
  • data/destination-origin.csvhttps://datahub.io/core/international-migrant-stock/_r/-/data/destination-origin.csv
  • datapackage.jsonmetadata & schemahttps://datahub.io/core/international-migrant-stock/_r/-/datapackage.json