Skip to content

Morocco vs Somalia statistics compared

Updated on by Georank team

Morocco has a population of 38.1M (ranked 39/197), compared with 19M in Somalia (ranked 68/197). Morocco's land area is 172,317 sq mi versus 242,217 sq mi for Somalia (ranked 55th vs. 42nd).

By GDP, Morocco ranks 58/197 ($161B) and Somalia ranks 150/197 ($12B). By GDP per capita, Morocco ranks 127/197 ($4,218), while Somalia ranks 192/197 ($630).

Main facts and rankings

Morocco Somalia
Population
38871720
20503678
Population rank 41/197 66/197
GDP
$161B
2024
$12B
2024
GDP rank 58/197 150/197
GDP per capita
$4,218
2024
$630
2024
GDP per capita rank 127/197 192/197
GDP per capita, PPP
$10,415
2024
$1,602
2024
Government debt
$109B
2024
n/a
Debt-to-GDP ratio
67.7%
2024
n/a
Government debt per person
$2,857
2024
n/a
Government debt per person rank 104/185 n/a
Average annual personal income after taxes
$5,678
2026
$1,885
2026
Land area 172,317 sq mi 242,217 sq mi
Population density
225.1 ppl/mi²
2026
83.9 ppl/mi²
2026
Fertility rate
2.23
2023
6.13
2023
Median age
30.5 years
2024
16.6 years
2024
Life expectancy
75.9 years
2026
59.3 years
2026

Morocco and Somalia: Comparison Charts

Morocco and Somalia economies compared

GDP
Morocco

Somalia
1x
Year GDP
Morocco Somalia
2024 $160,610,994,055 $11,967,000,000
2023 $146,036,093,667 $10,958,000,000
2022 $131,245,312,804 $10,203,000,000
2021 $142,022,058,447 $9,483,000,000
2020 $121,353,645,057 $8,628,000,000
2019 $128,920,266,409 $8,656,000,000
2018 $127,341,147,582 $7,873,000,000
2017 $118,540,573,368 $7,621,501,710
2016 $111,572,947,005 $6,613,743,070
2015 $110,413,823,842 $6,152,149,100
2014 $119,130,841,412 $5,728,399,720
2013 $115,739,287,305 $5,062,881,600
2012 $106,937,392,311 $4,364,670,160
2011 $110,080,631,332 $2,906,000,097
2010 $100,865,329,473 $2,687,807,004
2009 $101,154,952,241 $2,948,594,552
2008 $101,822,906,949 $5,913,620,293
2007 $86,947,913,287 $5,430,713,729
2006 $75,883,823,301 $5,026,743,282
2005 $68,852,658,069 $4,683,246,454
2004 $66,114,145,451 $3,859,592,813
2003 $58,029,363,354 $2,836,724,352
2002 $47,077,192,188 $2,192,684,135
2001 $43,831,480,208 $2,252,847,465
2000 $43,017,455,402 $3,412,797,450
1999 $46,266,428,648 $3,045,751,528
1998 $46,497,608,725 $2,962,047,564
1997 $39,147,844,526 $2,191,749,014
1996 $43,161,571,528 $1,792,234,297
1995 $39,030,285,468 $1,534,756,135
1994 $35,604,137,423 $1,481,205,098
1993 $31,655,473,664 $1,260,132,956
1992 $33,711,069,431 $709,297,579
1991 $32,285,573,574 $717,974,930
1990 $30,179,954,775 $1,031,282,081
1989 $26,314,313,191 $1,181,360,844
1988 $25,705,296,184 $1,051,596,967
1987 $21,765,195,948 $1,018,972,664
1986 $19,462,085,540 $916,590,786
1985 $14,991,283,216 $875,702,247
1984 $14,824,667,954 $787,434,542
1983 $16,251,408,128 $735,408,642
1982 $17,692,276,734 $774,578,932
1981 $17,788,185,479 $699,302,473
1980 $21,728,516,153 $602,515,548
1979 $15,911,994,817 $589,566,929
1978 $13,236,946,234 $564,571,823
1977 $11,049,783,872 $498,550,725
1976 $9,584,297,284 $871,344,245
1975 $8,984,853,005 $757,015,879
1974 $7,675,466,449 $572,504,036
1973 $6,242,145,880 $483,699,611
1972 $5,074,117,545 $447,883,941
1971 $4,356,669,034 $347,039,446
1970 $3,956,336,244 $347,985,394
1969 $3,651,622,669 $306,357,285
1968 $3,271,422,333 $286,719,885
1967 $3,046,345,314 $271,781,887
1966 $2,876,401,297 $257,375,897
1965 $2,948,331,090 $243,725,898
1964 $2,798,345,299 $229,529,913
1963 $2,657,252,578 $216,145,936
1962 $2,379,611,125 $203,531,928
1961 $2,025,693,540 $191,659,914
1960 $2,037,154,742 $180,459,937

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

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

Morocco and Somalia economies compared

GDP per capita
Morocco

Somalia
1x
Year GDP per capita
Morocco Somalia
2024 $4,218 $630
2023 $3,872 $597
2022 $3,516 $573
2021 $3,843 $549
2020 $3,317 $518
2019 $3,560 $540
2018 $3,553 $509
2017 $3,344 $511
2016 $3,186 $461
2015 $3,190 $446
2014 $3,483 $429
2013 $3,425 $393
2012 $3,206 $350
2011 $3,345 $235.3
2010 $3,107 $219.2
2009 $3,158 $246.5
2008 $3,222 $507
2007 $2,788 $480
2006 $2,466 $458
2005 $2,268 $440
2004 $2,207 $375
2003 $1,962 $286.3
2002 $1,612 $229.6
2001 $1,521 $244.9
2000 $1,513 $386
1999 $1,651 $359
1998 $1,683 $363
1997 $1,439 $280.1
1996 $1,610 $237.2
1995 $1,478 $210.7
1994 $1,369 $210.8
1993 $1,236 $188.6
1992 $1,337 $109.2
1991 $1,302 $105.4
1990 $1,238 $145.6
1989 $1,099 $166
1988 $1,094 $145.3
1987 $944 $141
1986 $861 $131.4
1985 $678 $130.8
1984 $687 $122.5
1983 $772 $118.6
1982 $862 $129
1981 $890 $116.9
1980 $1,117 $101.5
1979 $839 $108.2
1978 $716 $117.3
1977 $613 $111.2
1976 $545 $199.6
1975 $524 $177.8
1974 $459 $137.9
1973 $382 $119.6
1972 $319 $113.7
1971 $280.6 $90.4
1970 $261.5 $93.1
1969 $247.8 $84.1
1968 $228 $80.8
1967 $218.1 $78.7
1966 $211.5 $76.5
1965 $222.7 $74.4
1964 $216.9 $71.9
1963 $211.3 $69.5
1962 $194.2 $67.2
1961 $169.8 $64.9
1960 $175.2 $62.7

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

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

Morocco vs. Somalia life expectancy calculator

Life expectancy
Morocco

Somalia
1x
Year Life expectancy, years
Morocco Somalia
2026 75.9 59.3
2025 75.7 59.1
2024 75.5 59
2023 75.3 58.8
2022 75.2 53.9
2021 73.4 55.7
2020 73.1 57.1
2019 74.2 57.2
2018 73.9 54.8
2017 73.6 52.2
2016 73.2 55.3
2015 72.9 55.1
2014 72.5 54.4
2013 72.1 54
2012 71.7 49.1
2011 71.3 32.5
2010 70.8 48.9
2009 70.5 52.1
2008 70.1 51.5
2007 69.6 50.9
2006 69.2 50.9
2005 68.7 50.9
2004 68.3 50.7
2003 68 50.7
2002 67.6 50.8
2001 67.2 50.8
2000 66.8 50.7
1999 66.4 50.6
1998 66 50.8
1997 65.6 50.3
1996 65.2 50.5
1995 64.7 50.6
1994 64.3 50.3
1993 63.9 50.6
1992 63.4 25
1991 62.9 25.4
1990 62.4 46.9
1989 61.8 46.6
1988 61.2 43.9
1987 60.6 49
1986 60 48.4
1985 59.2 48.3
1984 58.4 48.4
1983 57.7 48.2
1982 56.9 48
1981 56 47.8
1980 55.2 47.6
1979 54.4 47.4
1978 53.6 47
1977 52.8 47
1976 52 44.7
1975 51.4 44.5
1974 50.8 44.3
1973 50.2 46.2
1972 49.7 46
1971 49.2 45.8
1970 48.7 45.6
1969 48.2 45.5
1968 47.7 45.3
1967 47.1 45.1
1966 46.5 44.8
1965 45.9 44.6
1964 45.3 44.4
1963 44.8 44.2
1962 44.2 44
1961 43.7 43.7
1960 41.7 43.5
1959 42.7 43.3
1958 42.2 43.1
1957 41.7 42.9
1956 41.2 42.7
1955 40.8 42.5
1954 40.4 42.3
1953 40 42.1
1952 39.6 41.9
1951 39.1 41.7
1950 38.8 41.5

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

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

Morocco and Somalia population clocks and comparison

Population
Morocco

Somalia
1x
Year Population
Morocco Somalia
2024 38,081,173 19,009,151
2023 37,712,505 18,358,615
2022 37,329,064 17,801,897
2021 36,954,442 17,271,431
2020 36,584,208 16,651,191
2019 36,210,898 16,030,971
2018 35,839,760 15,452,487
2017 35,446,392 14,916,629
2016 35,023,457 14,348,740
2015 34,607,588 13,806,963
2014 34,204,780 13,339,491
2013 33,787,571 12,869,594
2012 33,355,241 12,461,160
2011 32,912,588 12,348,830
2010 32,467,016 12,261,756
2009 32,030,778 11,961,201
2008 31,606,767 11,663,084
2007 31,186,468 11,322,582
2006 30,771,178 10,975,502
2005 30,358,144 10,644,228
2004 29,953,018 10,280,998
2003 29,571,415 9,909,157
2002 29,198,142 9,550,063
2001 28,814,643 9,198,493
2000 28,423,435 8,838,713
1999 28,027,179 8,492,059
1998 27,621,648 8,155,417
1997 27,213,337 7,824,525
1996 26,808,107 7,554,474
1995 26,399,429 7,285,007
1994 26,000,822 7,026,797
1993 25,614,586 6,681,399
1992 25,212,468 6,495,107
1991 24,799,014 6,813,760
1990 24,375,551 7,082,811
1989 23,939,414 7,114,817
1988 23,500,524 7,235,360
1987 23,054,392 7,228,302
1986 22,600,803 6,974,788
1985 22,113,953 6,693,289
1984 21,593,778 6,428,389
1983 21,060,696 6,198,430
1982 20,520,318 6,003,840
1981 19,985,401 5,982,849
1980 19,459,943 5,936,154
1979 18,955,589 5,449,117
1978 18,477,385 4,814,892
1977 18,014,756 4,484,050
1976 17,574,182 4,365,812
1975 17,150,786 4,257,535
1974 16,733,842 4,151,842
1973 16,326,269 4,045,592
1972 15,924,692 3,939,436
1971 15,527,225 3,837,691
1970 15,129,449 3,738,448
1969 14,734,255 3,641,015
1968 14,347,899 3,546,590
1967 13,968,175 3,454,537
1966 13,597,065 3,365,106
1965 13,239,171 3,277,874
1964 12,898,886 3,192,796
1963 12,577,502 3,110,361
1962 12,253,092 3,030,091
1961 11,931,085 2,952,054
1960 11,624,933 2,876,331

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

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

Fertility rates in Morocco and Somalia

Fertility rate
Morocco

Somalia
1x
Year Fertility rate
Morocco Somalia
2023 2.23 6.13
2022 2.26 6.26
2021 2.29 6.35
2020 2.32 6.45
2019 2.34 6.56
2018 2.35 6.66
2017 2.38 6.77
2016 2.4 6.88
2015 2.41 6.98
2014 2.42 7.06
2013 2.48 7.14
2012 2.54 7.21
2011 2.6 7.27
2010 2.63 7.32
2009 2.62 7.38
2008 2.61 7.42
2007 2.62 7.46
2006 2.61 7.49
2005 2.61 7.53
2004 2.61 7.57
2003 2.61 7.6
2002 2.62 7.63
2001 2.69 7.64
2000 2.77 7.65
1999 2.88 7.66
1998 3.04 7.66
1997 3.15 7.66
1996 3.23 7.62
1995 3.3 7.58
1994 3.41 7.54
1993 3.55 7.53
1992 3.76 7.5
1991 3.95 7.47
1990 4.06 7.44
1989 4.22 7.42
1988 4.39 7.4
1987 4.58 7.37
1986 4.77 7.35
1985 4.99 7.33
1984 5.2 7.3
1983 5.41 7.28
1982 5.6 7.25
1981 5.71 7.23
1980 5.78 7.18
1979 5.85 7.16
1978 5.91 7.13
1977 6.04 7
1976 6.18 7.02
1975 6.3 7.03
1974 6.4 7.06
1973 6.48 7.09
1972 6.55 7.12
1971 6.62 7.15
1970 6.68 7.18
1969 6.73 7.21
1968 6.79 7.23
1967 6.85 7.25
1966 6.89 7.26
1965 6.93 7.26
1964 6.97 7.26
1963 7.01 7.26
1962 7.05 7.26
1961 6.97 7.25
1960 6.89 7.25

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

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

Morocco and Somalia demographics compared

Median age
Morocco

Somalia
1x
Year Median age, years
Morocco Somalia
2024 30.5 16.6
2023 30.2 16.5
2022 29.9 16.5
2021 29.5 16.4
2020 29.2 16.3
2019 28.9 16.3
2018 28.5 16.2
2017 28.2 16.2
2016 27.8 16.1
2015 27.5 16.1
2014 27.1 16
2013 26.7 16
2012 26.4 16
2011 26.1 15.8
2010 25.7 15.7
2009 25.4 15.6
2008 25 15.6
2007 24.7 15.6
2006 24.3 15.7
2005 24 15.9
2004 23.7 16
2003 23.4 16.1
2002 23.1 16.2
2001 22.8 16.2
2000 22.5 16.3
1999 22.2 16.3
1998 21.9 16.4
1997 21.6 16.4
1996 21.3 16.5
1995 21 16.6
1994 20.6 16.7
1993 20.3 16.8
1992 20 16.7
1991 19.7 16.5
1990 19.4 16.5
1989 19.2 16.7
1988 18.9 16.8
1987 18.7 17
1986 18.5 17.1
1985 18.3 17.2
1984 18.1 17.3
1983 18 17.4
1982 17.8 17.4
1981 17.7 17.5
1980 17.6 17.6
1979 17.4 17.6
1978 17.3 17.7
1977 17.2 17.7
1976 17.1 17.7
1975 16.9 17.7
1974 16.9 17.7
1973 16.8 17.6
1972 16.7 17.6
1971 16.7 17.6
1970 16.6 17.5
1969 16.6 17.5
1968 16.6 17.5
1967 16.7 17.5
1966 16.8 17.5
1965 16.9 17.5
1964 17 17.6
1963 17.2 17.7
1962 17.4 17.8
1961 17.6 17.9
1960 17.9 18.1

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

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

Interactive Maps

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

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

National statistics comparison

Finance

Morocco Somalia
GNI, Atlas method
$149B
2024
$11.7B
2024
Government expenditure, % of GDP
33%
2024
13%
2025
Education expenditure, % of GDP
6.02%
2023
0.000008%
2023
Military expenditure, % of GDP
3.52%
2024
1.59%
2024
Armed forces personnel
246,000
2020
14,000
2020
Deficit/surplus, % of GDP
-3.92%
2024
-5.47%
2025
Unemployment rate
11.8%
2022
11.1%
2022
Services, % of GDP
52.7%
2024
n/a
Industry, % of GDP
25.6%
2024
9.66%
1986
Economic freedom index
61.8
2026
29
2025
Income share by richest 10%
31.9%
2013
n/a
Income share by poorest 10%
2.7%
2013
n/a
Number of billionaires
3
2025
n/a
Percentage of billionaires
0.00001%
2025
n/a
Listed domestic companies
76
2024
n/a
Market capitalization of domestic companies
$74.5B
2024
n/a
Total reserves including gold
$37.1B
2024
$23.1M
1989
Personal remittances received
$12.5B
2024
$2.12B
2024
International tourist arrivals
2,802,000
2020
n/a
International tourism as share of exports
12%
2020
n/a
Banked people share
44.4%
2024
38.7%
2014

Energy

Morocco Somalia
Energy use, kg of oil equivalent per capita
601 kg
2023
n/a
GDP PPP per kg equivalent of energy use
$16.7
2023
n/a
Carbon dioxide (CO2) emissions
70 megatons
2024
0.87 megatons
2024
CO2 emissions per capita
1.84 tons
2024
0.05 tons
2024
Fossil fuel energy use share
90.1%
2022
n/a
Renewable energy use share
10.9%
2021
95.4%
2022
Alternative and nuclear energy use share
4.92%
2023
n/a
Net energy imports use share
93.6%
2023
n/a
Electric power consumption per capita
997 kWh
2023
n/a
Renewable electricity output share
19.3%
2021
11.2%
2021
Hydroelectric share
1.18%
2023
0%
2021
Nuclear share
0%
2021
0%
2021
Electricity access
100%
2023
50.3%
2023

Society

Morocco Somalia
% of world population
0.47%
2024
0.23%
2024
Annual migration change
-56,254
2025
+12,077
2025
Urban population
62.8%
2024
54.6%
2024
Male:Female ratio
50.4:49.6
2024
50.1:49.9
2024
Average male height
5.79 ft
2025
5.62 ft
2025
Average female height
5.29 ft
2025
5.25 ft
2025
Quality of life index
51.1
2026
8.53
2026
Corruption Perceptions Index
39
2025
9
2025
Higher education index
54
2026
11
2026
Homicides per 100K people
1.69
2024
4.31
2015
Road traffic mortality per 100K people
17
2019
27.4
2019
Visa free countries
83
2025
43
2025
Adult literacy rate
77.3%
2022
54.1%
2022
English speaking
18.4%
2023
2%
2025
People using the Internet
91%
2023
27.6%
2022

Health

Morocco Somalia
Government health expenditure per capita
$232.2
2023
$22.4
2023
Out-of-pocket health expenditure per capita
$86.5
2023
$6.89
2023
Life expectancy
75.9 years
2026
59.3 years
2026
Foreign aid share of health expenditure
0.62%
2023
54.4%
2023
Physicians per 1,000 people
0.74
2021
0.05
2014
Maternal mortality per 100K births
70
2023
563
2023
Mortality rate before reaching 5 years of age
16.6
2023
104
2023
Obesity rate
22.5%
2022
14.9%
2022
Diabetes prevalence
11.9%
2024
5.8%
2024
Air quality index
75
2026
35
2026
Tobacco use prevalence
13%
2022
n/a
Pure alcohol consumption per capita
0.5 liters
2020
0 liters
2020

Territory

Morocco Somalia
% of world land
0.3%
2026
0.42%
2026
Land area per capita
4,525 sq mi
2024
12,742 sq mi
2024
Agricultural land area
115,013 sq mi
2026
170,384 sq mi
2026
Forest area
22,293 sq mi
2026
22,200 sq mi
2026
Roads length
35,626 mi
2022
9,321 mi
2018

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–2025, 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. EduRank (2026, retrieved 2025-10-13)
  11. The Heritage Foundation | Economic Freedom Index (2026, retrieved 2026-03-09)

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.