Slovenia vs Spain: population pyramids in 2026
SloveniaSpain
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)
| Slovenia | Spain | |
|---|---|---|
| Population | 2.12 million | 47.9 million |
| Aged 0–14 | 14.4% | 12.5% |
| Aged 15–64 | 63.2% | 65.6% |
| Aged 65+ | 22.4% | 21.9% |
| Median age | 45.0 yrs | 46.3 yrs |
| Old-age dependency | 35.5 | 33.4 |
| Total fertility rate | 1.58 | 1.24 |
| Life expectancy | 82.1 yrs | 84.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) |
| Unemployment | 3.2% (2025) | 10.4% (2025) |
Economic figures are the latest year published for each country.
Prices by category (2021, World = 100)
| Slovenia | Spain | Slovenia as % of Spain | |
|---|---|---|---|
| Food and non-alcoholic drinks | 117 | 114 | 102% |
| Bread and cereals | 133 | 129 | 104% |
| Meat | 120 | 110 | 109% |
| Milk, cheese and eggs | 106 | 100 | 106% |
| Fruit | 115 | 123 | 94% |
| Vegetables | 133 | 149 | 90% |
| Alcoholic drinks | 87 | 80 | 108% |
| Tobacco | 115 | 133 | 87% |
| Clothing and footwear | 126 | 117 | 107% |
| Housing, water, electricity and gas | 108 | 148 | 73% |
| Health | 96 | 123 | 78% |
| Transport services | 203 | 182 | 112% |
| Communication | 130 | 146 | 89% |
| Recreation and culture | 105 | 104 | 100% |
| Education | 110 | 105 | 105% |
| Restaurants and hotels | 116 | 111 | 104% |
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