Skip to content

Population in Costa Rica compared to San Marino: Trends, Charts, Rankings

Updated on by Georank

The latest officially reported population of Costa Rica was 5,152,950 in 2025 vs 34,109 people in San Marino in 2025. In 2026, based on the adjusted UN estimation, the current Costa Rica's population is 5,186,356 people compared to 34,159 in San Marino.

Population statistics:

  • Costa Rica's population is 151.8 times bigger than San Marino's.
  • Costa Rica is ranked the 126th most populous country in the world, while San Marino is the 193rd.
  • The countries together account for 0.06% of the world: 0.06% for Costa Rica vs 0.0004% for San Marino.
  • For the last 10 years, Costa Rica has had an average growth rate of +0.71% per year vs +0.4% in San Marino.
  • Since 2006, the population of Costa Rica has increased from 4.32M people to 5.19M (20% growth), while San Marino has grown from 30.2K to 34.2K (13.2% growth).

Costa Rica vs San Marino: population by year and forecast

Costa Rica
Factual

Projection
San Marino
Factual

Projection
1x
Year Population
Costa Rica San Marino
2100 3,803,678 31,687
2099 3,841,913 31,708
2098 3,880,484 31,720
2097 3,919,475 31,762
2096 3,958,826 31,780
2095 3,998,552 31,761
2094 4,038,516 31,755
2093 4,078,807 31,726
2092 4,119,351 31,748
2091 4,160,111 31,736
2090 4,200,989 31,747
2089 4,241,888 31,733
2088 4,282,758 31,725
2087 4,323,650 31,710
2086 4,364,399 31,683
2085 4,404,935 31,636
2084 4,445,179 31,623
2083 4,485,048 31,612
2082 4,524,570 31,596
2081 4,563,658 31,555
2080 4,602,126 31,573
2079 4,640,060 31,569
2078 4,677,313 31,566
2077 4,713,901 31,579
2076 4,749,678 31,612
2075 4,784,723 31,653
2074 4,819,050 31,703
2073 4,852,492 31,762
2072 4,885,078 31,825
2071 4,916,792 31,896
2070 4,947,655 31,965
2069 4,977,764 32,058
2068 5,006,939 32,160
2067 5,035,207 32,290
2066 5,062,849 32,395
2065 5,089,797 32,527
2064 5,115,866 32,664
2063 5,141,239 32,782
2062 5,165,574 32,918
2061 5,189,146 33,047
2060 5,211,857 33,170
2059 5,233,370 33,310
2058 5,253,830 33,447
2057 5,273,143 33,584
2056 5,291,310 33,717
2055 5,308,124 33,829
2054 5,323,598 33,954
2053 5,337,707 34,068
2052 5,350,263 34,161
2051 5,361,152 34,235
2050 5,370,484 34,268
2049 5,378,189 34,324
2048 5,384,366 34,382
2047 5,388,962 34,421
2046 5,391,996 34,463
2045 5,393,493 34,497
2044 5,393,407 34,546
2043 5,391,873 34,552
2042 5,388,912 34,521
2041 5,384,386 34,525
2040 5,378,629 34,534
2039 5,371,473 34,520
2038 5,362,904 34,483
2037 5,353,217 34,430
2036 5,342,317 34,403
2035 5,330,286 34,368
2034 5,317,189 34,347
2033 5,302,930 34,341
2032 5,287,714 34,316
2031 5,271,514 34,308
2030 5,254,366 34,289
2029 5,236,206 34,267
2028 5,217,031 34,215
2027 5,196,723 34,175
2026 5,175,408 34,144
2025 5,152,950 34,109
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: United Nations | World Population Prospects (2026–2100, retrieved 2026-07-08); World Bank | Health (1960–2025, retrieved 2026-07-08).

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

From 2006 to 2016, the population of Costa Rica increased by 545,658 people (a 12.6% growth), while San Marino gained 2,917 people (a 9.66% growth).

For the next 10 years, from 2016 to 2026, Costa Rica gained 319,358 people (a 6.56% growth), while San Marino's population increased by 1,058 people (a 3.2% growth).

Costa Rica was ranked 119th most populous country in 2006 and is 126th in 2026. San Marino was ranked 193rd in 2006 and still ranked 193rd now.

The UN's World Population Prospects forecasts that in 24 years (in 2050) Costa Rica's population will grow by 3.55% to 5,370,484 people with a rank change from 126th to 127th. The population of San Marino will increase by 0.32% to 34,268 people and rank change from 193rd to 192nd.

Costa Rica is projected to reach its peak in 2045 at 5.39M people, while San Marino's population already peaked in 2020 at 34.8K people and is projected to decrease to 31.7K people by 2100.

Population growth rate by year

Costa Rica
Factual

Projection
San Marino
Factual

Projection
1x
Year Growth rate
Costa Rica San Marino
2100 -1% -0.06%
2099 -0.99% -0.04%
2098 -0.99% -0.13%
2097 -0.99% -0.05%
2096 -0.99% 0.06%
2095 -0.99% 0.02%
2094 -0.99% 0.09%
2093 -0.98% -0.07%
2092 -0.98% 0.04%
2091 -0.97% -0.04%
2090 -0.96% 0.04%
2089 -0.95% 0.03%
2088 -0.95% 0.05%
2087 -0.93% 0.08%
2086 -0.92% 0.15%
2085 -0.91% 0.04%
2084 -0.89% 0.04%
2083 -0.87% 0.05%
2082 -0.86% 0.13%
2081 -0.84% -0.06%
2080 -0.82% 0.01%
2079 -0.8% 0.01%
2078 -0.78% -0.04%
2077 -0.75% -0.1%
2076 -0.73% -0.13%
2075 -0.71% -0.16%
2074 -0.69% -0.19%
2073 -0.67% -0.2%
2072 -0.65% -0.22%
2071 -0.62% -0.22%
2070 -0.6% -0.29%
2069 -0.58% -0.32%
2068 -0.56% -0.4%
2067 -0.55% -0.32%
2066 -0.53% -0.41%
2065 -0.51% -0.42%
2064 -0.49% -0.36%
2063 -0.47% -0.41%
2062 -0.45% -0.39%
2061 -0.44% -0.37%
2060 -0.41% -0.42%
2059 -0.39% -0.41%
2058 -0.37% -0.41%
2057 -0.34% -0.39%
2056 -0.32% -0.33%
2055 -0.29% -0.37%
2054 -0.26% -0.33%
2053 -0.23% -0.27%
2052 -0.2% -0.21%
2051 -0.17% -0.1%
2050 -0.14% -0.16%
2049 -0.11% -0.17%
2048 -0.09% -0.11%
2047 -0.06% -0.12%
2046 -0.03% -0.1%
2045 0.002% -0.14%
2044 0.03% -0.02%
2043 0.05% 0.09%
2042 0.08% -0.01%
2041 0.11% -0.03%
2040 0.13% 0.04%
2039 0.16% 0.11%
2038 0.18% 0.15%
2037 0.2% 0.08%
2036 0.23% 0.1%
2035 0.25% 0.06%
2034 0.27% 0.02%
2033 0.29% 0.07%
2032 0.31% 0.02%
2031 0.33% 0.05%
2030 0.35% 0.07%
2029 0.37% 0.15%
2028 0.39% 0.12%
2027 0.41% 0.09%
2026 0.44% 0.1%
2025 0.45% 0.39%
2024 0.48% 0.35%
2023 0.47% 0.31%
2022 0.43% -1.45%
2021 0.51% -1.49%
2020 0.7% 0.31%
2019 0.84% 0.41%
2018 0.91% 2.06%
2017 0.95% 2.19%
2016 1.02% 0.62%
2015 1.07% 0.74%
2014 1.08% -1.17%
2013 1.12% -1.28%
2012 1.17% 2.6%
2011 1.18% -1.95%
2010 1.25% 0.62%
2009 1.35% 4.43%
2008 1.37% 1.45%
2007 1.36% 3.4%
2006 1.41% 1.17%
2005 1.46% 1.29%
2004 1.48% 5.8%
2003 1.55% 1.28%
2002 1.67% 1.28%
2001 1.81% 1.28%
2000 1.96% 1.29%
1999 2.1% 1.28%
1998 2.19% 1.26%
1997 2.29% 1.25%
1996 2.37% 1.29%
1995 2.44% 1.35%
1994 2.49% 1.43%
1993 2.53% 1.44%
1992 2.56% 1.38%
1991 2.58% 1.37%
1990 2.56% 1.39%
1989 2.55% 1.36%
1988 2.61% 0.69%
1987 2.68% 0.22%
1986 2.75% 0.67%
1985 2.79% 0.62%
1984 2.79% 0.53%
1983 2.79% 0.79%
1982 2.77% 0.98%
1981 2.76% 1.18%
1980 2.76% 1.24%
1979 2.74% 1.4%
1978 2.7% 5.04%
1977 2.67% 4.75%
1976 2.63% 0.34%
1975 2.6% 0.08%
1974 2.58% 0.2%
1973 2.58% 1.09%
1972 2.63% 2%
1971 2.7% 1.38%
1970 2.78% 0.79%
1969 2.85% 0.92%
1968 2.97% 0.98%
1967 3.14% 0.94%
1966 3.27% 1.26%
1965 3.41% 1.93%
1964 3.53% 2.39%
1963 3.65% 2.45%
1962 3.74% 2.43%
1961 3.8% 2.4%

Data sources: United Nations | World Population Prospects (2026–2100, retrieved 2026-07-08); World Bank | Health (1961–2025, retrieved 2026-07-08).

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

In 2025, the population of Costa Rica grew by 0.45%, while San Marino's population grew by 0.39%.

Live population counters

Costa Rica San Marino
Current population
5186356
34159
Population rank 126/197 193/197
Percent of world population 0.06% 0.0004%
One net population change
22.9 minutes
2.77 days
One birth every
10.3 minutes
2.57 days
One death every
18.4 minutes
1.44 days
Daily growth/decline +63 +0
Annual growth/decline +23,040 +132
Annual growth/decline rate +0.45% +0.39%
Population growth rate rank 134/197 140/197
One migration net change every
8.78 hours
3 days
Annual migration change +1,000 +122
Net migration rank 63/196 72/196
Foreign-born residents 628,404 5,838
Foreign-born residents rank 75/195 183/195
Foreign-born share of population 12.2% 17.4%
Foreign-born share rank 55/195 35/195

Natural population change vs migration

Costa Rica
Natural

Migration
San Marino
Natural

Migration
1x
Year Population change
Costa Rica San Marino
Natural Migration Natural Migration
2025 - 1,000 - 122
2024 22,699 967 -112 37
2023 24,109 995 -92 -190
2022 21,409 1,006 -58 -403
2021 20,119 1,018 -99 -368
2020 29,164 1,029 -122 247
2019 37,682 1,653 -17 187
2018 42,469 1,673 -11 172
2017 43,471 1,671 -51 234
2016 45,565 1,649 10 291
2015 49,077 1,617 36 273
2014 49,559 1,589 46 74
2013 49,227 1,579 73 57
2012 52,036 1,587 54 143
2011 52,884 1,695 105 2,325
2010 50,803 2,357 126 592
2009 55,757 3,432 145 311
2008 56,491 3,794 159 268
2007 55,244 4,080 69 314
2006 54,177 4,321 75 310
2005 57,139 4,567 66 314
2004 55,769 4,856 121 285
2003 56,743 5,216 79 277
2002 58,388 5,812 112 241
2001 62,199 7,119 132 215
2000 64,268 8,826 107 233
1999 64,922 13,253 80 256
1998 64,788 15,556 74 257
1997 64,954 16,954 71 255
1996 66,094 17,393 63 257
1995 67,585 16,609 51 262
1994 68,336 15,587 43 300
1993 69,016 14,431 38 325
1992 69,830 13,069 42 285
1991 70,506 10,757 45 278
1990 71,727 7,949 41 289
1989 72,327 3,758 36 285
1988 72,944 2,414 34 268
1987 73,188 2,267 31 -20
1986 73,211 2,302 40 44
1985 72,776 2,357 44 166
1984 71,062 2,402 46 32
1983 68,972 2,449 54 115
1982 66,826 2,453 61 117
1981 64,632 2,431 76 169
1980 62,561 2,387 90 169
1979 60,984 2,349 104 164
1978 58,327 2,296 121 199
1977 56,122 2,228 117 1,577
1976 54,019 2,129 126 0
1975 51,979 1,992 141 -133
1974 50,349 1,839 153 -131
1973 48,943 1,468 167 -124
1972 48,417 1,366 173 191
1971 48,341 1,296 174 201
1970 48,398 1,137 173 -39
1969 48,790 1,017 173 -29
1968 48,361 939 171 8
1967 50,193 926 171 -3
1966 50,755 930 173 -9
1965 51,196 932 169 99
1964 51,435 934 163 233
1963 51,403 938 158 242
1962 51,046 934 155 238
1961 50,149 924 174 206
1960 48,857 910 139 229

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

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

Over the last 10 years, 96.2% of the population change in Costa Rica is from natural causes (a gain of 335,764 people) and 3.8% is from migration (a gain of 13,278 people). In San Marino 51.8% is from natural causes (a loss of 516 people) and 48.2% is from migration (a gain of 480 people).

As of 2024, 628,404 residents or 12.2% of the population were not native-born in Costa Rica, compared to 5,838 people or 17.4% in San Marino.

Biggest cities by population

Costa Rica
City Population
San Jose 335K
Limon 71.5K
Liberia 65.9K
Alajuela 44.4K
Puntarenas 41.5K
Cartago 22.8K
Heredia 16.7K
Tamarindo 7.13K
Santa Teresa 3K
San Marino
City Population
Dogana 7K
San Marino 4.04K

Compare countries by 7 more topics

Population map with other countries

1x

Data sources: World Bank | Health (1960–2025, retrieved 2026-07-08); United Nations | World Population Prospects (1960–2026, retrieved 2026-07-08); U.S. Census Bureau (1960–2025, retrieved 2026-07-08); Central Intelligence Agency (CIA) (2000–2019, retrieved 2026-07-08).

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

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 (1960–2100, 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. Wikidata (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.