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, the total population of Spain was around 48.38 million people. By 2029, it was forecast to grow up to 50.76 million inhabitants.
Population of Spain While Spain’s fertility rate has been relatively decreasing over the past decade, its year-over-year population growth has been increasing continuously since 2016. The collapse of the job and real estate markets may have led the Spanish to postpone having (more) kids or to migrate to other countries in search of a more stable economy, while inflow of migrates has increased . This theory is supported by data on the average age of Spain’s inhabitants; a look at the median age of Spain’s population from 1950 up until today shows that the Spanish get older on average – perhaps due to the aforementioned factors.
Economic recovery Speaking of Spain’s economy, economic key factors suggest that the country is still recovering from the crisis. Its gross domestic product (GDP) was in admirable shape prior to the collapse, but it still has not returned to its former glory. Only recently has Spain reported actual GDP growth since 2008. Nevertheless, during 2020 and the COVID-19 pandemic, Spain's GDP had a decrease of more than 11 percent. This in turn, led to an increase of the country’s unemployment rate after years of slowly but surely decreasing following an alarming peak of 26 percent in 2013. Future perspectives are, however, somewhat brighter, as GDP is forecast to maintain a positive growth rate at least until 2029, even exceeding two percentage points in 2025.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Historical dataset showing total population for Spain by year from 1950 to 2025.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
The total population in Spain was estimated at 49.1 million people in 2024, according to the latest census figures and projections from Trading Economics. This dataset provides - Spain Population - actual values, historical data, forecast, chart, statistics, economic calendar and news.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Population growth (annual %) in Spain was reported at 0.94536 % in 2024, according to the World Bank collection of development indicators, compiled from officially recognized sources. Spain - Population growth (annual %) - actual values, historical data, forecasts and projections were sourced from the World Bank on September of 2025.
With over ************* inhabitants, Madrid ranked as the most populated province in Spain as of 2025. In the second place was Barcelona, with a population of almost *********** people. Only ** out of the ** Spanish provinces had over a million inhabitants at that time.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Population, female (% of total population) in Spain was reported at 50.9 % in 2024, according to the World Bank collection of development indicators, compiled from officially recognized sources. Spain - Population, female (% of total) - actual values, historical data, forecasts and projections were sourced from the World Bank on October of 2025.
As of January 2025, roughly 25.01 million women lived in Spain, thus outnumbering men by about 980,000. A report on expected population of EU member states forecasts the number of Spanish inhabitants growing to 49.9 million by 2050, which would make the Mediterranean nation the fourth most populated country in the EU, after Germany, France and Italy. Data relating to the population of Spain by gender and autonomous community shows the most populous region was Andalusia, with 4.4 million females and 4.2 million males, followed by the communities of Catalonia and Madrid. Moroccans made up the largest share of foreign nationals living in Spain, closely followed by Romanian nationals.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Historical dataset of population level and growth rate for the Barcelona, Spain metro area from 1950 to 2025.
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
Population, male (% of total population) in Spain was reported at 49.1 % in 2024, according to the World Bank collection of development indicators, compiled from officially recognized sources. Spain - Population, male (% of total) - actual values, historical data, forecasts and projections were sourced from the World Bank on September of 2025.
In July 2025, the number of women living in Spain was approximately 25.1 million, with the southern region of Andalusia featuring the highest number at over four million female residents.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Historical dataset of population level and growth rate for the Palma, Spain metro area from 1950 to 2025.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Historical dataset of population level and growth rate for the Madrid, Spain metro area from 1950 to 2025.
https://worldviewdata.com/termshttps://worldviewdata.com/terms
Comprehensive socio-economic dataset for Spain including population demographics, economic indicators, geographic data, and social statistics. This dataset covers key metrics such as GDP, population density, area, capital city, and regional classifications.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Population ages 15-64, female (% of female population) in Spain was reported at 64.3 % in 2024, according to the World Bank collection of development indicators, compiled from officially recognized sources. Spain - Population ages 15-64, female (% of total) - actual values, historical data, forecasts and projections were sourced from the World Bank on October of 2025.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Historical dataset of population level and growth rate for the Port of Spain, Trinidad and Tobago metro area from 1950 to 2025.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Historical dataset of population level and growth rate for the Alicante, Spain metro area from 1950 to 2025.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Historical dataset of population level and growth rate for the Bilbao, Spain metro area from 1950 to 2025.
In 2050, the total population of Spain is expected to exceed 54 million. The population in their early 40s and early 70s will be the largest. In addition, it is expected that there will be over 72,900 women aged 100 years or older.
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.