Demographics of Spain
As of 1 October 2025, Spain had a total population of 49,442,844. The modern Kingdom of Spain arose from the accretion of several independent Iberian realms, including the Kingdoms of León, Castile, Navarre, the Crown of Aragon and Granada, all of which, together with the modern state of Portugal, were successor states to the late antique Christian Visigothic Kingdom after the Reconquista.
Spain's population surpassed 49 million inhabitants for the first time in history in 2025, with a total population of 49,442,844 people living in Spain. Its population density, at, is much lower than other Western European countries, yet, with the exception of microstates, it has the highest real density population in Europe, based on density of inhabited areas. With the notable exception of Madrid, Spain's capital city, the most densely populated areas lie around the coast.
The population of Spain doubled during the twentieth century, but the pattern of growth was extremely uneven due to large-scale internal migration from the rural interior to the industrial cities. Eleven of Spain's fifty provinces saw an absolute decline in population over the century. In the first 25 years of the 21st century, population of Spain grew from 40 million in 2000 to more than 49 million in 2025 mostly due to immigration.
In 2023, the average total fertility rate across Spain was 1.12 children born per woman, one of the lowest in the world.
History
Notable events in modern Spanish demography:- 1808–1814. Peninsular War : 1 million deaths.
- Late 19th-early 20th century. Emigration: Spain undergoes economic stagnation which caused mass emigration to the Americas.
- 1918. Flu pandemic, over 200,000 dead in Spain.
- 1936. Start of the Spanish Civil War.
- 1939. End of the Civil War. Establishment of a dictatorship, start of rationing policies. Deepening of economic depression, mass emigration to European and American countries due to economic and political motives.
- 1941. Approval of benefits for large families with at least four children.
- 1945. Establishment of tax deductions for parents.
- 1952. End of rationing policies.
- 1975. End of the dictatorship, mass return of emigrated people.
- 1978. Legalization of contraception. Decline of birth rates.
- 1985. Legalization of abortion.
- 1988. After centuries of net negative migration, the first events of illegal immigration from Africa occur.
- 1991. Spain becomes a net receiver of migrants after decades of mass emigration.
- 1994. Lowering of threshold of requirements to become a large family: only three children needed.
- 2000. Huge economic boom caused mainly by lower interest rates after adopting the Euro, and a huge increase in foreign investment and immigration.
- 2000–2009. Mass migration from Latin America, Romania and other countries, coupled with a moderate increase of the fertility rate, results in a large population in the first ten years of the 21st century.
- 2007. Approval of €2,500 benefit for births.
- 2010. Legalization of elective abortion.
- 2011. Withdrawal of the €2,500 benefit for births.
- 2015. First negative natural change since the Civil War due to the aging of Spanish population.
- 2018. Population begins to grow again, thanks to the growth of immigration from abroad.
Many demographers have linked Spain's very low fertility rate to the country's lack of a family support policy. Spain spends the least on family support out of all western European countries—0.5% of GDP. A graphic illustration of the enormous social gulf in this field is the fact that a Spanish family would need to have 57 children to enjoy the same financial support as a family with 3 children in Luxembourg.
During the early 2000s, the mean year-on-year demographic growth set a new record with its 2003 peak variation of 2.1%, doubling the previous record reached back in the 1960s when a mean year-on-year growth of 1% was experienced. In 2005 alone, the immigrant population of Spain increased by 700,000 people.
The arrival of migrating young adults was the main reason for the slight increase in Spain's fertility rate. From 2002 through 2008 the Spanish population grew by 8%, of whom 75% were foreign.
Population
Note: Crude migration change is a trend analysis, an extrapolation based on average population change minus natural change of the current year. Average population is an estimate of the population in the middle of the year and not at the end of the year.Population growth
Population growth rate; 2022 est.: 0.13%
; Country comparison to the world: 143rd
; 2017 est.: 0.78%
Life expectancy
| Year | Life expectancy in years |
| 1882 | 29.5 |
| 1892 | 32.1 |
| 1900 | 34.8 |
| 1908 | 41.3 |
| 1909 | 41.0 |
| 1910 | 40.8 |
| 1911 | 39.7 |
| 1912 | 43.4 |
| 1913 | 42.5 |
| 1914 | 42.8 |
| 1915 | 43.0 |
| 1916 | 42.9 |
| 1917 | 42.5 |
| 1918 | 30.3 |
| 1919 | 41.1 |
| 1920 | 39.2 |
| 1921 | 42.0 |
| 1922 | 44.1 |
| 1923 | 44.7 |
| 1924 | 46.2 |
| 1925 | 46.9 |
| 1926 | 47.7 |
| 1927 | 48.4 |
| 1928 | 48.6 |
| 1929 | 49.3 |
| 1930 | 49.3 |
| 1931 | 49.2 |
| 1932 | 51.1 |
| 1933 | 51.5 |
| 1934 | 52.3 |
| 1935 | 52.6 |
| 1936 | 51.0 |
| 1937 | 47.3 |
| 1938 | 47.6 |
| 1939 | 47.2 |
| 1940 | 48.4 |
| 1941 | 47.2 |
| 1942 | 52.5 |
| 1943 | 54.8 |
| 1944 | 56.2 |
| 1945 | 57.8 |
| 1946 | 57.5 |
| 1947 | 59.3 |
| 1948 | 61.2 |
| 1949 | 61.0 |
| 1950 | 61.8 |
Sources: Our World In Data and the United Nations.
| Period | Life expectancy in years |
| 1950–1955 | 64.6 |
| 1955–1960 | 67.8 |
| 1960–1965 | 69.9 |
| 1965–1970 | 71.4 |
| 1970–1975 | 72.7 |
| 1975–1980 | 74.4 |
| 1980–1985 | 76.1 |
| 1985–1990 | 76.9 |
| 1990–1995 | 77.6 |
| 2000–2005 | 79.9 |
| 2005–2010 | 81.2 |
| 2010–2015 | 82.5 |
Source: UN World Population Prospects
Life expectancy at birth
;Total population: 82.21 years
;Male: 79.22 years
;Female: 85.39 years
;Country comparison to the world: 29nd
;Infant mortality rate: 3.14 deaths/1,000 live births
;Country comparison to the world: 216th
;Crude death rate:9.78 deaths/1,000 population
;Country comparison to the world: 55th
Fertility
The total fertility rate is the number of children born per woman. It is based on fairly good data for the entire period. Sources: Our World In Data and Gapminder Foundation.| Year | Fertility rate |
| 1850 | 5.13 |
| 1851 | 5.07 |
| 1852 | 5.01 |
| 1853 | 4.95 |
| 1854 | 4.89 |
| 1855 | 4.83 |
| 1856 | 4.78 |
| 1857 | 4.72 |
| 1858 | 4.66 |
| 1859 | 4.75 |
| 1860 | 4.86 |
| 1861 | 5.16 |
| 1862 | 5.09 |
| 1863 | 5 |
| 1864 | 5.19 |
| 1865 | 5.11 |
| 1866 | 5.07 |
| 1867 | 5.09 |
| 1868 | 4.72 |
| 1869 | 4.9 |
| 1870 | 4.84 |
| 1871 | 4.83 |
| 1872 | 4.83 |
| 1873 | 4.82 |
| 1874 | 4.81 |
| 1875 | 4.8 |
| 1876 | 4.79 |
| 1877 | 4.78 |
| 1878 | 4.78 |
| 1879 | 4.74 |
| 1880 | 4.7 |
| 1881 | 4.91 |
| 1882 | 4.79 |
| 1883 | 4.71 |
| 1884 | 4.86 |
| 1885 | 4.8 |
| 1886 | 4.86 |
| 1887 | 4.78 |
| 1888 | 4.82 |
| 1889 | 4.82 |
| 1890 | 4.55 |
| 1891 | 4.67 |
| 1892 | 4.71 |
| 1893 | 4.71 |
| 1894 | 4.6 |
| 1895 | 4.63 |
| 1896 | 4.75 |
| 1897 | 4.51 |
| 1898 | 4.41 |
| 1899 | 4.53 |
;Crude birth rate: 8.05 births/1,000 population
;Country comparison to the world: 212th
;Total fertility rate: 1.16 children born/woman Country comparison to the world: 207th
;Mother's mean age at first birth: 30.9 years
Age structure
;0-14 years: 15.02%;15-24 years: 9.9%
;25-54 years: 43.61%
;55-64 years: 12.99%
;65 years and over: 18.49%
Structure of the population
| Age group | Male | Female | Total | % |
| 0–4 | 989 957 | 936 296 | 1 926 253 | 4.06 |
| 5–9 | 1 182 657 | 1 111 874 | 2 294 531 | 4.84 |
| 10–14 | 1 310 725 | 1 227 805 | 2 538 530 | 5.36 |
| 15–19 | 1 259 328 | 1 178 983 | 2 438 311 | 5.14 |
| 20–24 | 1 228 307 | 1 164 436 | 2 392 743 | 5.05 |
| 25–29 | 1 283 969 | 1 247 891 | 2 531 860 | 5.34 |
| 30–34 | 1 373 686 | 1 371 909 | 2 745 595 | 5.79 |
| 35–39 | 1 588 932 | 1 607 493 | 3 196 425 | 6.74 |
| 40–44 | 1 949 687 | 1 935 067 | 3 884 754 | 8.20 |
| 45–49 | 1 982 307 | 1 949 746 | 3 932 053 | 8.30 |
| 50–54 | 1 847 825 | 1 852 726 | 3 700 551 | 7.81 |
| 55–59 | 1 688 389 | 1 740 775 | 3 429 164 | 7.23 |
| 60–64 | 1 464 713 | 1 552 291 | 3 017 004 | 6.37 |
| 65–69 | 1 187 562 | 1 303 094 | 2 490 656 | 5.25 |
| 70–74 | 1 024 938 | 1 190 297 | 2 215 235 | 4.67 |
| 75–79 | 791 421 | 990 173 | 1 781 594 | 3.76 |
| 80–84 | 533 545 | 773 766 | 1 307 311 | 2.76 |
| 85–89 | 366 344 | 630 406 | 996 750 | 2.10 |
| 90–94 | 140 288 | 309 931 | 450 219 | 0.95 |
| 95–99 | 30 128 | 86 008 | 116 136 | 0.25 |
| 100+ | 2 574 | 10 446 | 13 020 | 0.03 |
| Total | 23 227 282 | 24 171 413 | 47 398 695 | 100 |
| Age group | Male | Female | Total | Percent |
| 0–14 | 3 483 339 | 3 275 975 | 6 759 314 | 14.26 |
| 15–64 | 15 667 143 | 15 601 317 | 31 268 460 | 65.97 |
| 65+ | 4 076 800 | 5 294 121 | 9 370 921 | 19.77 |
Median age
;Total: 43.9 years
;Male: 42.7 years
;Female: 45.1 years
;Country comparison to the world: 21st
Vital statistics
Statistics since 1858
Source: Instituto Nacional de EstadísticaNotable events in Spanish demographics:
- 1872-1876 – Third Carlist War
- 1873 – Cantonal Rebellion
- 1914-1918 – First World War
- 1936-1939 – Spanish Civil War
Nationality of mothers
In 2024, 236,666 babies were born to mothers with Spanish nationality, 31,897 to mothers with an American nationality, 23,765 to mothers with an African nationality, 18,358 to mothers with a European nationality, and 7,184 to mothers with an Asian nationality.Birthplace of mothers
In 2024, 212,191 babies were born to Spanish-born mothers, 52,167 to American-born mothers, 27,412 to African-born mothers, 18,297 to European-born mothers, and 7,895 to Asian-born mothers.Total fertility rates by region
Total fertility rate in Spain by Autonomous communities as of 2024:| Autonomous communities | TFR | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Region of MurciaTotal fertility rate by provinces and islands
|
Region of Murcia
El Hierro
Spain