Geographic History

Flag of Costa RicaPopulation of Costa Rica (2026)

The population of Costa Rica is 5,174,789 in 2026 (UN mid-year projection).

Costa Rica has the 124th largest population of 195 ranked countries (2026, UN).

Between 2025 and 2026, the population of Costa Rica rose by 21,839 people, or 0.42% (UN).

Costa Rica holds 0.062% of the world population in 2026; the world total is 8,300,678,396 (UN).

Population density in Costa Rica is 101 people per km² (2024, World Bank).

79.7% of the population of Costa Rica lives in urban areas (2025, World Bank).

The median age in Costa Rica is 34.1 years (2023, UN).

5,174,789

Live estimate: a straight-line interpolation between the UN mid-year figures for 2026 and 2027. It is not a count.

Key figures

Population, UN mid-year projection
5,174,789 people2026, UN
Population, World Bank
5,152,950 people2025, World Bank, 124 of 194
Change 2025-2026
+21,839 people+0.42%, UN
World rank
124 of 1952026, UN
Share of world population
0.062%2026, UN
Population density
101 people per km²2024, World Bank
Urban population share
79.7%2025, World Bank
Median age
34.1 years2023, UN

Population, 1950-2100

01M2M3M4M5M6M1950200020502100

Solid line: UN values to 2023. Dashed line: projection to 2100 (Medium variant).

Population by year

Population of Costa Rica by year
YearValue (people)ChangeChange, %Basis
20265,174,789+21,839+0.42%projection
20255,152,950+23,040+0.45%projection
20245,129,910+24,384+0.48%projection
20235,105,526+23,762+0.47%estimate
20225,081,764+21,776+0.43%estimate
20215,059,988+25,668+0.51%estimate
20205,034,320+34,766+0.70%estimate
20194,999,554+41,736+0.84%estimate
20184,957,818+44,641+0.91%estimate
20174,913,177+46,179+0.95%estimate
20164,866,998+48,960+1.02%estimate
20154,818,038+50,919+1.07%estimate
20144,767,119+50,972+1.08%estimate
20134,716,147+52,213+1.12%estimate
20124,663,934+54,101+1.17%estimate
20114,609,833+53,871+1.18%estimate
20104,555,962+56,171+1.25%estimate
20094,499,791+59,735+1.35%estimate
20084,440,056+59,808+1.37%estimate
20074,380,248+58,908+1.36%estimate
20064,321,340+60,100+1.41%estimate
20054,261,240+61,162+1.46%estimate
20044,200,078+61,294+1.48%estimate
20034,138,784+63,079+1.55%estimate
20024,075,705+66,758+1.67%estimate
20014,008,947+71,208+1.81%estimate
20003,937,739+75,638+1.96%estimate
19993,862,101+79,263+2.10%estimate
19983,782,838+81,127+2.19%estimate
19973,701,711+82,698+2.29%estimate
19963,619,013+83,837+2.37%estimate
19953,535,176+84,054+2.44%estimate
19943,451,122+83,688+2.49%estimate
19933,367,434+83,176+2.53%estimate
19923,284,258+82,082+2.56%estimate
19913,202,176+80,470+2.58%estimate
19903,121,706+77,879+2.56%estimate
19893,043,827+75,724+2.55%estimate
19882,968,103+75,404+2.61%estimate
19872,892,699+75,483+2.68%estimate
19862,817,216+75,322+2.75%estimate
19852,741,894+74,299+2.79%estimate
19842,667,595+72,442+2.79%estimate
19832,595,153+70,347+2.79%estimate
19822,524,806+68,169+2.77%estimate
19812,456,637+66,003+2.76%estimate
19802,390,634+64,144+2.76%estimate
19792,326,490+61,980+2.74%estimate
19782,264,510+59,485+2.70%estimate
19772,205,025+57,251+2.67%estimate
19762,147,774+55,055+2.63%estimate
19752,092,719+53,076+2.60%estimate
19742,039,643+51,300+2.58%estimate
19731,988,343+50,095+2.58%estimate
19721,938,248+49,709+2.63%estimate
19711,888,539+49,590+2.70%estimate
19701,838,949+49,673+2.78%estimate
19691,789,276+49,545+2.85%estimate
19681,739,731+50,208+2.97%estimate
19671,689,523+51,407+3.14%estimate
19661,638,116+51,908+3.27%estimate
19651,586,208+52,248+3.41%estimate
19641,533,960+52,356+3.53%estimate
19631,481,604+52,159+3.65%estimate
19621,429,445+51,525+3.74%estimate
19611,377,920+50,424+3.80%estimate
19601,327,496+48,908+3.83%estimate
19591,278,588+47,037+3.82%estimate
19581,231,551+44,918+3.79%estimate
19571,186,633+42,786+3.74%estimate
19561,143,847+40,798+3.70%estimate
19551,103,049+38,930+3.66%estimate
19541,064,119+37,114+3.61%estimate
19531,027,005+35,211+3.55%estimate
1952991,794+33,385+3.48%estimate
1951958,409+31,651+3.42%estimate
1950926,758--estimate

Costa Rica through history

Costa Rica became independent on September 15, 1821.

The nearest world map in the atlas to that year is 1820.

Map quizzes that include Costa Rica

Population projection to 2100

Population projection to 2100
YearPopulationChange from 2026
20305,251,496+1.5%
20405,369,806+3.8%
20505,354,150+3.5%
20605,189,194+0.3%
20704,921,499-4.9%
20804,572,927-11.6%
20904,171,460-19.4%
21003,776,474-27.0%

Costa Rica in context

Costa Rica in context
CountryPopulationYearDensityRankRelation
Nicaragua7,097,329202656.7 people per km² (2023)106 of 195land neighbour
Ireland5,356,950202678.3 people per km² (2024)122 of 195similar size
New Zealand5,287,479202620.1 people per km² (2024)123 of 195similar size
Costa Rica5,174,7892026101 people per km² (2024)124 of 195this country
Kuwait5,102,7732026275 people per km² (2024)125 of 195similar size
Panama4,625,718202660.9 people per km² (2024)126 of 195land neighbour
Croatia3,822,345202669.1 people per km² (2024)127 of 195similar size

Frequently asked questions

How many people live in Costa Rica?

The population of Costa Rica is 5,174,789 in 2026 (UN mid-year projection).

How does Costa Rica rank in the world by population?

Costa Rica has the 124th largest population of 195 ranked countries (2026, UN).

Is the population of Costa Rica growing?

Yes. The UN data show a rise from 926,758 in 1950 to 5,174,789 in 2026, a change of +458.4%.

What is the population density of Costa Rica?

Population density in Costa Rica is 101 people per km² (2024, World Bank).

What will the population of Costa Rica be in 2050?

The UN medium-variant projection for Costa Rica is 5,354,150 in 2050. A projection is not a forecast of certainty: it depends on assumptions about births, deaths and migration.

What it measures

Total population counts all residents of a country regardless of legal status or citizenship. The UN figure is for 1 July of the year; the World Bank figure is its latest annual value.

Sources and method

UN figures are from UN - World Population Prospects 2024, Medium variant, World Population Prospects 2024 (revision 1): Interim update, released 19 January 2026 (Togo replaced; all other locations as released 11 July 2024); downloaded 2026-11-24. They count people on 1 July of each year. Values up to 2023 are estimates; later values are projections.

World Bank figures are the latest annual value in the data (World Development Indicators). Where the two sources give a population for the same year and differ by more than 2%, the page says so.

The population rank is computed from the UN values for 2026 among the 195 independent states that have a value; territories and dependencies are not ranked.

The yearly table lists the UN values for each year where the source has one; years without a value are left out.

Last updated:

More about Costa Rica

More statistics for Costa Rica

Every year has a map

Drag a timeline across 2,500 years in the free Geographic History app - every province, ruler and battle, also offline.