Spain Population Pyramid 2040
Year
2040Spain in 2040
In 2040, Spain is projected to have a population of 46,591,674 people. Compared with 2030, when the projection stands at 47,610,520, that represents a decline of 2.1% over ten years.
The median age is projected at 52.0 years, with 18.7 children under 15 and 53.9 people aged 65 or over for every 100 people of working age (15–64). The pyramid is constrictive: cohorts of children are smaller than those of their parents, reflecting low fertility and an ageing population.
Data source: United Nations World Population Prospects, 2024 revision (medium variant) — last updated July 2024.
The fertility rate of Spain was 1.12 births per woman in 2023, under the 2.1 needed to replace each generation.
Source: World Bank World Development Indicators, latest available year.
A child born there in 2023 could expect to live 83.9 years on average (86.7 years for girls, 81.2 for boys).
Source: World Bank World Development Indicators, latest available year.
8,305,043 immigrants live in Spain, 17.3% of the population.
| Morocco | 1,088,408 |
| Colombia | 792,228 |
| Venezuela | 602,539 |
| Romania | 522,578 |
| Ecuador | 432,111 |
1,597,508 people born in Spain live in other countries.
| France | 254,830 |
| United Kingdom | 211,894 |
| United States of America | 168,755 |
| Germany | 166,899 |
| Romania | 85,101 |
Source: United Nations International Migrant Stock 2024.
| Country | Population | Median age | Relative size |
|---|---|---|---|
| Spain | 46,591,674 | 52.0 | |
| Italy | 55,221,168 | 53.1 | |
| Portugal | 10,082,256 | 50.1 | |
| Greece | 9,275,613 | 51.4 | |
| Serbia | 5,987,456 | 48.5 |





