Skip to content
PopulationCount

Gibraltar vs Spain population (2026)

ASpain

47.9 million

#34 in the world · -0.10% a year

Open Spain →

BGibraltar

40,867

#216 in the world · +1.73% a year

Open Gibraltar →

Summary

Spain has 47.9 million people in 2026, 47.8 million more than Gibraltar (40,867), about 1170.9 times as many.

Updated:

Side by side

IndicatorSpainGibraltar
Population47,850,79340,867
World rank34216
Annual change-0.10%1.73%
Density (per km²)954,087
Median age46.338.8
Fertility rate1.241.88
Life expectancy84.183.9
Urban population80.5%100%
Birth rate6.812.3
Death rate9.66.7
Net migration rate+1.8+11.8
Infant mortality2.18.0
Under-5 mortality2.710.1
Life expectancy, women86.786.4
Life expectancy, men81.481.3
Children under 1512.3%17.6%
Working age, 15–6465.5%64.3%
People aged 65+22.2%18.1%
Dependency ratio52.755.4
Sex ratio96.499.0
Population 205044,928,55849,798
Population 210033,127,47849,261

Population, 1950–2100

  • Spain
  • Gibraltar
Spain vs Gibraltar population, 1950–2100010M20M30M40M50M1950197520002025205020752100Spain vs Gibraltar population, 1950–2100010M20M30M40M50M1950200020502100
UN medium scenario. Hover or tap the chart for exact values. Dashed line: current year.

Fertility rate

  • Spain
  • Gibraltar
Fertility rate: Spain vs Gibraltar, 1950–2100123451950197520002025205020752100Fertility rate: Spain vs Gibraltar, 1950–2100123451950200020502100
Fertility rate, births per woman, 1950–2100. After 2026: UN medium projection.

Median age

  • Spain
  • Gibraltar
Median age: Spain vs Gibraltar, 1950–210020304050601950197520002025205020752100Median age: Spain vs Gibraltar, 1950–210020304050601950200020502100
Median age, years, 1950–2100. After 2026: UN medium projection.

Life expectancy

  • Spain
  • Gibraltar
Life expectancy: Spain vs Gibraltar, 1950–2100607080901001950197520002025205020752100Life expectancy: Spain vs Gibraltar, 1950–2100607080901001950200020502100
Life expectancy, years, 1950–2100. After 2026: UN medium projection.

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.

Gibraltar age pyramid

  • Male
  • Female
Gibraltar age pyramid 20260-45-910-1415-1920-2425-2930-3435-3940-4445-4950-5455-5960-6465-6970-7475-7980-8485-8990-9495-99100+MaleFemaleGibraltar 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, Spain or Gibraltar?

Spain has 47.9 million people in 2026, 47.8 million more than Gibraltar (40,867), about 1170.9 times as many.

Will Gibraltar overtake Spain?

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

Which country is younger, Spain or Gibraltar?

The median age is 46.3 years in Spain and 38.8 years in Gibraltar.

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). Gibraltar vs Spain Population (2026). Retrieved 2026-11-27, from https://populationcount.com/compare/gibraltar-vs-spain

MLA

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

Chicago

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

Harvard

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

BibTeX

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