Country profile

Spain

At a glance

  • Spain has a population of about 49.4M; its total GDP of $1.9T ranks #12 of 168 countries with data.
  • Its surface area of 505,976 km² is about 2.6× the world median of 198,330 km².
  • Tourism receipts stands out most against the median: $31.6B — rank #5 of 165 countries with data.

Where Spain stands

Population log axis

Population across 169 countries with data: Spain at 49.4M, rank #32, world median 11.5M, logarithmic axis. Median 11.5M Spain · 49.4M

GDP (total) log axis

GDP (total) across 168 countries with data: Spain at $1.9T, rank #12, world median $80.7B, logarithmic axis. Median $80.7B Spain · $1.9T

GDP per capita log axis

GDP per capita across 168 countries with data: Spain at $38,627, rank #26, world median $6,834, logarithmic axis. Median $6,834 Spain · $38,627

Life expectancy

Life expectancy across 169 countries with data: Spain at 83.9 years, rank #6, world median 73.8 years. Median 73.8 years Spain · 83.9 years

Every dot is one country with data — the highlighted dot is this country; the dashed line marks the world median. Wide-range metrics use a logarithmic axis (tagged) so the whole field stays readable.

Spain: all 46 metrics vs the world median

Key metrics ranked against the world median
Metric Value Trend Rank vs median
Population & land
Population 49.4M (2025) +19% #32 / 169 median 11.5M · 4.3×
Population growth 1.0% (2025) −27% #89 / 169 median 1.1% · 94%
Urban population share 80.5% (2025) +5% #36 / 169 median 63.8% · 1.3×
Population aged 65+ 21.6% (2025) +28% #16 / 169 median 7.4% · 2.9×
Fertility rate 1.1 (2024) −12% #165 / 169 median 2.1 · 52%
Birth rate 6.5‰ (2024) −36% #164 / 169 median 16.0‰ · 41%
Death rate 8.9‰ (2024) +1% #50 / 169 median 7.1‰ · 1.2×
Net migration 96.6K (2025) −87% #17 / 169 N/A
Surface area 505,976 km² (2023) #54 / 176 median 198,330 km² · 2.6×
Population density derived 97.5/km² (2025) +19% #67 / 169 median 75.5/km² · 1.3×
Economy
GDP (total) $1.9T (2025) +169% #12 / 168 median $80.7B · 24×
GDP per capita $38,627 (2025) +126% #26 / 168 median $6,834 · 5.7×
GNI per capita $37,120 (2025) +137% #26 / 168 median $6,350 · 5.8×
GDP growth (annual) 2.8% (2025) +3% #94 / 168 median 3.1% · 92%
Inflation rate 2.7% (2025) −12% #94 / 162 median 3.3% · 82%
Unemployment rate 10.4% (2025) −7% #33 / 168 median 5.1% · 2.0×
Gini index 33.4 (2023) +5% #99 / 153 median 35.3 · 95%
Poverty rate ($2.15/day) 0.8% (2023) −11% #103 / 153 median 2.5% · 32%
Trade & industry
Exports share of GDP 36.6% (2025) +38% #78 / 163 median 35.0% · 1.0×
Imports share of GDP 32.8% (2025) +15% #102 / 163 median 40.2% · 82%
Agriculture share of GDP 2.7% (2025) −23% #122 / 168 median 7.2% · 37%
Manufacturing share of GDP 10.6% (2025) −30% #88 / 165 median 11.2% · 95%
International tourist arrivals 36.4M (2020) −54% #8 / 162 median 1.1M · 32×
Tourism receipts $31.6B (1998) #5 / 165 median $705M · 45×
Health & education
Life expectancy 83.9 years (2024) +5% #6 / 169 median 73.8 years · 1.1×
Infant mortality 2.6‰ (2024) −37% #151 / 166 median 13.1‰ · 20%
Under-five mortality 3.2‰ (2024) −37% #151 / 166 median 15.8‰ · 20%
DPT immunization 94.0% (2024) −4% #61 / 166 median 90.5% · 1.0×
Hospital beds 2.9 per 1,000 (2023) −17% #55 / 167 median 2.0 per 1,000 · 1.4×
Health spending share of GDP 9.2% (2023) +36% #35 / 165 median 6.5% · 1.4×
Secondary school enrollment 118.5% (2024) +3% #13 / 167 median 90.5% · 1.3×
Education spending share of GDP 4.6% (2022) +11% #63 / 165 median 4.1% · 1.1×
Society & living
Human Development Index 0.918 (2023) +9% #24 / 165 median 0.754 · 1.2×
Internet users 95.8% (2024) +370% #18 / 169 median 81.5% · 1.2×
Mobile subscriptions 130.3 per 100 (2024) +62% #45 / 169 median 116.4 per 100 · 1.1×
Fixed broadband 39.2 per 100 (2024) +1213% #18 / 168 median 12.1 per 100 · 3.3×
Electricity access 100.0% (2024) +0% #67 / 169 median 99.9% · 1.0×
Environment & security
CO₂ emissions per capita 4.5 t (2024) −43% #51 / 165 median 2.6 t · 1.7×
CO₂ emissions (total) derived 220 Mt (2024) −33% #27 / 165 median 21.3 Mt · 10×
Renewable electricity share 47.0% (2021) +201% #66 / 169 median 34.1% · 1.4×
Renewable energy consumption 19.0% (2021) +157% #104 / 169 median 26.9% · 71%
Forest area 37.2% (2023) +7% #65 / 169 median 32.4% · 1.1×
Agricultural land 49.6% (2023) −16% #58 / 169 median 41.7% · 1.2×
Arable land 23.0% (2023) −11% #41 / 168 median 11.0% · 2.1×
PM2.5 exposure 10.1 µg/m³ (2023) −36% #140 / 168 median 19.8 µg/m³ · 51%
Military spending 1.4% (2024) −2% #93 / 157 median 1.8% · 79%

Ranks are value-descending and count only the countries that have data for that metric (#1 = highest value); N/A rows occupy no rank.

The median is the unweighted middle value across the countries with data (gold tick) — not a world average. Bars grow with the value: reaching the tick means matching the median, and a full bar means twice the median or more. The median value and this country's multiple are noted under each bar.

Spain's true-shape outline

Spain's border outline from Natural Earth 1:110m boundaries — total surface area 505,976 km².

Spain head-to-head pages

Show 4 more Show less

Open Spain in the interactive compare tool →

See Spain's true size on the drag-and-drop map →

Measure the distance to Spain →

Back to the homepage

Other countries

Show 75 more Show less

Data & method

Indicators: World Bank Open Data, 43 indicators — CC BY 4.0 © World Bank — https://creativecommons.org/licenses/by/4.0/; Surface area (sq. km) — CC BY 4.0 © World Bank — https://creativecommons.org/licenses/by/4.0/; Human Development Index — CC BY 3.0 IGO © United Nations Development Programme — https://hdr.undp.org/terms-use

Boundaries: Natural Earth 1:110m (public domain); surface areas are computed with an equal-area spherical formula (Chamberlin–Duquette).

Reference facts (capital, languages, currencies, subregion): mledoze/countries (ODbL).