Skip to content

Population in Morocco compared to Slovenia: Trends, Charts, Rankings

Updated on by Georank team

The latest officially reported population of Morocco was 38,081,173 in 2024 vs 2,127,400 people in Slovenia in 2024. In 2026, based on the adjusted UN estimation, the current Morocco's population is 38,871,720 people compared to 2,124,138 in Slovenia.

Population statistics:

  • Morocco's population is 18.3 times bigger than Slovenia's.
  • Morocco is ranked the 41st most populous country in the world, while Slovenia is the 147th.
  • The countries together account for 0.49% of the world: 0.47% for Morocco vs 0.03% for Slovenia.
  • For the last 10 years, Morocco has had an average growth rate of +1.09% per year vs +0.29% in Slovenia.
  • Since 2006, the population of Morocco has increased from 30.8M people to 38.9M (26.3% growth), while Slovenia has grown from 2.01M to 2.12M (5.84% growth).

Morocco vs Slovenia: population by year and forecast

Morocco
Factual

Projection
Slovenia
Factual

Projection
1x
Year Population
Morocco Slovenia
2100 38,181,184 1,640,541
2099 38,411,679 1,644,752
2098 38,639,306 1,648,834
2097 38,863,211 1,653,196
2096 39,084,772 1,657,434
2095 39,302,453 1,661,656
2094 39,515,556 1,665,825
2093 39,726,709 1,670,076
2092 39,934,218 1,674,280
2091 40,138,565 1,678,462
2090 40,337,690 1,682,998
2089 40,532,151 1,687,376
2088 40,718,654 1,691,788
2087 40,902,624 1,696,409
2086 41,085,174 1,701,325
2085 41,264,970 1,706,189
2084 41,438,801 1,711,157
2083 41,604,865 1,716,396
2082 41,768,393 1,721,709
2081 41,927,610 1,727,302
2080 42,082,087 1,733,405
2079 42,233,228 1,739,518
2078 42,377,404 1,746,152
2077 42,515,702 1,752,783
2076 42,648,054 1,759,639
2075 42,775,325 1,766,867
2074 42,898,811 1,774,528
2073 43,017,234 1,782,697
2072 43,128,932 1,790,658
2071 43,232,517 1,798,960
2070 43,332,679 1,807,483
2069 43,423,419 1,816,607
2068 43,507,485 1,825,849
2067 43,586,077 1,834,865
2066 43,654,657 1,844,034
2065 43,723,648 1,853,651
2064 43,781,054 1,863,550
2063 43,828,593 1,873,173
2062 43,871,197 1,882,832
2061 43,902,710 1,892,739
2060 43,927,001 1,902,939
2059 43,942,510 1,912,861
2058 43,944,996 1,922,175
2057 43,939,695 1,932,119
2056 43,927,624 1,941,469
2055 43,902,661 1,950,861
2054 43,866,486 1,959,953
2053 43,819,100 1,968,641
2052 43,759,239 1,977,227
2051 43,688,144 1,985,279
2050 43,605,074 1,993,115
2049 43,517,919 2,000,477
2048 43,417,554 2,007,283
2047 43,308,462 2,014,140
2046 43,192,511 2,020,756
2045 43,065,569 2,027,366
2044 42,925,634 2,033,871
2043 42,780,215 2,040,173
2042 42,623,872 2,046,339
2041 42,456,113 2,052,041
2040 42,280,578 2,057,278
2039 42,098,906 2,062,718
2038 41,902,451 2,067,922
2037 41,700,541 2,073,705
2036 41,488,891 2,079,201
2035 41,266,216 2,084,471
2034 41,037,058 2,089,430
2033 40,795,454 2,094,601
2032 40,544,755 2,099,622
2031 40,280,535 2,104,690
2030 40,005,642 2,109,416
2029 39,720,087 2,113,874
2028 39,422,016 2,118,053
2027 39,109,148 2,121,324
2026 38,783,685 2,124,138
2025 38,442,658 2,126,340
2024 38,081,173 2,127,400
2023 37,712,505 2,120,461
2022 37,329,064 2,112,076
2021 36,954,442 2,108,079
2020 36,584,208 2,102,419
2019 36,210,898 2,088,385
2018 35,839,760 2,073,894
2017 35,446,392 2,066,388
2016 35,023,457 2,065,042
2015 34,607,588 2,063,531
2014 34,204,780 2,061,980
2013 33,787,571 2,059,953
2012 33,355,241 2,057,159
2011 32,912,588 2,052,843
2010 32,467,016 2,048,583
2009 32,030,778 2,039,669
2008 31,606,767 2,021,316
2007 31,186,468 2,018,122
2006 30,771,178 2,006,868
2005 30,358,144 2,000,474
2004 29,953,018 1,997,012
2003 29,571,415 1,995,733
2002 29,198,142 1,994,530
2001 28,814,643 1,992,060
2000 28,423,435 1,988,925
1999 28,027,179 1,983,045
1998 27,621,648 1,981,629
1997 27,213,337 1,985,956
1996 26,808,107 1,988,628
1995 26,399,429 1,989,872
1994 26,000,822 1,989,443
1993 25,614,586 1,991,746
1992 25,212,468 1,996,498
1991 24,799,014 1,999,429
1990 24,375,551 1,998,161
1989 23,939,414 1,996,351
1988 23,500,524 1,995,196
1987 23,054,392 1,989,776
1986 22,600,803 1,965,964
1985 22,113,953 1,941,641
1984 21,593,778 1,932,154
1983 21,060,696 1,922,321
1982 20,520,318 1,910,334
1981 19,985,401 1,906,531
1980 19,459,943 1,901,315
1979 18,955,589 1,882,599
1978 18,477,385 1,862,548
1977 18,014,756 1,842,377
1976 17,574,182 1,820,249
1975 17,150,786 1,793,581
1974 16,733,842 1,776,132
1973 16,326,269 1,766,697
1972 15,924,692 1,752,233
1971 15,527,225 1,738,335
1970 15,129,449 1,724,891
1969 14,734,255 1,713,874
1968 14,347,899 1,704,546
1967 13,968,175 1,689,528
1966 13,597,065 1,669,905
1965 13,239,171 1,649,160
1964 12,898,886 1,632,114
1963 12,577,502 1,616,971
1962 12,253,092 1,603,649
1961 11,931,085 1,594,131
1960 11,624,933 1,584,720

Data sources: United Nations | World Population Prospects (2025–2100, retrieved 2026-03-10); World Bank | Health (1960–2024, retrieved 2026-04-06).

GeoRank.org/population/morocco/slovenia | CC BY

From 2006 to 2016, the population of Morocco increased by 4,252,279 people (a 13.8% growth), while Slovenia gained 58,174 people (a 2.9% growth).

For the next 10 years, from 2016 to 2026, Morocco gained 3,848,263 people (a 11% growth), while Slovenia's population increased by 59,096 people (a 2.86% growth).

Morocco was ranked 37th most populous country in 2006 and is 41st in 2026. Slovenia was ranked 141st in 2006 and ranked 147th now.

The UN's World Population Prospects forecasts that in 24 years (in 2050) Morocco's population will grow by 12.2% to 43,605,074 people with a rank change from 41st to 50th. The population of Slovenia will decrease by 6.17% to 1,993,115 people and will still be ranked 147th.

Morocco is projected to reach its peak in 2058 at 43.9M people, while Slovenia's population already peaked in 2024 at 2.13M people and is projected to decrease to 1.64M people by 2100.

Population growth rate by year

Morocco
Factual

Projection
Slovenia
Factual

Projection
1x
Year Growth rate
Morocco Slovenia
2100 -0.6% -0.26%
2099 -0.59% -0.25%
2098 -0.58% -0.26%
2097 -0.57% -0.26%
2096 -0.55% -0.25%
2095 -0.54% -0.25%
2094 -0.53% -0.25%
2093 -0.52% -0.25%
2092 -0.51% -0.25%
2091 -0.49% -0.27%
2090 -0.48% -0.26%
2089 -0.46% -0.26%
2088 -0.45% -0.27%
2087 -0.44% -0.29%
2086 -0.44% -0.29%
2085 -0.42% -0.29%
2084 -0.4% -0.31%
2083 -0.39% -0.31%
2082 -0.38% -0.32%
2081 -0.37% -0.35%
2080 -0.36% -0.35%
2079 -0.34% -0.38%
2078 -0.33% -0.38%
2077 -0.31% -0.39%
2076 -0.3% -0.41%
2075 -0.29% -0.43%
2074 -0.28% -0.46%
2073 -0.26% -0.44%
2072 -0.24% -0.46%
2071 -0.23% -0.47%
2070 -0.21% -0.5%
2069 -0.19% -0.51%
2068 -0.18% -0.49%
2067 -0.16% -0.5%
2066 -0.16% -0.52%
2065 -0.13% -0.53%
2064 -0.11% -0.51%
2063 -0.1% -0.51%
2062 -0.07% -0.52%
2061 -0.06% -0.54%
2060 -0.04% -0.52%
2059 -0.006% -0.48%
2058 0.01% -0.51%
2057 0.03% -0.48%
2056 0.06% -0.48%
2055 0.08% -0.46%
2054 0.11% -0.44%
2053 0.14% -0.43%
2052 0.16% -0.41%
2051 0.19% -0.39%
2050 0.2% -0.37%
2049 0.23% -0.34%
2048 0.25% -0.34%
2047 0.27% -0.33%
2046 0.29% -0.33%
2045 0.33% -0.32%
2044 0.34% -0.31%
2043 0.37% -0.3%
2042 0.4% -0.28%
2041 0.42% -0.25%
2040 0.43% -0.26%
2039 0.47% -0.25%
2038 0.48% -0.28%
2037 0.51% -0.26%
2036 0.54% -0.25%
2035 0.56% -0.24%
2034 0.59% -0.25%
2033 0.62% -0.24%
2032 0.66% -0.24%
2031 0.69% -0.22%
2030 0.72% -0.21%
2029 0.76% -0.2%
2028 0.8% -0.15%
2027 0.84% -0.13%
2026 0.89% -0.1%
2025 0.95% -0.05%
2024 0.98% 0.33%
2023 1.03% 0.4%
2022 1.01% 0.19%
2021 1.01% 0.27%
2020 1.03% 0.67%
2019 1.04% 0.7%
2018 1.11% 0.36%
2017 1.21% 0.07%
2016 1.2% 0.07%
2015 1.18% 0.08%
2014 1.23% 0.1%
2013 1.3% 0.14%
2012 1.34% 0.21%
2011 1.37% 0.21%
2010 1.36% 0.44%
2009 1.34% 0.91%
2008 1.35% 0.16%
2007 1.35% 0.56%
2006 1.36% 0.32%
2005 1.35% 0.17%
2004 1.29% 0.06%
2003 1.28% 0.06%
2002 1.33% 0.12%
2001 1.38% 0.16%
2000 1.41% 0.3%
1999 1.47% 0.07%
1998 1.5% -0.22%
1997 1.51% -0.13%
1996 1.55% -0.06%
1995 1.53% 0.02%
1994 1.51% -0.12%
1993 1.59% -0.24%
1992 1.67% -0.15%
1991 1.74% 0.06%
1990 1.82% 0.09%
1989 1.87% 0.06%
1988 1.94% 0.27%
1987 2.01% 1.21%
1986 2.2% 1.25%
1985 2.41% 0.49%
1984 2.53% 0.51%
1983 2.63% 0.63%
1982 2.68% 0.2%
1981 2.7% 0.27%
1980 2.66% 0.99%
1979 2.59% 1.08%
1978 2.57% 1.09%
1977 2.51% 1.22%
1976 2.47% 1.49%
1975 2.49% 0.98%
1974 2.5% 0.53%
1973 2.52% 0.83%
1972 2.56% 0.8%
1971 2.63% 0.78%
1970 2.68% 0.64%
1969 2.69% 0.55%
1968 2.72% 0.89%
1967 2.73% 1.18%
1966 2.7% 1.26%
1965 2.64% 1.04%
1964 2.56% 0.94%
1963 2.65% 0.83%
1962 2.7% 0.6%
1961 2.63% 0.59%

Data sources: United Nations | World Population Prospects (2025–2100, retrieved 2026-03-10); World Bank | Health (1961–2024, retrieved 2026-04-06).

GeoRank.org/population/morocco/slovenia | CC BY

In 2024, the population of Morocco grew by 0.98%, while Slovenia's population grew by 0.33%.

Live population counters

Morocco Slovenia
Current population
38871720
2124138
Population rank 41/197 147/197
Percent of world population 0.47% 0.03%
One net population change
1.43 minutes
1.26 hours
One birth every
50.1 seconds
31 minutes
One death every
2.47 minutes
24.3 minutes
Daily growth/decline +1,010 +19
Annual growth/decline +368,668 +6,939
Annual growth/decline rate +0.98% +0.33%
Population growth rate rank 104/197 148/197
One migration net change every
9.37 minutes
3.24 hours
Annual migration change -56,254 +2,711
Net migration rank 176/196 55/196
Foreign-born residents 111,069 315,122
Foreign-born residents rank 129/195 97/195
Foreign-born share of population 0.3% 14.9%
Foreign-born share rank 182/195 44/195

Natural population change vs migration

Morocco
Natural

Migration
Slovenia
Natural

Migration
1x
Year Population change
Morocco Slovenia
Natural Migration Natural Migration
2025 - -56,254 - 2,711
2024 - -46,802 - 3,319
2023 417,213 -39,650 -4,665 5,339
2022 427,903 -38,594 -4,858 9,014
2021 407,829 -47,902 -4,216 2,477
2020 415,999 -35,474 -5,256 28,514
2019 457,307 -91,217 -1,254 16,352
2018 464,375 -88,159 -1,037 14,640
2017 471,011 -60,472 -207 1,359
2016 474,637 -39,302 826 1,195
2015 477,654 -81,248 826 712
2014 481,295 -72,065 2,268 -70
2013 492,284 -67,096 1,648 639
2012 504,698 -65,251 2,674 1,117
2011 513,305 -67,447 3,285 2,190
2010 515,804 -70,510 3,687 -410
2009 509,386 -82,203 3,060 11,594
2008 499,766 -78,912 3,437 2,971
2007 493,526 -73,759 1,211 14,191
2006 483,200 -72,364 602 6,081
2005 474,285 -59,024 -600 6,317
2004 461,756 -66,749 -599 1,759
2003 452,650 -84,460 -1,996 3,218
2002 446,147 -67,802 -1,197 1,975
2001 452,621 -63,967 -996 4,527
2000 461,341 -67,569 -398 3,124
1999 473,071 -74,343 -1,388 10,291
1998 492,604 -80,286 -1,189 -5,280
1997 500,807 -96,502 -794 -1,298
1996 501,499 -95,331 0 -2,456
1995 496,573 -85,386 0 356
1994 501,426 -115,404 199 -153
1993 507,707 -121,254 -199 -4,641
1992 525,680 -107,911 598 -5,547
1991 539,850 -130,717 2,199 -3,325
1990 535,506 -97,711 3,797 618
1989 538,996 -104,509 4,592 -2,718
1988 545,800 -102,484 5,986 -3,023
1987 553,005 -104,029 5,771 2,972
1986 558,105 -99,905 6,094 32,700
1985 560,810 -45,336 6,213 3,404
1984 564,159 -39,319 5,990 3,280
1983 566,301 -24,988 6,343 3,613
1982 564,904 -25,471 9,170 -8,695
1981 552,936 -22,553 10,485 -5,016
1980 534,448 -13,899 11,027 3,128
1979 515,554 -27,374 12,614 2,107
1978 498,834 -30,600 11,920 2,113
1977 489,173 -32,161 12,160 2,584
1976 482,130 -58,019 12,196 2,226
1975 474,631 -51,968 11,658 2,421
1974 464,147 -52,927 11,367 3,145
1973 455,699 -51,772 11,837 2,175
1972 446,449 -47,226 10,513 2,924
1971 435,104 -39,385 10,951 2,286
1970 426,015 -26,168 10,004 260
1969 414,931 -24,389 9,427 685
1968 407,437 -25,267 11,250 438
1967 400,594 -23,309 13,516 -192
1966 391,881 -26,945 15,697 -1,262
1965 383,989 -33,139 14,513 -1,421
1964 375,835 -46,106 12,567 -349
1963 369,250 -56,214 14,068 -180
1962 363,843 -28,071 13,150 148
1961 348,650 -40,413 14,985 -306
1960 323,499 -19,434 12,678 -929

Data sources: World Bank | Health (1960–2025, retrieved 2026-04-06).

GeoRank.org/population/morocco/slovenia | CC BY

Over the last 10 years, 88.3% of the population change in Morocco is from natural causes (a gain of 4,495,223 people) and 11.7% is from migration (a loss of 594,083 people). In Slovenia 18.1% is from natural causes (a loss of 17,573 people) and 81.9% is from migration (a gain of 79,532 people).

As of 2024, 111,069 residents or 0.3% of the population were not native-born in Morocco, compared to 315,122 people or 14.9% in Slovenia.

Biggest cities by population

Morocco
City Population
Casablanca 3.22M
Tangier 1.28M
Fez 1.17M
Marrakesh 1M
Sale 945K
Meknes 601K
Rabat 573K
Agadir 538K
Kenitra 508K
Oujda 506K
Slovenia
City Population
Ljubljana 284K
Maribor 114K
Kranj 37.6K
Celje 37.1K
Velenje 25.6K
Novo Mesto 24.2K
Nova Gorica 13K
Izola 11.7K
Murska Sobota 11.2K
Piran 3.79K

Compare countries by 7 more topics

Population map with other countries

1x

Data sources: World Bank | Health (1960–2024, retrieved 2026-04-06); United Nations | World Population Prospects (1960–2026, retrieved 2026-03-10); U.S. Census Bureau (1960–2025, retrieved 2026-02-08); Central Intelligence Agency (CIA) (2000–2019, retrieved 2026-02-20).

GeoRank.org/population/morocco/slovenia | CC BY

Help us show the world through your eyes

Share a photo of your city and help others discover what it looks like to live there. Your contribution makes our data come alive.

Data sources:

  1. World Bank | Health (1960–2025, retrieved 2026-04-06)
  2. United Nations | World Population Prospects (1960–2100, retrieved 2026-03-10)
  3. U.S. Census Bureau (1960–2025, retrieved 2026-02-08)
  4. Wikidata (2026, retrieved 2026-02-08)
  5. Central Intelligence Agency (CIA) (2000–2019, retrieved 2026-02-20)

Creative Commons Attribution (CC BY) — you’re free to copy, share, remix, adapt, and use even commercially as long as you give appropriate credit and clearly indicate if you made changes. Other sources may be subject to different license terms.