Home › Countries › Costa Rica

Costa Rica Population Pyramid 2026: 5.2M People by Age & Sex

By the AgePyramids research team · Data: UN World Population Prospects 2024

Costa Rica has a population of 5,174,789 in 2026, according to the UN World Population Prospects 2024 (projection for 1 July). That is the 127th-largest population in the world and 0.06% of the global total of 8.3B. Children under 15 make up 17.8% of the population and people aged 65 and over 13.3%, with 97.6 males for every 100 females.

Total population
5,174,789
1 July 2026 · UN projection
Median age
35.7 years
half the population is younger
Pyramid type
Constrictive
shape of the age structure
DTM stage
Stage 4
demographic transition model
Population density
101.3 per km²
people per square kilometre
Costa Rica population pyramid 2026MaleFemale5%2.5%0%2.5%5%100+ male: 147100+ female: 718100+95-99 male: 1,31295-99 female: 3,86395-9990-94 male: 6,09590-94 female: 12,23090-9485-89 male: 17,24485-89 female: 26,19885-8980-84 male: 34,63080-84 female: 44,94080-8475-79 male: 57,72475-79 female: 69,15275-7970-74 male: 82,11070-74 female: 95,03870-7465-69 male: 111,38265-69 female: 125,20465-6960-64 male: 133,79260-64 female: 147,56460-6455-59 male: 138,91355-59 female: 152,58055-5950-54 male: 147,52650-54 female: 159,08350-5445-49 male: 171,30345-49 female: 177,93045-4940-44 male: 197,73740-44 female: 198,10040-4435-39 male: 209,11935-39 female: 205,27735-3930-34 male: 205,84830-34 female: 200,60830-3425-29 male: 200,69325-29 female: 194,18025-2920-24 male: 185,23020-24 female: 178,12420-2415-19 male: 184,00015-19 female: 176,36015-1910-14 male: 179,40210-14 female: 171,90010-145-9 male: 160,7395-9 female: 154,1825-90-4 male: 131,0910-4 female: 125,5200-4
Costa Rica population pyramid, 1 July 2026 (UN medium-variant projection; UN estimates end in 2023). Free to reuse with credit to AgePyramids and the UN.

Embed this pyramid: <a href="https://agepyramids.com/costa-rica"><img src="https://agepyramids.com/images/pyramids/costa-rica-2026.svg" alt="Costa Rica population pyramid 2026"></a>

Show the numbers — Costa Rica population by age group, 2026
Age groupMaleFemaleTotalShare
100+1477188650.02%
95-991,3123,8635,1750.10%
90-946,09512,23018,3250.35%
85-8917,24426,19843,4420.84%
80-8434,63044,94079,5701.54%
75-7957,72469,152126,8762.45%
70-7482,11095,038177,1483.42%
65-69111,382125,204236,5864.57%
60-64133,792147,564281,3565.44%
55-59138,913152,580291,4935.63%
50-54147,526159,083306,6095.93%
45-49171,303177,930349,2336.75%
40-44197,737198,100395,8377.65%
35-39209,119205,277414,3968.01%
30-34205,848200,608406,4567.85%
25-29200,693194,180394,8737.63%
20-24185,230178,124363,3547.02%
15-19184,000176,360360,3606.96%
10-14179,402171,900351,3026.79%
5-9160,739154,182314,9216.09%
0-4131,091125,520256,6114.96%
Total2,556,0372,618,7515,174,788100.00%

Women outnumber men by 62,716 (1.2% of the population).

Costa Rica population pyramid, 1950 to 2100

Drag the slider or press play to watch the age structure change. Figures to 2023 are UN estimates; from 2024 they are the UN's medium-variant projection.

Costa Rica population pyramidMaleFemale5%2.5%0%2.5%5%100+ male: 147100+ female: 718100+95-99 male: 1,31295-99 female: 3,86395-9990-94 male: 6,09590-94 female: 12,23090-9485-89 male: 17,24485-89 female: 26,19885-8980-84 male: 34,63080-84 female: 44,94080-8475-79 male: 57,72475-79 female: 69,15275-7970-74 male: 82,11070-74 female: 95,03870-7465-69 male: 111,38265-69 female: 125,20465-6960-64 male: 133,79260-64 female: 147,56460-6455-59 male: 138,91355-59 female: 152,58055-5950-54 male: 147,52650-54 female: 159,08350-5445-49 male: 171,30345-49 female: 177,93045-4940-44 male: 197,73740-44 female: 198,10040-4435-39 male: 209,11935-39 female: 205,27735-3930-34 male: 205,84830-34 female: 200,60830-3425-29 male: 200,69325-29 female: 194,18025-2920-24 male: 185,23020-24 female: 178,12420-2415-19 male: 184,00015-19 female: 176,36015-1910-14 male: 179,40210-14 female: 171,90010-145-9 male: 160,7395-9 female: 154,1825-90-4 male: 131,0910-4 female: 125,5200-4
2026
Population: 5,174,789 Median age: 35.7

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Costa Rica sex ratio and gender balance

Costa Rica has 97.6 males for every 100 females in 2026. Women outnumber men by 62,716 (1.2% of the population). The male population is 2,556,036 (49.4%) and the female population is 2,618,752 (50.6%). Sex ratios differ by age: boys slightly outnumber girls at birth, while at older ages women usually outnumber men because of longer female life expectancy — in Costa Rica, life expectancy is 83.9 years for women and 78.8 years for men.

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Births and fertility in Costa Rica

In 2026 there are 50,203 births in Costa Rica — about 137 per day, 6 per hour, or roughly one birth every 10.5 minutes. The crude birth rate is 9.7 births per 1,000 people and the total fertility rate is 1.31 children per woman, below the replacement level of 2.1. Costa Rica accounts for 0.0% of all births worldwide. Deaths number 29,901, so births exceed deaths by 20,302.

YearBirthsBirth rate (per 1,000)Fertility rateType
202153,34910.51.35estimate
202252,44010.31.33estimate
202351,96910.21.33estimate
202451,25310.01.32projection
202550,6309.81.31projection
202650,2039.71.31projection

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Median age in Costa Rica

The median age in Costa Rica is 35.7 years in 2026 — the 100th-highest of 236 countries. Half the population is younger than 35.7 and half is older. The world median age is 31.1, so Costa Rica is 4.6 years older than the world average. The generation at the median age is the Millennials generation. In 1950 the median age was 16.8; the UN projects it to reach 47.0 by 2050.

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Age distribution in Costa Rica

Youth (0–14) make up 17.8% of the population (922,834 people), the working-age group (15–64) 68.9% (3,563,967), and older people (65+) 13.3% (687,987). Costa Rica has a constrictive population pyramid: a base narrower than the middle bands, showing smaller younger cohorts. Its largest five-year band is 35-39, at 8.0% of the population.

Age groupPopulationShareCategory
100+8650.0%Senior
95-995,1750.1%Senior
90-9418,3250.4%Senior
85-8943,4420.8%Senior
80-8479,5701.5%Senior
75-79126,8762.5%Senior
70-74177,1483.4%Senior
65-69236,5864.6%Senior
60-64281,3565.4%Working age
55-59291,4935.6%Working age
50-54306,6095.9%Working age
45-49349,2336.7%Working age
40-44395,8377.6%Working age
35-39414,3968.0%Working age
30-34406,4567.9%Working age
25-29394,8737.6%Working age
20-24363,3547.0%Young adult
15-19360,3607.0%Young adult
10-14351,3026.8%Youth
5-9314,9216.1%Youth
0-4256,6115.0%Youth

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Life expectancy in Costa Rica

Life expectancy at birth in Costa Rica is 81.4 years in 2026 — the 49th-highest of 236 countries: 78.8 years for men and 83.9 years for women, a gap of 5.1 years. The world average is 73.8 years. Life expectancy in Costa Rica has risen from 57.5 years in 1950, and the UN projects 85.3 years by 2050.

5574941950197520002025205020752100

Solid line: UN estimates to 2023. Dashed: medium-variant projection. Source: UN World Population Prospects 2024.

Dependency ratios and the demographic dividend

Costa Rica's total dependency ratio is 45.2 in 2026 — 25.9 children and 19.3 older people for every 100 working-age people. The working-age share peaked at 69.0% in 2024. The peak of the working-age share has passed, so policy attention shifts toward pensions, healthcare and older workers.

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Future trend: Costa Rica to 2050 and beyond

The UN projects Costa Rica's population to reach 5,354,150 by 2050 (+3.5% from 2026) and 3,776,474 by 2100. Its population is projected to peak at 5,381,722 in 2044. The median age rises to 47.0 by 2050. Full year-by-year figures, including the UN’s low and high variants, are on the Costa Rica population projection page.

How Costa Rica compares with its neighbours

CountryPopulationMedian ageUnder 1565+Pyramid type
Costa Rica (this page)5,174,78935.717.8%13.3%Constrictive
Mexico132,997,65830.023.7%8.8%Stationary
Guatemala18,967,97823.830.5%5.1%Expansive
Honduras11,184,76024.629.9%4.7%Stationary
Nicaragua7,097,32926.327.9%5.9%Stationary
El Salvador6,391,25428.424.0%8.5%Stationary

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Frequently asked questions

What is the population of Costa Rica in 2026?

Costa Rica has a population of 5,174,789 on 1 July 2026, according to the UN World Population Prospects 2024 (medium-variant projection). Women make up the majority: there are 2,618,752 women and 2,556,036 men.

What type of population pyramid does Costa Rica have?

Costa Rica has a constrictive population pyramid in 2026. Children under 15 make up 17.8% of the population and people aged 65 and over make up 13.3%. Its largest five-year age group is 35-39, at 8.0% of the population.

What is the median age in Costa Rica?

The median age in Costa Rica is 35.7 years in 2026 — half the population is younger and half is older. The world median age is 31.1 years, so Costa Rica is 4.6 years older than the world average.

Is the population of Costa Rica growing or shrinking?

Costa Rica's population is projected to peak at 5,381,722 in 2044. In 2050 it is projected at 5,354,150, a change of +3.5% from 2026. In 2026 there are 50,203 births and 29,901 deaths.

What is the dependency ratio in Costa Rica?

Costa Rica's total dependency ratio is 45.2 in 2026: for every 100 people of working age (15–64) there are 25.9 children under 15 and 19.3 people aged 65 and over who are supported by them.

How many births are there in Costa Rica each day?

About 137 babies are born in Costa Rica each day in 2026 (50,203 over the year, or roughly one birth every 10.5 minutes). The fertility rate is 1.31 children per woman and the crude birth rate is 9.7 births per 1,000 people.

More on Costa Rica

Population by generation in Costa Rica · Costa Rica population projection to 2100 · Latin America and the Caribbean region page · All countries and areas

About this data: UN World Population Prospects 2024, released 11 July 2024. Figures for 2024 and later are medium-variant projections for 1 July; 1950–2023 are estimates. Cite this page: AgePyramids. (2026). Costa Rica Population Pyramid and Demographic Analysis. Retrieved from https://agepyramids.com/costa-rica

Costa Rica Population Pyramid — Classroom Worksheet

Name: ______________________   Class: ____________   Date: ____________

Use the pyramid and the data tables on this page (1 July 2026, UN World Population Prospects 2024) to answer:

  1. What is the total population of Costa Rica in 2026?
  2. Which five-year age group is the largest, and what share of the population is it?
  3. What percentage of the population is aged 65 or over?
  4. In the 80–84 age group, are there more men or more women, and by how many?
  5. Is Costa Rica's pyramid expansive, stationary or constrictive? Use the under-15 share (17.8%) and the shape of the base in your answer.
  6. Write one sentence describing how this population is likely to change over the next 25 years, using evidence from the pyramid. (Discussion question.)

Answer key (teacher)

  1. 5,174,789
  2. 35-39 — 8.0%
  3. 13.3% (687,987 people)
  4. Women — by 10,310
  5. Constrictive
  6. Open — look for a claim backed by the base width, the 65+ share or the median age.