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

Spain vs Slovenia: population pyramids in 2026

◀2026▶Swap

SpainSlovenia

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.

Spain and Slovenia compared

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

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

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

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

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

Figures from 2024 are UN medium-variant projections.

Key figures (2026)

SpainSlovenia
Population47.9 million2.12 million
Aged 0–1412.5%14.4%
Aged 15–6465.6%63.2%
Aged 65+21.9%22.4%
Median age46.3 yrs45.0 yrs
Old-age dependency33.435.5
Total fertility rate1.241.58
Life expectancy84.1 yrs82.1 yrs
Population growth-0.10%-0.13%
Net migration (per year)+85,305+2,609
GDP$1.91T (2025)$80B (2025)
GDP per person$39K (2025)$37K (2025)
Unemployment10.4% (2025)3.2% (2025)

Economic figures are the latest year published for each country.

Prices by category (2021, World = 100)

SpainSloveniaSpain as % of Slovenia
Food and non-alcoholic drinks11411798%
Bread and cereals12913396%
Meat11012092%
Milk, cheese and eggs10010694%
Fruit123115107%
Vegetables149133112%
Alcoholic drinks808793%
Tobacco133115115%
Clothing and footwear11712693%
Housing, water, electricity and gas148108138%
Health12396128%
Transport services18220389%
Communication146130112%
Recreation and culture104105100%
Education10511096%
Restaurants and hotels11111696%

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