Overview Energy in Spain describes the production, consumption, import, and export of energy and electricity in the Kingdom of Spain. As a major European economy with limited domestic fossil fuel reserves, Spain has historically been highly dependent on energy imports. Since the early 2000s, the country has undertaken a significant energy transition, becoming a global leader in renewable energy integration, particularly wind and solar power. The Spanish electricity system is operated by Red Eléctrica de España (REE), the Transmission System Operator (TSO).
Primary Energy Consumption According to data from the Institute for the Diversification and Saving of Energy (IDAE) and Eurostat, Spain's primary energy consumption is characterized by a high dependency on imports, typically exceeding 70% of total supply. Petroleum products constitute the largest share of primary energy consumption, driven by the transport sector. Natural gas is the second largest source, used for electricity generation, industry, and residential heating. Renewable energies have seen a rapidly increasing share in gross final energy consumption, driven by EU mandates and national policy.
Electricity Generation Mix Spain's electricity generation mix has shifted dramatically away from coal toward renewables and combined-cycle gas turbines (CCGT).
- Renewables: Wind power is historically the leading renewable technology by installed capacity and annual generation. Solar photovoltaic (PV) has experienced exponential growth since 2020, becoming the technology with the highest installed capacity. Hydropower output varies significantly year-to-year due to rainfall patterns. Other renewables include solar thermal (concentrated solar power), biomass, and biogas.
- Nuclear: Spain operates several nuclear reactors (Almaraz I & II, Ascó I & II, Cofrentes, Trillo, Vandellós II), providing a stable baseload of low-carbon electricity (typically 20–22% of annual generation). The current government policy, agreed upon with plant owners, schedules a phased shutdown between 2027 and 2035.
- Fossil Fuels:
- Natural Gas (CCGT): Combined-cycle gas turbines serve as the primary flexible backup for renewable intermittency and peak demand.
- Coal: Coal-fired power generation has been virtually phased out. The last coal plants ceased commercial operation or converted to biomass/gas by 2020–2021, ahead of the 2030 EU deadline.
- Cogeneration and Waste: Industrial cogeneration and waste-to-energy plants contribute a minor but stable percentage.
Renewable Energy Leadership Spain ranks among the top countries globally for renewable energy penetration in a large electricity system.
- Wind Energy: Spain was an early adopter (late 1990s/early 2000s) and possesses a mature manufacturing sector (e.g., Siemens Gamesa, Acciona, Iberdrola).
- Solar Energy: High solar irradiance makes Spain optimal for PV. The removal of the "sun tax" (impuesto al sol) in 2018 and subsequent auctions triggered a boom in utility-scale and distributed (self-consumption) installations.
- Targets: The National Integrated Energy and Climate Plan (PNIEC 2021–2030) targets 81% renewable electricity generation and 48% renewable energy in gross final consumption by 2030.
Oil and Gas Sector
- Oil: Spain has negligible domestic oil production. It possesses a massive refining capacity (among the largest in Europe), operated by companies such as Repsol, Cepsa, and BP. Refineries are strategically located near ports (Huelva, Cartagena, Bilbao, Tarragona, A Coruña). Spain is a net exporter of refined petroleum products.
- Natural Gas: Domestic production is minimal. Supply relies on pipeline imports (primarily from Algeria via the Medgaz pipeline and the Maghreb-Europe pipeline—though the latter's flow via Morocco has been interrupted) and Liquefied Natural Gas (LNG). Spain has the largest LNG regasification capacity in Europe (six large terminals plus one small-scale), acting as a key entry point for global gas into the European grid.
Energy Policy and Governance
- Ministry for the Ecological Transition and the Demographic Challenge (MITECO): The primary government body responsible for energy policy.
- National Markets and Competition Commission (CNMC): The independent regulator overseeing electricity and gas markets, network access, and competition.
- PNIEC 2023: The updated plan submitted to the EU raises ambition for 2030, including higher targets for electrolytic hydrogen (11 GW), energy storage (22 GW), and offshore wind (3 GW).
- Carbon Pricing: Spain participates in the EU Emissions Trading System (EU ETS) and maintains a national carbon tax on fluorinated gases and a specific tax on the value of electricity production (suspended/reduced during the 2021–2023 energy crisis).
Electricity Market and Prices Spain operates within the Iberian Electricity Market (MIBEL), coupled with the wider European market via the Price Coupling of Regions (PCR) mechanism.
- Marginalist Pricing: Wholesale prices are set by the marginal cost of the last technology dispatched (usually CCGT), leading to price volatility correlated with gas prices.
- Iberian Exception (2022–2023): A temporary mechanism approved by the EU to cap the gas price used for electricity generation bidding, designed to lower wholesale prices during the gas crisis triggered by the Russia-Ukraine war. It ended December 31, 2023.
- Retail Market: Consumers can choose between the regulated tariff (PVPC - Precio Voluntario para el Pequeño Consumidor), indexed to the wholesale market, and free market contracts.
Grid Infrastructure and Interconnections
- Transmission: Red Eléctrica (Redeia) manages the high-voltage transmission grid (400 kV, 220 kV).
- Interconnections: Electrical interconnection capacity with France has historically been low (below the EU 15% target). The Bay of Biscay subsea link (2 GW, operational target ~2028) aims to double capacity. Interconnection with Portugal is robust. Links with Morocco exist (two 400 kV lines, 900–1400 MW capacity).
- Storage: Pumped hydro storage is the dominant storage technology. Battery storage deployment is accelerating rapidly to manage solar midday cannibalization and evening ramps.
Green Hydrogen Spain aims to become a European hub for green hydrogen (produced via electrolysis powered by renewables). The "Hydrogen Roadmap" and updated PNIEC target 11–12 GW of electrolyzer capacity by 2030. Major industrial clusters (Basque Country, Catalonia, Andalusia, Valencia) are developing "Hydrogen Valleys" backed by EU IPCEI (Important Projects of Common European Interest) funding.
Challenges
- Cannibalization Effect: High simultaneous solar PV generation depresses midday wholesale prices, threatening asset profitability without storage or demand-side flexibility.
- Grid Congestion: Rapid renewable deployment in specific regions (e.g., Aragon, Extremadura, Castilla-La Mancha) has outpaced grid reinforcement, leading to curtailment and connection delays.
- Energy Poverty: Despite low wholesale prices at times, regulated retail prices and network charges contribute to energy poverty indicators above the EU average.
- Nuclear Phase-out Schedule: Managing the retirement of ~7 GW of firm nuclear capacity by 2035 while maintaining security of supply requires accelerated deployment of storage, demand response, and grid upgrades.