Renewable energy in Spain

Renewable energy in Spain, comprising bioenergy, wind, solar, and hydro sources, accounted for 15.0% of the Total Energy Supply (TES) in 2019. Oil was the largest contributor at 42.4% of the TES, followed by gas, which made up 25.4%.

Spain, along with other European Union (EU) States, has a target of generating 32% of all its energy needs from renewable energy sources by 2030. A previous target of 20% for 2020, with an additional 0.8% available for other EU countries under the cooperation mechanism, was reached and slightly surpassed.

In 2021, renewables generated 46.7% of Spain's electricity needs, the largest part of it from wind power (23.3%), followed by hydroelectric (11.4%), solar (9.9%), and other renewables (2.2%). In 2023, the share of electricity generated from renewable sources rose to 50.8%, reflecting the country's progress towards its decarbonisation goals.

Development


In 2019, the contribution of renewable energy sources to electricity generation was significant, comprising 101.1 Terawatt-hours (TWh) or 37.3% of the overall electricity production. The distribution of this contribution across different types of renewable energy was as follows: wind power led with 55.7 TWh, followed by hydroelectric power at 24.7 TWh, solar energy at 15.1 TWh, and bioenergy at 5.6 TWh. This is comparable to the International Energy Agency (IEA) median for 2019, which stood at 38% of electricity generation from renewables.

In the early 2000s, the growth of wind power contributed to an increase in Spain's renewable electricity production. By 2019, wind and solar energy made up 21% and 6% of total electricity generation, respectively. The installation of photovoltaic (PV) plants beginning in 2007 played a key role in this increase, doubling the renewables' share in Spain's electricity mix from 20% in 2008 to 40% in 2013. After this period of growth, the share of renewables in Spain's electricity generation leveled off, reaching 37% by 2019.

Spain's renewable energy sector has undergone significant shifts, initially driven by the 1997 Special Regime and Royal Decree 661/2007, which promoted considerable growth in wind and solar PV installations through favorable conditions and feed-in tariffs. However, the dynamics of the sector shifted following legislative reforms in 2012, marked by the enactment of Law 24/2013 and Royal Decree 413/2014. These reforms introduced a new financial framework for the electricity market, modifying compensation mechanisms for renewable sources, which led to a deceleration in new developments. Consequently, the rapid increase in renewable capacity, notably in wind energy, from 2.2 GW in 2000 to 23.0 GW in 2013, slowed, with only a slight rise to 23.4 GW by 2018. Solar PV installations experienced a similar trend.

In 2015 solar power suddenly demonstrated a possible way through the impasse. The continued fall in prices for solar systems and Spain's abundant sunshine led to prices for solar power reaching grid price parity. Suddenly there was the potential for sustained and spontaneous growth in solar installations in Spain as households and producers could produce power more economically. However, the Spanish government introduced what has been dubbed the world's first "sun tax" on solar installations making them economically less viable as well as draconian fines (up to 60 million Euros) for anyone not complying with the tax.

The tax has proved highly controversial. On the one hand, the government has argued that those generating their own power still rely on the national grid for power backup and so should be liable for contributing to the cost. On the other hand, the solar industry has argued that the government is simply trying to protect the centralised established power producers whose revenues would be threatened by this competitive solar threat. Environmentalists have criticised the tax for artificially blocking Spain from continuing its long standing movement to renewable energy production.

Whatever the merits of both arguments, the controversy can only become more heightened as the price of solar energy continues to fall and if PV solar power installed capacity in Spain were to continue sliding down the EU league from 12th position in 2014 (102.9 kW per 1000 inhabitants). In the same year in terms of wind energy production Spain was much stronger in 3rd position (495 kW per 1000 inhabitants).

In November 2018 the Government of Pedro Sánchez took the first step repealing the so-called 'sun tax', approved by the previous Government of Mariano Rajoy in 2015. With the new regulation, Spain leaves behind the era of punishment for self-consumption energy production which froze solar power and renewable energy development for many years in the face of EU and national controversy. A new chapter of opportunity is finally returning to the renewable energy sector in Spain.

Spain is advancing Europe's energy autonomy with Iberdrola's renewable energy projects, supported by a €1 billion loan from the European Investment Bank in a deal signed in June 2023. Iberdrola plans to build 19 solar photovoltaic power plants and three onshore wind farms in Spain, Portugal, and Germany, with a total capacity of nearly 2.2 gigawatts. These projects aim to generate 4 terawatt-hours of electricity, equal to the annual consumption of over 1 million households. Importantly, 70% of these installations will be in rural areas affected by the transition to net-zero emissions, fostering regional development. To ensure a stable power supply, Iberdrola will integrate hybrid battery systems into its photovoltaic projects. These plants are expected to be operational by the end of 2028, aligning with the European Commission's REPowerEU plan to reduce fossil fuel imports and accelerate the green transition.

Energy consumption by sector
All EU countries as well as Iceland and Norway submitted National Renewable Energy Action Plans (NREAPs) to outline the steps taken, and projected progress by each country between 2010 and 2020 to meet the Renewable Energy Directive. Each plan contains a detailed breakdown of each country's current renewable energy usage and plans for future developments. According to projections by the updated Spanish submission dated 20/12/11 by 2020 the gross final energy consumption in Spain by sector breaks down as follows.
 * Including losses and adjustments

According to NREAP criteria around a third of energy consumption (32.5%) is used in the heating and cooling sector. The heating and cooling sector (also known as the thermal sector) includes domestic heating and air conditioning, industrial processes such as furnaces and any use of heat generally. The electricity sector and transport sector are also projected to account for around a third of energy consumption each at 33.6% and 33.9% respectively. The proportion of energy use in each sector is similar to that of 2016. In order to meet Spain's overall target for 20% use of renewable energy (it was just 8.3% in 2005) in gross final energy consumption (20,505 ktoe) by 2020 targets have been set for each sector as follows: 17.3% renewable energy use in the heating and cooling sector, 39% in the electricity sector and 11.3% in the transport sector. Total annual energy consumption is projected to be 98,693 ktoe (98.7 million tonnes of oil equivalent) by 2020. The report expected Spain to produce a surplus of 0.8% above the 20% target (20.8% total) for renewable energy use which would be available for other countries to meet their renewable energy targets under the "cooperation mechanism".

The energy measures above are gross final energy consumption. Another broader measure, primary energy consumption also includes energy used in the extraction of fuels (the energy sector) and energy lost in transformation (the transformation sector, i.e. converting heat to electricity in power plants or fuel energy to heat in heating plants) as well as gross final energy consumption for end users. Under the European Union Energy Efficiency Directive EU countries submit their Energy Efficiency Plans every three years and Energy Efficiency Annual Reports every year. According to Spain's 2016 Energy Efficiency Annual Report the country's total final energy consumption in 2014 was 79.2 Mtoes whilst its primary energy consumption was 112.6 Mtoes. Most of the approximately 42% difference is accounted for in losses in the transformation sector. These losses are likely to be most prevalent in thermal electricity sectors, thus the use of renewable electricity will reduce emissions and fuels lost in the energy and transformation sectors as well as those in final consumption. By using more efficient thermal generation the potential remains to reduce energy wastage by almost a third and to cut emissions accordingly.

Electricity Sector


In 2015, wind power provided the largest share at 19.1% followed by hydroelectric power at 11.1%. Solar power provided 5.2% and renewable thermal a further 2%. The total electricity supplied (demand coverage) from renewables was 37.4% of Spain's requirements in 2015. The current generational mix of electricity production can be checked in real time on the Red Electrica de Espana website.

Sharp variation from one year to the next is largely due to the substantial differences in hydroelectric production from one year to the next. Excluding hydroelectric production electricity generation from renewable energy sources grew from around 10 percent in 2006 to 26.3 percent of demand coverage in 2015. Most of the growth occurred in the years leading up to 2012 with little change in baseline capacity between 2012 and 2015. Renewable energy generated electricity had a record year in 2014 when it supplied 42.8% of Spain's national demand.

Total annual net generation from renewable sources has grown from around 60 TWh in 2007 to close to 100-110 TWh in the years 2013–2015. Wind power overtook hydroelectric power as the largest source of renewable electricity from around 2008 onwards to produce around 50 TWh from 2013 onwards. Hydroelectric power remains to second largest source typically generating between 25 and 45 TWh per year depending on whether the year is a wet or dry one. Solar PV power grew from just 484 GWh in 2007 to 8,202 GWh by 2012 and has remained at a similar level through to 2015. Solar thermal power grew from almost no presence at 8 GWh in 2007 to 5,085 GWh by 2015. Renewable thermal and other sources have grown from around 2,589 GWh in 2007 to 4,625 GWh in 2015. Total electricity generation from all sources has fallen in Spain from 288 TWh in 2007 to 267 TWh by 2015, a fall of around 7%.

Electricity coverage by renewables (%)

{	"width": 550, "height": 150, "data": [ {			"name": "table",

"values": [ {					"x": 2006, "y": 18.4 },				{					"x": 2007, "y": 20.2 },				{					"x": 2008, "y": 20.4 },				{					"x": 2009, "y": 26.4 },				{					"x": 2010, "y": 35.3 },				{					"x": 2011, "y": 32.5 },				{					"x": 2012, "y": 31.9 },				{					"x": 2013, "y": 42.4 },				{					"x": 2014, "y": 42.8 },				{					"x": 2015, "y": 37.4 },				{					"x": 2016, "y": 40.3 },				{					"x": 2017, "y": 33.7 },				{					"x": 2018, "y": 40.1 },				{					"x": 2019, "y": 39.0 },               {					"x": 2020, "y": 42.9 }			]		}	],	"scales": [ {			"name": "x", "type": "ordinal", "range": "width", "zero": false, "domain": { "data": "table", "field": "x" }		},		{			"name": "y", "type": "linear", "range": "height", "nice": true, "domain": { "data": "table", "field": "y" }		}	],	"axes": [ {			"type": "x", "scale": "x", "properties": {				"labels": {					"angle": { "value": -50}, "align": {"value": "right"} }			}		},		{			"type": "y", "scale": "y" }	],	"marks": [ {			"type": "rect", "from": { "data": "table" },			"properties": { "enter": { "x": { "scale": "x", "field": "x" },					"y": { "scale": "y", "field": "y" },					"y2": { "scale": "y", "value": 0 },					"fill": { "value": "steelblue" },					"width": { "scale": "x", "band": "true", "offset": -1 }				}			}		}	] }

Heating and cooling sector
Every two years all EU countries as well as Iceland and Norway submit Progress Reports outlining their renewable energy development and movement towards meeting their 2020 renewable energy targets. According to the Spanish progress reports between 2011 and 2014 renewable energy share in the heating and cooling sector grew from 13.6% to 15.8%. In 2014 biomass provided the largest share of RE in the heating and cooling sector at approximately 13.65% of the total, equating to 3.862 million tonnes of oil equivalent. RE from heat pumps provided a little over 1% of the total sector, solar and geothermal power provided a contribution of 0.92% and 0.07% respectively.

Transport sector
According to the third Spanish submission of EU country Progress Reports covering the years 2013 and 2014 renewable energy use in the transport sector in Spain and Brazil included renewable electricity accounting for energy use of 119.7 k toe. *The bio fuels listed in the report and the table above had not been confirmed as coming from sustainable sources and were awaiting assessment and possible confirmation and as such are not yet able to be confirmed as renewable energy sources. They are included for information about the sector. The total energy from bio fuels were 1,010 k toe in 2014. Renewable electricity accounted for 0.5% of the total fuel use in the transport sector (using 2020 EU target criteria). A rough calculation would imply that if the bio fuels are finally confirmed as renewable sources then the total renewable energy use in the transport sector would come to approximately 4.7% of the total in 2014.

Wind power
In 2014 Spain was the world's fourth biggest producer of wind power. In that year, the year-end installed capacity was 23 GW and the annual production was 51,439 GWh, a share of total electricity consumption of 21.1%. Installed capacity grew from around 0.8GW in 1998 to approximately 23 GW by 2012. As can be seen from the graph, virtually no new wind power has been installed from 2012 to 2017.

Wind power installed capacity (MW)

{	"width": 550, "height": 150, "data": [ {			"name": "table", "values": [ {					"x": 1998, "y": 834 },				{					"x": 1999, "y": 1812 },				{					"x": 2000, "y": 2235 },				{					"x": 2001, "y": 3337 },				{					"x": 2002, "y": 4825 },				{					"x": 2003, "y": 6203 },				{					"x": 2004, "y": 8264 },				{					"x": 2005, "y": 10028 },				{					"x": 2006, "y": 11623 },				{					"x": 2007, "y": 15131 },				{					"x": 2008, "y": 16689 },				{					"x": 2009, "y": 19149 },				{					"x": 2010, "y": 20676 },				{					"x": 2011, "y": 21674 },				{					"x": 2012, "y": 22796 },				{					"x": 2013, "y": 22959 },				{					"x": 2014, "y": 22986 },				{					"x": 2015, "y": 23003 },				{					"x": 2016, "y": 23001 },				{					"x": 2017, "y": 23082 },				{					"x": 2018, "y": 23494 },				{					"x": 2019, "y": 25808 },				{					"x": 2020, "y": 27089 },				{					"x": 2021, "y": 27497 }			]		}	],	"scales": [ {			"name": "x", "type": "ordinal", "range": "width", "zero": false, "domain": { "data": "table", "field": "x" }		},		{			"name": "y", "type": "linear", "range": "height", "nice": true, "domain": { "data": "table", "field": "y" }		}	],	"axes": [ {			"type": "x", "scale": "x", "properties": {				"labels": {					"angle": { "value": -50}, "align": {"value": "right"} }			}		},		{			"type": "y", "scale": "y" }	],	"marks": [ {			"type": "rect", "from": { "data": "table" },			"properties": { "enter": { "x": { "scale": "x", "field": "x" },					"y": { "scale": "y", "field": "y" },					"y2": { "scale": "y", "value": 0 },					"fill": { "value": "steelblue" },					"width": { "scale": "x", "band": "true", "offset": -1 }				}			}		}	] }

Hydroelectric Power
Installed capacity of hydroelectric power has grown by small incremental amounts annually since 2006 from 18,1815 MW in 2006 to 19,468 MW in 2014. Between 2014 and 2015 there was a significant growth in pumped storage generation of 850 MW. Total capacity reached 20,336 MW in 2015.

Hydroelectric installed capacity (MW)

{	"width": 550, "height": 150, "data": [ {			"name": "table", "values": [ {					"x": 1998, "y": 15422 },				{					"x": 1999, "y": 15631 },				{					"x": 2000, "y": 15690 },				{					"x": 2001, "y": 15774 },				{					"x": 2002, "y": 15817 },				{					"x": 2003, "y": 16029 },				{					"x": 2004, "y": 16122 },				{					"x": 2005, "y": 16229 },				{					"x": 2006, "y": 16364 },				{					"x": 2007, "y": 16450 },				{					"x": 2008, "y": 16614 },				{					"x": 2009, "y": 16657 },				{					"x": 2010, "y": 16687 },				{					"x": 2011, "y": 16705 },				{					"x": 2012, "y": 16927 },				{					"x": 2013, "y": 16985 },				{					"x": 2014, "y": 16992 },				{					"x": 2015, "y": 17026 },				{					"x": 2016, "y": 17030 },				{					"x": 2017, "y": 17028 },				{					"x": 2018, "y": 17046 },				{					"x": 2019, "y": 17085 }			]		}	],	"scales": [ {			"name": "x", "type": "ordinal", "range": "width", "zero": false, "domain": { "data": "table", "field": "x" }		},		{			"name": "y", "type": "linear", "range": "height", "nice": true, "domain": { "data": "table", "field": "y" }		}	],	"axes": [ {			"type": "x", "scale": "x", "properties": {				"labels": {					"angle": { "value": -50}, "align": {"value": "right"} }			}		},		{			"type": "y", "scale": "y" }	],	"marks": [ {			"type": "rect", "from": { "data": "table" },			"properties": { "enter": { "x": { "scale": "x", "field": "x" },					"y": { "scale": "y", "field": "y" },					"y2": { "scale": "y", "value": 0 },					"fill": { "value": "steelblue" },					"width": { "scale": "x", "band": "true", "offset": -1 }				}			}		}	] }

Annual electricity generation from hydroelectric sources varies considerably from year to year. A rough calculation shows that the contribution to total net generation varied approximately between 9-17 percent annually. This variation helps explain the fluctuating annual figures for total renewable energy in Spain. Production in 2012 was a little over half that of 2010 at just 24,100 gW/h.

Solar power
In 2005 Spain became the first country in Europe to require the installation of photovoltaic electricity generation in new buildings, and the second in the world (after Israel) to require the installation of solar hot water systems. With the construction of the PS10, located near Seville, Spain became the first country to ever have a commercial solar energy power tower. In recent years there has been much controversy over a tax on PV power generation as the cost of PV solar installations has reached grid parity in Spain according to several sources. Solar power first began to be installed significantly in 2006 with 136 MW installed capacity before rising rapidly to 6,949 MW by 2013. Little change in installed capacity occurred between 2013 and 2018, but between 2019 and 2022 Spain doubled its capacity.

Solar power installed capacity (MW)

{	"width": 550, "height": 150, "data": [ {			"name": "table", "values": [ {					"x": 1998, "y": 1 },				{					"x": 1999, "y": 1 },				{					"x": 2000, "y": 2 },				{					"x": 2001, "y": 2 },				{					"x": 2002, "y": 5 },				{					"x": 2003, "y": 11 },				{					"x": 2004, "y": 21 },				{					"x": 2005, "y": 43 },				{					"x": 2006, "y": 136 },				{					"x": 2007, "y": 648 },				{					"x": 2008, "y": 3414 },				{					"x": 2009, "y": 3630 },				{					"x": 2010, "y": 4370 },				{					"x": 2011, "y": 4552 },				{					"x": 2012, "y": 4563 },				{					"x": 2013, "y": 4654 },				{					"x": 2014, "y": 4666 },				{					"x": 2015, "y": 4667 },				{					"x": 2016, "y": 4669 } ,				{					"x": 2017, "y": 4688 } ,				{					"x": 2018, "y": 4707 } ,				{					"x": 2019, "y": 8711 } ,				{					"x": 2020, "y": 14089 } ,				{					"x": 2021, "y": 15952 }			]		}	],	"scales": [ {			"name": "x", "type": "ordinal", "range": "width", "zero": false, "domain": { "data": "table", "field": "x" }		},		{			"name": "y", "type": "linear", "range": "height", "nice": true, "domain": { "data": "table", "field": "y" }		}	],	"axes": [ {			"type": "x", "scale": "x", "properties": {				"labels": {					"angle": { "value": -50}, "align": {"value": "right"} }			}		},		{			"type": "y", "scale": "y" }	],	"marks": [ {			"type": "rect", "from": { "data": "table" },			"properties": { "enter": { "x": { "scale": "x", "field": "x" },					"y": { "scale": "y", "field": "y" },					"y2": { "scale": "y", "value": 0 },					"fill": { "value": "steelblue" },					"width": { "scale": "x", "band": "true", "offset": -1 }				}			}		}	] }

Renewable Thermal
In 2014 biomass and biogas contributed to around 2% of electricity generation in Spain as well as 13.65% of heat consumed in the heating and cooling sector. In terms of the energy provided to each sector in ktoe (thousand tonnes of oil equivalent), the fuels provided over nine times more energy to the heating and cooling sector.

Renewable thermal installed capacity (MW)

{	"width": 550, "height": 150,

"data": [ {			"name": "table", "values": [ {					"x": 1998, "y": 115 },				{					"x": 1999, "y": 129 },				{					"x": 2000, "y": 181 },				{					"x": 2001, "y": 229 },				{					"x": 2002, "y": 341 },				{					"x": 2003, "y": 433 },				{					"x": 2004, "y": 451 },				{					"x": 2005, "y": 479 },				{					"x": 2006, "y": 574 },				{					"x": 2007, "y": 588 },				{					"x": 2008, "y": 635 },				{					"x": 2009, "y": 782 },				{					"x": 2010, "y": 821 },				{					"x": 2011, "y": 887 },				{					"x": 2012, "y": 975 },				{					"x": 2013, "y": 952 },				{					"x": 2014, "y": 989 },				{					"x": 2015, "y": 882 },				{					"x": 2016, "y": 870 },				{					"x": 2017, "y": 872 },				{					"x": 2018, "y": 877 },				{					"x": 2019, "y": 1076 }			]		}	],	"scales": [ {			"name": "x", "type": "ordinal", "range": "width", "zero": false, "domain": { "data": "table", "field": "x" }		},		{			"name": "y", "type": "linear", "range": "height", "nice": true, "domain": { "data": "table", "field": "y" }		}	],	"axes": [ {			"type": "x", "scale": "x", "properties": {				"labels": {					"angle": { "value": -50}, "align": {"value": "right"} }			}		},		{			"type": "y", "scale": "y" }	],	"marks": [ {			"type": "rect", "from": { "data": "table" },			"properties": { "enter": { "x": { "scale": "x", "field": "x" },					"y": { "scale": "y", "field": "y" },					"y2": { "scale": "y", "value": 0 },					"fill": { "value": "steelblue" },					"width": { "scale": "x", "band": "true", "offset": -1 }				}			}		}	] }

Production by region
Production by source and Autonomous Community:

The following two tables show a snapshot of the generation of electricity from renewable sources in Spain at the end of 2006 and the end of 2013. In 2006 two regions were generating around 70 percent of electricity demand from renewables. By 2013 four regions were generating more electricity from renewables than the total demand within each region. The leading region was Castile and León which generated 164 percent of its total electricity demand.

Targets
The table above shows the expected trajectory for shares of renewable energy in the three sectors as well as the overall target trajectory. The information represents the Spanish submission as one of the European country National Renewable Energy Action Plans (NREAPS). Overall between 2005 and 2020 renewable energy sources are expected to rise from 8.2% of total energy use in 2005 to 20.8% of energy use by 2020.

Progress
† 2016 was the first year in which the contribution of biofuels was counted in the transport sector.

According to the third Spanish submission of EU country Progress Reports, (submitted every 2 years), covering the years 2013 and 2014, the country achieved renewable energy shares in each sector as listed in the table above. Spain has a 20.8% renewable energy target in its total energy in order to meet the European Union renewable energy targets for 2020. By 2014 Spain had achieved a 16.2% share of total energy use. Most of the growth occurred in the electricity sector which has grown from 18.4% of the total sector in 2005 to 37.8% by 2014.. During the same period the thermal sector registered a smaller rise from 8.9% to 15.8%. The transport sector remains well below its target trajectory at just 0.5% in 2014, although this may improve if Spanish biofuel use is confirmed as coming from sustainable sources to a level of roughly equal to 4.7% of the sector (see transport sector heading above). Spain's overall target for renewable energy use across all sectors stood at 16.2% of the total in 2014, just above its trajectory target and not a long way short of its 20.8% target for 2020.