Skip to content

Economy of Somalia vs Spain compared: GDP & Debt

Updated on by Georank

Somalia has a GDP of $13B compared to $1.91T for Spain, ranking 149/197 and 12/197 by economy size, respectively.

Somalia vs Spain GDP by year

Somalia
Spain
1x
Year GDP, current $
Somalia Spain
2025 $12,995,200,000 $1,906,453,309,986
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–2025, retrieved 2026-07-08).

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

GDP per capita in Somalia vs Spain by year

Somalia
GDP per capita

GDP per capita, PPP
Spain
GDP per capita

GDP per capita, PPP
1x
Year Current $
Somalia Spain
GDP per capita GDP per capita, PPP GDP per capita GDP per capita, PPP
2025 $661 - $38,627 -
2024 $630 $1,602 $35,327 $57,965
2023 $597 $1,556 $33,493 $55,682
2022 $573 $1,486 $30,319 $51,399
2021 $549 $1,392 $30,799 $44,252
2020 $518 $1,454 $27,234 $39,328
2019 $540 $1,548 $29,787 $44,043
2018 $509 $1,552 $30,602 $41,015
2017 $511 $1,597 $28,381 $39,825
2016 $461 $1,469 $26,756 $37,613
2015 $446 $1,341 $25,982 $35,229
2014 $429 $1,128 $29,708 $33,761
2013 $393 $944 $29,229 $32,614
2012 $350 $1,003 $28,456 $31,870
2011 $235.3 $881 $31,825 $32,016
2010 $219.2 $815 $30,659 $31,805
2009 $246.5 $774 $32,280 $32,218
2008 $507 $739 $35,603 $33,350
2007 $480 $700 $32,652 $32,536
2006 $458 $659 $28,422 $30,749
2005 $440 $619 $26,451 $27,630
2004 $375 $580 $24,925 $26,160
2003 $286.3 $547 $21,522 $25,057
2002 $229.6 $517 $17,111 $24,378
2001 $244.9 $492 $15,368 $22,952
2000 $386 $467 $14,743 $21,582
1999 $359 $444 $15,708 $19,938
1998 $363 $425 $15,382 $19,083
1997 $280.1 $411 $14,722 $17,903
1996 $237.2 $413 $16,101 $16,971
1995 $210.7 $389 $15,461 $16,276
1994 $210.8 $380 $13,406 $15,582
1993 $188.6 $477 $13,330 $14,973
1992 $109.2 $461 $16,101 $14,855
1991 $105.4 $469 $14,801 $14,461
1990 $145.6 - $13,795 $13,676
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–2025, retrieved 2026-07-08).

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

Somalia's GDP per capita is $661, ranking 191/197, compared to $38,627 in Spain, ranking 31/197. Adjusted for purchasing power (GDP per capita PPP), Somalia ranks 194th at $1,602, while Spain ranks 34th at $57,965.

Economic indicators

Somalia Spain
Gross domestic product
$13B
2025
$1.91T
2025
GDP rank
149/197
2025
12/197
2025
GDP growth
2.99%
2024-2025
2.82%
2024-2025
GDP per capita
$661
2025
$38,627
2025
GDP per capita rank
191/197
2025
31/197
2025
GDP per capita, PPP
$1,602
2024
$57,965
2024
GDP per capita PPP rank
194/197
2024
34/197
2024
Government debt n/a
$1.91T
2025
Debt-to-GDP ratio n/a
100.4%
2025
Government debt per person n/a
$38,794
2025
Government debt per person rank n/a
20/185
2025
Average annual personal income after taxes
$1,415
2026
$24,910
2026
Market capitalization of domestic companies n/a
$1.3T
2025
Number of millionaires n/a
1,077,000
2026
Number of billionaires n/a
34
2026
Income share by richest 10% n/a
24.5%
2023
Income share by poorest 10% n/a
2.2%
2023
Government expenditure, % of GDP
13%
2026
44.7%
2025
Consumer prices inflation
3.7%
2024-2025
2.7%
2024-2025
Unemployment rate
11.1%
2022
10.5%
2025
Population
20653532
49323658

Inflation comparison by year

Inflation
Somalia

Spain
1x
Year Consumer prices inflation
Somalia Spain
2025 3.7% 2.7%
2024 5.5% 2.75%
2023 6.2% 3.53%
2022 6.8% 8.39%
2021 4.6% 3.09%
2020 4.1% -0.32%
2019 4.7% 0.7%
2018 4.3% 1.67%
2017 4% 1.96%
2016 0% -0.2%
2015 0.9% -0.5%
2014 1.3% -0.15%
2013 2.8% 1.41%
2012 - 2.45%
2011 - 3.2%
2010 - 1.8%
2009 - -0.29%
2008 - 4.08%
2007 - 2.79%
2006 - 3.52%
2005 - 3.37%
2004 - 3.04%
2003 - 3.04%
2002 - 3.07%
2001 - 3.59%
2000 - 3.43%
1999 - 2.31%
1998 - 1.83%
1997 - 1.97%

Data sources: World Bank | Economy & Growth (1997–2025, retrieved 2026-07-08); International Monetary Fund (IMF) | World Economic Outlook (2013–2025, retrieved 2026-07-08).

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

Over the past 13 years, Somalia has recorded an average annual inflation rate of 3.76%, compared with 1.93% in Spain. In 2025, inflation was 3.7% in Somalia and 2.7% in Spain.

Top exports between countries

Somalia
Export category Export value
Raw agricultural goods $459K
Machinery & equipment $23K
Chemicals & pharma $5K
Spain
Export category Export value
Processed food, beverages & tobacco $13.1M
Animal & marine products $1.76M
Textiles & consumer goods $1.67M
Machinery & equipment $719K
Chemicals & pharma $521K
Raw agricultural goods $509K
Metals $227K
Raw materials & minerals $107K
Miscellaneous $69K
Wood & paper products $4K

Balance of trade

Somalia Spain
Current account balance n/a
$56B
2025
Current account balance ranking n/a
12/190
2025
Current account balance, % of GDP n/a
+2.94%
2025
Goods imports n/a
$499B
2025
Goods exports n/a
$443B
2025
Service imports n/a
$127B
2025
Service exports n/a
$256B
2025
Imports of goods and services, % of GDP
98.8%
2025
32.8%
2025
Exports of goods and services, % of GDP
29.2%
2025
36.6%
2025

Economic freedom indices

The indices of economic freedom below are issued by the Heritage Foundation. Higher scores indicate stronger economic health.

Somalia Spain
Economic freedom 29 66.8
Economic freedom ranking 193/197 59/197
Property rights 0.8 88
Government integrity 9.6 64.2
Judicial effectiveness 1.7 74.3
Tax burden 99.9 58.2
Government spending n/a 37.3
Fiscal health 0 57.3
Business freedom 25.9 82.6
Labor freedom 26.8 61.7
Monetary freedom n/a 78.2
Trade freedom n/a 79.4
Investment freedom n/a 60
Financial freedom n/a 60

Other economic metrics

Somalia Spain
Services, % of GDP n/a
68.4%
2025
Industry, % of GDP
9.66%
1986
19.6%
2025
Agriculture, forestry, and fishing, % of GDP
55.8%
1990
2.68%
2025
GNI, Atlas method
$12.5B
2025
$1.83T
2025
GNI per capita, PPP
$1,640
2025
$59,830
2025
Total reserves including gold
$23.1M
1989
$129B
2025
Total reserves ranking
176/177
1989
23/177
2025
Net foreign direct investment n/a
$18.3B
2025
Net inflows of foreign direct investment
$765M
2024
$42.8B
2024
Net outflows of foreign direct investment
$0
2024
$71.5B
2024
Servicing debt to the IMF, % of GNI
0.13%
2024
n/a
Poverty at national poverty lines
55.4%
2022
20.2%
2022
Gross capital formation, % of GDP
28.1%
2025
21.4%
2025

GDP per capita map

1x

Data sources: World Bank | Economy & Growth (1985–2025, retrieved 2026-07-08); U.S. Census Bureau (1985–2025, retrieved 2026-07-08).

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

Compare countries by 7 more topics

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 | Economy & Growth (1960–2026, retrieved 2026-07-08)
  2. U.S. Census Bureau (1985–2025, retrieved 2026-07-08)
  3. The Heritage Foundation | Economic Freedom Index (2017–2026, retrieved 2026-07-08)
  4. International Monetary Fund (IMF) | World Economic Outlook (2013–2025, retrieved 2026-07-08)
  5. TradeMap (2022–2025, retrieved 2026-07-08)
  6. United Nations | World Population Prospects (2026, retrieved 2026-07-08)
  7. LivingCost (2026, 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.

The current account balance is the sum of net trade in goods and services, net earnings from cross-border investments, and net transfer payments. It reflects a country's economic transactions with the rest of the world and is a fundamental component of the balance of payments. A surplus indicates that a country exports more than it imports, while a deficit shows the opposite.

Gross National Income (GNI) measures a country's total income. It encompasses income earned by residents, businesses, and foreign sources, defined as employee compensation and investment profits. GNI adds product taxes not included elsewhere and subtracts subsidies. It accounts for income from residents working abroad but excludes earnings from foreigners within the country.

A negative value for Net Foreign Direct Investment indicates a country is a net receiver of investments, as foreign inflows exceed outflows after Balance of Payments adjustments. A positive value indicates a net provider, with outflows exceeding inflows. Inflows are credits (increasing foreign claims on domestic assets), while outflows are debits (increasing domestic assets abroad).

Foreign direct investment (FDI, net inflows) shows how much capital foreign investors bring into a country after accounting for any funds that flow back in the opposite direction. It represents the net value of overseas companies establishing, expanding, or financing businesses in the reporting country. A positive number means more capital entered the country than was withdrawn, while a negative number means foreign investors pulled out more than they invested.

Foreign direct investment (FDI, net outflows) shows how much capital residents of a country invest abroad after accounting for any funds that flow back in the opposite direction. It represents the net value of domestic companies establishing, expanding, or financing businesses in other countries. A positive number means more capital was invested abroad than withdrawn, while a negative number means residents pulled back more than they invested.

Principal and interest payments to the IMF in currency, goods, or services on long-term debt expressed as a share of GNI.

Formerly gross domestic investment, gross capital formation measures the share of a country’s economic output invested in fixed assets, including buildings, machinery, and infrastructure. It indicates how much of the economy is devoted to building productive capacity.