World Population PyramidsPopulation pyramids and indicators by country and year日本語

Slovenia vs Spain: population pyramids in 2026

◀2026▶Swap

SloveniaSpain

1%0.75%0.5%0.25%0%0.25%0.5%0.75%1%0102030405060708090100+MaleFemale

Each bar is the share of the total population at that single year of age (men left, women right), so countries of different sizes can be compared.

Slovenia and Spain compared

In 2026, Slovenia has a population of 2.12 million and Spain 47.9 million; Spain is about 23 times the size of Slovenia.

The share aged 65 and over is 22.4% in Slovenia and 21.9% in Spain, 0.5 points higher in Slovenia. The median age is 45.0 years in Slovenia and 46.3 years in Spain.

The total fertility rate is 1.58 in Slovenia and 1.24 in Spain, both below the replacement level of about 2.1. Life expectancy at birth is 82.1 years in Slovenia and 84.1 years in Spain.

By 2050, the population of Slovenia is projected to shrink by 6.2% and that of Spain to shrink by 5.9% compared with 2026.

GDP per person is $37K in Slovenia (2025) and $39K in Spain (2025).

Figures from 2024 are UN medium-variant projections.

Key figures (2026)

SloveniaSpain
Population2.12 million47.9 million
Aged 0–1414.4%12.5%
Aged 15–6463.2%65.6%
Aged 65+22.4%21.9%
Median age45.0 yrs46.3 yrs
Old-age dependency35.533.4
Total fertility rate1.581.24
Life expectancy82.1 yrs84.1 yrs
Population growth-0.13%-0.10%
Net migration (per year)+2,609+85,305
GDP$80B (2025)$1.91T (2025)
GDP per person$37K (2025)$39K (2025)
Unemployment3.2% (2025)10.4% (2025)

Economic figures are the latest year published for each country.

Prices by category (2021, World = 100)

SloveniaSpainSlovenia as % of Spain
Food and non-alcoholic drinks117114102%
Bread and cereals133129104%
Meat120110109%
Milk, cheese and eggs106100106%
Fruit11512394%
Vegetables13314990%
Alcoholic drinks8780108%
Tobacco11513387%
Clothing and footwear126117107%
Housing, water, electricity and gas10814873%
Health9612378%
Transport services203182112%
Communication13014689%
Recreation and culture105104100%
Education110105105%
Restaurants and hotels116111104%

Price level indices from the World Bank's International Comparison Program (ICP 2021, CC BY 4.0): the same goods and services at market exchange rates of 2021. Rankings by category

Compare other years