PyPSA Labs Logo PyPSA Labs
Modelling Studies

October 2026 · with EnergyTag

Getting Spain's Data Center Decree Right: Hourly Matching That Cuts Emissions and Costs

Killian Daly (EnergyTag) and Iegor Riepin (PyPSA Labs)

Bar charts of the change in Spanish system cost, CO2 emissions, gas burn for power and spot price with a 500 MW data center in Aragon under each procurement rule.

Why this study

The next decade of digital infrastructure will be built somewhere and powered by something. Spain is deciding how. A proposed royal decree would require new data centers to back, in every hour, at least 80% of their consumption with renewable electricity generated that same hour by new Spanish installations, with forfeiture of grid access on non-compliance. The stakes are measured in gigawatts: data centers hold 6.3 GW of granted transmission access, and more than 12 GW of access and connection rights granted since 2021.

The policy's logic: additional demand must bring additional clean supply, matched at the hours it actually consumes. Done right, this makes new load a system asset. It finances new wind, solar and storage, caps its own emissions, and hedges the operator against wholesale price volatility. Without it, each additional gigawatt of data-center load is served by the gas margin: higher emissions, deeper gas import dependency, higher consumer prices, and data centers exposed to every price swing.

We build upon PyPSA-Eur to model today's Spanish electricity system, validated against actual data, in which a new data center procures renewable electricity under the proposed rule and alternative procurement policies. Every input number is cited and linked to its primary source, and results can be reproduced from scratch with the open repository.

Results

Dropping the decree's core rule, that new data centers match their consumption hour by hour with power from new renewable and storage assets, is a lose-lose outcome for Spain and for data centers. Without it, the demand of a new data center is met mostly by gas power plants. Take one example: a 500 MW data center in Aragon (a small part of the 6.3 GW of grid access data centers already hold) makes Spain burn 10% more gas for power, emit about 1 Mt more CO2 a year, and pay almost 300 M€ more a year to run its power system. Gas sets the price, so the spot price rises by about 1.3 €/MWh for every consumer, the data center included. With hourly matching in place at 80% or 90% of consumption, that rise and the added emissions shrink by roughly the same share, and the data center covers it with its own renewable and storage contracts, shielded from the gas-set spot price. How emissions are counted matters: the average grid mix suggests about 70 gCO2/kWh for the data center's consumption (attributional), while the actual change in emissions is four times larger (consequential), because gas serves the new demand.

One clause of the draft decree needs fixing: it asks for 80% in every hour, not 80% hour by hour over the year. Meeting 80% in every hour means covering even the darkest, calmest winter hours, which takes a portfolio that overshoots the rest of the time: it reaches about 99% as an annual average of the hourly matching score, costs data centers more than buying from the grid, and costs the system more than having no rule at all. With this clause amended, the decree delivers most of the social benefits, and data centers pay less than they would for grid power at the price their own demand pushes up. It also cuts Spain's dependence on imported gas and the data centers' exposure to gas price swings.

The revised draft of 26 October 2026 adds an optional five-year transition for data centers that accept automatic curtailment: the hourly floor then applies only in peak tariff periods (60% in P1 to 2028, then 70% in P1 and 60% in P2). Both stages are modelled and included as scenario options. Hourly matching on an annual average cuts emissions more, at the same or lower cost, than these transition rules: 80% on average beats the 2026 rule on both counts, and 90% on average matches the 2029 rule on cost with half the emissions increase and less of the cost passed on to other consumers.