Skip to content

Costa Rica vs Peru statistics compared

Updated on by Georank team

Costa Rica has a population of 5.13M (ranked 126/197), compared with 34.2M in Peru (ranked 48/197). Costa Rica's land area is 19,714 sq mi versus 494,211 sq mi for Peru (ranked 126th vs. 19th).

By GDP, Costa Rica ranks 73/197 ($95.4B) and Peru ranks 49/197 ($289B). By GDP per capita, Costa Rica ranks 62/197 ($18,587), while Peru ranks 91/197 ($8,452).

Main facts and rankings

Costa Rica Peru
Population
5181862
35031596
Population rank 126/197 48/197
GDP
$95.4B
2024
$289B
2024
GDP rank 73/197 49/197
GDP per capita
$18,587
2024
$8,452
2024
GDP per capita rank 62/197 91/197
GDP per capita, PPP
$31,107
2024
$17,802
2024
Government debt
$57B
2024
$93B
2024
Debt-to-GDP ratio
59.8%
2024
32.2%
2024
Government debt per person
$11,106
2024
$2,717
2024
Government debt per person rank 50/185 108/185
Average annual personal income after taxes
$12,150
2026
$7,290
2026
Land area 19,714 sq mi 494,211 sq mi
Population density
262.6 ppl/mi²
2026
70.7 ppl/mi²
2026
Fertility rate
1.33
2023
1.98
2023
Median age
35.6 years
2024
30.8 years
2024
Life expectancy
81.4 years
2026
78.3 years
2026

Costa Rica and Peru: Comparison Charts

Costa Rica and Peru economies compared

GDP
Costa Rica

Peru
1x
Year GDP
Costa Rica Peru
2024 $95,350,423,177 $289,221,969,063
2023 $86,497,941,439 $266,958,720,838
2022 $69,243,626,029 $246,065,570,308
2021 $64,960,725,734 $226,328,766,460
2020 $62,395,610,760 $201,409,694,756
2019 $64,417,670,521 $228,346,006,004
2018 $62,420,164,992 $222,597,009,739
2017 $60,516,044,657 $211,007,984,081
2016 $58,847,019,610 $191,898,104,390
2015 $56,441,920,821 $189,802,976,286
2014 $52,016,408,854 $200,786,250,583
2013 $50,949,668,842 $201,175,543,571
2012 $47,231,655,432 $192,650,021,649
2011 $42,762,613,699 $171,761,737,047
2010 $37,658,616,952 $147,527,631,521
2009 $30,745,714,313 $120,822,986,521
2008 $30,801,745,700 $120,550,599,815
2007 $26,884,700,709 $102,170,981,144
2006 $22,715,540,324 $88,643,193,062
2005 $20,040,642,477 $76,060,606,061
2004 $18,610,594,846 $66,768,703,498
2003 $17,271,760,507 $58,731,030,122
2002 $16,578,820,687 $54,777,553,515
2001 $15,976,174,337 $52,030,158,775
2000 $15,013,629,662 $51,744,749,133
1999 $14,254,866,285 $50,187,324,568
1998 $13,684,255,947 $55,501,467,877
1997 $12,614,602,382 $58,147,522,523
1996 $11,678,424,507 $55,252,414,130
1995 $11,578,594,260 $53,312,793,687
1994 $10,489,903,725 $44,882,079,767
1993 $9,564,815,975 $34,832,077,221
1992 $8,579,754,758 $35,966,302,303
1991 $7,215,725,487 $34,341,465,998
1990 $5,711,687,787 $26,410,386,963
1989 $5,251,025,767 $22,499,558,526
1988 $4,614,629,898 $15,439,408,447
1987 $4,532,952,047 $36,889,706,593
1986 $4,418,983,871 $21,859,448,586
1985 $3,919,203,960 $15,078,736,875
1984 $3,660,477,856 $17,600,400,385
1983 $3,146,772,631 $17,345,260,564
1982 $2,606,623,555 $21,794,535,621
1981 $2,623,803,096 $21,648,214,893
1980 $4,831,447,001 $18,136,838,538
1979 $4,035,519,323 $15,954,012,439
1978 $3,523,208,810 $12,491,876,743
1977 $3,072,427,013 $14,544,913,961
1976 $2,412,555,426 $16,131,958,851
1975 $1,960,863,466 $16,931,162,355
1974 $1,666,544,754 $13,858,441,211
1973 $1,528,925,846 $10,994,381,895
1972 $1,238,251,696 $9,189,413,409
1971 $1,077,147,538 $8,289,582,884
1970 $984,830,158 $7,432,223,177
1969 $853,630,204 $6,420,909,790
1968 $773,841,494 $5,736,083,835
1967 $699,456,619 $6,194,340,080
1966 $647,305,630 $6,109,048,737
1965 $592,981,162 $5,163,008,077
1964 $542,578,367 $4,353,664,867
1963 $511,902,137 $3,598,272,493
1962 $479,180,824 $3,284,322,201
1961 $490,325,182 $2,897,852,693
1960 $507,513,830 $2,571,986,572

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

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

Costa Rica and Peru economies compared

GDP per capita
Costa Rica

Peru
1x
Year GDP per capita
Costa Rica Peru
2024 $18,587 $8,452
2023 $16,942 $7,888
2022 $13,626 $7,351
2021 $12,838 $6,826
2020 $12,394 $6,133
2019 $12,885 $7,037
2018 $12,590 $6,978
2017 $12,317 $6,736
2016 $12,091 $6,217
2015 $11,715 $6,232
2014 $10,911 $6,667
2013 $10,803 $6,747
2012 $10,127 $6,519
2011 $9,276 $5,861
2010 $8,266 $5,072
2009 $6,833 $4,181
2008 $6,937 $4,198
2007 $6,138 $3,581
2006 $5,257 $3,130
2005 $4,703 $2,707
2004 $4,431 $2,397
2003 $4,173 $2,129
2002 $4,068 $2,007
2001 $3,985 $1,930
2000 $3,813 $1,945
1999 $3,691 $1,917
1998 $3,617 $2,156
1997 $3,408 $2,301
1996 $3,227 $2,227
1995 $3,275 $2,190
1994 $3,040 $1,879
1993 $2,840 $1,488
1992 $2,612 $1,567
1991 $2,253 $1,527
1990 $1,830 $1,200
1989 $1,725 $1,045
1988 $1,555 $733
1987 $1,567 $1,792
1986 $1,569 $1,087
1985 $1,429 $767
1984 $1,372 $918
1983 $1,213 $927
1982 $1,032 $1,194
1981 $1,068 $1,216
1980 $2,021 $1,045
1979 $1,735 $942
1978 $1,556 $756
1977 $1,393 $903
1976 $1,123 $1,026
1975 $937 $1,104
1974 $817 $927
1973 $769 $754
1972 $639 $647
1971 $570 $599
1970 $536 $550
1969 $477 $488
1968 $445 $448
1967 $414 $498
1966 $395 $505
1965 $374 $439
1964 $354 $381
1963 $346 $324
1962 $335 $305
1961 $356 $276.6
1960 $382 $252.8

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

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

Costa Rica vs. Peru life expectancy calculator

Life expectancy
Costa Rica

Peru
1x
Year Life expectancy, years
Costa Rica Peru
2026 81.4 78.3
2025 81.2 78.1
2024 81 77.9
2023 80.8 77.7
2022 79.3 76.8
2021 78.1 71.6
2020 79.7 73.8
2019 80.3 76.3
2018 80.1 76
2017 80 76
2016 80 76
2015 80.4 75.7
2014 80.2 75.3
2013 80.2 74.6
2012 79.9 74
2011 79.6 73.3
2010 79.4 72.9
2009 79.4 72.6
2008 79.2 72.7
2007 79.1 72.7
2006 79 72.3
2005 78.9 72
2004 78.5 71.4
2003 78.2 71.3
2002 77.9 70.8
2001 77.6 70.3
2000 77.3 69.8
1999 77.1 69.3
1998 76.9 68.7
1997 76.6 68.3
1996 76.4 67.8
1995 76.4 67.2
1994 76.3 66.5
1993 76.3 65.7
1992 76.4 65
1991 76.2 64.2
1990 76.1 64
1989 75.9 63.4
1988 75.5 63
1987 75.2 62.5
1986 74.9 62.2
1985 74.8 61.7
1984 74.6 61.1
1983 74.2 60.8
1982 73.9 60.6
1981 73.4 60.3
1980 73 60
1979 72.5 59.6
1978 72 59.3
1977 71.5 58.9
1976 70.9 58.6
1975 70.3 58.2
1974 69.4 57.8
1973 68.7 57.3
1972 68 57
1971 67.4 56.5
1970 66.8 47.7
1969 66.4 55.8
1968 65.8 55.4
1967 65.6 54.9
1966 65.1 54.4
1965 64.8 53.9
1964 64.5 53.3
1963 64.3 52.6
1962 64.2 51.5
1961 63.9 51.2
1960 63.5 50.6
1959 62.9 50
1958 62.3 49.5
1957 61.6 48.9
1956 61.2 48.4
1955 60.5 47.9
1954 59.9 47.5
1953 59.1 47.1
1952 58.1 46.8
1951 57.8 46.5
1950 57.5 46

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

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

Costa Rica and Peru population clocks and comparison

Population
Costa Rica

Peru
1x
Year Population
Costa Rica Peru
2024 5,129,910 34,217,848
2023 5,105,525 33,845,617
2022 5,081,765 33,475,438
2021 5,059,988 33,155,882
2020 5,034,320 32,838,579
2019 4,999,553 32,449,303
2018 4,957,818 31,897,584
2017 4,913,177 31,324,637
2016 4,866,998 30,866,494
2015 4,818,038 30,457,600
2014 4,767,119 30,115,826
2013 4,716,147 29,817,919
2012 4,663,934 29,550,366
2011 4,609,833 29,304,086
2010 4,555,962 29,086,019
2009 4,499,791 28,896,811
2008 4,440,056 28,719,041
2007 4,380,248 28,530,699
2006 4,321,340 28,324,491
2005 4,261,240 28,101,180
2004 4,200,078 27,852,190
2003 4,138,784 27,580,490
2002 4,075,705 27,288,217
2001 4,008,947 26,964,601
2000 3,937,739 26,598,331
1999 3,862,101 26,186,504
1998 3,782,838 25,738,095
1997 3,701,711 25,274,147
1996 3,619,013 24,811,171
1995 3,535,176 24,348,919
1994 3,451,122 23,881,493
1993 3,367,434 23,413,783
1992 3,284,258 22,946,340
1991 3,202,176 22,483,775
1990 3,121,706 22,014,771
1989 3,043,827 21,532,589
1988 2,968,103 21,054,702
1987 2,892,699 20,582,320
1986 2,817,216 20,117,122
1985 2,741,894 19,648,204
1984 2,667,595 19,174,716
1983 2,595,153 18,705,957
1982 2,524,806 18,246,503
1981 2,456,637 17,798,805
1980 2,390,633 17,360,949
1979 2,326,490 16,933,139
1978 2,264,510 16,516,059
1977 2,205,025 16,109,806
1976 2,147,774 15,716,809
1975 2,092,719 15,333,957
1974 2,039,643 14,956,552
1973 1,988,343 14,582,867
1972 1,938,248 14,210,147
1971 1,888,539 13,838,067
1970 1,838,949 13,501,237
1969 1,789,276 13,166,767
1968 1,739,731 12,803,993
1967 1,689,523 12,448,814
1966 1,638,116 12,101,297
1965 1,586,208 11,761,085
1964 1,533,960 11,427,978
1963 1,481,604 11,102,099
1962 1,429,445 10,784,612
1961 1,377,920 10,475,123
1960 1,327,496 10,174,127

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

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

Fertility rates in Costa Rica and Peru

Fertility rate
Costa Rica

Peru
1x
Year Fertility rate
Costa Rica Peru
2023 1.33 1.98
2022 1.34 2
2021 1.35 2.03
2020 1.45 2.06
2019 1.6 2.09
2018 1.71 2.12
2017 1.71 2.15
2016 1.75 2.19
2015 1.8 2.23
2014 1.8 2.27
2013 1.78 2.32
2012 1.85 2.36
2011 1.88 2.41
2010 1.83 2.42
2009 1.95 2.48
2008 1.98 2.53
2007 1.95 2.58
2006 1.94 2.62
2005 2.04 2.64
2004 2.03 2.67
2003 2.08 2.66
2002 2.16 2.69
2001 2.31 2.74
2000 2.41 2.85
1999 2.48 2.92
1998 2.53 3
1997 2.59 3.1
1996 2.68 3.2
1995 2.78 3.32
1994 2.86 3.43
1993 2.93 3.55
1992 3 3.67
1991 3.08 3.79
1990 3.17 3.91
1989 3.24 4.03
1988 3.31 4.14
1987 3.38 4.25
1986 3.45 4.35
1985 3.51 4.46
1984 3.52 4.57
1983 3.53 4.68
1982 3.54 4.8
1981 3.56 4.92
1980 3.58 5.04
1979 3.65 5.17
1978 3.66 5.31
1977 3.7 5.44
1976 3.75 5.58
1975 3.8 5.71
1974 3.89 5.84
1973 3.99 5.97
1972 4.16 6.09
1971 4.36 6.21
1970 4.59 6.32
1969 4.84 6.42
1968 5.03 6.51
1967 5.42 6.6
1966 5.7 6.68
1965 5.96 6.75
1964 6.19 6.81
1963 6.39 6.86
1962 6.54 6.9
1961 6.65 6.92
1960 6.71 6.94

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

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

Costa Rica and Peru demographics compared

Median age
Costa Rica

Peru
1x
Year Median age, years
Costa Rica Peru
2024 35.6 30.8
2023 35.1 30.5
2022 34.5 30.1
2021 34 29.8
2020 33.5 29.5
2019 33 29.2
2018 32.6 28.9
2017 32.1 28.6
2016 31.7 28.4
2015 31.2 28.1
2014 30.7 27.8
2013 30.3 27.4
2012 29.8 27.1
2011 29.4 26.7
2010 29 26.3
2009 28.6 25.8
2008 28.2 25.4
2007 27.8 25
2006 27.4 24.6
2005 27 24.2
2004 26.7 23.9
2003 26.3 23.5
2002 25.9 23.2
2001 25.5 22.8
2000 25.2 22.5
1999 24.9 22.1
1998 24.7 21.8
1997 24.4 21.5
1996 24.1 21.2
1995 23.9 20.9
1994 23.6 20.7
1993 23.4 20.4
1992 23.2 20.2
1991 22.9 20
1990 22.7 19.8
1989 22.5 19.6
1988 22.3 19.5
1987 22.1 19.3
1986 21.8 19.2
1985 21.6 19.1
1984 21.4 18.9
1983 21.2 18.8
1982 20.9 18.7
1981 20.6 18.6
1980 20.3 18.5
1979 20 18.4
1978 19.7 18.3
1977 19.5 18.2
1976 19.2 18.2
1975 18.9 18.1
1974 18.6 18.1
1973 18.4 18
1972 18.1 18
1971 17.8 17.9
1970 17.6 17.9
1969 17.3 17.9
1968 17.1 17.9
1967 16.9 17.9
1966 16.8 17.9
1965 16.7 17.9
1964 16.7 17.9
1963 16.7 17.9
1962 16.7 18
1961 16.8 18.1
1960 16.8 18.2

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

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

Interactive Maps

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

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

National statistics comparison

Finance

Costa Rica Peru
GNI, Atlas method
$80.2B
2024
$257B
2024
Government expenditure, % of GDP
18.9%
2024
22.3%
2024
Education expenditure, % of GDP
6.25%
2021
4.24%
2023
Military expenditure, % of GDP n/a
0.91%
2024
Armed forces personnel
10,000
2020
158,000
2020
Deficit/surplus, % of GDP
-3.78%
2024
-3.54%
2024
Unemployment rate
6.94%
2024
4.86%
2024
Services, % of GDP
68.8%
2024
51.3%
2024
Industry, % of GDP
19.7%
2024
34%
2024
Economic freedom index
69.1
2026
66.3
2026
Income share by richest 10%
34.2%
2024
30.3%
2024
Income share by poorest 10%
1.7%
2024
2%
2024
Listed domestic companies
9
2022
176
2024
Market capitalization of domestic companies
$2.23B
2022
$82.2B
2024
Total reserves including gold
$14.2B
2024
$79.2B
2024
Personal remittances received
$725M
2024
$4.93B
2024
International tourist arrivals
1,146,500
2020
1,119,000
2020
International tourism as share of exports
7.41%
2020
2.2%
2020
Banked people share
71.4%
2024
59.3%
2024

Energy

Costa Rica Peru
Energy use, kg of oil equivalent per capita
1,025 kg
2023
827 kg
2022
GDP PPP per kg equivalent of energy use
$28.2
2023
$20.2
2022
Carbon dioxide (CO2) emissions
8.38 megatons
2024
69.3 megatons
2024
CO2 emissions per capita
1.63 tons
2024
2.02 tons
2024
Fossil fuel energy use share
51.6%
2023
76.9%
2022
Renewable energy use share
34.2%
2021
30.6%
2021
Alternative and nuclear energy use share
37.7%
2023
10.2%
2022
Net energy imports use share
60.4%
2023
12.2%
2022
Electric power consumption per capita
2,206 kWh
2023
1,588 kWh
2022
Renewable electricity output share
99.4%
2021
61.3%
2021
Hydroelectric share
69.3%
2023
49.7%
2022
Nuclear share
0%
2021
0%
2021
Electricity access
100%
2023
96.2%
2023

Society

Costa Rica Peru
% of world population
0.06%
2024
0.42%
2024
Annual migration change
+1,000
2025
+11,931
2025
Urban population
79.3%
2024
85.2%
2024
Male:Female ratio
49.4:50.6
2024
49.7:50.3
2024
Average male height
5.71 ft
2025
5.47 ft
2025
Average female height
5.26 ft
2025
5.07 ft
2025
Quality of life index
64.8
2026
53.6
2026
Corruption Perceptions Index
56
2025
30
2025
Higher education index
73
2026
66
2026
Homicides per 100K people
17.7
2023
8.46
2021
Road traffic mortality per 100K people
14.8
2019
13.6
2019
Visa free countries
142
2025
147
2025
Adult literacy rate
98%
2021
93.7%
2024
English speaking
8.15%
2023
8%
2025
People using the Internet
85.4%
2023
82%
2024

Health

Costa Rica Peru
Government health expenditure per capita
$1,163
2023
$446
2023
Out-of-pocket health expenditure per capita
$280.7
2023
$120.2
2023
Life expectancy
81.4 years
2026
78.3 years
2026
Foreign aid share of health expenditure
0.01%
2023
0.21%
2022
Physicians per 1,000 people
2.69
2022
1.69
2023
Age at first childbirth n/a
21.9 years
2025
Maternal mortality per 100K births
24
2023
51
2023
Mortality rate before reaching 5 years of age
10.5
2023
15.8
2023
Obesity rate
32.3%
2022
28.1%
2022
Diabetes prevalence
9.8%
2024
6.4%
2024
Air quality index
80
2026
44
2026
Tobacco use prevalence
8.9%
2022
7.1%
2022
Pure alcohol consumption per capita
3.4 liters
2020
6.45 liters
2020

Territory

Costa Rica Peru
% of world land
0.03%
2026
0.86%
2026
Land area per capita
3,843 sq mi
2024
14,443 sq mi
2024
Agricultural land area
6,534 sq mi
2026
94,153 sq mi
2026
Forest area
11,907 sq mi
2026
277,267 sq mi
2026
Roads length
3,129 mi
2017
109,106 mi
2021

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–2025, retrieved 2026-02-20)
  5. International Monetary Fund (IMF) | Fiscal Monitor (2024, 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. The Heritage Foundation | Economic Freedom Index (2026, retrieved 2026-03-09)
  11. EduRank (2026, retrieved 2025-10-13)

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.