Skip to content

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

Updated on by Georank team

The latest officially reported population of Costa Rica was 5,129,910 in 2024 vs 33,977 people in San Marino in 2024. In 2026, based on the adjusted UN estimation, the current Costa Rica's population is 5,181,862 people compared to 33,967 in San Marino.

Population statistics:

  • Costa Rica's population is 152.6 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.77% per year vs +0.26% in San Marino.
  • Since 2006, the population of Costa Rica has increased from 4.32M people to 5.18M (19.9% growth), while San Marino has grown from 30.2K to 34K (12.5% 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,804,183 31,516
2099 3,842,423 31,536
2098 3,880,999 31,548
2097 3,919,996 31,591
2096 3,959,352 31,608
2095 3,999,084 31,590
2094 4,039,053 31,583
2093 4,079,349 31,554
2092 4,119,898 31,576
2091 4,160,663 31,564
2090 4,201,548 31,575
2089 4,242,452 31,561
2088 4,283,327 31,553
2087 4,324,225 31,538
2086 4,364,979 31,512
2085 4,405,520 31,465
2084 4,445,770 31,452
2083 4,485,644 31,441
2082 4,525,171 31,425
2081 4,564,265 31,384
2080 4,602,737 31,402
2079 4,640,677 31,398
2078 4,677,935 31,395
2077 4,714,527 31,409
2076 4,750,309 31,441
2075 4,785,359 31,481
2074 4,819,691 31,532
2073 4,853,137 31,591
2072 4,885,727 31,653
2071 4,917,445 31,723
2070 4,948,313 31,792
2069 4,978,425 31,885
2068 5,007,604 31,986
2067 5,035,877 32,115
2066 5,063,521 32,219
2065 5,090,474 32,351
2064 5,116,546 32,487
2063 5,141,922 32,605
2062 5,166,260 32,740
2061 5,189,836 32,868
2060 5,212,549 32,991
2059 5,234,066 33,129
2058 5,254,528 33,266
2057 5,273,844 33,402
2056 5,292,013 33,535
2055 5,308,829 33,646
2054 5,324,305 33,770
2053 5,338,417 33,883
2052 5,350,974 33,976
2051 5,361,865 34,049
2050 5,371,197 34,083
2049 5,378,904 34,138
2048 5,385,081 34,196
2047 5,389,678 34,234
2046 5,392,713 34,277
2045 5,394,209 34,310
2044 5,394,124 34,359
2043 5,392,590 34,365
2042 5,389,628 34,334
2041 5,385,101 34,338
2040 5,379,344 34,348
2039 5,372,186 34,333
2038 5,363,617 34,296
2037 5,353,928 34,243
2036 5,343,027 34,217
2035 5,330,994 34,182
2034 5,317,895 34,162
2033 5,303,634 34,155
2032 5,288,416 34,130
2031 5,272,215 34,122
2030 5,255,064 34,104
2029 5,236,901 34,082
2028 5,217,724 34,030
2027 5,197,413 33,990
2026 5,176,096 33,959
2025 5,153,634 33,924
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 (2025–2100, retrieved 2026-03-10); World Bank | Health (1960–2024, retrieved 2026-04-06).

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 314,864 people (a 6.47% growth), while San Marino's population increased by 866 people (a 2.62% 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.65% to 5,371,197 people and will still be ranked 126th. The population of San Marino will increase by 0.34% to 34,083 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.5K 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.46% -0.15%
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 (2025–2100, retrieved 2026-03-10); World Bank | Health (1961–2024, retrieved 2026-04-06).

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

In 2024, the population of Costa Rica grew by 0.48%, while San Marino's population grew by 0.35%.

Live population counters

Costa Rica San Marino
Current population
5181862
33967
Population rank 126/197 193/197
Percent of world population 0.06% 0.0004%
One net population change
21.6 minutes
3.12 days
One birth every
10.1 minutes
1.93 days
One death every
18.9 minutes
1.3 days
Daily growth/decline +67 +0
Annual growth/decline +24,385 +117
Annual growth/decline rate +0.48% +0.35%
Population growth rate rank 138/197 145/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 - 967 - 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-04-06).

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

Over the last 10 years, 96.3% of the population change in Costa Rica is from natural causes (a gain of 362,624 people) and 3.69% is from migration (a gain of 13,900 people). In San Marino 40.9% is from natural causes (a loss of 358 people) and 59.1% is from migration (a gain of 517 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–2024, retrieved 2026-04-06); United Nations | World Population Prospects (1960–2026, retrieved 2026-03-10); U.S. Census Bureau (1960–2025, retrieved 2026-02-08); Central Intelligence Agency (CIA) (2000–2019, retrieved 2026-02-20).

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-04-06)
  2. United Nations | World Population Prospects (1960–2100, 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. Wikidata (2026, retrieved 2026-02-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.