Skip to content

Costa Rica vs Libya statistics compared

Updated on by Georank

Costa Rica has a population of 5.15M (ranked 126/197), compared with 7.46M in Libya (ranked 105/197). Costa Rica's land area is 19,714 sq mi versus 679,362 sq mi for Libya (ranked 126th vs. 16th).

By GDP, Costa Rica ranks 74/197 ($103B) and Libya ranks 100/197 ($48.1B). By GDP per capita, Costa Rica ranks 59/197 ($19,970), while Libya ranks 112/197 ($6,449).

Main facts and rankings

Costa Rica Libya
Population
5186356
7580693
Population rank 126/197 105/197
GDP
$103B
2025
$48.1B
2025
GDP rank 74/197 100/197
GDP per capita
$19,970
2025
$6,449
2025
GDP per capita rank 59/197 112/197
GDP per capita, PPP
$31,107
2024
$14,304
2024
Government debt
$62.2B
2025
n/a
Debt-to-GDP ratio
60.4%
2025
n/a
Government debt per person
$12,064
2025
n/a
Government debt per person rank 51/185 n/a
Average annual personal income after taxes
$12,879
2026
$3,426
2026
Land area 19,714 sq mi 679,362 sq mi
Population density
262.5 ppl/mi²
2026
11.1 ppl/mi²
2026
Fertility rate
1.32
2024
2.3
2024
Median age
36.2 years
2025
28.8 years
2025
Life expectancy
81.4 years
2026
75.2 years
2026

Costa Rica and Libya: Comparison Charts

Costa Rica and Libya economies compared

GDP
Costa Rica

Libya
1x
Year GDP
Costa Rica Libya
2025 $102,904,921,157 $48,098,909,614
2024 $96,715,644,331 $48,487,151,215
2023 $87,512,637,056 $44,027,664,915
2022 $71,001,226,361 $43,246,297,922
2021 $65,588,938,787 $35,217,995,647
2020 $62,806,591,555 $46,854,285,441
2019 $64,753,504,730 $69,254,496,472
2018 $62,567,765,946 $76,686,029,772
2017 $60,516,044,661 $67,157,452,182
2016 $58,847,019,588 $49,912,073,701
2015 $56,441,920,888 $48,717,501,321
2014 $52,016,408,816 $57,372,355,592
2013 $50,949,668,763 $75,351,107,029
2012 $47,231,655,493 $92,540,938,129
2011 $42,762,613,785 $48,169,263,294
2010 $37,658,616,966 $75,380,825,062
2009 $30,745,714,234 $60,808,562,033
2008 $30,801,745,703 $86,710,767,415
2007 $26,884,700,688 $68,032,978,391
2006 $22,715,540,342 $60,094,231,607
2005 $20,040,642,421 $47,334,691,241
2004 $18,610,594,844 $33,122,307,692
2003 $17,271,760,397 $26,265,625,000
2002 $16,578,820,799 $20,481,889,764
2001 $15,976,174,476 $34,112,093,927
2000 $15,013,629,579 $38,270,954,138
1999 $14,254,866,284 $35,975,860,857
1998 $13,684,255,998 $27,251,301,398
1997 $12,614,602,322 $30,700,897,875
1996 $11,678,424,727 $27,884,615,385
1995 $11,578,594,333 $25,541,379,187
1994 $10,489,903,834 $28,610,549,763
1993 $9,564,816,063 $30,660,051,911
1992 $8,579,754,953 $33,887,047,909
1991 $7,215,725,635 $31,991,821,265
1990 $5,711,687,787 $28,904,183,602
1989 $5,251,025,767 $25,156,707,899
1988 $4,614,629,898 $24,308,959,591
1987 $4,532,952,047 $26,697,659,335
1986 $4,418,983,871 $24,180,400,959
1985 $3,919,203,960 $31,530,566,324
1984 $3,660,477,856 $29,476,109,153
1983 $3,146,772,631 $33,200,520,140
1982 $2,606,623,555 $33,760,146,991
1981 $2,623,803,096 $36,374,353,880
1980 $4,831,447,001 $40,953,924,949
1979 $4,035,519,323 $30,536,429,497
1978 $3,523,208,810 $22,136,422,643
1977 $3,072,427,013 $22,428,297,108
1976 $2,412,555,426 $19,096,943,017
1975 $1,960,863,466 $14,710,912,458
1974 $1,666,544,754 $15,112,543,717
1973 $1,528,925,846 $8,625,889,430
1972 $1,238,251,696 $6,299,395,544
1971 $1,077,147,538 $5,260,185,125
1970 $984,830,158 $4,601,649,451
1969 $853,630,204 $4,380,987,481
1968 $773,841,494 $3,850,623,095
1967 $699,456,619 $2,726,986,913
1966 $647,305,630 $2,312,438,536
1965 $592,981,162 $1,804,979,680
1964 $542,578,367 $1,341,395,421
1963 $511,902,137 $892,327,911
1962 $479,180,824 $619,725,785
1961 $490,325,182 $443,905,612
1960 $507,513,830 $401,644,249

Data sources: World Bank | Economy & Growth (1960–2025, retrieved 2026-07-08).

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

Costa Rica and Libya economies compared

GDP per capita
Costa Rica

Libya
1x
Year GDP per capita
Costa Rica Libya
2025 $19,970 $6,449
2024 $18,853 $6,569
2023 $17,141 $6,027
2022 $13,972 $5,987
2021 $12,962 $4,936
2020 $12,476 $6,650
2019 $12,952 $9,963
2018 $12,620 $11,197
2017 $12,317 $9,966
2016 $12,091 $7,526
2015 $11,715 $7,458
2014 $10,911 $8,926
2013 $10,803 $11,952
2012 $10,127 $14,976
2011 $9,276 $7,594
2010 $8,266 $11,601
2009 $6,833 $9,551
2008 $6,937 $13,906
2007 $6,138 $11,145
2006 $5,257 $10,049
2005 $4,703 $8,079
2004 $4,431 $5,774
2003 $4,173 $4,674
2002 $4,068 $3,718
2001 $3,985 $6,313
2000 $3,813 $7,214
1999 $3,691 $6,895
1998 $3,617 $5,301
1997 $3,408 $6,062
1996 $3,227 $5,591
1995 $3,275 $5,205
1994 $3,040 $5,933
1993 $2,840 $6,478
1992 $2,612 $7,303
1991 $2,253 $7,040
1990 $1,830 $6,502
1989 $1,725 $5,793
1988 $1,555 $5,736
1987 $1,567 $6,465
1986 $1,569 $6,019
1985 $1,429 $8,087
1984 $1,372 $7,811
1983 $1,213 $8,927
1982 $1,032 $9,064
1981 $1,068 $10,044
1980 $2,021 $11,960
1979 $1,735 $9,443
1978 $1,556 $7,252
1977 $1,393 $7,783
1976 $1,123 $7,018
1975 $937 $5,721
1974 $817 $6,214
1973 $769 $3,727
1972 $639 $2,830
1971 $570 $2,443
1970 $536 $2,210
1969 $477 $2,175
1968 $445 $1,972
1967 $414 $1,437
1966 $395 $1,251
1965 $374 $1,001
1964 $354 $765
1963 $346 $528
1962 $335 $382
1961 $356 $285.3
1960 $382 $269

Data sources: World Bank | Economy & Growth (1960–2025, retrieved 2026-07-08).

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

Costa Rica vs. Libya life expectancy calculator

Life expectancy
Costa Rica

Libya
1x
Year Life expectancy, years
Costa Rica Libya
2026 81.4 75.2
2025 81.2 73.2
2024 81 71.1
2023 80.8 69.3
2022 79.3 74.5
2021 78.1 72.1
2020 79.7 72.4
2019 80.3 72.9
2018 80.1 73.2
2017 80 72.7
2016 80 71.8
2015 80.4 71.6
2014 80.2 71.3
2013 80.2 72.3
2012 79.9 72.2
2011 79.6 69.9
2010 79.4 72.2
2009 79.4 72.1
2008 79.2 71.9
2007 79.1 71.8
2006 79 71.6
2005 78.9 71.4
2004 78.5 71.2
2003 78.2 71
2002 77.9 70.8
2001 77.6 70.7
2000 77.3 70.5
1999 77.1 70.6
1998 76.9 70.7
1997 76.6 70.7
1996 76.4 70.7
1995 76.4 70.6
1994 76.3 70.5
1993 76.3 70.2
1992 76.4 70
1991 76.2 69.6
1990 76.1 69.3
1989 75.9 69
1988 75.5 68.6
1987 75.2 68.3
1986 74.9 67.8
1985 74.8 67.3
1984 74.6 66.7
1983 74.2 66.3
1982 73.9 65.8
1981 73.4 65.3
1980 73 64.8
1979 72.5 64.3
1978 72 63.8
1977 71.5 63.1
1976 70.9 62.4
1975 70.3 61.6
1974 69.4 60.7
1973 68.7 59.7
1972 68 58.7
1971 67.4 57.6
1970 66.8 56.4
1969 66.4 55.2
1968 65.8 53.8
1967 65.6 52.5
1966 65.1 50.9
1965 64.8 49.3
1964 64.5 47.7
1963 64.3 45.6
1962 64.2 44.1
1961 63.9 42.4
1960 63.5 40.8
1959 62.9 39.3
1958 62.3 38
1957 61.6 36.9
1956 61.2 36
1955 60.5 35.2
1954 59.9 34.7
1953 59.1 34.2
1952 58.1 33.8
1951 57.8 33.5
1950 57.5 33.1

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

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

Costa Rica and Libya population clocks and comparison

Population
Costa Rica

Libya
1x
Year Population
Costa Rica Libya
2025 5,152,950 7,458,555
2024 5,129,910 7,381,023
2023 5,105,525 7,305,659
2022 5,081,765 7,223,805
2021 5,059,988 7,135,175
2020 5,034,320 7,045,399
2019 4,999,553 6,951,033
2018 4,957,818 6,849,055
2017 4,913,177 6,738,770
2016 4,866,998 6,632,126
2015 4,818,038 6,531,819
2014 4,767,119 6,427,252
2013 4,716,147 6,304,628
2012 4,663,934 6,179,328
2011 4,609,833 6,343,203
2010 4,555,962 6,497,839
2009 4,499,791 6,366,686
2008 4,440,056 6,235,430
2007 4,380,248 6,104,380
2006 4,321,340 5,980,211
2005 4,261,240 5,858,798
2004 4,200,078 5,736,693
2003 4,138,784 5,619,398
2002 4,075,705 5,508,410
2001 4,008,947 5,403,639
2000 3,937,739 5,305,021
1999 3,862,101 5,218,038
1998 3,782,838 5,140,704
1997 3,701,711 5,064,639
1996 3,619,013 4,987,393
1995 3,535,176 4,906,843
1994 3,451,122 4,822,037
1993 3,367,434 4,733,045
1992 3,284,258 4,640,352
1991 3,202,176 4,544,400
1990 3,121,706 4,445,239
1989 3,043,827 4,342,920
1988 2,968,103 4,237,755
1987 2,892,699 4,129,739
1986 2,817,216 4,017,403
1985 2,741,894 3,898,745
1984 2,667,595 3,773,633
1983 2,595,153 3,718,961
1982 2,524,806 3,724,765
1981 2,456,637 3,621,486
1980 2,390,633 3,424,378
1979 2,326,490 3,233,846
1978 2,264,510 3,052,526
1977 2,205,025 2,881,533
1976 2,147,774 2,721,237
1975 2,092,719 2,571,556
1974 2,039,643 2,432,211
1973 1,988,343 2,314,193
1972 1,938,248 2,226,091
1971 1,888,539 2,153,534
1970 1,838,949 2,082,589
1969 1,789,276 2,014,293
1968 1,739,731 1,952,781
1967 1,689,523 1,898,199
1966 1,638,116 1,849,063
1965 1,586,208 1,804,015
1964 1,533,960 1,753,691
1963 1,481,604 1,690,457
1962 1,429,445 1,621,960
1961 1,377,920 1,555,699
1960 1,327,496 1,492,890

Data sources: World Bank | Health (1960–2025, retrieved 2026-07-08).

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

Fertility rates in Costa Rica and Libya

Fertility rate
Costa Rica

Libya
1x
Year Fertility rate
Costa Rica Libya
2024 1.32 2.3
2023 1.33 2.36
2022 1.34 2.4
2021 1.35 2.46
2020 1.45 2.51
2019 1.6 2.54
2018 1.71 2.58
2017 1.71 2.63
2016 1.75 2.67
2015 1.8 2.71
2014 1.8 2.75
2013 1.78 2.72
2012 1.85 2.68
2011 1.88 2.65
2010 1.83 2.6
2009 1.95 2.56
2008 1.98 2.6
2007 1.95 2.65
2006 1.94 2.7
2005 2.04 2.77
2004 2.03 2.77
2003 2.08 2.8
2002 2.16 2.83
2001 2.31 2.87
2000 2.41 2.91
1999 2.48 2.97
1998 2.53 3.04
1997 2.59 3.13
1996 2.68 3.26
1995 2.78 3.44
1994 2.86 3.65
1993 2.93 3.88
1992 3 4.16
1991 3.08 4.46
1990 3.17 4.78
1989 3.24 5.09
1988 3.31 5.41
1987 3.38 5.72
1986 3.45 6.02
1985 3.51 6.33
1984 3.52 6.62
1983 3.53 6.91
1982 3.54 7.16
1981 3.56 7.37
1980 3.58 7.54
1979 3.65 7.68
1978 3.66 7.79
1977 3.7 7.87
1976 3.75 7.93
1975 3.8 7.98
1974 3.89 8.02
1973 3.99 8.05
1972 4.16 8.07
1971 4.36 8.1
1970 4.59 8.05
1969 4.84 8.01
1968 5.03 7.97
1967 5.42 7.93
1966 5.7 7.89
1965 5.96 7.82
1964 6.19 7.75
1963 6.39 7.69
1962 6.54 7.61
1961 6.65 7.56
1960 6.71 7.51

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

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

Costa Rica and Libya demographics compared

Median age
Costa Rica

Libya
1x
Year Median age, years
Costa Rica Libya
2025 36.2 28.8
2024 35.6 28.5
2023 35.1 28.2
2022 34.5 28
2021 34 27.7
2020 33.5 27.5
2019 33 27.2
2018 32.6 27
2017 32.1 26.8
2016 31.7 26.6
2015 31.2 26.4
2014 30.7 26.2
2013 30.3 25.9
2012 29.8 25.7
2011 29.4 25.5
2010 29 25.3
2009 28.6 25
2008 28.2 24.6
2007 27.8 24.2
2006 27.4 23.8
2005 27 23.6
2004 26.7 23.4
2003 26.3 23.2
2002 25.9 23.1
2001 25.5 22.9
2000 25.2 22.7
1999 24.9 22.4
1998 24.7 22
1997 24.4 21.5
1996 24.1 21.1
1995 23.9 20.6
1994 23.6 20.1
1993 23.4 19.7
1992 23.2 19.3
1991 22.9 18.9
1990 22.7 18.6
1989 22.5 18.2
1988 22.3 17.9
1987 22.1 17.6
1986 21.8 17.3
1985 21.6 17.1
1984 21.4 16.8
1983 21.2 16.5
1982 20.9 16.3
1981 20.6 16.1
1980 20.3 16
1979 20 15.9
1978 19.7 15.9
1977 19.5 15.8
1976 19.2 15.6
1975 18.9 15.5
1974 18.6 15.3
1973 18.4 14.9
1972 18.1 14.7
1971 17.8 14.7
1970 17.6 14.7
1969 17.3 14.7
1968 17.1 14.9
1967 16.9 15.3
1966 16.8 15.9
1965 16.7 16.7
1964 16.7 17.2
1963 16.7 17.5
1962 16.7 17.9
1961 16.8 18.2
1960 16.8 18.5

Data sources: World Bank | Health (1960–2025, retrieved 2026-07-08).

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

Interactive Maps

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

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

National statistics comparison

Finance

Costa Rica Libya
GNI, Atlas method
$92.4B
2025
$54.1B
2025
Government expenditure, % of GDP
17.8%
2025
102.3%
2025
Education expenditure, % of GDP
5.31%
2023
2.26%
1999
Military expenditure, % of GDP n/a
5.29%
2023
Armed forces personnel
10,000
2020
0
2020
Deficit/surplus, % of GDP
-3.35%
2025
-31.1%
2025
Unemployment rate
6.34%
2025
30%
2004
Services, % of GDP
69.2%
2025
26.9%
2025
Industry, % of GDP
19.9%
2025
73.2%
2025
Economic freedom index
69.1
2026
35.9
2012
Income share by richest 10%
34.3%
2025
n/a
Income share by poorest 10%
1.8%
2025
n/a
Listed domestic companies
9
2022
n/a
Market capitalization of domestic companies
$2.23B
2022
n/a
Total reserves including gold
$17.1B
2025
$105B
2025
Personal remittances received
$725M
2024
$16M
2006
International tourist arrivals
1,146,500
2020
760,000
2008
International tourism as share of exports
7.4%
2020
0.34%
2010
Banked people share
71.4%
2024
33.1%
2024

Energy

Costa Rica Libya
Energy use, kg of oil equivalent per capita
1,024 kg
2024
2,662 kg
2023
GDP PPP per kg equivalent of energy use
$30.4
2024
$5.2
2023
Carbon dioxide (CO2) emissions
8.38 megatons
2024
64 megatons
2024
CO2 emissions per capita
1.63 tons
2024
8.66 tons
2024
Fossil fuel energy use share
51.6%
2023
96.3%
2022
Renewable energy use share
34.2%
2021
3.1%
2021
Alternative and nuclear energy use share
37.4%
2024
0%
2023
Net energy imports use share
60.4%
2023
-249.7%
2022
Electric power consumption per capita
2,282 kWh
2024
3,796 kWh
2023
Renewable electricity output share
99.4%
2021
0.02%
2021
Hydroelectric share
66.6%
2024
0%
2021
Nuclear share
0%
2021
0%
2021
Electricity access
100%
2023
73.2%
2023

Society

Costa Rica Libya
% of world population
0.06%
2025
0.09%
2025
Annual migration change
+1,000
2025
-172
2025
Urban population
79.7%
2025
87.9%
2025
Male:Female ratio
49.4:50.6
2025
50.8:49.2
2025
Average male height
5.56 ft
2026
5.79 ft
2026
Average female height
5.11 ft
2026
5.33 ft
2026
Quality of life index
65.9
2026
29.7
2026
Corruption Perceptions Index
56
2025
13
2025
Higher education index
73
2026
29
2026
Homicides per 100K people
17.7
2023
2.5
2015
Road traffic mortality per 100K people
14.8
2019
21.3
2019
Visa free countries
143
2026
52
2026
Adult literacy rate
98%
2021
76.5%
1994
English speaking
8.15%
2026
2%
2026
People using the Internet
87.2%
2024
82%
2024

Health

Costa Rica Libya
Government health expenditure per capita
$1,163
2023
$470
2023
Out-of-pocket health expenditure per capita
$280.7
2023
$90.2
2023
Life expectancy
81.4 years
2026
75.2 years
2026
Foreign aid share of health expenditure
0.01%
2023
0.68%
2023
Physicians per 1,000 people
2.69
2022
2.04
2017
Maternal mortality per 100K births
24
2023
59
2023
Mortality rate before reaching 5 years of age
10.4
2024
9.8
2024
Obesity rate
32.3%
2022
37.9%
2022
Diabetes prevalence
9.8%
2024
15.8%
2024
Air quality index
80
2026
70
2026
Tobacco use prevalence
7.9%
2024
24.2%
2024
Pure alcohol consumption per capita
3.4 liters
2020
0.01 liters
2020

Territory

Costa Rica Libya
% of world land
0.03%
2026
1.18%
2026
Land area per capita
3,826 sq mi
2025
91,085 sq mi
2025
Agricultural land area
6,534 sq mi
2026
59,267 sq mi
2026
Forest area
11,907 sq mi
2026
838 sq mi
2026
Roads length
3,129 mi
2017
22,991 mi
2010

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-07-08)
  2. United Nations | World Population Prospects (1950–2026, retrieved 2026-07-08)
  3. U.S. Census Bureau (1960–2025, retrieved 2026-07-08)
  4. Central Intelligence Agency (CIA) (2000–2019, retrieved 2026-07-08)
  5. International Monetary Fund (IMF) | Fiscal Monitor (2025, retrieved 2026-07-08)
  6. LivingCost (2026, retrieved 2026-07-08)
  7. The Heritage Foundation | Economic Freedom Index (2012–2026, retrieved 2026-07-08)
  8. World Obesity Federation (2022, retrieved 2026-07-08)
  9. Transparency International (2025, retrieved 2026-07-08)
  10. Passport Index (2026, retrieved 2026-07-08)
  11. EduRank (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.