As of June 2026, the population of Slovenia is 2.1 million. The number of inhabitants has decreased by 2 thousand in the last year, representing a decline of 0.08%. The median age of the population has increased in recent years, rising from 41.9 years in 2016 to 45.1 years in 2026. Currently, life expectancy at birth is 82.8 years and population density is 105.1 inhabitants per square kilometer.
The population growth rate of Slovenia peaked in 1953, reaching around 1.11% annually, but has since declined to approximately -0.09% in 2026. The annual increase in the number of people has also decreased from a peak of around 17.36 thousand in 1979 to nearly -1.83 thousand in 2026.
In Slovenia, life expectancy at birth has been increasing, with the indicator rising from 78.4 years in 2006 to 82.8 years in 2026, representing an increase of more than 4 years over the past 2 decades.
The cities of Slovenia are small, with the 5 most populated adding up to around 470.2 thousand inhabitants. The most populous city is Ljubljana, con una diferencia significativa sobre las demás, alcanzando approximately 272.2 thousand inhabitants. It is followed by Maribor, Urban Municipality of Maribor with 96.2 thousand and Celje, Urban Municipality of Celje with 38.1 thousand.
These are the 20 most populous cities in Slovenia:
| # | City | Population |
|---|---|---|
| 1 | Ljubljana | 272,220 |
| 2 | Maribor, Urban Municipality of Maribor | 96,209 |
| 3 | Celje, Urban Municipality of Celje | 38,059 |
| 4 | Kranj, Urban Municipality of Kranj | 37,966 |
| 5 | Koper, Urban Municipality of Koper | 25,753 |
| 6 | Novo Mesto, Urban Municipality of Novo Mesto | 24,446 |
| 7 | Velenje, Urban Municipality of Velenje | 24,327 |
| 8 | Ptuj, Urban Municipality of Ptuj | 17,984 |
| 9 | Trbovlje, Municipality of Trbovlje | 15,163 |
| 10 | Kamnik, Municipality of Kamnik | 13,644 |
| # | City | Population |
|---|---|---|
| 11 | Jesenice, Municipality of Jesenice | 13,255 |
| 12 | Domžale, Municipality of Domžale | 13,204 |
| 13 | Nova Gorica, Urban Municipality of Nova Gorica | 13,031 |
| 14 | Škofja Loka | 11,619 |
| 15 | Izola, Municipality of Izola | 11,223 |
| 16 | Murska Sobota, Urban Municipality of Murska Sobota | 11,107 |
| 17 | Postojna, Municipality of Postojna | 9,605 |
| 18 | Logatec | 8,942 |
| 19 | Šentilj v Slov. Goricah, Municipality of Šentilj | 8,452 |
| 20 | Vrhnika, Municipality of Vrhnika | 8,413 |