Skip to content

Morocco vs Spain statistics compared

Updated on by Georank team

Morocco has a population of 38.1M (ranked 39/197), compared with 48.8M in Spain (ranked 32/197). Morocco's land area is 172,317 sq mi versus 192,934 sq mi for Spain (ranked 55th vs. 51st).

By GDP, Morocco ranks 58/197 ($161B) and Spain ranks 15/197 ($1.73T). By GDP per capita, Morocco ranks 127/197 ($4,218), while Spain ranks 32/197 ($35,327).

Main facts and rankings

Morocco Spain
Population
38871720
48806901
Population rank 41/197 32/197
GDP
$161B
2024
$1.73T
2024
GDP rank 58/197 15/197
GDP per capita
$4,218
2024
$35,327
2024
GDP per capita rank 127/197 32/197
GDP per capita, PPP
$10,415
2024
$57,965
2024
Government debt
$109B
2024
$1.75T
2024
Debt-to-GDP ratio
67.7%
2024
101.6%
2024
Government debt per person
$2,857
2024
$35,909
2024
Government debt per person rank 104/185 20/185
Average annual personal income after taxes
$5,678
2026
$25,470
2026
Land area 172,317 sq mi 192,934 sq mi
Population density
225.1 ppl/mi²
2026
253 ppl/mi²
2026
Fertility rate
2.23
2023
1.12
2023
Median age
30.5 years
2024
46.4 years
2024
Life expectancy
75.9 years
2026
84.1 years
2026

Morocco and Spain: Comparison Charts

Morocco and Spain economies compared

GDP
Morocco

Spain
1x
Year GDP
Morocco Spain
2024 $160,610,994,055 $1,725,671,652,742
2023 $146,036,093,667 $1,619,481,980,720
2022 $131,245,312,804 $1,448,850,658,407
2021 $142,022,058,447 $1,461,244,901,853
2020 $121,353,645,057 $1,289,783,836,971
2019 $128,920,266,409 $1,403,496,387,686
2018 $127,341,147,582 $1,431,642,809,327
2017 $118,540,573,368 $1,321,754,088,819
2016 $111,572,947,005 $1,243,015,667,917
2015 $110,413,823,842 $1,206,164,777,553
2014 $119,130,841,412 $1,380,244,561,362
2013 $115,739,287,305 $1,362,186,923,158
2012 $106,937,392,311 $1,330,994,811,670
2011 $110,080,631,332 $1,487,568,659,241
2010 $100,865,329,473 $1,427,989,078,917
2009 $101,154,952,241 $1,496,587,590,848
2008 $101,822,906,949 $1,636,115,447,613
2007 $86,947,913,287 $1,476,746,276,855
2006 $75,883,823,301 $1,261,846,683,275
2005 $68,852,658,069 $1,154,667,551,776
2004 $66,114,145,451 $1,069,829,382,515
2003 $58,029,363,354 $907,963,217,058
2002 $47,077,192,188 $708,938,227,244
2001 $43,831,480,208 $627,798,682,379
2000 $43,017,455,402 $598,102,854,756
1999 $46,266,428,648 $634,394,904,387
1998 $46,497,608,725 $618,731,484,575
1997 $39,147,844,526 $589,739,772,727
1996 $43,161,571,528 $642,251,412,058
1995 $39,030,285,468 $614,170,002,669
1994 $35,604,137,423 $530,183,651,720
1993 $31,655,473,664 $524,700,572,624
1992 $33,711,069,431 $630,465,353,486
1991 $32,285,573,574 $576,753,902,322
1990 $30,179,954,775 $536,175,326,477
1989 $26,314,313,191 $414,460,794,097
1988 $25,705,296,184 $375,891,716,898
1987 $21,765,195,948 $318,520,253,335
1986 $19,462,085,540 $251,141,555,186
1985 $14,991,283,216 $180,664,322,896
1984 $14,824,667,954 $171,979,977,230
1983 $16,251,408,128 $170,829,074,246
1982 $17,692,276,734 $195,856,752,991
1981 $17,788,185,479 $202,663,023,968
1980 $21,728,516,153 $232,600,556,974
1979 $15,911,994,817 $214,448,666,336
1978 $13,236,946,234 $160,484,969,618
1977 $11,049,783,872 $132,354,665,936
1976 $9,584,297,284 $118,422,534,195
1975 $8,984,853,005 $114,695,060,870
1974 $7,675,466,449 $97,204,522,642
1973 $6,242,145,880 $78,583,355,226
1972 $5,074,117,545 $59,090,176,029
1971 $4,356,669,034 $46,586,119,760
1970 $3,956,336,244 $40,963,715,237
1969 $3,651,622,669 $37,090,689,288
1968 $3,271,422,333 $32,394,326,464
1967 $3,046,345,314 $32,570,905,397
1966 $2,876,401,297 $29,559,436,183
1965 $2,948,331,090 $25,479,619,607
1964 $2,798,345,299 $21,966,876,027
1963 $2,657,252,578 $19,631,714,760
1962 $2,379,611,125 $16,609,632,791
1961 $2,025,693,540 $14,238,126,760
1960 $2,037,154,742 $12,424,514,014

Data sources: World Bank | Economy & Growth (1960–2024, retrieved 2026-04-06).

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

Morocco and Spain economies compared

GDP per capita
Morocco

Spain
1x
Year GDP per capita
Morocco Spain
2024 $4,218 $35,327
2023 $3,872 $33,493
2022 $3,516 $30,319
2021 $3,843 $30,799
2020 $3,317 $27,234
2019 $3,560 $29,787
2018 $3,553 $30,602
2017 $3,344 $28,381
2016 $3,186 $26,756
2015 $3,190 $25,982
2014 $3,483 $29,708
2013 $3,425 $29,229
2012 $3,206 $28,456
2011 $3,345 $31,825
2010 $3,107 $30,659
2009 $3,158 $32,280
2008 $3,222 $35,603
2007 $2,788 $32,652
2006 $2,466 $28,422
2005 $2,268 $26,451
2004 $2,207 $24,925
2003 $1,962 $21,522
2002 $1,612 $17,111
2001 $1,521 $15,368
2000 $1,513 $14,743
1999 $1,651 $15,708
1998 $1,683 $15,382
1997 $1,439 $14,722
1996 $1,610 $16,101
1995 $1,478 $15,461
1994 $1,369 $13,406
1993 $1,236 $13,330
1992 $1,337 $16,101
1991 $1,302 $14,801
1990 $1,238 $13,795
1989 $1,099 $10,674
1988 $1,094 $9,696
1987 $944 $8,234
1986 $861 $6,509
1985 $678 $4,696
1984 $687 $4,487
1983 $772 $4,475
1982 $862 $5,156
1981 $890 $5,367
1980 $1,117 $6,204
1979 $839 $5,766
1978 $716 $4,353
1977 $613 $3,625
1976 $545 $3,277
1975 $524 $3,208
1974 $459 $2,748
1973 $382 $2,246
1972 $319 $1,708
1971 $280.6 $1,361
1970 $261.5 $1,211
1969 $247.8 $1,109
1968 $228 $978
1967 $218.1 $997
1966 $211.5 $916
1965 $222.7 $797
1964 $216.9 $695
1963 $211.3 $627
1962 $194.2 $535
1961 $169.8 $463
1960 $175.2 $408

Data sources: World Bank | Economy & Growth (1960–2024, retrieved 2026-04-06).

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

Morocco vs. Spain life expectancy calculator

Life expectancy
Morocco

Spain
1x
Year Life expectancy, years
Morocco Spain
2026 75.9 84.1
2025 75.7 84
2024 75.5 83.8
2023 75.3 83.7
2022 75.2 82.4
2021 73.4 83
2020 73.1 82.2
2019 74.2 83.5
2018 73.9 83.1
2017 73.6 83
2016 73.2 83
2015 72.9 82.6
2014 72.5 82.8
2013 72.1 82.7
2012 71.7 82.2
2011 71.3 82.2
2010 70.8 82
2009 70.5 81.6
2008 70.1 81.3
2007 69.6 81
2006 69.2 81
2005 68.7 80.3
2004 68.3 80.3
2003 68 79.7
2002 67.6 79.8
2001 67.2 79.7
2000 66.8 79.4
1999 66.4 78.9
1998 66 78.9
1997 65.6 78.9
1996 65.2 78.3
1995 64.7 78.2
1994 64.3 78.1
1993 63.9 77.7
1992 63.4 77.6
1991 62.9 77.1
1990 62.4 77
1989 61.8 77
1988 61.2 76.9
1987 60.6 77
1986 60 76.7
1985 59.2 76.4
1984 58.4 76.5
1983 57.7 76.1
1982 56.9 76.3
1981 56 75.7
1980 55.2 75.5
1979 54.4 75
1978 53.6 74.5
1977 52.8 74.3
1976 52 73.8
1975 51.4 73.5
1974 50.8 73.1
1973 50.2 72.7
1972 49.7 73
1971 49.2 71.7
1970 48.7 72.1
1969 48.2 71.1
1968 47.7 71.7
1967 47.1 71.3
1966 46.5 71.2
1965 45.9 70.9
1964 45.3 70.5
1963 44.8 69.8
1962 44.2 69.6
1961 43.7 69.6
1960 41.7 69.2
1959 42.7 68.7
1958 42.2 68.8
1957 41.7 66.6
1956 41.2 66.8
1955 40.8 66.7
1954 40.4 66.9
1953 40 65.7
1952 39.6 64.8
1951 39.1 61.5
1950 38.8 61.8

Data sources: United Nations | World Population Prospects (1950–2026, retrieved 2026-03-10).

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

Morocco and Spain population clocks and comparison

Population
Morocco

Spain
1x
Year Population
Morocco Spain
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: World Bank | Health (1960–2024, retrieved 2026-04-06).

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

Fertility rates in Morocco and Spain

Fertility rate
Morocco

Spain
1x
Year Fertility rate
Morocco Spain
2023 2.23 1.12
2022 2.26 1.16
2021 2.29 1.18
2020 2.32 1.18
2019 2.34 1.23
2018 2.35 1.26
2017 2.38 1.31
2016 2.4 1.33
2015 2.41 1.33
2014 2.42 1.32
2013 2.48 1.27
2012 2.54 1.32
2011 2.6 1.34
2010 2.63 1.37
2009 2.62 1.38
2008 2.61 1.45
2007 2.62 1.38
2006 2.61 1.36
2005 2.61 1.33
2004 2.61 1.31
2003 2.61 1.3
2002 2.62 1.25
2001 2.69 1.23
2000 2.77 1.22
1999 2.88 1.17
1998 3.04 1.13
1997 3.15 1.15
1996 3.23 1.14
1995 3.3 1.16
1994 3.41 1.19
1993 3.55 1.26
1992 3.76 1.31
1991 3.95 1.33
1990 4.06 1.36
1989 4.22 1.4
1988 4.39 1.45
1987 4.58 1.49
1986 4.77 1.56
1985 4.99 1.64
1984 5.2 1.73
1983 5.41 1.8
1982 5.6 1.94
1981 5.71 2.04
1980 5.78 2.22
1979 5.85 2.37
1978 5.91 2.54
1977 6.04 2.65
1976 6.18 2.77
1975 6.3 2.77
1974 6.4 2.88
1973 6.48 2.84
1972 6.55 2.87
1971 6.62 2.9
1970 6.68 2.84
1969 6.73 2.86
1968 6.79 2.87
1967 6.85 2.94
1966 6.89 2.91
1965 6.93 2.94
1964 6.97 3.01
1963 7.01 2.88
1962 7.05 2.8
1961 6.97 2.77
1960 6.89 2.86

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

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

Morocco and Spain demographics compared

Median age
Morocco

Spain
1x
Year Median age, years
Morocco Spain
2024 30.5 46.4
2023 30.2 45.9
2022 29.9 45.4
2021 29.5 44.9
2020 29.2 44.5
2019 28.9 44.1
2018 28.5 43.8
2017 28.2 43.5
2016 27.8 43.1
2015 27.5 42.7
2014 27.1 42.2
2013 26.7 41.7
2012 26.4 41.1
2011 26.1 40.6
2010 25.7 40.2
2009 25.4 39.8
2008 25 39.4
2007 24.7 39.2
2006 24.3 39
2005 24 38.8
2004 23.7 38.5
2003 23.4 38.3
2002 23.1 38.1
2001 22.8 37.8
2000 22.5 37.4
1999 22.2 37
1998 21.9 36.6
1997 21.6 36.2
1996 21.3 35.7
1995 21 35.3
1994 20.6 34.9
1993 20.3 34.6
1992 20 34.2
1991 19.7 33.9
1990 19.4 33.6
1989 19.2 33.2
1988 18.9 32.9
1987 18.7 32.5
1986 18.5 32.2
1985 18.3 31.9
1984 18.1 31.6
1983 18 31.4
1982 17.8 31.1
1981 17.7 30.9
1980 17.6 30.7
1979 17.4 30.6
1978 17.3 30.4
1977 17.2 30.2
1976 17.1 30.1
1975 16.9 30
1974 16.9 30
1973 16.8 30
1972 16.7 30
1971 16.7 30.1
1970 16.6 30.1
1969 16.6 30.2
1968 16.6 30.4
1967 16.7 30.4
1966 16.8 30.3
1965 16.9 30.2
1964 17 30.1
1963 17.2 29.9
1962 17.4 29.7
1961 17.6 29.6
1960 17.9 29.4

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

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

Interactive Maps

Use the buttons below to switch between world maps comparing statistics for Morocco and Spain.

1x
1x
1x
1x
1x
1x
1x

National statistics comparison

Finance

Morocco Spain
GNI, Atlas method
$149B
2024
$1.64T
2024
Government expenditure, % of GDP
33%
2024
45.3%
2024
Education expenditure, % of GDP
6.02%
2023
4.59%
2022
Military expenditure, % of GDP
3.52%
2024
1.43%
2024
Armed forces personnel
246,000
2020
199,000
2020
Deficit/surplus, % of GDP
-3.92%
2024
-3.15%
2024
Unemployment rate
11.8%
2022
11.3%
2024
Services, % of GDP
52.7%
2024
68.9%
2024
Industry, % of GDP
25.6%
2024
19.5%
2024
Economic freedom index
61.8
2026
66.8
2026
Income share by richest 10%
31.9%
2013
24.5%
2023
Income share by poorest 10%
2.7%
2013
2.2%
2023
Number of millionaires n/a
1,202,000
2025
Percentage of millionaires n/a
3.01%
2025
Number of billionaires
3
2025
34
2025
Percentage of billionaires
0.00001%
2025
0.00009%
2025
Listed domestic companies
76
2024
277
2024
Market capitalization of domestic companies
$74.5B
2024
$754B
2024
Total reserves including gold
$37.1B
2024
$108B
2024
Personal remittances received
$12.5B
2024
$6.33B
2024
International tourist arrivals
2,802,000
2020
36,410,000
2020
International tourism as share of exports
12%
2020
19.8%
1998
Banked people share
44.4%
2024
98.4%
2024

Energy

Morocco Spain
Energy use, kg of oil equivalent per capita
601 kg
2023
2,294 kg
2023
GDP PPP per kg equivalent of energy use
$16.7
2023
$24.3
2023
Carbon dioxide (CO2) emissions
70 megatons
2024
220.1 megatons
2024
CO2 emissions per capita
1.84 tons
2024
4.51 tons
2024
Fossil fuel energy use share
90.1%
2022
68.5%
2023
Renewable energy use share
10.9%
2021
19%
2021
Alternative and nuclear energy use share
4.92%
2023
25.2%
2023
Net energy imports use share
93.6%
2023
77%
2023
Electric power consumption per capita
997 kWh
2023
5,118 kWh
2023
Renewable electricity output share
19.3%
2021
47%
2021
Hydroelectric share
1.18%
2023
10.9%
2023
Nuclear share
0%
2021
19.9%
2023
Electricity access
100%
2023
100%
2023

Society

Morocco Spain
% of world population
0.47%
2024
0.6%
2024
Annual migration change
-56,254
2025
+96,630
2025
Urban population
62.8%
2024
80.3%
2024
Male:Female ratio
50.4:49.6
2024
49.1:50.9
2024
Average male height
5.79 ft
2025
5.78 ft
2025
Average female height
5.29 ft
2025
5.31 ft
2025
Quality of life index
51.1
2026
82.5
2026
Corruption Perceptions Index
39
2025
55
2025
Higher education index
54
2026
90
2026
Homicides per 100K people
1.69
2024
0.69
2023
Road traffic mortality per 100K people
17
2019
3.9
2019
Visa free countries
83
2025
173
2025
Adult literacy rate
77.3%
2022
99.7%
2021
English speaking
18.4%
2023
22%
2023
People using the Internet
91%
2023
95.8%
2024

Health

Morocco Spain
Government health expenditure per capita
$232.2
2023
$3,107
2023
Out-of-pocket health expenditure per capita
$86.5
2023
$648
2023
Life expectancy
75.9 years
2026
84.1 years
2026
Foreign aid share of health expenditure
0.62%
2023
n/a
Physicians per 1,000 people
0.74
2021
4.29
2022
Age at first childbirth n/a
31.5 years
2023
Maternal mortality per 100K births
70
2023
3
2023
Mortality rate before reaching 5 years of age
16.6
2023
3.1
2023
Obesity rate
22.5%
2022
16.2%
2022
Diabetes prevalence
11.9%
2024
9.7%
2024
Air quality index
75
2026
77
2026
Tobacco use prevalence
13%
2022
28.4%
2022
Pure alcohol consumption per capita
0.5 liters
2020
9.16 liters
2020

Territory

Morocco Spain
% of world land
0.3%
2026
0.34%
2026
Land area per capita
4,525 sq mi
2024
3,950 sq mi
2024
Agricultural land area
115,013 sq mi
2026
95,648 sq mi
2026
Forest area
22,293 sq mi
2026
71,757 sq mi
2026
Roads length
35,626 mi
2022
424,505 mi
2020

In-depth comparisons

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 (1950–2026, retrieved 2026-03-10)
  3. U.S. Census Bureau (1960–2025, retrieved 2026-02-08)
  4. Central Intelligence Agency (CIA) (2000–2019, retrieved 2026-02-20)
  5. International Monetary Fund (IMF) | Fiscal Monitor (2024, retrieved 2026-02-20)
  6. LivingCost (2026, retrieved 2025-10-14)
  7. World Obesity Federation (2022, retrieved 2026-02-08)
  8. Passport Index (2025, retrieved 2026-02-08)
  9. Transparency International (2025, retrieved 2026-02-10)
  10. The Heritage Foundation | Economic Freedom Index (2026, retrieved 2026-03-09)
  11. EduRank (2026, retrieved 2025-10-13)
  12. United Nations Economic Commission for Europe (UNECE) (2023, retrieved 2026-03-10)

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.