Skip to main content
Factbook

Spain — Country Profile

Population, GDP, natural resources, leaders and history of Spain: the Magna Factbook country file, with its Magna Power score (--/100, ranked #-- of 195).

Last updated: October 2026

CapitalMadrid
Population47,280,433 (2024 est.)
GDP (PPP)$2.361 trillion (2024 est.)
Magna PowerPOWER --/100 #--

Spain is in Southwestern Europe, bordering the Mediterranean Sea, North Atlantic Ocean, Bay of Biscay, and Pyrenees Mountains; southwest of France. It covers 505,370 sq km. Terrain: large, flat to dissected plateau surrounded by rugged hills; Pyrenees Mountains in north. Climate: temperate; clear, hot summers in interior, more moderate and cloudy along coast; cloudy, cold winters in interior, partly cloudy and cool along coast.

Spain facts: population, GDP, capital and more

CapitalMadrid
Population47,280,433 (2024 est.)
GDP (PPP)$2.361 trillion (2024 est.)
GDP per capita (PPP)$48,400 (2024 est.)
Real GDP growth3.2% (2024 est.)
Inflation2.8% (2024 est.)
Unemployment11.4% (2024 est.)
Public debt107.3% of GDP (2023 est.)
Exports$642.358 billion (2024 est.)
Imports$568.502 billion (2024 est.)
Life expectancy83 years (2024 est.)
Median age47.2 years (2025 est.)
Urbanization81.6% of total population (2023)
Governmentparliamentary constitutional monarchy
Independence1492
LanguagesCastilian Spanish (official) 74%, Catalan (official in Catalonia, the Balearic Islands, and the Valencian Community) 17%, Galician (official in Galicia) 7%, Basque (official in the Basque Country and Navarre) 2%, Aranese (official in part of Catalonia) <5,000 speakers

What is the GDP of Spain?

Spain’s GDP is $2.361 trillion (2024 est.) in purchasing-power-parity terms. At official exchange rates it stands at $1.723 trillion (2024 est.). Real GDP grew 3.2% (2024 est.). See where Spain ranks among all 195 countries by GDP.

Magna assessment

POWER --/100 — The Magna Power score is our 0–100 composite of structural national power — nine components, 135 indicators. It is the Bureau's own assessment, not a mirror of World Bank or CIA figures.

Momentum +2 — Quarterly momentum: the Bureau's read on the country's trajectory over the last quarter, from −10 (deteriorating fast) to +10 (accelerating).

Spain kept posting the eurozone's strongest big-economy numbers: growth near 2.8% with the deficit falling — the macro record held through the quarter.

Tourism and exports powered the run while politics stayed manageable. Modestly positive, earned rather than gifted.

Natural resources of Spain

Coal, Iron ore, Copper, Lead, Zinc, Uranium, Tungsten, Mercury, Gypsum, Potash, Hydropower.

CoalIron oreCopperLeadZincUraniumTungstenMercuryGypsumPotashHydropower

Energy of Spain

Energy is the physical base of economic power — what a country can generate, move and burn decides what it can build, sell and defend.

Electricity access100% (2022 est.)
Installed capacity mix (CIA)fossil fuels: 28% of total installed capacity (2023 est.); nuclear: 20.4% of total installed capacity (2023 est.); solar: 17.3% of total installed capacity (2023 est.); wind: 23.6% of total installed capacity (2023 est.); hydroelectricity: 8.5% of total installed capacity (2023 est.)
Energy consumption per capita (CIA)101.12 million Btu/person (2023 est.)
Primary energy consumption (OWID)1,624.2 TWh (2024)
Electricity generation (OWID)280.4 TWh (2024)
Energy per capita (OWID)33,902 kWh per person (2024)
Electricity generation mix (OWID)Wind 22.4%, Solar 20.9%, Nuclear 19.6%, Gas 18.7%, Hydro 11.6%, Oil 3.6%, Coal 0.9% (2024)
Low-carbon share of electricity (OWID)76.8% (2024)
Carbon intensity of electricity (OWID)146.2 gCO2/kWh (2024)

Sources: CIA World Factbook, Energy section; Our World in Data (IEA/Ember), 2024.

Trade of Spain

Trade shows what the world buys from a country and what the country must buy from the world — the balance between the two is a direct measure of economic leverage.

Exports$642.358 billion (2024 est.)
Imports$568.502 billion (2024 est.)
Trade balance (calculated)Surplus of $73.9 billion (2024), calculated from the CIA export and import figures above.
Key industriestextiles and apparel (including footwear), food and beverages, metals and metal manufactures, chemicals, shipbuilding, automobiles, machine tools, tourism, clay and refractory products, footwear, pharmaceuticals, medical equipment

Source: CIA World Factbook, Economy section.

Who leads Spain?

Pedro Sánchez — Prime Minister. King FELIPE VI (since 19 June 2014)

Diplomatic weight

Spain maintains 114 embassies and 65 consulates abroad, hosts 124 foreign diplomatic missions, holds permanent missions to UN New York, UN Geneva, EU Brussels, NATO Brussels, OECD Paris, UNESCO Paris, OSCE Vienna, CoE Strasbourg. The breadth of a diplomatic network is a direct measure of diplomatic power — it shows how far a country’s influence, alliances and interests reach.

Embassies abroad114
Consulates abroad65
Foreign missions hosted124
Multilateral missionsUN New York, UN Geneva, EU Brussels, NATO Brussels, OECD Paris, UNESCO Paris, OSCE Vienna, CoE Strasbourg

Source: Abroad: Lowy GDI 2024 Key Findings Report (114 embassies, 65 consulates, total 190) https://dev.clauneck.workers.dev/nikola/using-https-globaldiplomacyindex.lowyinstitute.org/downloads/GDI_Key_Findings.pdf , corroborated by worldpopulationreview https://worldpopulationreview.com/country-rankings/global-diplomacy-index , https://globalchallenges.ch/issue/17/diplomatic-gambling-versus-new-diplomacy/ and https://observerdiplomat.com/countries-with-most-diplomatic-posts-in-the-world/ . Hosted: Consular Affairs Center in-country ranking, Mar 2026. Multilateral rosters as for AUT.

Transport & infrastructure

Transport networks are economic power made physical — ports, runways, railways and pipelines decide what a country can move, sell and defend.

Sea accessCoastal — 4964 km of coastline.
Airports (total)365 + 162 heliports (registration prefix EC)
Major seaportsAlicante, Barcelona, Cadiz, Ceuta, Ferrol, Huelva, Las Palmas, Malaga, Palma de Mallorca, Puerto de Bilbao, Puerto de Pasajes, Santa Cruz de Tenerife, Santander, Sevilla, Tarragona, Valencia, Vigo
Railways15489 km
Pipelines10,481 km gas, 358 km oil, 4,378 km refined products (2017)
Top container ports (TEU)Valencia (5,604,478 TEU, 2021); Algeciras (4,799,497 TEU, 2021); Barcelona (3,531,762 TEU, 2021)

Major airports

Adolfo Suárez Madrid–Barajas Airport (MAD) — Madrid; Alicante-Elche Miguel Hernández Airport (ALC) — Alicante; Asturias Airport (OVD) — Ranón; Bilbao Airport (BIO) — Bilbao; César Manrique-Lanzarote Airport (ACE) — San Bartolomé; Fuerteventura Airport (FUE) — El Matorral; Girona-Costa Brava Airport (GRO) — Girona; Gran Canaria Airport (LPA) — Gran Canaria Island; Ibiza Airport (IBZ) — Ibiza (Eivissa); Josep Tarradellas Barcelona-El Prat Airport (BCN) — Barcelona.

Showing 10 of 15 major airports.

Terminals

LNG import terminalsBarcelona, Bilbao, Cartagena, El Musel, Huelva, Mugardos, Sagunto
River portsSeville (Guadalquivir River)

Sources: OurAirports public-domain extract (2026-10-02); per-entry Wikipedia links included; CIA World Factbook via cia_factbook snapshot (2026-09-28); theodora.com CIA mirror (CIA World Factbook Transportation section), scraped 2026-10-02

Elections & power

Political systemparliamentary constitutional monarchy
Last election2023 — general; 2023-07-23; winner: Pedro Sánchez (PSOE); PP won plurality; Sánchez formed PSOE+Sumar minority government Nov 2023 Wikipedia
Next election2027 — general (scheduled)

Source: constitutional schedule / public election calendar

Where does Spain rank?

POWER --/100 Ranked #-- of 195 countries in the Magna Country Rankings. Full ranking breakdown for Spain.

History of Spain

Historical timeline of Spain

Major cities

MadridBarcelonaValencia

This profile covers the population, economy, natural resources, leaders, and history of Spain — with the Bureau’s live national-power score of --/100, ranking #-- of 195 countries.

Frequently asked questions

What is Spain's power score?

Spain has a Magna Power score of --/100. The score measures structural power — the proven capacity to shape events — across nine components.

Across the Bureau

Spain — Military Capability AssessmentHistory of Spain — TimelinePedro Sánchez — Leader of SpainSpain Ranking — Magna Country RankingsDid Spain acquire 16x Airbus C295 maritime patrol/surveillance aircraft?Did Spain acquire 25x Eurofighter?Who won the last election in Spain?What are the main airports of Spain?