Skip to content

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

Updated on by Georank team

The latest officially reported population of Morocco was 38,081,173 in 2024 vs 48,848,840 people in Spain in 2024. In 2026, based on the adjusted UN estimation, the current Morocco's population is 38,871,720 people compared to 48,806,901 in Spain.

Population statistics:

  • Spain's population is 1.26 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.09% per year vs +0.43% in Spain.
  • Since 2006, the population of Morocco has increased from 30.8M people to 38.9M (26.3% growth), while Spain has grown from 44.4M to 48.8M (9.93% growth).

Morocco vs Spain: population by year and forecast

Morocco
Factual

Projection
Spain
Factual

Projection
1x
Year Population
Morocco Spain
2100 38,181,184 33,862,981
2099 38,411,679 34,039,965
2098 38,639,306 34,215,187
2097 38,863,211 34,387,116
2096 39,084,772 34,552,002
2095 39,302,453 34,719,411
2094 39,515,556 34,882,039
2093 39,726,709 35,044,043
2092 39,934,218 35,204,657
2091 40,138,565 35,366,895
2090 40,337,690 35,535,838
2089 40,532,151 35,707,942
2088 40,718,654 35,877,681
2087 40,902,624 36,043,209
2086 41,085,174 36,210,710
2085 41,264,970 36,386,207
2084 41,438,801 36,564,622
2083 41,604,865 36,749,680
2082 41,768,393 36,936,644
2081 41,927,610 37,133,976
2080 42,082,087 37,337,517
2079 42,233,228 37,551,557
2078 42,377,404 37,771,135
2077 42,515,702 38,002,963
2076 42,648,054 38,249,247
2075 42,775,325 38,506,040
2074 42,898,811 38,777,715
2073 43,017,234 39,056,249
2072 43,128,932 39,348,447
2071 43,232,517 39,642,346
2070 43,332,679 39,949,413
2069 43,423,419 40,256,590
2068 43,507,485 40,575,543
2067 43,586,077 40,893,798
2066 43,654,657 41,218,263
2065 43,723,648 41,543,254
2064 43,781,054 41,878,338
2063 43,828,593 42,208,320
2062 43,871,197 42,542,893
2061 43,902,710 42,874,096
2060 43,927,001 43,191,452
2059 43,942,510 43,506,737
2058 43,944,996 43,809,907
2057 43,939,695 44,112,668
2056 43,927,624 44,415,689
2055 43,902,661 44,691,749
2054 43,866,486 44,958,971
2053 43,819,100 45,223,225
2052 43,759,239 45,470,541
2051 43,688,144 45,695,307
2050 43,605,074 45,911,520
2049 43,517,919 46,127,777
2048 43,417,554 46,322,244
2047 43,308,462 46,510,152
2046 43,192,511 46,687,914
2045 43,065,569 46,858,778
2044 42,925,634 47,016,278
2043 42,780,215 47,158,325
2042 42,623,872 47,301,091
2041 42,456,113 47,434,593
2040 42,280,578 47,563,236
2039 42,098,906 47,685,343
2038 41,902,451 47,798,797
2037 41,700,541 47,910,899
2036 41,488,891 48,020,350
2035 41,266,216 48,124,430
2034 41,037,058 48,220,051
2033 40,795,454 48,311,842
2032 40,544,755 48,402,470
2031 40,280,535 48,495,278
2030 40,005,642 48,579,920
2029 39,720,087 48,648,699
2028 39,422,016 48,707,969
2027 39,109,148 48,758,200
2026 38,783,685 48,806,901
2025 38,442,658 48,838,057
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 (2025–2100, retrieved 2026-03-10); World Bank | Health (1960–2024, retrieved 2026-04-06).

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,848,263 people (a 11% growth), while Spain's population increased by 2,348,762 people (a 5.06% 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 12.2% to 43,605,074 people with a rank change from 41st to 50th. The population of Spain will decrease by 5.93% to 45,911,520 people and rank change from 32nd to 47th.

Morocco is projected to reach its peak in 2058 at 43.9M people, while Spain's population already peaked in 2024 at 48.8M people and is projected to decrease to 33.9M 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.95% -0.02%
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 (2025–2100, retrieved 2026-03-10); World Bank | Health (1961–2024, retrieved 2026-04-06).

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

In 2024, the population of Morocco grew by 0.98%, while Spain's population grew by 1.03%.

Live population counters

Morocco Spain
Current population
38871720
48806901
Population rank 41/197 32/197
Percent of world population 0.47% 0.59%
One net population change
1.43 minutes
1.06 minutes
One birth every
50.1 seconds
1.62 minutes
One death every
2.47 minutes
1.21 minutes
Daily growth/decline +1,010 +1,360
Annual growth/decline +368,668 +496,312
Annual growth/decline rate +0.98% +1.03%
Population growth rate rank 104/197 100/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 - -46,802 - 111,674
2023 417,213 -39,650 -111,211 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-04-06).

GeoRank.org/population/morocco/spain | 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 Spain 25.8% is from natural causes (a loss of 627,829 people) and 74.2% is from migration (a gain of 1,810,127 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–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/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-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.