Skip to content
PopulationCount

Indonesia vs Spain population (2026)

AIndonesia

287.9 million

#4 in the world · +0.74% a year

Open Indonesia →

BSpain

47.9 million

#34 in the world · -0.10% a year

Open Spain →

Summary

Indonesia has 287.9 million people in 2026, 240.0 million more than Spain (47.9 million), about 6.0 times as many.

Updated:

Side by side

IndicatorIndonesiaSpain
Population287,886,78247,850,793
World rank434
Annual change0.74%-0.10%
Density (per km²)15195
Median age30.746.3
Fertility rate2.081.24
Life expectancy71.684.1
Urban population59.4%80.5%
Birth rate15.46.8
Death rate7.89.6
Net migration rate−0.1+1.8
Infant mortality15.62.1
Under-5 mortality18.82.7
Life expectancy, women73.886.7
Life expectancy, men69.481.4
Children under 1523.9%12.3%
Working age, 15–6468.3%65.5%
People aged 65+7.8%22.2%
Dependency ratio46.452.7
Sex ratio100.996.4
Population 2050320,712,94944,928,558
Population 2100295,511,06133,127,478

Population, 1950–2100

  • Indonesia
  • Spain
Indonesia vs Spain population, 1950–21000100M200M300M400M1950197520002025205020752100Indonesia vs Spain population, 1950–21000100M200M300M400M1950200020502100
UN medium scenario. Hover or tap the chart for exact values. Dashed line: current year.

Fertility rate

  • Indonesia
  • Spain
Fertility rate: Indonesia vs Spain, 1950–21001234561950197520002025205020752100Fertility rate: Indonesia vs Spain, 1950–21001234561950200020502100
Fertility rate, births per woman, 1950–2100. After 2026: UN medium projection.

Median age

  • Indonesia
  • Spain
Median age: Indonesia vs Spain, 1950–21001020304050601950197520002025205020752100Median age: Indonesia vs Spain, 1950–21001020304050601950200020502100
Median age, years, 1950–2100. After 2026: UN medium projection.

Life expectancy

  • Indonesia
  • Spain
Life expectancy: Indonesia vs Spain, 1950–21004060801001950197520002025205020752100Life expectancy: Indonesia vs Spain, 1950–21004060801001950200020502100
Life expectancy, years, 1950–2100. After 2026: UN medium projection.

Indonesia age pyramid

  • Male
  • Female
Indonesia age pyramid 20260-45-910-1415-1920-2425-2930-3435-3940-4445-4950-5455-5960-6465-6970-7475-7980-8485-8990-9495-99100+MaleFemaleIndonesia age pyramid 20260-45-910-1415-1920-2425-2930-3435-3940-4445-4950-5455-5960-6465-6970-7475-7980-8485-8990-9495-99100+MaleFemale
Thousands of people by 5-year age group. Each pyramid has its own scale.

Spain age pyramid

  • Male
  • Female
Spain age pyramid 20260-45-910-1415-1920-2425-2930-3435-3940-4445-4950-5455-5960-6465-6970-7475-7980-8485-8990-9495-99100+MaleFemaleSpain age pyramid 20260-45-910-1415-1920-2425-2930-3435-3940-4445-4950-5455-5960-6465-6970-7475-7980-8485-8990-9495-99100+MaleFemale
Thousands of people by 5-year age group. Each pyramid has its own scale.
Compare other countries

Frequently asked questions

Which has a larger population, Indonesia or Spain?

Indonesia has 287.9 million people in 2026, 240.0 million more than Spain (47.9 million), about 6.0 times as many.

Will Spain overtake Indonesia?

Under the UN medium scenario, Spain is not projected to overtake Indonesia before 2100.

Which country is younger, Indonesia or Spain?

The median age is 30.7 years in Indonesia and 46.3 years in Spain.

More comparisons

Sources and how to cite

Data: United Nations, Department of Economic and Social Affairs, Population Division (2024). World Population Prospects 2024. Medium scenario, mid-year (1 July) estimates and projections. Licence CC BY 3.0 IGO. See the methodology and editorial policy.

Spotted an error? Report it.

APA

PopulationCount. (2026). Indonesia vs Spain Population (2026). Retrieved 2026-11-27, from https://populationcount.com/compare/indonesia-vs-spain

MLA

"Indonesia vs Spain Population (2026)." PopulationCount, 2026, populationcount.com/compare/indonesia-vs-spain. Accessed 27 Nov. 2026.

Chicago

PopulationCount. "Indonesia vs Spain Population (2026)." 2026. Accessed November 27, 2026. https://populationcount.com/compare/indonesia-vs-spain.

Harvard

PopulationCount (2026) Indonesia vs Spain Population (2026). Available at: https://populationcount.com/compare/indonesia-vs-spain (Accessed: 2026-11-27).

BibTeX

@misc{populationcount2026compareindonesiavsspain,
  author = {{PopulationCount}},
  title = {Indonesia vs Spain Population (2026)},
  year = {2026},
  url = {https://populationcount.com/compare/indonesia-vs-spain},
  note = {Data: United Nations, World Population Prospects 2024. Accessed 2026-11-27}
}