censuswall ESP · 2026 · ages 0–100
Topics

Country or area · Southern Europe · Europe · UN WPP 2024

Spain population

Spain population now

47,839,078

A projection read at this second, not a count: the UN's totals for 1 January 2026 and 2027, joined by a straight line. 95% range for 31 December 2026: 47.0–48.7 million.

Mid-2023, UN estimate: 47,911,580

Year
2026
projection · medium
Population, mid-2026
47.8508 million
95% range, 31 Dec: 47.0–48.7 million
Median age
47.3
Aged 65+
22.2%
2023 | 2024

male female projection · one cell = 10,000 people

How to read this: one row for each age, newborns at the bottom; men on the left, women on the right.

Verified 2026-09-30 · 73 canaries

ESP · 1950–2100 · in brief

Spain in numbers

In mid-2023 there were 47,911,580 people in Spain: the 32nd-largest population of the 236 countries and areas the UN reports, and 0.59% of the world's people. That is 1.7 times its 1950 population of 28.1 million.

Its population peaked in 2023 at 47.9 million. The UN's medium projection has 33.1 million in 2100. The projection is uncertain: on 1 January 2100 the UN's 95% range runs from 8.6 million to 94.6 million.

Since 2015, more people have died here each year than have been born, and the UN's projection has that holding every year to 2100. The population still grew until 2023, because more people arrived than left.

The median age was 27.5 in 1950 and 45.9 in 2023; the projection has 53.2 in 2100. 20.7% of people were 65 or older in 2023, against 36.3% projected for 2100. The working-age population (15–64) peaked in 2009 at 32.0 million; in 2023 it was 31.7 million.

Among countries it ranks 32nd in 2023, 48th in 2050 and 62nd in 2100. In the medium projection it overtakes South Korea in 2051. It is overtaken by Algeria in 2026, Iraq in 2026 and Afghanistan in 2029.

Population, mid-2023
47,911,580
Rank by population, 2023
32 of 236
Share of the world, 2023
0.59%
Change in a year, mid-2022 to mid-2023
+0.17% · +83,198 people
People per km² of land, 2023
96
Land area, 2023
499,697 km²
Births, 2023
336,821
Deaths, 2023
447,463
Net migration, 2023
+119,099
Children per woman, 2023
1.21
Median age, 2023
45.9 years
Life expectancy at birth, 2023
83.7 years
In a city, 2025
51 of every 100
Population, mid-1950
28,077,048
Projected, mid-2050
44,928,558
Projected, mid-2100
33,127,478

ESP · 1950–2100 · total population

Population, 1950–2100

estimates | projections020 m40 m60 m80 m100 m1950197520002025205020752100

estimate   projection, up to the bottom of the 95% range   95% range   medium projection. Each column is the population on 1 January of one year; the paper rules cut it into equal cells.

Show the numbers: Spain, 1950–2100
Spain: population on 1 January, births, deaths, fertility and life expectancy, 1950–2100
YearKindPopulation, 1 Jan95% rangeBirthsDeathsChildren per womanLife expectancy
1950estimate28,015,563562,979310,4462.4761.8
1951estimate28,138,534566,982328,8792.4661.5
1952estimate28,291,187591,257276,7162.5464.8
1953estimate28,520,896587,913278,0752.5065.7
1954estimate28,744,498578,266263,5502.4466.9
1955estimate28,971,159598,329274,2592.5166.7
1956estimate29,208,394609,863289,1702.5466.8
1957estimate29,438,945646,545293,6372.6966.6
1958estimate29,700,983655,807259,4252.7368.8
1959estimate29,998,335658,960268,2882.7568.7
1960estimate30,283,079666,956268,3682.8169.2
1961estimate30,526,798653,461261,4052.7869.6
1962estimate30,872,335655,664274,9122.8069.6
1963estimate31,207,876668,319279,9702.8869.8
1964estimate31,551,778691,964270,8943.0070.5
1965estimate31,931,393672,077271,0512.9370.9
1966estimate32,289,943666,122272,7652.9171.2
1967estimate32,641,825677,471277,2792.9771.3
1968estimate32,999,676666,491279,5132.9271.7
1969estimate33,340,565662,976300,2732.9071.1
1970estimate33,653,306661,752282,3442.8872.2
1971estimate33,972,140667,944304,6712.9071.7
1972estimate34,342,762668,185281,9222.8773.0
1973estimate34,736,972668,545298,0692.8472.7
1974estimate35,116,075682,664297,1362.8773.1
1975estimate35,607,448672,100295,2282.7773.5
1976estimate35,984,090677,991296,4122.7673.8
1977estimate36,368,470658,255291,3252.6574.3
1978estimate36,734,070637,702293,4092.5474.5
1979estimate37,075,865603,239288,2912.3775.0
1980estimate37,384,880571,317286,1192.2175.5
1981estimate37,690,249533,112290,7462.0475.7
1982estimate37,935,176515,001283,7631.9476.3
1983estimate38,159,027486,962299,7711.8076.1
1984estimate38,347,461474,249296,9641.7276.5
1985estimate38,527,504458,808310,5771.6476.4
1986estimate38,675,138442,437307,7621.5576.7
1987estimate38,796,273431,001306,8561.4977.0
1988estimate38,907,746423,051316,3461.4477.0
1989estimate38,996,782413,540322,0951.4077.0
1990estimate39,062,333406,392330,4241.3677.0
1991estimate39,107,625400,241334,8121.3277.1
1992estimate39,295,893399,930328,5611.3177.6
1993estimate39,544,798389,526336,7891.2577.7
1994estimate39,758,444374,631334,4901.1978.1
1995estimate39,958,997367,216342,1681.1578.2
1996estimate40,146,478366,456347,3671.1478.3
1997estimate40,328,266371,212345,4431.1578.8
1998estimate40,519,386369,291356,1031.1378.9
1999estimate40,715,495382,692366,5331.1778.9
2000estimate40,910,218399,049356,1971.2179.4
2001estimate41,129,331406,377355,1551.2379.7
2002estimate41,361,868413,223363,4281.2579.8
2003estimate42,149,540434,713379,1311.2979.8
2004estimate42,863,546447,528366,6471.3180.3
2005estimate43,605,586458,937382,1491.3380.3
2006estimate44,312,184473,449366,6411.3681.0
2007estimate45,078,711483,893380,6201.3881.0
2008estimate45,954,303509,388382,0161.4481.3
2009estimate46,515,805490,774381,5761.3881.6
2010estimate46,754,555481,432379,0151.3782.0
2011estimate46,926,388466,867384,3101.3482.2
2012estimate47,069,697451,253400,5161.3282.2
2013estimate46,966,948426,037388,4111.2882.7
2014estimate46,753,830424,669394,0841.3182.8
2015estimate46,686,545417,031420,7741.3382.6
2016estimate46,680,827406,867409,4551.3383.0
2017estimate46,784,715389,984423,3591.3083.0
2018estimate46,952,476370,110426,8861.2683.1
2019estimate47,233,166357,540418,4101.2383.5
2020estimate47,637,072343,355495,3781.1982.2
2021estimate47,721,906340,310457,1821.1983.0
2022estimate47,749,421339,675481,5241.2182.4
2023estimate47,907,344336,821447,4631.2183.7
2024estimate47,915,815333,155455,4041.2283.8
2025projection47,905,23847.7–48.1 million330,044457,2361.2384.0
2026projection47,874,67847.4–48.4 million327,412460,4821.2484.1
2027projection47,826,90747.0–48.7 million324,607462,5511.2484.2
2028projection47,777,63546.6–49.0 million322,894465,3211.2584.4
2029projection47,719,49746.2–49.3 million321,735468,2001.2684.5
2030projection47,652,03245.7–49.6 million320,841471,3381.2684.6
2031projection47,569,00745.2–50.0 million320,892474,9041.2784.8
2032projection47,477,97144.8–50.3 million321,870478,8791.2784.9
2033projection47,389,07444.3–50.7 million323,286482,9681.2885.0
2034projection47,299,03743.9–51.1 million325,802488,7321.2885.2
2035projection47,205,24243.4–51.5 million328,485494,3401.2985.3
2036projection47,103,15042.9–51.9 million331,985500,4621.2985.4
2037projection46,995,78942.4–52.4 million335,173506,3881.3085.5
2038projection46,885,82941.8–52.9 million338,345512,8931.3085.7
2039projection46,774,54241.1–53.3 million341,019519,2151.3185.8
2040projection46,654,76740.6–53.7 million343,441525,6441.3185.9
2041projection46,528,58140.0–54.2 million345,147532,5021.3286.0
2042projection46,397,62939.4–54.7 million345,710538,6681.3386.2
2043projection46,257,59038.8–55.1 million344,856545,6861.3386.3
2044projection46,118,25638.3–55.7 million343,844552,8591.3486.4
2045projection45,963,76437.8–56.1 million340,996559,9191.3486.5
2046projection45,796,16437.0–56.4 million337,691567,3111.3586.7
2047projection45,621,79736.5–56.7 million333,655574,8311.3586.8
2048projection45,437,47835.9–57.0 million328,068582,4221.3586.9
2049projection45,246,72535.1–57.3 million322,942589,7571.3687.0
2050projection45,034,59934.3–57.7 million317,740598,1051.3687.1
2051projection44,822,51633.8–58.3 million312,380604,7861.3687.3
2052projection44,602,04333.1–58.8 million307,589612,3151.3787.4
2053projection44,359,45132.4–59.4 million302,919619,1691.3787.5
2054projection44,100,24431.7–59.8 million298,067625,1051.3887.7
2055projection43,838,12631.1–60.3 million294,189631,6031.3887.8
2056projection43,567,33930.5–60.8 million290,371636,5071.3887.9
2057projection43,270,10629.8–61.0 million287,149641,4071.3988.0
2058projection42,973,12729.0–61.4 million284,499646,0391.3988.1
2059projection42,675,74828.4–62.0 million282,733649,8981.3988.2
2060projection42,366,48527.9–62.8 million281,441652,9121.3988.4
2061projection42,055,19127.3–63.2 million281,065655,1761.4088.5
2062projection41,730,31426.4–63.6 million280,645655,5961.4188.6
2063projection41,402,13125.8–64.2 million280,073656,5961.4188.7
2064projection41,078,45224.9–64.8 million280,036655,6231.4188.8
2065projection40,749,76824.2–65.2 million279,977653,9411.4188.9
2066projection40,430,98423.3–65.4 million280,562651,4531.4289.1
2067projection40,112,71722.7–66.3 million281,652648,5361.4289.2
2068projection39,800,54122.2–66.7 million282,680644,1011.4389.3
2069projection39,487,68021.6–67.1 million283,352638,2651.4389.4
2070projection39,186,37021.1–67.7 million283,806632,2501.4389.5
2071projection38,885,16820.4–68.9 million284,659624,2681.4389.6
2072projection38,596,88219.8–68.8 million285,225614,7691.4489.8
2073projection38,310,26519.2–69.6 million285,410605,3531.4489.9
2074projection38,037,05118.5–70.2 million285,637594,9431.4490.0
2075projection37,770,56618.0–70.3 million285,131583,7481.4490.1
2076projection37,518,67717.4–71.2 million284,953571,5981.4590.2
2077projection37,277,09716.8–72.0 million284,021559,1331.4590.3
2078projection37,049,69716.2–73.0 million283,158547,2131.4590.4
2079projection36,834,31315.7–73.9 million281,950535,0751.4690.5
2080projection36,624,36215.3–74.4 million280,207523,8161.4690.7
2081projection36,424,70815.0–75.5 million277,537513,0601.4690.8
2082projection36,231,14514.5–76.4 million275,177502,1781.4690.9
2083projection36,047,75214.1–77.5 million272,304492,6091.4691.0
2084projection35,866,22913.6–78.5 million269,518483,4371.4691.1
2085projection35,691,22213.4–79.0 million266,651475,7031.4691.2
2086projection35,519,07713.1–80.1 million264,061468,3171.4691.3
2087projection35,354,77512.8–81.1 million261,819461,8601.4791.5
2088projection35,192,40912.4–82.0 million259,357456,4461.4791.6
2089projection35,025,91212.0–82.7 million256,930451,9071.4791.7
2090projection34,857,09511.7–83.7 million254,701448,5531.4791.8
2091projection34,691,37911.3–84.5 million252,676445,5911.4791.9
2092projection34,532,24011.1–85.7 million250,754442,8971.4792.0
2093projection34,374,69410.8–86.7 million249,365442,2921.4792.1
2094projection34,215,78410.5–88.3 million248,155441,4651.4892.2
2095projection34,056,26210.2–89.6 million247,470442,5921.4892.3
2096projection33,892,05110.0–91.8 million246,616443,3781.4892.4
2097projection33,730,3149.7–92.7 million245,882445,8131.4892.5
2098projection33,561,6699.5–93.2 million245,331447,4821.4892.6
2099projection33,389,7949.1–94.4 million244,824448,7691.4892.8
2100projection33,216,1908.6–94.6 million244,706450,7061.4892.9
Show the numbers: Spain, mid-2026, by single year of age
Spain: population by single year of age, mid-2026
AgeMaleFemale
0170,212160,164
1172,571162,862
2174,828165,258
3176,938167,305
4178,684169,050
5179,320170,630
6186,108177,241
7195,332185,505
8205,199194,365
9218,169206,227
10226,550214,522
11231,444218,393
12232,034218,779
13237,368224,052
14247,310232,940
15253,281238,892
16259,387244,257
17269,442253,584
18273,054258,168
19271,212257,506
20271,508259,348
21271,041259,039
22269,621257,158
23264,236250,711
24260,274245,684
25260,369245,528
26257,157243,710
27250,488238,614
28249,136238,640
29249,656241,938
30250,344243,166
31254,271247,156
32261,446254,800
33270,018264,087
34273,692268,034
35275,881270,595
36280,244276,592
37285,218282,898
38289,314287,614
39293,501292,959
40301,095301,270
41309,826309,354
42319,276317,540
43333,573330,016
44348,264342,190
45369,154362,672
46384,274378,363
47393,144384,825
48405,196394,152
49410,456399,090
50411,366400,011
51408,790397,007
52401,459390,258
53393,206385,266
54387,010382,718
55380,214377,602
56374,384374,477
57368,308372,157
58365,066372,344
59365,315373,090
60359,119369,178
61354,304369,055
62346,019362,622
63329,094347,010
64315,411336,401
65304,199331,313
66294,937325,302
67286,596314,910
68276,664305,339
69259,416289,802
70242,776274,068
71229,046262,807
72220,243254,271
73216,770250,812
74205,190241,335
75191,969230,344
76187,426229,966
77188,824236,643
78178,950228,016
79160,736209,152
80153,298204,416
81145,648198,165
82133,730186,432
83116,345166,402
8496,735142,134
8594,914145,324
8678,558126,552
8760,437101,150
8860,264104,974
8956,958106,325
9049,89297,831
9140,95883,811
9233,56272,606
9326,78861,008
9419,91947,945
9514,29837,270
969,93627,991
976,65820,130
984,30013,939
992,6689,221
100+3,54214,117

ESP · 1950–2100 · every age, every year

Spain, every age in every year

Each column is a year and each row an age; the denser the ink in a cell, the more people. Everyone born in the same year climbs one 45° diagonal, so famines, baby booms and migration show up as streaks. Select a cell to follow its generation.

ESP · ages 15–64

Who does the work in Spain

Spain had the most working-age people it is ever expected to have in 2009: 31,974,800 people aged 15–64, against 31,663,600 in 2023.

100 aged 15–64
20 children
31 aged 65+

aged 15–64   children under 15   aged 65 and over

How to read this: take 100 people of working age — the orange row — and the two rows under it are the children (teal) and the people of 65 and over (violet) who lived alongside them in 2023.

Fewer than 50 dependants live alongside every 100 people aged 15–64 in 24 years: 1991–2014.

fewer than 50 dependants per 100   the same, projected   50 or more

How to read this: one stripe a year from 1950 to 2100. A stripe takes colour in a year when fewer than 50 dependants live alongside every 100 people of working age, and stays grey otherwise; hatching means the year is projected.

How every country compares

ESP · arrivals minus departures

Who arrives in Spain, and who leaves

In 2020–2025 Spain gains 168,339 people a year: everyone who arrives, minus everyone who leaves. The age at which that happens most is 20–24, at 29,719 a year more arriving than leaving.

one square = 5,000 people a year
020406080+

more arrive than leave   more leave than arrive

How to read this: age runs left to right, babies to 100. A blue square above the line means arrivals outnumber departures at that age, an orange square below it means the opposite. The figures are the UN's projection for 2020–2025; nobody recorded migration by age before 2020.

Across the counted years, 1950 to 2023, its biggest single-year gain was 772,317 (2007); its biggest loss, 250,741 (2013).

In 2024, 8,870,527 people living in Spain had been born in another country, 19 of every 100 people there, against 2 in 1990.

How migration works everywhere

ESP · births by the mother's age · 1950–2100

Who has the babies in Spain

Of every 100 babies born in Spain in 2023, 2 had a mother under 20, 59 a mother aged 20 to 34 and 39 a mother aged 35 or older. In 1950 it was 2 under 20 and 22 aged 35 or older.

1950
2 · 76 · 22
2023
2 · 59 · 39
2050 · projected
2 · 59 · 39

The mother's age: under 20 20 to 34 35 or older projected

How to read this: one block a year, 100 squares in each, a square for every hundredth baby. The colour is the mother's age group, and the three numbers underneath are those groups in order, youngest first.

Babies born, 2023
336,821
Average age when women have a baby
32.5 years
30.7 in 1950
Babies a year per 1,000 girls aged 15–19
5
8 in 1950
Babies by the mother's age, 1950–2100
Babies born in Spain by the mother's age
Mother's age19501975200020232050 projected2100 projected
10–1447312134675044
15–1910,54032,23611,7255,8904,6724,284
20–24110,292174,89940,33324,91723,09221,077
25–29190,118233,522110,44358,44755,89549,113
30–34130,531136,665155,969114,859109,65485,118
35–3986,25865,24169,98798,39694,53665,420
40–4431,87926,68510,08730,38027,05217,584
45–493,2292,4063703,8292,7652,045
50–54851341362421
All babies562,979672,100399,049336,821317,740244,706

The UN's births for each year, split by the mother's age in the UN's own proportions.

ESP · healthy years · 2021

Years in good health in Spain

A baby born in Spain in 2021 could expect 82.7 years of life, 71.1 of them in full health (95% range 70.2–71.9). That leaves 11.6 years in less than full health, more than the world's 9.5: a longer life usually brings a longer stretch of illness near its end.

Women

71.8 in full health, 13.5 not: 85.3 years

Men

70.3 in full health, 9.7 not: 80.0 years

a year in full health   a year in less than full health

How to read this: each square is a year of life, each row ten years; filled squares are years in full health, rounded to whole years.

Women: 71.8 healthy years of 85.3. Men: 70.3 of 80.0. In 2019, before the pandemic, the healthy years were 71.7.

ESP · forced from home · end of 2025

Displacement in Spain

At the end of 2025, Spain was hosting 759,794 people who had crossed a border into it, about 16 of every 1,000 people living there.

  1. hosted from abroad759,794
  2. Spain nationals abroad899

stayed inside their own country   crossed a border

How to read this: one square stands for 20,000 people, so the rows can be compared with one another. The last row is people from Spain living in another country, wherever they are. An outlined square means fewer people than one square stands for.

In 2025, 144,387 people asked for asylum in Spain for the first time; 333 people from Spain asked for asylum in another country. Of every 100 people from Spain whose claims were decided that year, 0 were given protection. Who asks for asylum, and who is given it

How the world's displacement is counted

ESP · of every 100 people

How people live in Spain

Of every 100 people in Spain in 2025, 51 lived in a city, 28 in a town or suburb and 21 in the countryside.

cities towns and suburbs rural areas

Nearly everyone has electricity at home (2024). 4.2 of every 100 do not use the internet (2024).

How to read this: everyone here, shrunk to 100 squares, with the colour saying whether that hundredth person lives in a city, a town or the countryside. Every country is measured by the same rule.

How the world's people live

ESP · adults 25 and over · 2020

How far people in Spain went in school

Of every 100 adults in Spain in 2020, 2 never went to school and 51 finished upper secondary or went further.

2 never went to school 7 some primary 13 finished primary 27 finished lower secondary 20 finished upper secondary 31 studied after school

Its people aged 15 to 64 are projected to be most numerous in 2025; the ones who finished upper secondary are most numerous later, in 2070.

How to read this: every adult here as one of 100 squares. The stronger the colour, the further that person went in school (the Wittgenstein Centre, 2020).

How far the world's people went in school

ESP · cities · 2025

Cities in Spain

Spain had 84 cities in 2025, home to 24.7 million people. The largest, Madrid, holds 12 of every 100 people in Spain.

  1. Madrid5,583,601
  2. Barcelona3,982,704
  3. Valencia1,390,045
  4. Bilbao741,795
  5. Seville699,504
  6. Zaragoza585,533
  7. Málaga521,854
  8. Palma de Mallorca473,499
  9. Alicante397,948
  10. Las Palmas de Gran Canaria381,670
All 14 cities in Spain that reach 300,000 people

How to read this: the 10 biggest cities here in 2025, drawn on a single scale so the bars can be compared. Each is a built-up area on the UN's rule rather than a city government's patch.

All the world's cities

Apparatus

Sources and method

Every figure on this page comes from the UN's World Population Prospects 2024: the annual country tables (estimates to 2023, projections with 95% intervals from 2024), and the population by single year of age and sex for the pyramid.

The censuses, surveys and registers behind the UN's estimates for Spain are listed, source by source, on the UN's own data sources page.

Sources: UN WPP 2024 · World Bank · UNHCR · country code lists · UN WUP 2025 · Wittgenstein Centre · WHO GHO · flag-icons · Natural Earth. Every source, its licence and how to cite it →

Checked before it was drawn

Verified 2026-09-30 · 73 canaries The pyramid for every year was checked against the published total. What that stamp counts, and what every page here has to pass before it can be built: how this site checks its figures.