# Demographics of Madrid

In January 2020, the municipality of Madrid, capital of Spain, had a population of 3,345,894 registered inhabitants in an area of 604.3 square kilometers (233.3 sq mi). Thus, the city's population density was about 5,337 inhabitants per km$^2$. Madrid is Spain's largest city and the second most populous city proper in the European Union, after Berlin.

## Historical change

The population of Madrid has overall increased since the city became the capital of Spain in the mid-16th century, and has stabilised at approximately 3 million since the 1970s.
From 1970 until the mid-1990s, the population dropped. This phenomenon, which also affected other European cities, was caused in part by the growth of satellite suburbs at the expense of the downtown region within the city proper. This also occurred during a period of slowed growth in the European economy.
The demographic boom accelerated in the late 1990s and early first decade of the 21st century due to immigration in parallel with a surge in Spanish economic growth. According to census data, the population of the city grew by 271,856 between 2001 and 2005.
The Community of Madrid is the EU region with the highest average life expectancy at birth. The average life expectancy was 82.2 years for males and 87.8 for females in 2016.

## Immigration

As the capital city of Spain, the city has attracted many immigrants from around the world, with most of the immigrants coming from Latin American countries. In 2020, around 76% of the registered population was Spain-born, while, regarding the foreign-born population (24%), the bulk of it relates to the Americas (around 16% of the total population), and a lesser fraction of the population is born in other European, Asian and African countries.
As of 2019, the highest rising national group of immigrants was Venezuelans.
| People by country of citizenship | People by country of citizenship | People by country of birth | People by country of birth |
| Country | Population (as of 1 January 2020) | Country | Population (as of 1 January 2020) |
| Spain | 2,831,899 | Spain | 2,554,586 |
| Romania | 43,441 | Ecuador | 89,800 |
| Mainland China | 40,245 | Venezuela | 76,004 |
| Venezuela | 39,279 | Peru | 64,013 |
| Colombia | 32,752 | Colombia | 61,021 |
| Peru | 26,813 | Dominican Republic | 46,712 |
| Italy | 25,933 | Romania | 37,706 |
| Ecuador | 24,141 | Mainland China | 36,050 |
| Honduras | 23,498 | Morocco | 32,741 |
| Morocco | 23,133 | Bolivia | 29,142 |
| Paraguay | 20,435 | Honduras | 24,651 |
| Dominican Republic | 18,170 | Paraguay | 24,485 |
| Bolivia | 14,042 | Argentina | 23,074 |
| Philippines | 13,501 | Philippines | 18,163 |
| Portugal | 12,086 | Cuba | 18,000 |
| France | 10,957 | Brazil | 16,874 |
| Brazil | 10,751 | France | 15,511 |
| Ukraine | 9,739 | Mexico | 11,575 |
| USA | 8,426 | USA | 11,330 |
| Nicaragua | 7,620 | Italy | 10,696 |
| Bulgaria | 7,582 | Ukraine | 9,766 |
| Cuba | 7,133 | UK | 8,333 |
| UK | 7,041 | Nicaragua | 8,331 |
| Bangladesh | 6,670 | Germany | 8,115 |
| Argentina | 6,528 | Portugal | 7,631 |
| Mexico | 5,857 | Bulgaria | 7,322 |
| Poland | 5,558 | Chile | 6,954 |
| Germany | 5,162 | Bangladesh | 6,583 |
| El Salvador | 4,705 | El Salvador | 5,392 |
| Chile | 2,892 | Poland | 4,789 |
| Russia | 2,810 | Russia (incl. Chechnya and Dagestan) | 4,423 |
| Senegal | 2,411 | Uruguay | 3,583 |
| India | 2,139 | Switzerland | 3,027 |
| Netherlands | 1,798 | Guatemala | 2,964 |
| Pakistan | 1,587 | India | 2,812 |
| Guatemala | 1,500 | Senegal | 2,548 |
| Nigeria | 1,425 | Equatorial Guinea | 2,137 |
| Georgia | 1,361 | Belgium | 1,898 |
| Algeria | 1,247 | Pakistan | 1,802 |
| Ireland | 1,209 | Algeria | 1,741 |
| Iran | 1,195 | Iran | 1,681 |
| Mali | 1,184 | Netherlands | 1,611 |
| Korea | 1,172 | Syria | 1,505 |
| Japan | 1,169 | Nigeria | 1,409 |
| Uruguay | 1,091 | Georgia | 1,346 |
| Belgium | 1,018 | Moldova | 1,339 |
| Moldova | 1,005 | Japan | 1,306 |
| Equatorial Guinea | 960 | Korea | 1,248 |
| Syria | 925 | Mali | 1,239 |
| Turkey | 843 | Panama | 1,126 |
| Guinea | 828 | Ireland | 1,053 |
| Greece | 816 | Guinea | 1,032 |
| Cameroon | 734 | Canada | 1,030 |
| Sweden | 721 | Costa Rica | 1,030 |
| Costa Rica | 699 | Turkey | 1,018 |
| Panama | 673 | Egypt | 939 |
| Egypt | 654 | Australia | 894 |
| Canada | 640 | Cabo Verde | 864 |
| Switzerland | 631 | Cameroon | 780 |
| Nepal | 630 | Sweden | 760 |
| Hungary | 579 | Greece | 723 |
| Armenia | 556 | Lebanon | 703 |
| Libya | 544 | Nepal | 677 |
| Austria | 539 | Iraq | 671 |
| | | Armenia | 626 |
| | | Libya | 607 |
| | | Puerto Rico | 615 |
| Other | 12,513 | Other | 16,368 |

## Religion

Most people in Madrid are Roman Catholic Christians. It is the seat of the Roman Catholic Archdiocese of Madrid. In a 2011 survey conducted by InfoCatólica, 63.3% of Madrid residents of all ages identified themselves as Catholic.
According to a 2019 Centro de Investigaciones Sociológicas (CIS) survey with a sample size of 469 respondents, 20.7% of respondents in Madrid identify themselves as practising Catholics, 45.8% as non-practising Catholics, 3.8% as believers of another religion, 11.1% as agnostics, 3.6% as indifferent towards religion, and 12.8% as atheists. The remaining 2.1% did not state their religious beliefs.

## Metropolitan region

According to Eurostat, the "metropolitan region" of Madrid has a population of slightly more than 6,271 million people covering an area of 4,609.7 square kilometres (1,780 sq mi). It is the largest metropolitan area in Spain and the second largest in the European Union.