Skip to content

Costa Rica vs Somalia statistics compared

Updated on by Georank team

Costa Rica has a population of 5.13M (ranked 126/197), compared with 19M in Somalia (ranked 68/197). Costa Rica's land area is 19,714 sq mi versus 242,217 sq mi for Somalia (ranked 126th vs. 42nd).

By GDP, Costa Rica ranks 73/197 ($95.4B) and Somalia ranks 150/197 ($12B). By GDP per capita, Costa Rica ranks 62/197 ($18,587), while Somalia ranks 192/197 ($630).

Main facts and rankings

Costa Rica Somalia
Population
5181862
20503678
Population rank 126/197 66/197
GDP
$95.4B
2024
$12B
2024
GDP rank 73/197 150/197
GDP per capita
$18,587
2024
$630
2024
GDP per capita rank 62/197 192/197
GDP per capita, PPP
$31,107
2024
$1,602
2024
Government debt
$57B
2024
n/a
Debt-to-GDP ratio
59.8%
2024
n/a
Government debt per person
$11,106
2024
n/a
Government debt per person rank 50/185 n/a
Average annual personal income after taxes
$12,150
2026
$1,885
2026
Land area 19,714 sq mi 242,217 sq mi
Population density
262.6 ppl/mi²
2026
83.9 ppl/mi²
2026
Fertility rate
1.33
2023
6.13
2023
Median age
35.6 years
2024
16.6 years
2024
Life expectancy
81.4 years
2026
59.3 years
2026

Costa Rica and Somalia: Comparison Charts

Costa Rica and Somalia economies compared

GDP
Costa Rica

Somalia
1x
Year GDP
Costa Rica Somalia
2024 $95,350,423,177 $11,967,000,000
2023 $86,497,941,439 $10,958,000,000
2022 $69,243,626,029 $10,203,000,000
2021 $64,960,725,734 $9,483,000,000
2020 $62,395,610,760 $8,628,000,000
2019 $64,417,670,521 $8,656,000,000
2018 $62,420,164,992 $7,873,000,000
2017 $60,516,044,657 $7,621,501,710
2016 $58,847,019,610 $6,613,743,070
2015 $56,441,920,821 $6,152,149,100
2014 $52,016,408,854 $5,728,399,720
2013 $50,949,668,842 $5,062,881,600
2012 $47,231,655,432 $4,364,670,160
2011 $42,762,613,699 $2,906,000,097
2010 $37,658,616,952 $2,687,807,004
2009 $30,745,714,313 $2,948,594,552
2008 $30,801,745,700 $5,913,620,293
2007 $26,884,700,709 $5,430,713,729
2006 $22,715,540,324 $5,026,743,282
2005 $20,040,642,477 $4,683,246,454
2004 $18,610,594,846 $3,859,592,813
2003 $17,271,760,507 $2,836,724,352
2002 $16,578,820,687 $2,192,684,135
2001 $15,976,174,337 $2,252,847,465
2000 $15,013,629,662 $3,412,797,450
1999 $14,254,866,285 $3,045,751,528
1998 $13,684,255,947 $2,962,047,564
1997 $12,614,602,382 $2,191,749,014
1996 $11,678,424,507 $1,792,234,297
1995 $11,578,594,260 $1,534,756,135
1994 $10,489,903,725 $1,481,205,098
1993 $9,564,815,975 $1,260,132,956
1992 $8,579,754,758 $709,297,579
1991 $7,215,725,487 $717,974,930
1990 $5,711,687,787 $1,031,282,081
1989 $5,251,025,767 $1,181,360,844
1988 $4,614,629,898 $1,051,596,967
1987 $4,532,952,047 $1,018,972,664
1986 $4,418,983,871 $916,590,786
1985 $3,919,203,960 $875,702,247
1984 $3,660,477,856 $787,434,542
1983 $3,146,772,631 $735,408,642
1982 $2,606,623,555 $774,578,932
1981 $2,623,803,096 $699,302,473
1980 $4,831,447,001 $602,515,548
1979 $4,035,519,323 $589,566,929
1978 $3,523,208,810 $564,571,823
1977 $3,072,427,013 $498,550,725
1976 $2,412,555,426 $871,344,245
1975 $1,960,863,466 $757,015,879
1974 $1,666,544,754 $572,504,036
1973 $1,528,925,846 $483,699,611
1972 $1,238,251,696 $447,883,941
1971 $1,077,147,538 $347,039,446
1970 $984,830,158 $347,985,394
1969 $853,630,204 $306,357,285
1968 $773,841,494 $286,719,885
1967 $699,456,619 $271,781,887
1966 $647,305,630 $257,375,897
1965 $592,981,162 $243,725,898
1964 $542,578,367 $229,529,913
1963 $511,902,137 $216,145,936
1962 $479,180,824 $203,531,928
1961 $490,325,182 $191,659,914
1960 $507,513,830 $180,459,937

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

GeoRank.org/facts/costa-rica/somalia | CC BY

Costa Rica and Somalia economies compared

GDP per capita
Costa Rica

Somalia
1x
Year GDP per capita
Costa Rica Somalia
2024 $18,587 $630
2023 $16,942 $597
2022 $13,626 $573
2021 $12,838 $549
2020 $12,394 $518
2019 $12,885 $540
2018 $12,590 $509
2017 $12,317 $511
2016 $12,091 $461
2015 $11,715 $446
2014 $10,911 $429
2013 $10,803 $393
2012 $10,127 $350
2011 $9,276 $235.3
2010 $8,266 $219.2
2009 $6,833 $246.5
2008 $6,937 $507
2007 $6,138 $480
2006 $5,257 $458
2005 $4,703 $440
2004 $4,431 $375
2003 $4,173 $286.3
2002 $4,068 $229.6
2001 $3,985 $244.9
2000 $3,813 $386
1999 $3,691 $359
1998 $3,617 $363
1997 $3,408 $280.1
1996 $3,227 $237.2
1995 $3,275 $210.7
1994 $3,040 $210.8
1993 $2,840 $188.6
1992 $2,612 $109.2
1991 $2,253 $105.4
1990 $1,830 $145.6
1989 $1,725 $166
1988 $1,555 $145.3
1987 $1,567 $141
1986 $1,569 $131.4
1985 $1,429 $130.8
1984 $1,372 $122.5
1983 $1,213 $118.6
1982 $1,032 $129
1981 $1,068 $116.9
1980 $2,021 $101.5
1979 $1,735 $108.2
1978 $1,556 $117.3
1977 $1,393 $111.2
1976 $1,123 $199.6
1975 $937 $177.8
1974 $817 $137.9
1973 $769 $119.6
1972 $639 $113.7
1971 $570 $90.4
1970 $536 $93.1
1969 $477 $84.1
1968 $445 $80.8
1967 $414 $78.7
1966 $395 $76.5
1965 $374 $74.4
1964 $354 $71.9
1963 $346 $69.5
1962 $335 $67.2
1961 $356 $64.9
1960 $382 $62.7

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

GeoRank.org/facts/costa-rica/somalia | CC BY

Costa Rica vs. Somalia life expectancy calculator

Life expectancy
Costa Rica

Somalia
1x
Year Life expectancy, years
Costa Rica Somalia
2026 81.4 59.3
2025 81.2 59.1
2024 81 59
2023 80.8 58.8
2022 79.3 53.9
2021 78.1 55.7
2020 79.7 57.1
2019 80.3 57.2
2018 80.1 54.8
2017 80 52.2
2016 80 55.3
2015 80.4 55.1
2014 80.2 54.4
2013 80.2 54
2012 79.9 49.1
2011 79.6 32.5
2010 79.4 48.9
2009 79.4 52.1
2008 79.2 51.5
2007 79.1 50.9
2006 79 50.9
2005 78.9 50.9
2004 78.5 50.7
2003 78.2 50.7
2002 77.9 50.8
2001 77.6 50.8
2000 77.3 50.7
1999 77.1 50.6
1998 76.9 50.8
1997 76.6 50.3
1996 76.4 50.5
1995 76.4 50.6
1994 76.3 50.3
1993 76.3 50.6
1992 76.4 25
1991 76.2 25.4
1990 76.1 46.9
1989 75.9 46.6
1988 75.5 43.9
1987 75.2 49
1986 74.9 48.4
1985 74.8 48.3
1984 74.6 48.4
1983 74.2 48.2
1982 73.9 48
1981 73.4 47.8
1980 73 47.6
1979 72.5 47.4
1978 72 47
1977 71.5 47
1976 70.9 44.7
1975 70.3 44.5
1974 69.4 44.3
1973 68.7 46.2
1972 68 46
1971 67.4 45.8
1970 66.8 45.6
1969 66.4 45.5
1968 65.8 45.3
1967 65.6 45.1
1966 65.1 44.8
1965 64.8 44.6
1964 64.5 44.4
1963 64.3 44.2
1962 64.2 44
1961 63.9 43.7
1960 63.5 43.5
1959 62.9 43.3
1958 62.3 43.1
1957 61.6 42.9
1956 61.2 42.7
1955 60.5 42.5
1954 59.9 42.3
1953 59.1 42.1
1952 58.1 41.9
1951 57.8 41.7
1950 57.5 41.5

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

GeoRank.org/facts/costa-rica/somalia | CC BY

Costa Rica and Somalia population clocks and comparison

Population
Costa Rica

Somalia
1x
Year Population
Costa Rica Somalia
2024 5,129,910 19,009,151
2023 5,105,525 18,358,615
2022 5,081,765 17,801,897
2021 5,059,988 17,271,431
2020 5,034,320 16,651,191
2019 4,999,553 16,030,971
2018 4,957,818 15,452,487
2017 4,913,177 14,916,629
2016 4,866,998 14,348,740
2015 4,818,038 13,806,963
2014 4,767,119 13,339,491
2013 4,716,147 12,869,594
2012 4,663,934 12,461,160
2011 4,609,833 12,348,830
2010 4,555,962 12,261,756
2009 4,499,791 11,961,201
2008 4,440,056 11,663,084
2007 4,380,248 11,322,582
2006 4,321,340 10,975,502
2005 4,261,240 10,644,228
2004 4,200,078 10,280,998
2003 4,138,784 9,909,157
2002 4,075,705 9,550,063
2001 4,008,947 9,198,493
2000 3,937,739 8,838,713
1999 3,862,101 8,492,059
1998 3,782,838 8,155,417
1997 3,701,711 7,824,525
1996 3,619,013 7,554,474
1995 3,535,176 7,285,007
1994 3,451,122 7,026,797
1993 3,367,434 6,681,399
1992 3,284,258 6,495,107
1991 3,202,176 6,813,760
1990 3,121,706 7,082,811
1989 3,043,827 7,114,817
1988 2,968,103 7,235,360
1987 2,892,699 7,228,302
1986 2,817,216 6,974,788
1985 2,741,894 6,693,289
1984 2,667,595 6,428,389
1983 2,595,153 6,198,430
1982 2,524,806 6,003,840
1981 2,456,637 5,982,849
1980 2,390,633 5,936,154
1979 2,326,490 5,449,117
1978 2,264,510 4,814,892
1977 2,205,025 4,484,050
1976 2,147,774 4,365,812
1975 2,092,719 4,257,535
1974 2,039,643 4,151,842
1973 1,988,343 4,045,592
1972 1,938,248 3,939,436
1971 1,888,539 3,837,691
1970 1,838,949 3,738,448
1969 1,789,276 3,641,015
1968 1,739,731 3,546,590
1967 1,689,523 3,454,537
1966 1,638,116 3,365,106
1965 1,586,208 3,277,874
1964 1,533,960 3,192,796
1963 1,481,604 3,110,361
1962 1,429,445 3,030,091
1961 1,377,920 2,952,054
1960 1,327,496 2,876,331

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

GeoRank.org/facts/costa-rica/somalia | CC BY

Fertility rates in Costa Rica and Somalia

Fertility rate
Costa Rica

Somalia
1x
Year Fertility rate
Costa Rica Somalia
2023 1.33 6.13
2022 1.34 6.26
2021 1.35 6.35
2020 1.45 6.45
2019 1.6 6.56
2018 1.71 6.66
2017 1.71 6.77
2016 1.75 6.88
2015 1.8 6.98
2014 1.8 7.06
2013 1.78 7.14
2012 1.85 7.21
2011 1.88 7.27
2010 1.83 7.32
2009 1.95 7.38
2008 1.98 7.42
2007 1.95 7.46
2006 1.94 7.49
2005 2.04 7.53
2004 2.03 7.57
2003 2.08 7.6
2002 2.16 7.63
2001 2.31 7.64
2000 2.41 7.65
1999 2.48 7.66
1998 2.53 7.66
1997 2.59 7.66
1996 2.68 7.62
1995 2.78 7.58
1994 2.86 7.54
1993 2.93 7.53
1992 3 7.5
1991 3.08 7.47
1990 3.17 7.44
1989 3.24 7.42
1988 3.31 7.4
1987 3.38 7.37
1986 3.45 7.35
1985 3.51 7.33
1984 3.52 7.3
1983 3.53 7.28
1982 3.54 7.25
1981 3.56 7.23
1980 3.58 7.18
1979 3.65 7.16
1978 3.66 7.13
1977 3.7 7
1976 3.75 7.02
1975 3.8 7.03
1974 3.89 7.06
1973 3.99 7.09
1972 4.16 7.12
1971 4.36 7.15
1970 4.59 7.18
1969 4.84 7.21
1968 5.03 7.23
1967 5.42 7.25
1966 5.7 7.26
1965 5.96 7.26
1964 6.19 7.26
1963 6.39 7.26
1962 6.54 7.26
1961 6.65 7.25
1960 6.71 7.25

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

GeoRank.org/facts/costa-rica/somalia | CC BY

Costa Rica and Somalia demographics compared

Median age
Costa Rica

Somalia
1x
Year Median age, years
Costa Rica Somalia
2024 35.6 16.6
2023 35.1 16.5
2022 34.5 16.5
2021 34 16.4
2020 33.5 16.3
2019 33 16.3
2018 32.6 16.2
2017 32.1 16.2
2016 31.7 16.1
2015 31.2 16.1
2014 30.7 16
2013 30.3 16
2012 29.8 16
2011 29.4 15.8
2010 29 15.7
2009 28.6 15.6
2008 28.2 15.6
2007 27.8 15.6
2006 27.4 15.7
2005 27 15.9
2004 26.7 16
2003 26.3 16.1
2002 25.9 16.2
2001 25.5 16.2
2000 25.2 16.3
1999 24.9 16.3
1998 24.7 16.4
1997 24.4 16.4
1996 24.1 16.5
1995 23.9 16.6
1994 23.6 16.7
1993 23.4 16.8
1992 23.2 16.7
1991 22.9 16.5
1990 22.7 16.5
1989 22.5 16.7
1988 22.3 16.8
1987 22.1 17
1986 21.8 17.1
1985 21.6 17.2
1984 21.4 17.3
1983 21.2 17.4
1982 20.9 17.4
1981 20.6 17.5
1980 20.3 17.6
1979 20 17.6
1978 19.7 17.7
1977 19.5 17.7
1976 19.2 17.7
1975 18.9 17.7
1974 18.6 17.7
1973 18.4 17.6
1972 18.1 17.6
1971 17.8 17.6
1970 17.6 17.5
1969 17.3 17.5
1968 17.1 17.5
1967 16.9 17.5
1966 16.8 17.5
1965 16.7 17.5
1964 16.7 17.6
1963 16.7 17.7
1962 16.7 17.8
1961 16.8 17.9
1960 16.8 18.1

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

GeoRank.org/facts/costa-rica/somalia | CC BY

Interactive Maps

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

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

National statistics comparison

Finance

Costa Rica Somalia
GNI, Atlas method
$80.2B
2024
$11.7B
2024
Government expenditure, % of GDP
18.9%
2024
13%
2025
Education expenditure, % of GDP
6.25%
2021
0.000008%
2023
Military expenditure, % of GDP n/a
1.59%
2024
Armed forces personnel
10,000
2020
14,000
2020
Deficit/surplus, % of GDP
-3.78%
2024
-5.47%
2025
Unemployment rate
6.94%
2024
11.1%
2022
Services, % of GDP
68.8%
2024
n/a
Industry, % of GDP
19.7%
2024
9.66%
1986
Economic freedom index
69.1
2026
29
2025
Income share by richest 10%
34.2%
2024
n/a
Income share by poorest 10%
1.7%
2024
n/a
Listed domestic companies
9
2022
n/a
Market capitalization of domestic companies
$2.23B
2022
n/a
Total reserves including gold
$14.2B
2024
$23.1M
1989
Personal remittances received
$725M
2024
$2.12B
2024
International tourist arrivals
1,146,500
2020
n/a
International tourism as share of exports
7.41%
2020
n/a
Banked people share
71.4%
2024
38.7%
2014

Energy

Costa Rica Somalia
Energy use, kg of oil equivalent per capita
1,025 kg
2023
n/a
GDP PPP per kg equivalent of energy use
$28.2
2023
n/a
Carbon dioxide (CO2) emissions
8.38 megatons
2024
0.87 megatons
2024
CO2 emissions per capita
1.63 tons
2024
0.05 tons
2024
Fossil fuel energy use share
51.6%
2023
n/a
Renewable energy use share
34.2%
2021
95.4%
2022
Alternative and nuclear energy use share
37.7%
2023
n/a
Net energy imports use share
60.4%
2023
n/a
Electric power consumption per capita
2,206 kWh
2023
n/a
Renewable electricity output share
99.4%
2021
11.2%
2021
Hydroelectric share
69.3%
2023
0%
2021
Nuclear share
0%
2021
0%
2021
Electricity access
100%
2023
50.3%
2023

Society

Costa Rica Somalia
% of world population
0.06%
2024
0.23%
2024
Annual migration change
+1,000
2025
+12,077
2025
Urban population
79.3%
2024
54.6%
2024
Male:Female ratio
49.4:50.6
2024
50.1:49.9
2024
Average male height
5.71 ft
2025
5.62 ft
2025
Average female height
5.26 ft
2025
5.25 ft
2025
Quality of life index
64.8
2026
8.53
2026
Corruption Perceptions Index
56
2025
9
2025
Higher education index
73
2026
11
2026
Homicides per 100K people
17.7
2023
4.31
2015
Road traffic mortality per 100K people
14.8
2019
27.4
2019
Visa free countries
142
2025
43
2025
Adult literacy rate
98%
2021
54.1%
2022
English speaking
8.15%
2023
2%
2025
People using the Internet
85.4%
2023
27.6%
2022

Health

Costa Rica Somalia
Government health expenditure per capita
$1,163
2023
$22.4
2023
Out-of-pocket health expenditure per capita
$280.7
2023
$6.89
2023
Life expectancy
81.4 years
2026
59.3 years
2026
Foreign aid share of health expenditure
0.01%
2023
54.4%
2023
Physicians per 1,000 people
2.69
2022
0.05
2014
Maternal mortality per 100K births
24
2023
563
2023
Mortality rate before reaching 5 years of age
10.5
2023
104
2023
Obesity rate
32.3%
2022
14.9%
2022
Diabetes prevalence
9.8%
2024
5.8%
2024
Air quality index
80
2026
35
2026
Tobacco use prevalence
8.9%
2022
n/a
Pure alcohol consumption per capita
3.4 liters
2020
0 liters
2020

Territory

Costa Rica Somalia
% of world land
0.03%
2026
0.42%
2026
Land area per capita
3,843 sq mi
2024
12,742 sq mi
2024
Agricultural land area
6,534 sq mi
2026
170,384 sq mi
2026
Forest area
11,907 sq mi
2026
22,200 sq mi
2026
Roads length
3,129 mi
2017
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.