Skip to main content

LUP Student Papers

LUND UNIVERSITY LIBRARIES

Analysis of the Impact of Wind and Solar Generation on Wholesale Electricity Prices in the Spanish Electricity Market, 2020–2025

Biosca Ferrando, Ignacio LU (2026) MVKL01 20261
Department of Energy Sciences
Abstract
This thesis analyses how the growth of wind and solar PV generation has affected wholesale electricity prices in Spain between 2020 and 2025, and how that relationship evolved as renewable penetration increased. Using 52,603 hourly observations obtained from the REE ESIOS public data portal — covering OMIE day-ahead spot prices, electricity demand, wind generation, and solar PV generation — the study applies Pearson correlation analysis, renewable penetration quartile analysis, and annual ordinary least squares regression to document the evolution of the merit-order effect across the six-year period. The analysis is empirical and descriptive; no formal causal identification is attempted.
The merit-order effect was present and... (More)
This thesis analyses how the growth of wind and solar PV generation has affected wholesale electricity prices in Spain between 2020 and 2025, and how that relationship evolved as renewable penetration increased. Using 52,603 hourly observations obtained from the REE ESIOS public data portal — covering OMIE day-ahead spot prices, electricity demand, wind generation, and solar PV generation — the study applies Pearson correlation analysis, renewable penetration quartile analysis, and annual ordinary least squares regression to document the evolution of the merit-order effect across the six-year period. The analysis is empirical and descriptive; no formal causal identification is attempted.
The merit-order effect was present and statistically significant in every year of the study. Hours with the highest renewable penetration (Q4) were consistently cheaper than hours with the lowest (Q1), and the price gap between those two groups widened from 33% in 2020 to 83% in 2025. The 2021–22 energy crisis temporarily dominated price formation: the OLS model explained just 8.5% of hourly price variance in 2021, rising to 69.9% by 2025, a progression that reflects a structural shift from gas-dominated to renewables-dominated price setting.
A reversal in the relative contributions of wind and solar was also identified. Wind's Pearson correlation with price declined from −0.23 (2020) to −0.08 (2025), while solar's strengthened from −0.07 to −0.51, consistent with the tripling of mean hourly solar output from 1,762 MW to 5,617 MW over the period. This concentration of solar generation at midday produced a measurable duck curve in market prices: the average gap between midday (10:00–15:00) and off-peak prices grew from 0.4 EUR/MWh in 2020 to 43.8 EUR/MWh in 2025. Hours with zero or negative spot prices rose from none in 2020–21 to 784 in 2024 and 792 in 2025, with spring 2024 averaging just 21.5 EUR/MWh, providing empirical evidence of solar cannibalisation in the Spanish market. The regression coefficients for 2023–25 are approximately twice the magnitude reported in prior Spanish studies for earlier periods, consistent with a strengthening merit-order effect at higher penetration levels. (Less)
Popular Abstract
Something changed in Spain's electricity market around 2023 — and the spring of 2024 made it impossible to ignore. For three months, the average price of electricity on the wholesale market was just 21.5 euros per megawatt-hour. A year earlier it had been 79. The cause was not a policy intervention. It was solar panels.
Over the past five years, Spain has added a remarkable amount of solar capacity. The average output of solar panels on the national grid tripled between 2020 and 2025. This thesis tracks what that expansion did to electricity prices, using six years of real hourly market data — around 52,000 hourly observations in total.
The central finding is that more solar generation consistently produces lower electricity prices. This... (More)
Something changed in Spain's electricity market around 2023 — and the spring of 2024 made it impossible to ignore. For three months, the average price of electricity on the wholesale market was just 21.5 euros per megawatt-hour. A year earlier it had been 79. The cause was not a policy intervention. It was solar panels.
Over the past five years, Spain has added a remarkable amount of solar capacity. The average output of solar panels on the national grid tripled between 2020 and 2025. This thesis tracks what that expansion did to electricity prices, using six years of real hourly market data — around 52,000 hourly observations in total.
The central finding is that more solar generation consistently produces lower electricity prices. This is because solar panels, once installed, generate electricity at essentially no running cost, and always enter the market before gas plants. When solar output is high, gas plants are pushed aside, a cheaper generator sets the price, and everyone pays less. This mechanism, known as the merit-order effect, was present in every year of the study — including the 2021–22 energy crisis, when gas prices caused overall prices to spike — and it became measurably stronger each year.
But a side effect has emerged. Because solar generates almost all its electricity in the middle of the day, midday prices have collapsed. By 2025, there were nearly 800 hours in the year when electricity was free or even cheaper than free. Meanwhile, evening prices remained high. The gap between the cheapest and most expensive hours of the day grew from almost nothing in 2020 to 44 euros per megawatt-hour in 2025.
For Spain, this means the challenge has shifted. Generating enough clean electricity is no longer the problem. Managing when it arrives — and building the storage, interconnection, and flexibility needed to balance the grid hour by hour — is what the energy transition now demands. (Less)
Please use this url to cite or link to this publication:
author
Biosca Ferrando, Ignacio LU
supervisor
organization
course
MVKL01 20261
year
type
M2 - Bachelor Degree
subject
keywords
Merit-order effect. Wholesale electricity prices. Renewable energy penetration . Solar photovoltaics (PV) . Wind energy . Duck curve . Price cannibalisation . Spanish electricity market (MIBEL / OMIE). Negative electricity prices OLS regression.
report number
ISRN LUTMDN/TMHP-26/5703-SE
ISSN
0282-1990
language
English
id
9244396
date added to LUP
2026-06-29 08:30:32
date last changed
2026-06-29 08:30:32
@misc{9244396,
  abstract     = {{This thesis analyses how the growth of wind and solar PV generation has affected wholesale electricity prices in Spain between 2020 and 2025, and how that relationship evolved as renewable penetration increased. Using 52,603 hourly observations obtained from the REE ESIOS public data portal — covering OMIE day-ahead spot prices, electricity demand, wind generation, and solar PV generation — the study applies Pearson correlation analysis, renewable penetration quartile analysis, and annual ordinary least squares regression to document the evolution of the merit-order effect across the six-year period. The analysis is empirical and descriptive; no formal causal identification is attempted.
The merit-order effect was present and statistically significant in every year of the study. Hours with the highest renewable penetration (Q4) were consistently cheaper than hours with the lowest (Q1), and the price gap between those two groups widened from 33% in 2020 to 83% in 2025. The 2021–22 energy crisis temporarily dominated price formation: the OLS model explained just 8.5% of hourly price variance in 2021, rising to 69.9% by 2025, a progression that reflects a structural shift from gas-dominated to renewables-dominated price setting.
A reversal in the relative contributions of wind and solar was also identified. Wind's Pearson correlation with price declined from −0.23 (2020) to −0.08 (2025), while solar's strengthened from −0.07 to −0.51, consistent with the tripling of mean hourly solar output from 1,762 MW to 5,617 MW over the period. This concentration of solar generation at midday produced a measurable duck curve in market prices: the average gap between midday (10:00–15:00) and off-peak prices grew from 0.4 EUR/MWh in 2020 to 43.8 EUR/MWh in 2025. Hours with zero or negative spot prices rose from none in 2020–21 to 784 in 2024 and 792 in 2025, with spring 2024 averaging just 21.5 EUR/MWh, providing empirical evidence of solar cannibalisation in the Spanish market. The regression coefficients for 2023–25 are approximately twice the magnitude reported in prior Spanish studies for earlier periods, consistent with a strengthening merit-order effect at higher penetration levels.}},
  author       = {{Biosca Ferrando, Ignacio}},
  issn         = {{0282-1990}},
  language     = {{eng}},
  note         = {{Student Paper}},
  title        = {{Analysis of the Impact of Wind and Solar Generation on Wholesale Electricity Prices in the Spanish Electricity Market, 2020–2025}},
  year         = {{2026}},
}