Skip to content

Somalia vs Spain statistics compared

Updated on by Georank team

Somalia has a population of 19M (ranked 68/197), compared with 48.8M in Spain (ranked 32/197). Somalia's land area is 242,217 sq mi versus 192,934 sq mi for Spain (ranked 42nd vs. 51st).

By GDP, Somalia ranks 150/197 ($12B) and Spain ranks 15/197 ($1.73T). By GDP per capita, Somalia ranks 192/197 ($630), while Spain ranks 32/197 ($35,327).

Main facts and rankings

Somalia Spain
Population
20503678
48806901
Population rank 66/197 32/197
GDP
$12B
2024
$1.73T
2024
GDP rank 150/197 15/197
GDP per capita
$630
2024
$35,327
2024
GDP per capita rank 192/197 32/197
GDP per capita, PPP
$1,602
2024
$57,965
2024
Government debt n/a
$1.75T
2024
Debt-to-GDP ratio n/a
101.6%
2024
Government debt per person n/a
$35,909
2024
Government debt per person rank n/a 20/185
Average annual personal income after taxes
$1,885
2026
$25,470
2026
Land area 242,217 sq mi 192,934 sq mi
Population density
83.9 ppl/mi²
2026
253 ppl/mi²
2026
Fertility rate
6.13
2023
1.12
2023
Median age
16.6 years
2024
46.4 years
2024
Life expectancy
59.3 years
2026
84.1 years
2026

Somalia and Spain: Comparison Charts

Somalia and Spain economies compared

GDP
Somalia

Spain
1x
Year GDP
Somalia Spain
2024 $11,967,000,000 $1,725,671,652,742
2023 $10,958,000,000 $1,619,481,980,720
2022 $10,203,000,000 $1,448,850,658,407
2021 $9,483,000,000 $1,461,244,901,853
2020 $8,628,000,000 $1,289,783,836,971
2019 $8,656,000,000 $1,403,496,387,686
2018 $7,873,000,000 $1,431,642,809,327
2017 $7,621,501,710 $1,321,754,088,819
2016 $6,613,743,070 $1,243,015,667,917
2015 $6,152,149,100 $1,206,164,777,553
2014 $5,728,399,720 $1,380,244,561,362
2013 $5,062,881,600 $1,362,186,923,158
2012 $4,364,670,160 $1,330,994,811,670
2011 $2,906,000,097 $1,487,568,659,241
2010 $2,687,807,004 $1,427,989,078,917
2009 $2,948,594,552 $1,496,587,590,848
2008 $5,913,620,293 $1,636,115,447,613
2007 $5,430,713,729 $1,476,746,276,855
2006 $5,026,743,282 $1,261,846,683,275
2005 $4,683,246,454 $1,154,667,551,776
2004 $3,859,592,813 $1,069,829,382,515
2003 $2,836,724,352 $907,963,217,058
2002 $2,192,684,135 $708,938,227,244
2001 $2,252,847,465 $627,798,682,379
2000 $3,412,797,450 $598,102,854,756
1999 $3,045,751,528 $634,394,904,387
1998 $2,962,047,564 $618,731,484,575
1997 $2,191,749,014 $589,739,772,727
1996 $1,792,234,297 $642,251,412,058
1995 $1,534,756,135 $614,170,002,669
1994 $1,481,205,098 $530,183,651,720
1993 $1,260,132,956 $524,700,572,624
1992 $709,297,579 $630,465,353,486
1991 $717,974,930 $576,753,902,322
1990 $1,031,282,081 $536,175,326,477
1989 $1,181,360,844 $414,460,794,097
1988 $1,051,596,967 $375,891,716,898
1987 $1,018,972,664 $318,520,253,335
1986 $916,590,786 $251,141,555,186
1985 $875,702,247 $180,664,322,896
1984 $787,434,542 $171,979,977,230
1983 $735,408,642 $170,829,074,246
1982 $774,578,932 $195,856,752,991
1981 $699,302,473 $202,663,023,968
1980 $602,515,548 $232,600,556,974
1979 $589,566,929 $214,448,666,336
1978 $564,571,823 $160,484,969,618
1977 $498,550,725 $132,354,665,936
1976 $871,344,245 $118,422,534,195
1975 $757,015,879 $114,695,060,870
1974 $572,504,036 $97,204,522,642
1973 $483,699,611 $78,583,355,226
1972 $447,883,941 $59,090,176,029
1971 $347,039,446 $46,586,119,760
1970 $347,985,394 $40,963,715,237
1969 $306,357,285 $37,090,689,288
1968 $286,719,885 $32,394,326,464
1967 $271,781,887 $32,570,905,397
1966 $257,375,897 $29,559,436,183
1965 $243,725,898 $25,479,619,607
1964 $229,529,913 $21,966,876,027
1963 $216,145,936 $19,631,714,760
1962 $203,531,928 $16,609,632,791
1961 $191,659,914 $14,238,126,760
1960 $180,459,937 $12,424,514,014

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

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

Somalia and Spain economies compared

GDP per capita
Somalia

Spain
1x
Year GDP per capita
Somalia Spain
2024 $630 $35,327
2023 $597 $33,493
2022 $573 $30,319
2021 $549 $30,799
2020 $518 $27,234
2019 $540 $29,787
2018 $509 $30,602
2017 $511 $28,381
2016 $461 $26,756
2015 $446 $25,982
2014 $429 $29,708
2013 $393 $29,229
2012 $350 $28,456
2011 $235.3 $31,825
2010 $219.2 $30,659
2009 $246.5 $32,280
2008 $507 $35,603
2007 $480 $32,652
2006 $458 $28,422
2005 $440 $26,451
2004 $375 $24,925
2003 $286.3 $21,522
2002 $229.6 $17,111
2001 $244.9 $15,368
2000 $386 $14,743
1999 $359 $15,708
1998 $363 $15,382
1997 $280.1 $14,722
1996 $237.2 $16,101
1995 $210.7 $15,461
1994 $210.8 $13,406
1993 $188.6 $13,330
1992 $109.2 $16,101
1991 $105.4 $14,801
1990 $145.6 $13,795
1989 $166 $10,674
1988 $145.3 $9,696
1987 $141 $8,234
1986 $131.4 $6,509
1985 $130.8 $4,696
1984 $122.5 $4,487
1983 $118.6 $4,475
1982 $129 $5,156
1981 $116.9 $5,367
1980 $101.5 $6,204
1979 $108.2 $5,766
1978 $117.3 $4,353
1977 $111.2 $3,625
1976 $199.6 $3,277
1975 $177.8 $3,208
1974 $137.9 $2,748
1973 $119.6 $2,246
1972 $113.7 $1,708
1971 $90.4 $1,361
1970 $93.1 $1,211
1969 $84.1 $1,109
1968 $80.8 $978
1967 $78.7 $997
1966 $76.5 $916
1965 $74.4 $797
1964 $71.9 $695
1963 $69.5 $627
1962 $67.2 $535
1961 $64.9 $463
1960 $62.7 $408

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

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

Somalia vs. Spain life expectancy calculator

Life expectancy
Somalia

Spain
1x
Year Life expectancy, years
Somalia Spain
2026 59.3 84.1
2025 59.1 84
2024 59 83.8
2023 58.8 83.7
2022 53.9 82.4
2021 55.7 83
2020 57.1 82.2
2019 57.2 83.5
2018 54.8 83.1
2017 52.2 83
2016 55.3 83
2015 55.1 82.6
2014 54.4 82.8
2013 54 82.7
2012 49.1 82.2
2011 32.5 82.2
2010 48.9 82
2009 52.1 81.6
2008 51.5 81.3
2007 50.9 81
2006 50.9 81
2005 50.9 80.3
2004 50.7 80.3
2003 50.7 79.7
2002 50.8 79.8
2001 50.8 79.7
2000 50.7 79.4
1999 50.6 78.9
1998 50.8 78.9
1997 50.3 78.9
1996 50.5 78.3
1995 50.6 78.2
1994 50.3 78.1
1993 50.6 77.7
1992 25 77.6
1991 25.4 77.1
1990 46.9 77
1989 46.6 77
1988 43.9 76.9
1987 49 77
1986 48.4 76.7
1985 48.3 76.4
1984 48.4 76.5
1983 48.2 76.1
1982 48 76.3
1981 47.8 75.7
1980 47.6 75.5
1979 47.4 75
1978 47 74.5
1977 47 74.3
1976 44.7 73.8
1975 44.5 73.5
1974 44.3 73.1
1973 46.2 72.7
1972 46 73
1971 45.8 71.7
1970 45.6 72.1
1969 45.5 71.1
1968 45.3 71.7
1967 45.1 71.3
1966 44.8 71.2
1965 44.6 70.9
1964 44.4 70.5
1963 44.2 69.8
1962 44 69.6
1961 43.7 69.6
1960 43.5 69.2
1959 43.3 68.7
1958 43.1 68.8
1957 42.9 66.6
1956 42.7 66.8
1955 42.5 66.7
1954 42.3 66.9
1953 42.1 65.7
1952 41.9 64.8
1951 41.7 61.5
1950 41.5 61.8

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

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

Somalia and Spain population clocks and comparison

Population
Somalia

Spain
1x
Year Population
Somalia Spain
2024 19,009,151 48,848,840
2023 18,358,615 48,352,528
2022 17,801,897 47,786,102
2021 17,271,431 47,443,821
2020 16,651,191 47,359,424
2019 16,030,971 47,118,501
2018 15,452,487 46,782,011
2017 14,916,629 46,571,232
2016 14,348,740 46,458,139
2015 13,806,963 46,422,303
2014 13,339,491 46,460,733
2013 12,869,594 46,604,197
2012 12,461,160 46,773,055
2011 12,348,830 46,742,697
2010 12,261,756 46,576,897
2009 11,961,201 46,362,946
2008 11,663,084 45,954,106
2007 11,322,582 45,226,803
2006 10,975,502 44,397,319
2005 10,644,228 43,653,155
2004 10,280,998 42,921,895
2003 9,909,157 42,187,645
2002 9,550,063 41,431,558
2001 9,198,493 40,850,412
2000 8,838,713 40,567,864
1999 8,492,059 40,386,875
1998 8,155,417 40,223,509
1997 7,824,525 40,057,389
1996 7,554,474 39,889,852
1995 7,285,007 39,724,050
1994 7,026,797 39,549,108
1993 6,681,399 39,361,262
1992 6,495,107 39,157,685
1991 6,813,760 38,966,376
1990 7,082,811 38,867,322
1989 7,114,817 38,827,764
1988 7,235,360 38,766,939
1987 7,228,302 38,684,815
1986 6,974,788 38,584,624
1985 6,693,289 38,469,512
1984 6,428,389 38,330,364
1983 6,198,430 38,171,525
1982 6,003,840 37,986,012
1981 5,982,849 37,758,631
1980 5,936,154 37,491,165
1979 5,449,117 37,191,330
1978 4,814,892 36,864,898
1977 4,484,050 36,511,638
1976 4,365,812 36,137,812
1975 4,257,535 35,757,900
1974 4,151,842 35,373,335
1973 4,045,592 34,988,947
1972 3,939,436 34,604,469
1971 3,837,691 34,224,490
1970 3,738,448 33,814,531
1969 3,641,015 33,441,054
1968 3,546,590 33,113,134
1967 3,454,537 32,682,947
1966 3,365,106 32,283,194
1965 3,277,874 31,954,292
1964 3,192,796 31,609,195
1963 3,110,361 31,296,651
1962 3,030,091 31,023,366
1961 2,952,054 30,739,250
1960 2,876,331 30,455,000

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

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

Fertility rates in Somalia and Spain

Fertility rate
Somalia

Spain
1x
Year Fertility rate
Somalia Spain
2023 6.13 1.12
2022 6.26 1.16
2021 6.35 1.18
2020 6.45 1.18
2019 6.56 1.23
2018 6.66 1.26
2017 6.77 1.31
2016 6.88 1.33
2015 6.98 1.33
2014 7.06 1.32
2013 7.14 1.27
2012 7.21 1.32
2011 7.27 1.34
2010 7.32 1.37
2009 7.38 1.38
2008 7.42 1.45
2007 7.46 1.38
2006 7.49 1.36
2005 7.53 1.33
2004 7.57 1.31
2003 7.6 1.3
2002 7.63 1.25
2001 7.64 1.23
2000 7.65 1.22
1999 7.66 1.17
1998 7.66 1.13
1997 7.66 1.15
1996 7.62 1.14
1995 7.58 1.16
1994 7.54 1.19
1993 7.53 1.26
1992 7.5 1.31
1991 7.47 1.33
1990 7.44 1.36
1989 7.42 1.4
1988 7.4 1.45
1987 7.37 1.49
1986 7.35 1.56
1985 7.33 1.64
1984 7.3 1.73
1983 7.28 1.8
1982 7.25 1.94
1981 7.23 2.04
1980 7.18 2.22
1979 7.16 2.37
1978 7.13 2.54
1977 7 2.65
1976 7.02 2.77
1975 7.03 2.77
1974 7.06 2.88
1973 7.09 2.84
1972 7.12 2.87
1971 7.15 2.9
1970 7.18 2.84
1969 7.21 2.86
1968 7.23 2.87
1967 7.25 2.94
1966 7.26 2.91
1965 7.26 2.94
1964 7.26 3.01
1963 7.26 2.88
1962 7.26 2.8
1961 7.25 2.77
1960 7.25 2.86

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

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

Somalia and Spain demographics compared

Median age
Somalia

Spain
1x
Year Median age, years
Somalia Spain
2024 16.6 46.4
2023 16.5 45.9
2022 16.5 45.4
2021 16.4 44.9
2020 16.3 44.5
2019 16.3 44.1
2018 16.2 43.8
2017 16.2 43.5
2016 16.1 43.1
2015 16.1 42.7
2014 16 42.2
2013 16 41.7
2012 16 41.1
2011 15.8 40.6
2010 15.7 40.2
2009 15.6 39.8
2008 15.6 39.4
2007 15.6 39.2
2006 15.7 39
2005 15.9 38.8
2004 16 38.5
2003 16.1 38.3
2002 16.2 38.1
2001 16.2 37.8
2000 16.3 37.4
1999 16.3 37
1998 16.4 36.6
1997 16.4 36.2
1996 16.5 35.7
1995 16.6 35.3
1994 16.7 34.9
1993 16.8 34.6
1992 16.7 34.2
1991 16.5 33.9
1990 16.5 33.6
1989 16.7 33.2
1988 16.8 32.9
1987 17 32.5
1986 17.1 32.2
1985 17.2 31.9
1984 17.3 31.6
1983 17.4 31.4
1982 17.4 31.1
1981 17.5 30.9
1980 17.6 30.7
1979 17.6 30.6
1978 17.7 30.4
1977 17.7 30.2
1976 17.7 30.1
1975 17.7 30
1974 17.7 30
1973 17.6 30
1972 17.6 30
1971 17.6 30.1
1970 17.5 30.1
1969 17.5 30.2
1968 17.5 30.4
1967 17.5 30.4
1966 17.5 30.3
1965 17.5 30.2
1964 17.6 30.1
1963 17.7 29.9
1962 17.8 29.7
1961 17.9 29.6
1960 18.1 29.4

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

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

Interactive Maps

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

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

National statistics comparison

Finance

Somalia Spain
GNI, Atlas method
$11.7B
2024
$1.64T
2024
Government expenditure, % of GDP
13%
2025
45.3%
2024
Education expenditure, % of GDP
0.000008%
2023
4.59%
2022
Military expenditure, % of GDP
1.59%
2024
1.43%
2024
Armed forces personnel
14,000
2020
199,000
2020
Deficit/surplus, % of GDP
-5.47%
2025
-3.15%
2024
Unemployment rate
11.1%
2022
11.3%
2024
Services, % of GDP n/a
68.9%
2024
Industry, % of GDP
9.66%
1986
19.5%
2024
Economic freedom index
29
2025
66.8
2026
Income share by richest 10% n/a
24.5%
2023
Income share by poorest 10% n/a
2.2%
2023
Number of millionaires n/a
1,202,000
2025
Percentage of millionaires n/a
3.01%
2025
Number of billionaires n/a
34
2025
Percentage of billionaires n/a
0.00009%
2025
Listed domestic companies n/a
277
2024
Market capitalization of domestic companies n/a
$754B
2024
Total reserves including gold
$23.1M
1989
$108B
2024
Personal remittances received
$2.12B
2024
$6.33B
2024
International tourist arrivals n/a
36,410,000
2020
International tourism as share of exports n/a
19.8%
1998
Banked people share
38.7%
2014
98.4%
2024

Energy

Somalia Spain
Energy use, kg of oil equivalent per capita n/a
2,294 kg
2023
GDP PPP per kg equivalent of energy use n/a
$24.3
2023
Carbon dioxide (CO2) emissions
0.87 megatons
2024
220.1 megatons
2024
CO2 emissions per capita
0.05 tons
2024
4.51 tons
2024
Fossil fuel energy use share n/a
68.5%
2023
Renewable energy use share
95.4%
2022
19%
2021
Alternative and nuclear energy use share n/a
25.2%
2023
Net energy imports use share n/a
77%
2023
Electric power consumption per capita n/a
5,118 kWh
2023
Renewable electricity output share
11.2%
2021
47%
2021
Hydroelectric share
0%
2021
10.9%
2023
Nuclear share
0%
2021
19.9%
2023
Electricity access
50.3%
2023
100%
2023

Society

Somalia Spain
% of world population
0.23%
2024
0.6%
2024
Annual migration change
+12,077
2025
+96,630
2025
Urban population
54.6%
2024
80.3%
2024
Male:Female ratio
50.1:49.9
2024
49.1:50.9
2024
Average male height
5.62 ft
2025
5.78 ft
2025
Average female height
5.25 ft
2025
5.31 ft
2025
Quality of life index
8.53
2026
82.5
2026
Corruption Perceptions Index
9
2025
55
2025
Higher education index
11
2026
90
2026
Homicides per 100K people
4.31
2015
0.69
2023
Road traffic mortality per 100K people
27.4
2019
3.9
2019
Visa free countries
43
2025
173
2025
Adult literacy rate
54.1%
2022
99.7%
2021
English speaking
2%
2025
22%
2023
People using the Internet
27.6%
2022
95.8%
2024

Health

Somalia Spain
Government health expenditure per capita
$22.4
2023
$3,107
2023
Out-of-pocket health expenditure per capita
$6.89
2023
$648
2023
Life expectancy
59.3 years
2026
84.1 years
2026
Foreign aid share of health expenditure
54.4%
2023
n/a
Physicians per 1,000 people
0.05
2014
4.29
2022
Age at first childbirth n/a
31.5 years
2023
Maternal mortality per 100K births
563
2023
3
2023
Mortality rate before reaching 5 years of age
104
2023
3.1
2023
Obesity rate
14.9%
2022
16.2%
2022
Diabetes prevalence
5.8%
2024
9.7%
2024
Air quality index
35
2026
77
2026
Tobacco use prevalence n/a
28.4%
2022
Pure alcohol consumption per capita
0 liters
2020
9.16 liters
2020

Territory

Somalia Spain
% of world land
0.42%
2026
0.34%
2026
Land area per capita
12,742 sq mi
2024
3,950 sq mi
2024
Agricultural land area
170,384 sq mi
2026
95,648 sq mi
2026
Forest area
22,200 sq mi
2026
71,757 sq mi
2026
Roads length
9,321 mi
2018
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–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. United Nations Economic Commission for Europe (UNECE) (2023, retrieved 2026-03-10)
  12. 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.