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.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Spain ES: Population in Largest City: as % of Urban Population data was reported at 17.171 % in 2017. This records an increase from the previous number of 17.008 % for 2016. Spain ES: Population in Largest City: as % of Urban Population data is updated yearly, averaging 15.595 % from Dec 1960 (Median) to 2017, with 58 observations. The data reached an all-time high of 17.171 % in 2017 and a record low of 14.326 % in 1960. Spain ES: Population in Largest City: as % of Urban Population data remains active status in CEIC and is reported by World Bank. The data is categorized under Global Database’s Spain – Table ES.World Bank: Population and Urbanization Statistics. Population in largest city is the percentage of a country's urban population living in that country's largest metropolitan area.; ; United Nations, World Urbanization Prospects.; Weighted average;
Madrid was the largest city in Spain in 2024, with around *** million inhabitants. Barcelona followed second, with nearly *** million people residing there. The most populated city in the Spanish islands that year was Palma de Mallorca.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Population in the largest city (% of urban population) in Spain was reported at 16.99 % in 2024, according to the World Bank collection of development indicators, compiled from officially recognized sources. Spain - Population in the largest city - actual values, historical data, forecasts and projections were sourced from the World Bank on September of 2025.
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 ***** 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.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Population in largest city in Spain was reported at 6783241 in 2024, according to the World Bank collection of development indicators, compiled from officially recognized sources. Spain - Population in largest city - actual values, historical data, forecasts and projections were sourced from the World Bank on September of 2025.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
This bar chart displays population (people) by capital city using the aggregation sum in Spain. The data is about countries per year.
The share of urban population in Spain amounted to 81.55 percent in 2023. In a steady upward trend, the share rose by 24.98 percentage points from 1960.
https://www.ine.es/aviso_legalhttps://www.ine.es/aviso_legal
Official population figures of the Spanish Municipalities: Revision of the Municipal Register: Population by Autonomous Community and Autonomous City and size of municipalities. Annual. Autonomous Communities and Cities.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Spain ES: Urban Population data was reported at 37,268,800.000 Person in 2017. This records an increase from the previous number of 37,095,211.000 Person for 2016. Spain ES: Urban Population data is updated yearly, averaging 29,103,091.500 Person from Dec 1960 (Median) to 2017, with 58 observations. The data reached an all-time high of 37,268,800.000 Person in 2017 and a record low of 17,227,480.000 Person in 1960. Spain ES: Urban Population data remains active status in CEIC and is reported by World Bank. The data is categorized under Global Database’s Spain – Table ES.World Bank: Population and Urbanization Statistics. Urban population refers to people living in urban areas as defined by national statistical offices. It is calculated using World Bank population estimates and urban ratios from the United Nations World Urbanization Prospects. Aggregation of urban and rural population may not add up to total population because of different country coverages.; ; World Bank staff estimates based on the United Nations Population Division's World Urbanization Prospects: 2014 Revision.; Sum;
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. It has 488 rows. It features 4 columns: country, population, and longitude.
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
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Spain ES: Urban Population: % of Total Population data was reported at 80.024 % in 2017. This records an increase from the previous number of 79.802 % for 2016. Spain ES: Urban Population: % of Total Population data is updated yearly, averaging 75.013 % from Dec 1960 (Median) to 2017, with 58 observations. The data reached an all-time high of 80.024 % in 2017 and a record low of 56.567 % in 1960. Spain ES: Urban Population: % of Total Population data remains active status in CEIC and is reported by World Bank. The data is categorized under Global Database’s Spain – Table ES.World Bank: Population and Urbanization Statistics. Urban population refers to people living in urban areas as defined by national statistical offices. The data are collected and smoothed by United Nations Population Division.; ; United Nations Population Division. World Urbanization Prospects: 2014 Revision.; Weighted average;
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Urban population (% of total population) in Spain was reported at 81.8 % in 2024, according to the World Bank collection of development indicators, compiled from officially recognized sources. Spain - Urban population (% of total) - actual values, historical data, forecasts and projections were sourced from the World Bank on September of 2025.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Spain: Percent urban population: The latest value from 2024 is 81.8 percent, an increase from 81.55 percent in 2023. In comparison, the world average is 61.70 percent, based on data from 196 countries. Historically, the average for Spain from 1960 to 2024 is 73.41 percent. The minimum value, 56.57 percent, was reached in 1960 while the maximum of 81.8 percent was recorded in 2024.
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.
https://www.ine.es/aviso_legalhttps://www.ine.es/aviso_legal
Censo de Población: Population by gender, age (year to year) and nationality (Spanish/foreign) (province capitals and main cities). Annual. Municipalities.
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.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
This horizontal bar chart displays male population (people) by capital city using the aggregation sum in Spain. The data is about countries per year.
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.
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.