World Population PyramidsPopulation pyramids and indicators by country and year日本語

Germany vs Spain: population pyramids in 2045

◀2045▶Swap

GermanySpain

1%0.75%0.5%0.25%0%0.25%0.5%0.75%1%0102030405060708090100+MaleFemale

Each bar is the share of the total population at that single year of age (men left, women right), so countries of different sizes can be compared.

Germany and Spain compared

In 2045, Germany has a population of 79.6 million and Spain 46 million; Germany is about 1.7 times the size of Spain.

The share aged 65 and over is 29.9% in Germany and 34.1% in Spain, 4.3 points higher in Spain. The median age is 48.3 years in Germany and 51.7 years in Spain.

The total fertility rate is 1.53 in Germany and 1.34 in Spain, both below the replacement level of about 2.1. Life expectancy at birth is 84.6 years in Germany and 86.5 years in Spain.

By 2050, the population of Germany is projected to shrink by 1.5% and that of Spain to shrink by 2.0% compared with 2045.

GDP per person is $60K in Germany (2025) and $39K in Spain (2025).

Figures from 2024 are UN medium-variant projections.

Key figures (2045)

GermanySpain
Population79.6 million46 million
Aged 0–1412.6%11.1%
Aged 15–6457.5%54.7%
Aged 65+29.9%34.1%
Median age48.3 yrs51.7 yrs
Old-age dependency51.962.4
Total fertility rate1.531.34
Life expectancy84.6 yrs86.5 yrs
Population growth-0.29%-0.36%
Net migration (per year)+168,326+51,326
GDP$5.05T (2025)$1.91T (2025)
GDP per person$60K (2025)$39K (2025)
Unemployment3.7% (2025)10.4% (2025)

Economic figures are the latest year published for each country.

Prices by category (2021, World = 100)

GermanySpainGermany as % of Spain
Food and non-alcoholic drinks122114107%
Bread and cereals129129100%
Meat138110126%
Milk, cheese and eggs9710097%
Fruit146123119%
Vegetables170149114%
Alcoholic drinks728090%
Tobacco175133132%
Clothing and footwear130117111%
Housing, water, electricity and gas169148114%
Health11812396%
Transport services252182138%
Communication14014697%
Recreation and culture117104112%
Education150105142%
Restaurants and hotels149111134%

Price level indices from the World Bank's International Comparison Program (ICP 2021, CC BY 4.0): the same goods and services at market exchange rates of 2021. Rankings by category

Compare other years