Skip to content

Population in Costa Rica compared to Morocco: Trends, Charts, Rankings

Updated on by Georank

The latest officially reported population of Costa Rica was 5,152,950 in 2025 vs 38,430,770 people in Morocco in 2025. In 2026, based on the adjusted UN estimation, the current Costa Rica's population is 5,186,356 people compared to 38,938,817 in Morocco.

Population statistics:

  • Morocco's population is 7.51 times bigger than Costa Rica's.
  • Costa Rica is ranked the 126th most populous country in the world, while Morocco is the 41st.
  • The countries together account for 0.53% of the world: 0.06% for Costa Rica vs 0.47% for Morocco.
  • For the last 10 years, Costa Rica has had an average growth rate of +0.71% per year vs +1.06% in Morocco.
  • Since 2006, the population of Costa Rica has increased from 4.32M people to 5.19M (20% growth), while Morocco has grown from 30.8M to 38.9M (26.5% growth).

Costa Rica vs Morocco: population by year and forecast

Costa Rica
Factual

Projection
Morocco
Factual

Projection
1x
Year Population
Costa Rica Morocco
2100 3,803,678 38,169,376
2099 3,841,913 38,399,800
2098 3,880,484 38,627,357
2097 3,919,475 38,851,192
2096 3,958,826 39,072,685
2095 3,998,552 39,290,298
2094 4,038,516 39,503,336
2093 4,078,807 39,714,423
2092 4,119,351 39,921,868
2091 4,160,111 40,126,152
2090 4,200,989 40,325,215
2089 4,241,888 40,519,616
2088 4,282,758 40,706,061
2087 4,323,650 40,889,974
2086 4,364,399 41,072,468
2085 4,404,935 41,252,209
2084 4,445,179 41,425,986
2083 4,485,048 41,591,998
2082 4,524,570 41,755,476
2081 4,563,658 41,914,644
2080 4,602,126 42,069,073
2079 4,640,060 42,220,167
2078 4,677,313 42,364,299
2077 4,713,901 42,502,554
2076 4,749,678 42,634,865
2075 4,784,723 42,762,096
2074 4,819,050 42,885,545
2073 4,852,492 43,003,930
2072 4,885,078 43,115,594
2071 4,916,792 43,219,147
2070 4,947,655 43,319,278
2069 4,977,764 43,409,990
2068 5,006,939 43,494,031
2067 5,035,207 43,572,598
2066 5,062,849 43,641,156
2065 5,089,797 43,710,126
2064 5,115,866 43,767,514
2063 5,141,239 43,815,039
2062 5,165,574 43,857,629
2061 5,189,146 43,889,133
2060 5,211,857 43,913,417
2059 5,233,370 43,928,921
2058 5,253,830 43,931,406
2057 5,273,143 43,926,107
2056 5,291,310 43,914,039
2055 5,308,124 43,889,084
2054 5,323,598 43,852,920
2053 5,337,707 43,805,549
2052 5,350,263 43,745,706
2051 5,361,152 43,674,633
2050 5,370,484 43,591,589
2049 5,378,189 43,504,461
2048 5,384,366 43,404,127
2047 5,388,962 43,295,069
2046 5,391,996 43,179,153
2045 5,393,493 43,052,251
2044 5,393,407 42,912,359
2043 5,391,873 42,766,985
2042 5,388,912 42,610,691
2041 5,384,386 42,442,983
2040 5,378,629 42,267,502
2039 5,371,473 42,085,886
2038 5,362,904 41,889,492
2037 5,353,217 41,687,645
2036 5,342,317 41,476,060
2035 5,330,286 41,253,454
2034 5,317,189 41,024,367
2033 5,302,930 40,782,838
2032 5,287,714 40,532,216
2031 5,271,514 40,268,078
2030 5,254,366 39,993,270
2029 5,236,206 39,707,804
2028 5,217,031 39,409,825
2027 5,196,723 39,097,054
2026 5,175,408 38,771,691
2025 5,152,950 38,430,770
2024 5,129,910 38,081,173
2023 5,105,525 37,712,505
2022 5,081,765 37,329,064
2021 5,059,988 36,954,442
2020 5,034,320 36,584,208
2019 4,999,553 36,210,898
2018 4,957,818 35,839,760
2017 4,913,177 35,446,392
2016 4,866,998 35,023,457
2015 4,818,038 34,607,588
2014 4,767,119 34,204,780
2013 4,716,147 33,787,571
2012 4,663,934 33,355,241
2011 4,609,833 32,912,588
2010 4,555,962 32,467,016
2009 4,499,791 32,030,778
2008 4,440,056 31,606,767
2007 4,380,248 31,186,468
2006 4,321,340 30,771,178
2005 4,261,240 30,358,144
2004 4,200,078 29,953,018
2003 4,138,784 29,571,415
2002 4,075,705 29,198,142
2001 4,008,947 28,814,643
2000 3,937,739 28,423,435
1999 3,862,101 28,027,179
1998 3,782,838 27,621,648
1997 3,701,711 27,213,337
1996 3,619,013 26,808,107
1995 3,535,176 26,399,429
1994 3,451,122 26,000,822
1993 3,367,434 25,614,586
1992 3,284,258 25,212,468
1991 3,202,176 24,799,014
1990 3,121,706 24,375,551
1989 3,043,827 23,939,414
1988 2,968,103 23,500,524
1987 2,892,699 23,054,392
1986 2,817,216 22,600,803
1985 2,741,894 22,113,953
1984 2,667,595 21,593,778
1983 2,595,153 21,060,696
1982 2,524,806 20,520,318
1981 2,456,637 19,985,401
1980 2,390,633 19,459,943
1979 2,326,490 18,955,589
1978 2,264,510 18,477,385
1977 2,205,025 18,014,756
1976 2,147,774 17,574,182
1975 2,092,719 17,150,786
1974 2,039,643 16,733,842
1973 1,988,343 16,326,269
1972 1,938,248 15,924,692
1971 1,888,539 15,527,225
1970 1,838,949 15,129,449
1969 1,789,276 14,734,255
1968 1,739,731 14,347,899
1967 1,689,523 13,968,175
1966 1,638,116 13,597,065
1965 1,586,208 13,239,171
1964 1,533,960 12,898,886
1963 1,481,604 12,577,502
1962 1,429,445 12,253,092
1961 1,377,920 11,931,085
1960 1,327,496 11,624,933

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/morocco | CC BY

From 2006 to 2016, the population of Costa Rica increased by 545,658 people (a 12.6% growth), while Morocco gained 4,252,279 people (a 13.8% growth).

For the next 10 years, from 2016 to 2026, Costa Rica gained 319,358 people (a 6.56% growth), while Morocco's population increased by 3,915,360 people (a 11.2% growth).

Costa Rica was ranked 119th most populous country in 2006 and is 126th in 2026. Morocco was ranked 37th in 2006 and ranked 41st 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 Morocco will increase by 11.9% to 43,591,589 people and rank change from 41st to 50th.

Costa Rica is projected to reach its peak in 2045 at 5.39M people compared to the peak of 43.9M people in 2058 for Morocco.

Population growth rate by year

Costa Rica
Factual

Projection
Morocco
Factual

Projection
1x
Year Growth rate
Costa Rica Morocco
2100 -1% -0.6%
2099 -0.99% -0.59%
2098 -0.99% -0.58%
2097 -0.99% -0.57%
2096 -0.99% -0.55%
2095 -0.99% -0.54%
2094 -0.99% -0.53%
2093 -0.98% -0.52%
2092 -0.98% -0.51%
2091 -0.97% -0.49%
2090 -0.96% -0.48%
2089 -0.95% -0.46%
2088 -0.95% -0.45%
2087 -0.93% -0.44%
2086 -0.92% -0.44%
2085 -0.91% -0.42%
2084 -0.89% -0.4%
2083 -0.87% -0.39%
2082 -0.86% -0.38%
2081 -0.84% -0.37%
2080 -0.82% -0.36%
2079 -0.8% -0.34%
2078 -0.78% -0.33%
2077 -0.75% -0.31%
2076 -0.73% -0.3%
2075 -0.71% -0.29%
2074 -0.69% -0.28%
2073 -0.67% -0.26%
2072 -0.65% -0.24%
2071 -0.62% -0.23%
2070 -0.6% -0.21%
2069 -0.58% -0.19%
2068 -0.56% -0.18%
2067 -0.55% -0.16%
2066 -0.53% -0.16%
2065 -0.51% -0.13%
2064 -0.49% -0.11%
2063 -0.47% -0.1%
2062 -0.45% -0.07%
2061 -0.44% -0.06%
2060 -0.41% -0.04%
2059 -0.39% -0.006%
2058 -0.37% 0.01%
2057 -0.34% 0.03%
2056 -0.32% 0.06%
2055 -0.29% 0.08%
2054 -0.26% 0.11%
2053 -0.23% 0.14%
2052 -0.2% 0.16%
2051 -0.17% 0.19%
2050 -0.14% 0.2%
2049 -0.11% 0.23%
2048 -0.09% 0.25%
2047 -0.06% 0.27%
2046 -0.03% 0.29%
2045 0.002% 0.33%
2044 0.03% 0.34%
2043 0.05% 0.37%
2042 0.08% 0.4%
2041 0.11% 0.42%
2040 0.13% 0.43%
2039 0.16% 0.47%
2038 0.18% 0.48%
2037 0.2% 0.51%
2036 0.23% 0.54%
2035 0.25% 0.56%
2034 0.27% 0.59%
2033 0.29% 0.62%
2032 0.31% 0.66%
2031 0.33% 0.69%
2030 0.35% 0.72%
2029 0.37% 0.76%
2028 0.39% 0.8%
2027 0.41% 0.84%
2026 0.44% 0.89%
2025 0.45% 0.92%
2024 0.48% 0.98%
2023 0.47% 1.03%
2022 0.43% 1.01%
2021 0.51% 1.01%
2020 0.7% 1.03%
2019 0.84% 1.04%
2018 0.91% 1.11%
2017 0.95% 1.21%
2016 1.02% 1.2%
2015 1.07% 1.18%
2014 1.08% 1.23%
2013 1.12% 1.3%
2012 1.17% 1.34%
2011 1.18% 1.37%
2010 1.25% 1.36%
2009 1.35% 1.34%
2008 1.37% 1.35%
2007 1.36% 1.35%
2006 1.41% 1.36%
2005 1.46% 1.35%
2004 1.48% 1.29%
2003 1.55% 1.28%
2002 1.67% 1.33%
2001 1.81% 1.38%
2000 1.96% 1.41%
1999 2.1% 1.47%
1998 2.19% 1.5%
1997 2.29% 1.51%
1996 2.37% 1.55%
1995 2.44% 1.53%
1994 2.49% 1.51%
1993 2.53% 1.59%
1992 2.56% 1.67%
1991 2.58% 1.74%
1990 2.56% 1.82%
1989 2.55% 1.87%
1988 2.61% 1.94%
1987 2.68% 2.01%
1986 2.75% 2.2%
1985 2.79% 2.41%
1984 2.79% 2.53%
1983 2.79% 2.63%
1982 2.77% 2.68%
1981 2.76% 2.7%
1980 2.76% 2.66%
1979 2.74% 2.59%
1978 2.7% 2.57%
1977 2.67% 2.51%
1976 2.63% 2.47%
1975 2.6% 2.49%
1974 2.58% 2.5%
1973 2.58% 2.52%
1972 2.63% 2.56%
1971 2.7% 2.63%
1970 2.78% 2.68%
1969 2.85% 2.69%
1968 2.97% 2.72%
1967 3.14% 2.73%
1966 3.27% 2.7%
1965 3.41% 2.64%
1964 3.53% 2.56%
1963 3.65% 2.65%
1962 3.74% 2.7%
1961 3.8% 2.63%

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/morocco | CC BY

In 2025, the population of Costa Rica grew by 0.45%, while Morocco's population grew by 0.92%.

Live population counters

Costa Rica Morocco
Current population
5186356
38938817
Population rank 126/197 41/197
Percent of world population 0.06% 0.47%
One net population change
22.9 minutes
1.51 minutes
One birth every
10.3 minutes
50.5 seconds
One death every
18.4 minutes
2.41 minutes
Daily growth/decline +63 +958
Annual growth/decline +23,040 +349,597
Annual growth/decline rate +0.45% +0.92%
Population growth rate rank 134/197 105/197
One migration net change every
8.78 hours
9.37 minutes
Annual migration change +1,000 -56,254
Net migration rank 63/196 176/196
Foreign-born residents 628,404 111,069
Foreign-born residents rank 75/195 129/195
Foreign-born share of population 12.2% 0.3%
Foreign-born share rank 55/195 182/195

Natural population change vs migration

Costa Rica
Natural

Migration
Morocco
Natural

Migration
1x
Year Population change
Costa Rica Morocco
Natural Migration Natural Migration
2025 - 1,000 - -56,254
2024 22,699 967 406,555 -46,802
2023 24,109 995 417,213 -39,650
2022 21,409 1,006 427,903 -38,594
2021 20,119 1,018 407,829 -47,902
2020 29,164 1,029 415,999 -35,474
2019 37,682 1,653 457,307 -91,217
2018 42,469 1,673 464,375 -88,159
2017 43,471 1,671 471,011 -60,472
2016 45,565 1,649 474,637 -39,302
2015 49,077 1,617 477,654 -81,248
2014 49,559 1,589 481,295 -72,065
2013 49,227 1,579 492,284 -67,096
2012 52,036 1,587 504,698 -65,251
2011 52,884 1,695 513,305 -67,447
2010 50,803 2,357 515,804 -70,510
2009 55,757 3,432 509,386 -82,203
2008 56,491 3,794 499,766 -78,912
2007 55,244 4,080 493,526 -73,759
2006 54,177 4,321 483,200 -72,364
2005 57,139 4,567 474,285 -59,024
2004 55,769 4,856 461,756 -66,749
2003 56,743 5,216 452,650 -84,460
2002 58,388 5,812 446,147 -67,802
2001 62,199 7,119 452,621 -63,967
2000 64,268 8,826 461,341 -67,569
1999 64,922 13,253 473,071 -74,343
1998 64,788 15,556 492,604 -80,286
1997 64,954 16,954 500,807 -96,502
1996 66,094 17,393 501,499 -95,331
1995 67,585 16,609 496,573 -85,386
1994 68,336 15,587 501,426 -115,404
1993 69,016 14,431 507,707 -121,254
1992 69,830 13,069 525,680 -107,911
1991 70,506 10,757 539,850 -130,717
1990 71,727 7,949 535,506 -97,711
1989 72,327 3,758 538,996 -104,509
1988 72,944 2,414 545,800 -102,484
1987 73,188 2,267 553,005 -104,029
1986 73,211 2,302 558,105 -99,905
1985 72,776 2,357 560,810 -45,336
1984 71,062 2,402 564,159 -39,319
1983 68,972 2,449 566,301 -24,988
1982 66,826 2,453 564,904 -25,471
1981 64,632 2,431 552,936 -22,553
1980 62,561 2,387 534,448 -13,899
1979 60,984 2,349 515,554 -27,374
1978 58,327 2,296 498,834 -30,600
1977 56,122 2,228 489,173 -32,161
1976 54,019 2,129 482,130 -58,019
1975 51,979 1,992 474,631 -51,968
1974 50,349 1,839 464,147 -52,927
1973 48,943 1,468 455,699 -51,772
1972 48,417 1,366 446,449 -47,226
1971 48,341 1,296 435,104 -39,385
1970 48,398 1,137 426,015 -26,168
1969 48,790 1,017 414,931 -24,389
1968 48,361 939 407,437 -25,267
1967 50,193 926 400,594 -23,309
1966 50,755 930 391,881 -26,945
1965 51,196 932 383,989 -33,139
1964 51,435 934 375,835 -46,106
1963 51,403 938 369,250 -56,214
1962 51,046 934 363,843 -28,071
1961 50,149 924 348,650 -40,413
1960 48,857 910 323,499 -19,434

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

GeoRank.org/population/costa-rica/morocco | 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 Morocco 88.6% is from natural causes (a gain of 4,420,483 people) and 11.4% is from migration (a loss of 568,820 people).

As of 2024, 628,404 residents or 12.2% of the population were not native-born in Costa Rica, compared to 111,069 people or 0.3% in Morocco.

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
Morocco
City Population
Casablanca 3.22M
Tangier 1.28M
Fez 1.17M
Marrakesh 1M
Sale 945K
Meknes 601K
Rabat 573K
Agadir 538K
Kenitra 508K
Oujda 506K

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/morocco | 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.