Skip to content

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

Updated on by Georank

The latest officially reported population of Morocco was 38,430,770 in 2025 vs 49,355,143 people in Spain in 2025. In 2026, based on the adjusted UN estimation, the current Morocco's population is 38,938,817 people compared to 49,323,658 in Spain.

Population statistics:

  • Spain's population is 1.27 times bigger than Morocco's.
  • Morocco is ranked the 41st most populous country in the world, while Spain is the 32nd.
  • The countries together account for 1.06% of the world: 0.47% for Morocco vs 0.59% for Spain.
  • For the last 10 years, Morocco has had an average growth rate of +1.06% per year vs +0.55% in Spain.
  • Since 2006, the population of Morocco has increased from 30.8M people to 38.9M (26.5% growth), while Spain has grown from 44.4M to 49.3M (11.1% growth).

Morocco vs Spain: population by year and forecast

Morocco
Factual

Projection
Spain
Factual

Projection
1x
Year Population
Morocco Spain
2100 38,169,376 34,221,514
2099 38,399,800 34,400,373
2098 38,627,357 34,577,450
2097 38,851,192 34,751,199
2096 39,072,685 34,917,831
2095 39,290,298 35,087,012
2094 39,503,336 35,251,362
2093 39,714,423 35,415,082
2092 39,921,868 35,577,396
2091 40,126,152 35,741,351
2090 40,325,215 35,912,083
2089 40,519,616 36,086,009
2088 40,706,061 36,257,546
2087 40,889,974 36,424,826
2086 41,072,468 36,594,101
2085 41,252,209 36,771,456
2084 41,425,986 36,951,760
2083 41,591,998 37,138,777
2082 41,755,476 37,327,720
2081 41,914,644 37,527,142
2080 42,069,073 37,732,838
2079 42,220,167 37,949,144
2078 42,364,299 38,171,047
2077 42,502,554 38,405,329
2076 42,634,865 38,654,221
2075 42,762,096 38,913,733
2074 42,885,545 39,188,284
2073 43,003,930 39,469,767
2072 43,115,594 39,765,059
2071 43,219,147 40,062,070
2070 43,319,278 40,372,388
2069 43,409,990 40,682,818
2068 43,494,031 41,005,148
2067 43,572,598 41,326,772
2066 43,641,156 41,654,672
2065 43,710,126 41,983,104
2064 43,767,514 42,321,736
2063 43,815,039 42,655,212
2062 43,857,629 42,993,328
2061 43,889,133 43,328,037
2060 43,913,417 43,648,753
2059 43,928,921 43,967,376
2058 43,931,406 44,273,756
2057 43,926,107 44,579,723
2056 43,914,039 44,885,952
2055 43,889,084 45,164,935
2054 43,852,920 45,434,986
2053 43,805,549 45,702,038
2052 43,745,706 45,951,973
2051 43,674,633 46,179,119
2050 43,591,589 46,397,620
2049 43,504,461 46,616,167
2048 43,404,127 46,812,693
2047 43,295,069 47,002,591
2046 43,179,153 47,182,235
2045 43,052,251 47,354,908
2044 42,912,359 47,514,076
2043 42,766,985 47,657,627
2042 42,610,691 47,801,904
2041 42,442,983 47,936,819
2040 42,267,502 48,066,825
2039 42,085,886 48,190,225
2038 41,889,492 48,304,880
2037 41,687,645 48,418,168
2036 41,476,060 48,528,778
2035 41,253,454 48,633,960
2034 41,024,367 48,730,594
2033 40,782,838 48,823,356
2032 40,532,216 48,914,944
2031 40,268,078 49,008,735
2030 39,993,270 49,094,273
2029 39,707,804 49,163,780
2028 39,409,825 49,223,677
2027 39,097,054 49,274,441
2026 38,771,691 49,323,658
2025 38,430,770 49,355,143
2024 38,081,173 48,848,840
2023 37,712,505 48,352,528
2022 37,329,064 47,786,102
2021 36,954,442 47,443,821
2020 36,584,208 47,359,424
2019 36,210,898 47,118,501
2018 35,839,760 46,782,011
2017 35,446,392 46,571,232
2016 35,023,457 46,458,139
2015 34,607,588 46,422,303
2014 34,204,780 46,460,733
2013 33,787,571 46,604,197
2012 33,355,241 46,773,055
2011 32,912,588 46,742,697
2010 32,467,016 46,576,897
2009 32,030,778 46,362,946
2008 31,606,767 45,954,106
2007 31,186,468 45,226,803
2006 30,771,178 44,397,319
2005 30,358,144 43,653,155
2004 29,953,018 42,921,895
2003 29,571,415 42,187,645
2002 29,198,142 41,431,558
2001 28,814,643 40,850,412
2000 28,423,435 40,567,864
1999 28,027,179 40,386,875
1998 27,621,648 40,223,509
1997 27,213,337 40,057,389
1996 26,808,107 39,889,852
1995 26,399,429 39,724,050
1994 26,000,822 39,549,108
1993 25,614,586 39,361,262
1992 25,212,468 39,157,685
1991 24,799,014 38,966,376
1990 24,375,551 38,867,322
1989 23,939,414 38,827,764
1988 23,500,524 38,766,939
1987 23,054,392 38,684,815
1986 22,600,803 38,584,624
1985 22,113,953 38,469,512
1984 21,593,778 38,330,364
1983 21,060,696 38,171,525
1982 20,520,318 37,986,012
1981 19,985,401 37,758,631
1980 19,459,943 37,491,165
1979 18,955,589 37,191,330
1978 18,477,385 36,864,898
1977 18,014,756 36,511,638
1976 17,574,182 36,137,812
1975 17,150,786 35,757,900
1974 16,733,842 35,373,335
1973 16,326,269 34,988,947
1972 15,924,692 34,604,469
1971 15,527,225 34,224,490
1970 15,129,449 33,814,531
1969 14,734,255 33,441,054
1968 14,347,899 33,113,134
1967 13,968,175 32,682,947
1966 13,597,065 32,283,194
1965 13,239,171 31,954,292
1964 12,898,886 31,609,195
1963 12,577,502 31,296,651
1962 12,253,092 31,023,366
1961 11,931,085 30,739,250
1960 11,624,933 30,455,000

Data sources: United Nations | World Population Prospects (2026–2100, retrieved 2026-07-08); World Bank | Health (1960–2025, retrieved 2026-07-08).

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

From 2006 to 2016, the population of Morocco increased by 4,252,279 people (a 13.8% growth), while Spain gained 2,060,820 people (a 4.64% growth).

For the next 10 years, from 2016 to 2026, Morocco gained 3,915,360 people (a 11.2% growth), while Spain's population increased by 2,865,519 people (a 6.17% growth).

Morocco was ranked 37th most populous country in 2006 and is 41st in 2026. Spain was ranked 28th in 2006 and ranked 32nd now.

The UN's World Population Prospects forecasts that in 24 years (in 2050) Morocco's population will grow by 11.9% to 43,591,589 people with a rank change from 41st to 50th. The population of Spain will decrease by 5.93% to 46,397,620 people and rank change from 32nd to 46th.

Morocco is projected to reach its peak in 2058 at 43.9M people, while Spain's population already peaked in 2025 at 49.4M people and is projected to decrease to 34.2M people by 2100.

Population growth rate by year

Morocco
Factual

Projection
Spain
Factual

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

Data sources: United Nations | World Population Prospects (2026–2100, retrieved 2026-07-08); World Bank | Health (1961–2025, retrieved 2026-07-08).

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

In 2025, the population of Morocco grew by 0.92%, while Spain's population grew by 1.04%.

Live population counters

Morocco Spain
Current population
38938817
49323658
Population rank 41/197 32/197
Percent of world population 0.47% 0.59%
One net population change
1.51 minutes
1.04 minutes
One birth every
50.5 seconds
1.66 minutes
One death every
2.41 minutes
1.21 minutes
Daily growth/decline +958 +1,387
Annual growth/decline +349,597 +506,303
Annual growth/decline rate +0.92% +1.04%
Population growth rate rank 105/197 98/197
One migration net change every
9.37 minutes
5.45 minutes
Annual migration change -56,254 +96,630
Net migration rank 176/196 17/196
Foreign-born residents 111,069 8,870,527
Foreign-born residents rank 129/195 6/195
Foreign-born share of population 0.3% 18.5%
Foreign-born share rank 182/195 32/195

Natural population change vs migration

Morocco
Natural

Migration
Spain
Natural

Migration
1x
Year Population change
Morocco Spain
Natural Migration Natural Migration
2025 - -56,254 - 96,630
2024 406,555 -46,802 -117,237 111,674
2023 417,213 -39,650 -116,046 119,099
2022 427,903 -38,594 -133,801 299,779
2021 407,829 -47,902 -113,865 144,385
2020 415,999 -35,474 -151,551 236,854
2019 457,307 -91,217 -56,542 464,783
2018 464,375 -88,159 -56,139 337,467
2017 471,011 -60,472 -32,600 201,135
2016 474,637 -39,302 0 106,474
2015 477,654 -81,248 -4,642 -1,979
2014 481,295 -72,065 32,522 -97,870
2013 492,284 -67,096 37,284 -250,741
2012 504,698 -65,251 51,450 -153,486
2011 513,305 -67,447 84,137 60,761
2010 515,804 -70,510 102,469 69,406
2009 509,386 -82,203 106,635 129,557
2008 499,766 -78,912 133,267 434,135
2007 493,526 -73,759 108,545 772,317
2006 483,200 -72,364 110,994 659,720
2005 474,285 -59,024 78,576 629,803
2004 461,756 -66,749 85,844 661,158
2003 452,650 -84,460 54,844 658,428
2002 446,147 -67,802 53,861 737,880
2001 452,621 -63,967 44,936 181,307
2000 461,341 -67,569 36,512 176,269
1999 473,071 -74,343 8,077 178,559
1998 492,604 -80,286 4,022 182,926
1997 500,807 -96,502 20,028 165,345
1996 501,499 -95,331 11,967 162,704
1995 496,573 -85,386 15,889 162,434
1994 501,426 -115,404 31,639 160,407
1993 507,707 -121,254 47,234 160,907
1992 525,680 -107,911 62,652 177,544
1991 539,850 -130,717 58,450 122,841
1990 535,506 -97,711 66,075 -30,684
1989 538,996 -104,509 81,538 -25,892
1988 545,800 -102,484 100,794 -17,663
1987 553,005 -104,029 116,054 -12,681
1986 558,105 -99,905 131,188 -13,540
1985 560,810 -45,336 146,184 -589
1984 564,159 -39,319 172,487 2,754
1983 566,301 -24,988 183,223 1,241
1982 564,904 -25,471 231,714 -7,384
1981 552,936 -22,553 237,879 2,563
1980 534,448 -13,899 281,184 20,166
1979 515,554 -27,374 312,407 -5,929
1978 498,834 -30,600 339,157 -2,504
1977 489,173 -32,161 361,465 -1,332
1976 482,130 -58,019 375,834 2,804
1975 474,631 -51,968 371,882 -218
1974 464,147 -52,927 396,182 105,838
1973 455,699 -51,772 374,381 8,624
1972 446,449 -47,226 391,030 7,935
1971 435,104 -39,385 369,625 7,363
1970 426,015 -26,168 378,723 -60,580
1969 414,931 -24,389 367,851 -49,956
1968 407,437 -25,267 387,423 -46,088
1967 400,594 -23,309 402,001 -42,344
1966 391,881 -26,945 397,084 -41,467
1965 383,989 -33,139 405,819 -42,476
1964 375,835 -46,106 429,885 -41,461
1963 369,250 -56,214 394,338 -44,446
1962 363,843 -28,071 384,690 -45,211
1961 348,650 -40,413 396,537 -46,517
1960 323,499 -19,434 398,960 -154,869

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

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

Over the last 10 years, 88.6% of the population change in Morocco is from natural causes (a gain of 4,420,483 people) and 11.4% is from migration (a loss of 568,820 people). In Spain 27.9% is from natural causes (a loss of 782,423 people) and 72.1% is from migration (a gain of 2,019,671 people).

As of 2024, 111,069 residents or 0.3% of the population were not native-born in Morocco, compared to 8,870,527 people or 18.5% in Spain.

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
Spain
City Population
Madrid 3.51M
Barcelona 1.73M
Tenerife 955K
Valencia 841K
Zaragoza 693K
Seville 689K
Malaga 599K
Palma de Mallorca 435K
Las Palmas 382K
Alicante 366K

Compare countries by 7 more topics

Population map with other countries

1x

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

GeoRank.org/population/morocco/spain | 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-07-08)
  2. United Nations | World Population Prospects (1960–2100, retrieved 2026-07-08)
  3. U.S. Census Bureau (1960–2025, retrieved 2026-07-08)
  4. Wikidata (2026, retrieved 2026-07-08)
  5. Central Intelligence Agency (CIA) (2000–2019, retrieved 2026-07-08)

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.