Geographic History

Flag of SpainPopulation of Spain (2026)

The population of Spain is 47,850,793 in 2026 (UN mid-year projection).

Sources differ: the World Bank reports 49,355,143 for 2025, 3% above the UN projection for the same year (47,889,958).

Spain has the 34th largest population of 195 ranked countries (2026, UN).

Between 2025 and 2026, the population of Spain fell by 39,165 people, or 0.08% (UN).

Spain holds 0.58% of the world population in 2026; the world total is 8,300,678,396 (UN).

Population density in Spain is 97.8 people per km² (2024, World Bank).

80.5% of the population of Spain lives in urban areas (2025, World Bank).

The median age in Spain is 44.9 years (2023, UN).

47,850,793

Live estimate: a straight-line interpolation between the UN mid-year figures for 2026 and 2027. It is not a count.

Key figures

Population, UN mid-year projection
47,850,793 people2026, UN
Population, World Bank
49,355,143 people2025, World Bank, 32 of 194
Change 2025-2026
-39,165 people-0.08%, UN
World rank
34 of 1952026, UN
Share of world population
0.58%2026, UN
Population density
97.8 people per km²2024, World Bank
Urban population share
80.5%2025, World Bank
Median age
44.9 years2023, UN

Population, 1950-2100

010M20M30M40M50M1950200020502100

Solid line: UN values to 2023. Dashed line: projection to 2100 (Medium variant).

Population by year

Population of Spain by year
YearValue (people)ChangeChange, %Basis
202647,850,793-39,165-0.08%projection
202547,889,958-20,568-0.04%projection
202447,910,526-1,0540.00%projection
202347,911,580+83,198+0.17%estimate
202247,828,382+92,718+0.19%estimate
202147,735,664+56,175+0.12%estimate
202047,679,489+244,370+0.52%estimate
201947,435,119+342,298+0.73%estimate
201847,092,821+224,225+0.48%estimate
201746,868,596+135,825+0.29%estimate
201646,732,771+49,085+0.11%estimate
201546,683,686-36,502-0.08%estimate
201446,720,188-140,201-0.30%estimate
201346,860,389-157,934-0.34%estimate
201247,018,323+20,280+0.04%estimate
201146,998,043+157,571+0.34%estimate
201046,840,472+205,292+0.44%estimate
200946,635,180+400,126+0.87%estimate
200846,235,054+718,547+1.58%estimate
200745,516,507+821,059+1.84%estimate
200644,695,448+736,563+1.68%estimate
200543,958,885+724,319+1.68%estimate
200443,234,566+728,023+1.71%estimate
200342,506,543+750,839+1.80%estimate
200241,755,704+510,105+1.24%estimate
200141,245,599+225,825+0.55%estimate
200041,019,774+206,918+0.51%estimate
199940,812,856+195,416+0.48%estimate
199840,617,440+193,614+0.48%estimate
199740,423,826+186,454+0.46%estimate
199640,237,372+184,634+0.46%estimate
199540,052,738+194,017+0.49%estimate
199439,858,721+207,100+0.52%estimate
199339,651,621+231,275+0.59%estimate
199239,420,346+218,587+0.56%estimate
199139,201,759+116,780+0.30%estimate
199039,084,979+55,421+0.14%estimate
198939,029,558+77,294+0.20%estimate
198838,952,264+100,254+0.26%estimate
198738,852,010+116,305+0.30%estimate
198638,735,705+134,384+0.35%estimate
198538,601,321+163,839+0.43%estimate
198438,437,482+184,238+0.48%estimate
198338,253,244+206,143+0.54%estimate
198238,047,101+234,389+0.62%estimate
198137,812,712+275,148+0.73%estimate
198037,537,564+307,192+0.83%estimate
197937,230,372+325,404+0.88%estimate
197836,904,968+353,698+0.97%estimate
197736,551,270+374,990+1.04%estimate
197636,176,280+380,511+1.06%estimate
197535,795,769+434,007+1.23%estimate
197435,361,762+435,238+1.25%estimate
197334,926,524+386,657+1.12%estimate
197234,539,867+382,416+1.12%estimate
197134,157,451+344,728+1.02%estimate
197033,812,723+315,787+0.94%estimate
196933,496,936+326,816+0.99%estimate
196833,170,120+349,369+1.06%estimate
196732,820,751+354,867+1.09%estimate
196632,465,884+355,216+1.11%estimate
196532,110,668+369,082+1.16%estimate
196431,741,586+361,759+1.15%estimate
196331,379,827+339,721+1.09%estimate
196231,040,106+340,539+1.11%estimate
196130,699,567+294,628+0.97%estimate
196030,404,939+264,232+0.88%estimate
195930,140,707+291,048+0.98%estimate
195829,849,659+279,695+0.95%estimate
195729,569,964+246,294+0.84%estimate
195629,323,670+233,894+0.80%estimate
195529,089,776+231,948+0.80%estimate
195428,857,828+225,131+0.79%estimate
195328,632,697+226,656+0.80%estimate
195228,406,041+191,181+0.68%estimate
195128,214,860+137,811+0.49%estimate
195028,077,049--estimate

Spain through history

Spain became independent in 1492.

Map quizzes that include Spain

Population projection to 2100

Population projection to 2100
YearPopulationChange from 2026
203047,610,520-0.5%
204046,591,674-2.6%
205044,928,558-6.1%
206042,210,838-11.8%
207039,035,769-18.4%
208036,524,535-23.7%
209034,774,237-27.3%
210033,127,478-30.8%

Spain in context

Spain in context
CountryPopulationYearDensityRankRelation
France66,746,4012026127 people per km² (2024)23 of 195land neighbour
Algeria48,028,334202619.7 people per km² (2024)32 of 195similar size
Iraq48,007,4372026106 people per km² (2024)33 of 195similar size
Spain47,850,793202697.8 people per km² (2024)34 of 195this country
Argentina46,003,734202616.7 people per km² (2024)35 of 195similar size
Afghanistan45,047,068202665.4 people per km² (2024)36 of 195similar size
Yemen42,961,653202676.9 people per km² (2024)37 of 195similar size
Morocco38,762,441202685.3 people per km² (2024)41 of 195land neighbour
Portugal10,395,3622026117 people per km² (2024)93 of 195land neighbour
Andorra83,7532026175 people per km² (2024)185 of 195land neighbour
Gibraltar40,86720263,933 people per km² (2024)not rankedland neighbour

Frequently asked questions

How many people live in Spain?

The population of Spain is 47,850,793 in 2026 (UN mid-year projection).

How does Spain rank in the world by population?

Spain has the 34th largest population of 195 ranked countries (2026, UN).

Is the population of Spain growing?

Yes. The UN data show a rise from 28,077,049 in 1950 to 47,850,793 in 2026, a change of +70.4%.

What is the population density of Spain?

Population density in Spain is 97.8 people per km² (2024, World Bank).

What will the population of Spain be in 2050?

The UN medium-variant projection for Spain is 44,928,558 in 2050. A projection is not a forecast of certainty: it depends on assumptions about births, deaths and migration.

Why do the UN and the World Bank give different populations for Spain?

The two sources give figures for different years and compile them in different ways. The UN figure is for 1 July of 2026; the World Bank figure is for 2025, the latest year in its data.

What it measures

Total population counts all residents of a country regardless of legal status or citizenship. The UN figure is for 1 July of the year; the World Bank figure is its latest annual value.

Sources and method

UN figures are from UN - World Population Prospects 2024, Medium variant, World Population Prospects 2024 (revision 1): Interim update, released 19 January 2026 (Togo replaced; all other locations as released 11 July 2024); downloaded 2026-11-24. They count people on 1 July of each year. Values up to 2023 are estimates; later values are projections.

World Bank figures are the latest annual value in the data (World Development Indicators). Where the two sources give a population for the same year and differ by more than 2%, the page says so.

The population rank is computed from the UN values for 2026 among the 195 independent states that have a value; territories and dependencies are not ranked.

The yearly table lists the UN values for each year where the source has one; years without a value are left out.

Last updated:

More about Spain

More statistics for Spain

Every year has a map

Drag a timeline across 2,500 years in the free Geographic History app - every province, ruler and battle, also offline.