In 2024, Madrid was the city with the most inhabitants in Spain. In that year, more than 3.42 million people lived in the city. Barcelona was the second-largest city with 1.69 million residents.
Madrid was the largest city in Spain in 2024, with around 3.4 million inhabitants. Barcelona followed second, with nearly 1.7 million people residing there. The most populated city in the Spanish islands that year was Palma de Mallorca.
While Spain’s population has increased slightly since the year 2000, the share of the rural and urban populations has remained relatively constant, with Spain being a highly urban country. This consistently high urbanization is a consequence of both economic and social factors. The Spanish wealth is generated in the cities to a large extent Two thirds of Spain’s economic output, as divided across economic sectors, comes from the service sector, with only three percent originating from agriculture. Naturally, service-based economies are easiest when people live closely, while agricultural practices need more land, and thus a rural population. Of course, this also brings economic costs, such as the high living and housing costs in Madrid. What draws people into cities? Social factors also drive people to cities. For some, it is being closer to family or culture, such as art museums. For others, it is finding a large city with green spaces, like Madrid. For others, it is the opportunity to watch a game in a world-class soccer stadium, perhaps FC Barcelona. These and other factors continue to keep Spaniards in their cities.
https://www.ine.es/aviso_legalhttps://www.ine.es/aviso_legal
Continuous Population Statistics: Resident population by date, sex, age group and nationality (Spanish/foreign). Quarterly. Autonomous Communities and Cities.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
This dataset is about cities in Spain, featuring 4 columns: city, country, longitude, and population. The preview is ordered by population (descending).
Andalusia, with a total number of 8.6 million inhabitants, ranked first on the list of most populous autonomous communities in Spain as of January 1st, 2025. The least populated regions of Spain were the two autonomous cities of Ceuta and Melilla, both with a population of under 90,000 inhabitants that year. The population of Spain has been increasing for many years after experiencing a downward trend between 2012 and 2015, and is projected to grow by nearly half a million by 2027. The population of Spain is dying more than being born Spain has one of the lowest fertility rate in the European Union, with barely 1.29 children per woman. According to the most recent data, more people died in Spain than were being born in 2023, with figures reaching over 434,000 deaths versus 320,000 newborns. Immigration countered this trend One of the key points to balance out this population downtrend in Spain is immigration. Spain’s immigration figures finally started to pick up in 2015 after a downward trend that presumably initiated after the 2008 financial crisis. Nevertheless, Spaniards still migrate is much larger numbers than before the crisis. According to the latest data, nationals aged between 25 and 34 years represented the largest bulk of emigrants.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
All cities with a population > 1000 or seats of adm div (ca 80.000)Sources and ContributionsSources : GeoNames is aggregating over hundred different data sources. Ambassadors : GeoNames Ambassadors help in many countries. Wiki : A wiki allows to view the data and quickly fix error and add missing places. Donations and Sponsoring : Costs for running GeoNames are covered by donations and sponsoring.Enrichment:add country name
https://www.ine.es/aviso_legalhttps://www.ine.es/aviso_legal
Continuous Register Statistics: Population (Spanish/foreigners) by age (year to year) and sex. Annual. Provinces.
In 1500, the largest city was Paris, with an estimated 225 thousand inhabitants, almost double the population of the second-largest city, Naples. As in 1330, Venice and Milan remain the third and fourth largest cities in Western Europe, however Genoa's population almost halved from 1330 until 1500, as it was struck heavily by the bubonic plague in the mid-1300s. In lists prior to this, the largest cities were generally in Spain and Italy, however, as time progressed, the largest populations could be found more often in Italy and France. The year 1500 is around the beginning of what we now consider modern history, a time that saw the birth of many European empires and inter-continental globalization.
https://www.ine.es/aviso_legalhttps://www.ine.es/aviso_legal
Censo de Población: Population by year of arrival in Spain, year of arrival in the municipality, sex and age group (Provincial capitals and main cities). Annual. Municipalities.
In 2024, approximately 22.81 million people lived in the São Paulo metropolitan area, making it the biggest in Latin America and the Caribbean and the fifth most populated in the world. The homonymous state of São Paulo was also the most populous federal entity in the country. The second place for the region was Mexico City with 22.51 million inhabitants.
Brazil's cities
Brazil is home to two large metropolises, only counting the population within the city limits, São Paulo had approximately 12.4 million inhabitants, and Rio de Janeiro around 6.8 million inhabitants. It also contains a number of smaller, but well known cities such as Brasília, Salvador, Belo Horizonte and many others, which report between 2 and 3 million inhabitants each. As a result, the country's population is primarily urban, with nearly 85 percent of inhabitants living in cities.
Mexico City
Mexico City's metropolitan area ranks fifth in the ranking of most populated cities in the world. Founded over the Aztec city of Tenochtitlan in 1521 after the Spanish conquest as the capital of the Viceroyalty of New Spain, the city still stands as one of the most important in Latin America. Nevertheless, the preeminent economic, political, and cultural position of Mexico City has not prevented the metropolis from suffering the problems affecting the rest of the country, namely, inequality and violence. Only in 2021, the city registered a crime incidence of 45,336 reported cases for every 100,000 inhabitants and around 32 percent of the population lived under the poverty line.
https://www.ine.es/aviso_legalhttps://www.ine.es/aviso_legal
Continuous Household Survey: Resident population born outside Spain by Autonomous cities and communities, sex, age group, country of birth and age of arrival in Spain. Autonomous cities and communities.
https://www.ine.es/aviso_legalhttps://www.ine.es/aviso_legal
Censo de Población: Population by gender, nationality (Spanish/foreign) and country of birth (province capitals and main cities). Annual. Municipalities.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
As of January 2025, Andalusia was the most populated autonomous community in Spain, with a total amount of approximately 8.6 million inhabitants. Catalonia and Madrid followed closely, with populations amounting to approximately eight million and seven million respectively. The population in Spain has also been analyzed by gender and autonomous community.
https://www.ine.es/aviso_legalhttps://www.ine.es/aviso_legal
Continuous Register Statistics: Population (spanish/foreigners) by place of birth and sex. Annual. Provinces.
https://www.ine.es/aviso_legalhttps://www.ine.es/aviso_legal
Censo de Población: Population by year of arrival in Spain, year of arrival in the Autonomous Community, sex and country of birth (main countries). Annual. Autonomous Communities and Cities.
This is NOT a raw population dataset. We use our proprietary stack to combine detailed 'WorldPop' UN-adjusted, sex and age structured population data with a spatiotemporal OD matrix.
The result is a dataset where each record indicates how many people can be reached in a fixed timeframe (1 Hour in this case) from that record's location.
The dataset is broken down into sex and age bands at 5 year intervals, e.g - male 25-29 (m_25) and also contains a set of features detailing the representative percentage of the total that the count represents.
The dataset provides 72762 records, one for each sampled location. These are labelled with a h3 index at resolution 7 - this allows easy plotting and filtering in Kepler.gl / Deck.gl / Mapbox, or easy conversion to a centroid (lat/lng) or the representative geometry of the hexagonal cell for integration with your geospatial applications and analyses.
A h3 resolution of 7, is a hexagonal cell area equivalent to: - ~1.9928 sq miles - ~5.1613 sq km
Higher resolutions or alternate geographies are available on request.
More information on the h3 system is available here: https://eng.uber.com/h3/
WorldPop data provides for a population count using a grid of 1 arc second intervals and is available for every geography.
More information on the WorldPop data is available here: https://www.worldpop.org/
One of the main use cases historically has been in prospecting for site selection, comparative analysis and network validation by asset investors and logistics companies. The data structure makes it very simple to filter out areas which do not meet requirements such as: - being able to access 70% of the Spanish population within 4 hours by Truck and show only the areas which do exhibit this characteristic.
Clients often combine different datasets either for different timeframes of interest, or to understand different populations, such as that of the unemployed, or those with particular qualifications within areas reachable as a commute.
In 2023, the share of urban population in Spain remained nearly unchanged at around 81.55 percent. Nevertheless, 2023 still represents a peak in the share in Spain with 81.55 percent. A country's urbanization rate refers to the share of the total population living in an urban setting. International comparisons of urbanization rates may be inconsistent, due to discrepancies between definitions of what constitutes an urban center (based on population size, area, or space between dwellings, among others).Find more key insights for the share of urban population in countries like Portugal.
Table of INEBase Population by year of arrival in Spain, year of arrival in the municipality, sex and country of birth (main countries) (Provincial capitals and main cities). Annual. Municipalities. Censo de Población
In 2024, Madrid was the city with the most inhabitants in Spain. In that year, more than 3.42 million people lived in the city. Barcelona was the second-largest city with 1.69 million residents.