Skip to content

Costa Rica vs San Marino statistics compared

Updated on by Georank team

Costa Rica has a population of 5.13M (ranked 126/197), compared with 34K in San Marino (ranked 193/197). Costa Rica's land area is 19,714 sq mi versus 23.2 sq mi for San Marino (ranked 126th vs. 193rd).

By GDP, Costa Rica ranks 73/197 ($95.4B) and San Marino ranks 180/197 ($2.03B). By GDP per capita, Costa Rica ranks 62/197 ($18,587), while San Marino ranks 15/197 ($59,880).

Main facts and rankings

Costa Rica San Marino
Population
5181862
33967
Population rank 126/197 193/197
GDP
$95.4B
2024
$2.03B
2023
GDP rank 73/197 180/197
GDP per capita
$18,587
2024
$59,880
2023
GDP per capita rank 62/197 15/197
GDP per capita, PPP
$31,107
2024
$78,745
2023
Government debt
$57B
2024
$1.39B
2023
Debt-to-GDP ratio
59.8%
2024
63.9%
2024
Government debt per person
$11,106
2024
$40,919
2023
Government debt per person rank 50/185 13/185
Average annual personal income after taxes
$12,150
2026
$45,474
2026
Land area 19,714 sq mi 23.2 sq mi
Population density
262.6 ppl/mi²
2026
1,466 ppl/mi²
2026
Fertility rate
1.33
2023
1.15
2023
Median age
35.6 years
2024
49 years
2024
Life expectancy
81.4 years
2026
86 years
2026

Costa Rica and San Marino: Comparison Charts

Costa Rica and San Marino economies compared

GDP
Costa Rica

San Marino
1x
Year GDP
Costa Rica San Marino
2024 $95,350,423,177 -
2023 $86,497,941,439 $2,027,527,228
2022 $69,243,626,029 $1,829,211,864
2021 $64,960,725,734 $1,855,652,786
2020 $62,395,610,760 $1,541,248,249
2019 $64,417,670,521 $1,616,340,692
2018 $62,420,164,992 $1,655,353,653
2017 $60,516,044,657 $1,528,620,346
2016 $58,847,019,610 $1,468,343,140
2015 $56,441,920,821 $1,419,401,071
2014 $52,016,408,854 $1,673,911,426
2013 $50,949,668,842 $1,678,741,475
2012 $47,231,655,432 $1,604,701,299
2011 $42,762,613,699 $1,813,717,439
2010 $37,658,616,952 $1,881,191,925
2009 $30,745,714,313 $2,064,277,126
2008 $30,801,745,700 $2,403,213,305
2007 $26,884,700,709 $2,188,654,628
2006 $22,715,540,324 $1,909,765,165
2005 $20,040,642,477 $1,786,514,058
2004 $18,610,594,846 $1,715,340,543
2003 $17,271,760,507 $1,462,590,267
2002 $16,578,820,687 $1,148,872,072
2001 $15,976,174,337 $1,059,529,812
2000 $15,013,629,662 $1,007,661,367
1999 $14,254,866,285 $1,109,473,368
1998 $13,684,255,947 $1,048,316,226
1997 $12,614,602,382 $976,606,911
1996 $11,678,424,507 -
1995 $11,578,594,260 -
1994 $10,489,903,725 -
1993 $9,564,815,975 -
1992 $8,579,754,758 -
1991 $7,215,725,487 -
1990 $5,711,687,787 -
1989 $5,251,025,767 -
1988 $4,614,629,898 -
1987 $4,532,952,047 -
1986 $4,418,983,871 -
1985 $3,919,203,960 -
1984 $3,660,477,856 -
1983 $3,146,772,631 -
1982 $2,606,623,555 -
1981 $2,623,803,096 -
1980 $4,831,447,001 -
1979 $4,035,519,323 -
1978 $3,523,208,810 -
1977 $3,072,427,013 -
1976 $2,412,555,426 -
1975 $1,960,863,466 -
1974 $1,666,544,754 -
1973 $1,528,925,846 -
1972 $1,238,251,696 -
1971 $1,077,147,538 -
1970 $984,830,158 -
1969 $853,630,204 -
1968 $773,841,494 -
1967 $699,456,619 -
1966 $647,305,630 -
1965 $592,981,162 -
1964 $542,578,367 -
1963 $511,902,137 -
1962 $479,180,824 -
1961 $490,325,182 -
1960 $507,513,830 -

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

GeoRank.org/facts/costa-rica/san-marino | CC BY

Costa Rica and San Marino economies compared

GDP per capita
Costa Rica

San Marino
1x
Year GDP per capita
Costa Rica San Marino
2024 $18,587 -
2023 $16,942 $59,880
2022 $13,626 $54,191
2021 $12,838 $54,176
2020 $12,394 $44,327
2019 $12,885 $46,630
2018 $12,590 $47,951
2017 $12,317 $45,192
2016 $12,091 $44,359
2015 $11,715 $43,147
2014 $10,911 $51,260
2013 $10,803 $50,808
2012 $10,127 $47,946
2011 $9,276 $55,601
2010 $8,266 $56,543
2009 $6,833 $62,429
2008 $6,937 $75,902
2007 $6,138 $70,124
2006 $5,257 $63,271
2005 $4,703 $59,878
2004 $4,431 $58,232
2003 $4,173 $52,530
2002 $4,068 $41,791
2001 $3,985 $39,035
2000 $3,813 $37,601
1999 $3,691 $41,932
1998 $3,617 $40,127
1997 $3,408 $37,853
1996 $3,227 -
1995 $3,275 -
1994 $3,040 -
1993 $2,840 -
1992 $2,612 -
1991 $2,253 -
1990 $1,830 -
1989 $1,725 -
1988 $1,555 -
1987 $1,567 -
1986 $1,569 -
1985 $1,429 -
1984 $1,372 -
1983 $1,213 -
1982 $1,032 -
1981 $1,068 -
1980 $2,021 -
1979 $1,735 -
1978 $1,556 -
1977 $1,393 -
1976 $1,123 -
1975 $937 -
1974 $817 -
1973 $769 -
1972 $639 -
1971 $570 -
1970 $536 -
1969 $477 -
1968 $445 -
1967 $414 -
1966 $395 -
1965 $374 -
1964 $354 -
1963 $346 -
1962 $335 -
1961 $356 -
1960 $382 -

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

GeoRank.org/facts/costa-rica/san-marino | CC BY

Costa Rica vs. San Marino life expectancy calculator

Life expectancy
Costa Rica

San Marino
1x
Year Life expectancy, years
Costa Rica San Marino
2026 81.4 86
2025 81.2 85.9
2024 81 85.8
2023 80.8 85.7
2022 79.3 85.7
2021 78.1 83.5
2020 79.7 82.6
2019 80.3 85.3
2018 80.1 85.1
2017 80 84.9
2016 80 84.8
2015 80.4 84.6
2014 80.2 84.4
2013 80.2 84.2
2012 79.9 83.9
2011 79.6 83.7
2010 79.4 83.5
2009 79.4 83.2
2008 79.2 82.9
2007 79.1 82.6
2006 79 82.3
2005 78.9 81.9
2004 78.5 81.6
2003 78.2 81.3
2002 77.9 81.1
2001 77.6 80.8
2000 77.3 80.5
1999 77.1 80.2
1998 76.9 79.9
1997 76.6 79.7
1996 76.4 79.3
1995 76.4 79
1994 76.3 78.7
1993 76.3 78.4
1992 76.4 78.1
1991 76.2 77.9
1990 76.1 77.8
1989 75.9 77.6
1988 75.5 77.5
1987 75.2 77.5
1986 74.9 77.4
1985 74.8 77.3
1984 74.6 77.2
1983 74.2 77
1982 73.9 76.8
1981 73.4 76.6
1980 73 76.4
1979 72.5 76.1
1978 72 75.9
1977 71.5 75.6
1976 70.9 75.4
1975 70.3 75.3
1974 69.4 75.1
1973 68.7 74.8
1972 68 74.6
1971 67.4 74.4
1970 66.8 74.3
1969 66.4 74.2
1968 65.8 74.1
1967 65.6 73.9
1966 65.1 73.8
1965 64.8 73.7
1964 64.5 73.7
1963 64.3 73.6
1962 64.2 73.5
1961 63.9 73.4
1960 63.5 73.2
1959 62.9 73
1958 62.3 72.8
1957 61.6 72.7
1956 61.2 72.5
1955 60.5 72.4
1954 59.9 72.2
1953 59.1 72
1952 58.1 71.9
1951 57.8 71.7
1950 57.5 71.6

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

GeoRank.org/facts/costa-rica/san-marino | CC BY

Costa Rica and San Marino population clocks and comparison

Population
Costa Rica

San Marino
1x
Year Population
Costa Rica San Marino
2024 5,129,910 33,977
2023 5,105,525 33,860
2022 5,081,765 33,755
2021 5,059,988 34,252
2020 5,034,320 34,770
2019 4,999,553 34,663
2018 4,957,818 34,522
2017 4,913,177 33,825
2016 4,866,998 33,101
2015 4,818,038 32,897
2014 4,767,119 32,655
2013 4,716,147 33,041
2012 4,663,934 33,469
2011 4,609,833 32,620
2010 4,555,962 33,270
2009 4,499,791 33,066
2008 4,440,056 31,662
2007 4,380,248 31,211
2006 4,321,340 30,184
2005 4,261,240 29,836
2004 4,200,078 29,457
2003 4,138,784 27,843
2002 4,075,705 27,491
2001 4,008,947 27,143
2000 3,937,739 26,799
1999 3,862,101 26,459
1998 3,782,838 26,125
1997 3,701,711 25,800
1996 3,619,013 25,482
1995 3,535,176 25,158
1994 3,451,122 24,823
1993 3,367,434 24,472
1992 3,284,258 24,125
1991 3,202,176 23,797
1990 3,121,706 23,475
1989 3,043,827 23,154
1988 2,968,103 22,843
1987 2,892,699 22,686
1986 2,817,216 22,636
1985 2,741,894 22,485
1984 2,667,595 22,346
1983 2,595,153 22,229
1982 2,524,806 22,055
1981 2,456,637 21,840
1980 2,390,633 21,585
1979 2,326,490 21,320
1978 2,264,510 21,026
1977 2,205,025 20,017
1976 2,147,774 19,110
1975 2,092,719 19,046
1974 2,039,643 19,030
1973 1,988,343 18,992
1972 1,938,248 18,787
1971 1,888,539 18,419
1970 1,838,949 18,168
1969 1,789,276 18,026
1968 1,739,731 17,861
1967 1,689,523 17,688
1966 1,638,116 17,523
1965 1,586,208 17,305
1964 1,533,960 16,977
1963 1,481,604 16,580
1962 1,429,445 16,183
1961 1,377,920 15,799
1960 1,327,496 15,428

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

GeoRank.org/facts/costa-rica/san-marino | CC BY

Fertility rates in Costa Rica and San Marino

Fertility rate
Costa Rica

San Marino
1x
Year Fertility rate
Costa Rica San Marino
2023 1.33 1.15
2022 1.34 1.14
2021 1.35 1.13
2020 1.45 1.11
2019 1.6 1.1
2018 1.71 1.08
2017 1.71 1.05
2016 1.75 1.13
2015 1.8 1.2
2014 1.8 1.26
2013 1.78 1.48
2012 1.85 1.29
2011 1.88 1.46
2010 1.83 1.46
2009 1.95 1.36
2008 1.98 1.52
2007 1.95 1.26
2006 1.94 1.24
2005 2.04 1.2
2004 2.03 1.3
2003 2.08 1.3
2002 2.16 1.43
2001 2.31 1.52
2000 2.41 1.4
1999 2.48 1.29
1998 2.53 1.26
1997 2.59 1.24
1996 2.68 1.21
1995 2.78 1.17
1994 2.86 1.14
1993 2.93 1.12
1992 3 1.15
1991 3.08 1.17
1990 3.17 1.16
1989 3.24 1.15
1988 3.31 1.14
1987 3.38 1.14
1986 3.45 1.15
1985 3.51 1.17
1984 3.52 1.2
1983 3.53 1.25
1982 3.54 1.3
1981 3.56 1.41
1980 3.58 1.53
1979 3.65 1.63
1978 3.66 1.77
1977 3.7 1.87
1976 3.75 1.95
1975 3.8 2.05
1974 3.89 2.13
1973 3.99 2.23
1972 4.16 2.29
1971 4.36 2.33
1970 4.59 2.32
1969 4.84 2.31
1968 5.03 2.3
1967 5.42 2.31
1966 5.7 2.33
1965 5.96 2.33
1964 6.19 2.37
1963 6.39 2.4
1962 6.54 2.43
1961 6.65 2.68
1960 6.71 2.43

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

GeoRank.org/facts/costa-rica/san-marino | CC BY

Costa Rica and San Marino demographics compared

Median age
Costa Rica

San Marino
1x
Year Median age, years
Costa Rica San Marino
2024 35.6 49
2023 35.1 48.3
2022 34.5 47.7
2021 34 47.2
2020 33.5 46.8
2019 33 46.3
2018 32.6 45.8
2017 32.1 45.3
2016 31.7 44.9
2015 31.2 44.5
2014 30.7 44
2013 30.3 43.7
2012 29.8 43.3
2011 29.4 42.8
2010 29 42.4
2009 28.6 42
2008 28.2 41.6
2007 27.8 41.2
2006 27.4 40.8
2005 27 40.4
2004 26.7 40.1
2003 26.3 39.7
2002 25.9 39.3
2001 25.5 39
2000 25.2 38.7
1999 24.9 38.4
1998 24.7 38.1
1997 24.4 37.9
1996 24.1 37.7
1995 23.9 37.4
1994 23.6 37.2
1993 23.4 36.8
1992 23.2 36.5
1991 22.9 36.1
1990 22.7 35.8
1989 22.5 35.5
1988 22.3 35.1
1987 22.1 34.8
1986 21.8 34.5
1985 21.6 34.2
1984 21.4 33.9
1983 21.2 33.6
1982 20.9 33.3
1981 20.6 33
1980 20.3 32.7
1979 20 32.5
1978 19.7 32.3
1977 19.5 32
1976 19.2 31.7
1975 18.9 31.5
1974 18.6 31.3
1973 18.4 31.2
1972 18.1 31
1971 17.8 30.8
1970 17.6 30.8
1969 17.3 30.9
1968 17.1 30.9
1967 16.9 30.9
1966 16.8 30.9
1965 16.7 30.9
1964 16.7 30.9
1963 16.7 30.8
1962 16.7 30.8
1961 16.8 30.9
1960 16.8 31

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

GeoRank.org/facts/costa-rica/san-marino | CC BY

Interactive Maps

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

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

National statistics comparison

Finance

Costa Rica San Marino
GNI, Atlas method
$80.2B
2024
$1.82B
2023
Government expenditure, % of GDP
18.9%
2024
21%
2024
Education expenditure, % of GDP
6.25%
2021
2.9%
2022
Armed forces personnel
10,000
2020
n/a
Deficit/surplus, % of GDP
-3.78%
2024
-0.53%
2024
Unemployment rate
6.94%
2024
4.91%
2022
Services, % of GDP
68.8%
2024
56.9%
2023
Industry, % of GDP
19.7%
2024
35.8%
2023
Economic freedom index
69.1
2026
76
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
$759M
2024
Personal remittances received
$725M
2024
$21M
2024
International tourist arrivals
1,146,500
2020
1,904,000
2019
International tourism as share of exports
7.41%
2020
n/a
Banked people share
71.4%
2024
n/a

Energy

Costa Rica San Marino
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
n/a
CO2 emissions per capita
1.63 tons
2024
n/a
Fossil fuel energy use share
51.6%
2023
n/a
Renewable energy use share
34.2%
2021
n/a
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
n/a
Hydroelectric share
69.3%
2023
n/a
Nuclear share
0%
2021
n/a
Electricity access
100%
2023
100%
2023

Society

Costa Rica San Marino
% of world population
0.06%
2024
0.0004%
2024
Annual migration change
+1,000
2025
+122
2025
Urban population
79.3%
2024
97.2%
2024
Male:Female ratio
49.4:50.6
2024
49.2:50.8
2024
Average male height
5.71 ft
2025
n/a
Average female height
5.26 ft
2025
n/a
Quality of life index
64.8
2026
89.3
2026
Corruption Perceptions Index
56
2025
80
2025
Higher education index
73
2026
9
2026
Homicides per 100K people
17.7
2023
0
2011
Road traffic mortality per 100K people
14.8
2019
0
2016
Visa free countries
142
2025
159
2025
Adult literacy rate
98%
2021
99.9%
2022
English speaking
8.15%
2023
7%
2025
People using the Internet
85.4%
2023
87%
2023

Health

Costa Rica San Marino
Government health expenditure per capita
$1,163
2023
$3,924
2023
Out-of-pocket health expenditure per capita
$280.7
2023
$514
2023
Life expectancy
81.4 years
2026
86 years
2026
Foreign aid share of health expenditure
0.01%
2023
n/a
Physicians per 1,000 people
2.69
2022
4.63
2023
Age at first childbirth n/a
31.5 years
2022
Maternal mortality per 100K births
24
2023
8
2023
Mortality rate before reaching 5 years of age
10.5
2023
1.4
2023
Obesity rate
32.3%
2022
n/a
Diabetes prevalence
9.8%
2024
8.6%
2024
Air quality index
80
2026
61
2026
Tobacco use prevalence
8.9%
2022
n/a
Pure alcohol consumption per capita
3.4 liters
2020
n/a

Territory

Costa Rica San Marino
% of world land
0.03%
2026
0.00004%
2026
Land area per capita
3,843 sq mi
2024
682 sq mi
2024
Agricultural land area
6,534 sq mi
2026
8.88 sq mi
2026
Forest area
11,907 sq mi
2026
3.86 sq mi
2026
Roads length
3,129 mi
2017
181.4 mi
2006

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 (2023–2024, retrieved 2026-02-20)
  6. LivingCost (2026, retrieved 2025-10-14)
  7. Passport Index (2025, retrieved 2026-02-08)
  8. EduRank (2026, retrieved 2025-10-13)
  9. United Nations Economic Commission for Europe (UNECE) (2022, retrieved 2026-03-10)
  10. World Obesity Federation (2022, retrieved 2026-02-08)
  11. Transparency International (2025, retrieved 2026-02-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.