Spain is looking to attract new data centers, but growing electricity demand is putting pressure on the country’s power infrastructure. Ensuring Spain’s electricity infrastructure can accommodate the continuous demand of data centers will be key to supporting the sector’s growth.
Spain’s Growing Data Center Energy Demand
Spain has abundant renewable energy resources, strong connectivity, and a favorable geographic location for data center development. However, the growing number of grid connection requests presents a challenge for the country’s electricity infrastructure.
Since late 2023, more than 6 GW of additional transmission grid access capacity has been granted to data centers. Approximately another 6 GW of distribution grid access capacity has been granted since 2020. These figures reflect growing interest in data center development, although the capacity granted does not necessarily translate into actual electricity consumption.
Renewable Energy for Data Centers: The Shift to 24/7 Coverage
The Spanish government’s draft Royal Decree proposes moving from annual renewable energy coverage to matching renewable electricity generation with consumption on an hourly basis. Under this approach, renewable electricity must be generated during the same hours it is consumed to count toward the proposed coverage requirements. The Royal Decree has not yet been approved and remains subject to negotiation.
Following industry feedback and observations from the Spanish National Commission on Markets and Competition (CNMC), the draft has been revised to ease certain requirements and introduce transitional measures. These include a five-year transition period during which the required hourly renewable energy coverage percentages may be reduced during certain hours, provided data centers offer services that support grid stability and security.
The revised draft also raises the capacity threshold at which most requirements apply from 1 MW to 10 MW, eases certain renewable additionality criteria, and reduces some contractual obligations. The final requirements will depend on the approved legislation.
Under an annual approach, a data center could purchase enough renewable electricity over a year to match its total consumption. Hourly matching requires renewable generation during the same periods as consumption. For example, if a data center consumes electricity at 3:00 a.m., it must have corresponding renewable generation during that hour to meet the proposed coverage requirement.
This presents a challenge for data centers, which typically require a continuous electricity supply. Solar generation is concentrated during daylight hours, while wind output varies with weather conditions. Meeting hourly renewable energy requirements may therefore require a combination of generation sources, energy storage, and flexibility mechanisms.
Figure 1 illustrates the relationship between electricity generation and wholesale electricity prices in Spain. It shows average hourly generation from renewable and non-renewable sources, alongside OMIE wholesale electricity prices, between October 1, 2025, and September 30, 2026. The left axis represents electricity generation, while the right axis shows wholesale prices. Periods of higher renewable generation generally coincide with lower electricity prices.
This pattern demonstrates the potential benefits of flexibility. Shifting certain electricity loads to periods of higher renewable generation and lower prices could help data centers manage energy costs while improving hourly renewable energy coverage. However, lower prices do not necessarily indicate regulatory compliance, which requires verification that consumption is matched by renewable generation during the same hours.
Renewable Energy Procurement for Data Centers
Meeting the continuous electricity demand of data centers will likely require a coordinated approach to renewable generation, energy storage, and procurement. Long-term power purchase agreements (PPAs) need to account for a facility’s actual electricity consumption profile, including when contracted renewable electricity will be generated.
When evaluating a PPA, data centers must consider the price and volume of electricity purchased, as well as its generation profile. If contracted renewable generation does not align with the facility’s electricity demand, the data center may be exposed to market price fluctuations during periods of insufficient coverage. PPAs can form part of an energy procurement strategy, but they do not automatically guarantee continuous renewable energy coverage. Verifying 24/7 renewable energy coverage requires comparing a data center’s measured electricity consumption, including cooling and auxiliary systems, with the renewable generation allocated to its contracts for each hour. Both datasets must use consistent units, time zones, and measurement intervals, accounting for daylight saving time and missing data.
Contract terms, energy storage charging and discharging records, storage losses, and the origin of stored electricity must also be considered to prevent double-counting. This assessment should identify renewable electricity coverage and any surpluses or shortfalls during each interval. Annual averages and generation forecasts are insufficient for verifying hourly coverage, while demonstrating regulatory compliance will require the documentation and criteria established under the applicable regulations. Matching renewable generation with consumption also does not guarantee a continuous physical electricity supply. The revised regulatory proposal introduces changes intended to facilitate investment in renewable energy projects. Under the proposed renewable additionality criteria, the acceptable age range for connected generation facilities increases from 18 to 36 months, with certain exceptions, although the deadline for submitting proof of compliance remains unchanged.
The minimum contract duration for certain long-term renewable energy agreements has also been reduced from ten to six years. In addition, certain existing photovoltaic facilities may qualify toward renewable energy targets under specific conditions. These adjustments could provide greater flexibility for developing and financing renewable energy projects without relying exclusively on newly developed generation capacity. Growing demand for reliable, round-the-clock electricity could encourage investment in renewable generation, PPAs, and energy storage. Some associated costs may be reflected in the prices charged for digital services, depending on contractual arrangements and market competition. This potential for cost pass-through is not unique to the data center sector.
Data Center Grid Connection Challenges in Spain
Securing a renewable electricity supply does not automatically guarantee grid access. Even where renewable energy is available, transmission and distribution capacity may be limited in the locations where new data centers are planned.
The Spanish government has identified growing demand for grid connections as one of the reasons behind the proposed regulation. Accommodating all connection requests could require a significant portion of planned grid upgrades to be dedicated to data center infrastructure.
These constraints raise questions about how available grid capacity should be allocated. Data centers requiring a continuous electricity supply may place different demands on the grid than facilities capable of adjusting consumption during peak periods. Projects incorporating battery storage, additional renewable generation, or demand flexibility may also offer different benefits to the electricity system. These considerations could influence future energy policy as Spain seeks to accommodate growing data center demand.
How Data Centers Can Support Grid Flexibility
A data center’s ability to support grid flexibility depends on how much of its electricity demand can be adjusted. While data centers require a continuous and reliable electricity supply, certain computing workloads may be scheduled or shifted to different times without disrupting operations. Where technically and commercially feasible, this could allow facilities to increase electricity consumption during periods of high renewable generation and reduce demand when the grid is under pressure.
Facilities that can adjust their electricity demand, particularly when supported by additional generation and energy storage, could have a different impact on the grid than those requiring a constant electricity supply. The draft Royal Decree recognizes that additional electricity demand from data centers, particularly when consumption cannot be adjusted, may increase the need for electricity generation, firm power capacity, and grid balancing services.
Spain’s Opportunity in the Growing Data Center Sector
The expansion of artificial intelligence and digital services is increasing the strategic importance of computing capacity, creating opportunities for Spain to attract new data center investment. While the country benefits from abundant renewable energy resources, attracting these investments will also depend on access to competitively priced electricity, sufficient grid capacity, reliable connectivity, and regulatory certainty.
The proposed Royal Decree could influence how Spain accommodates growing electricity demand while integrating additional renewable generation. It also raises important questions about the role large electricity consumers could play in supporting grid stability. However, the final regulatory requirements will depend on the approved legislation.
For data center operators and other energy-intensive businesses, these developments reinforce the importance of assessing electricity supply and grid connection risks, evaluating opportunities for energy storage and flexibility, and developing procurement strategies that support long-term competitiveness.
How NUS Consulting can help
NUS helps companies evaluate energy procurement options to meet regulatory obligations and stay informed about regulatory changes that may affect them. By assessing the specific characteristics of each project, NUS helps its clients find the best solutions to optimize their energy costs. For more information, please contact us via https://www.nusconsulting.com/es/.