Self-consumption of photovoltaic energy in Spain has experienced remarkable growth in recent years, but the latest data indicate that the pace has slowed. According to the Spanish Photovoltaic Union (UNEF), installed capacity has reached 9,3 gigawatts , while APPA Renovables reports a slightly lower figure of around 9,2 GW. This difference is due to the different counting methodologies, but both sources agree that deployment has been massive since 2018, with a particularly intense surge from 2021 onwards.
However, 2025 marked a turning point. New installed capacity fell by 3,7% compared to the previous year , and the residential segment suffered an even greater decline of 17%. Despite this slowdown, one figure bucks the trend: battery installations grew by 99% during the same period, and now represent 61% of new residential installations. This phenomenon reflects a paradigm shift in the sector, where storing generated energy has become a priority.
The rise of batteries in self-consumption
The main problem with a photovoltaic installation without storage is the timing mismatch between generation and consumption. The panels produce electricity during the middle of the day, while domestic consumption is concentrated in the afternoon and evening . This midday surplus is fed into the grid in exchange for compensation that, in practice, is usually much lower than the price at which electricity is later purchased at night. Solar batteries resolve this mismatch, allowing surplus energy to be stored for use when it is actually needed, which significantly increases the percentage of self-consumption.
Interest in this solution has accelerated, especially after the April 2025 blackout, which highlighted the value of having your own energy backup. Cost reductions and technical improvements in batteries have been key to their widespread adoption , according to UNEF. In the residential sector, six out of ten new installations already incorporate storage, a figure that demonstrates that batteries have gone from being an optional add-on to a central design element.
Technology: why lithium is taking over
When choosing batteries for solar panels, the technology largely determines the long-term results. Lead-acid batteries, whether AGM or gel, remain a more economical entry-level option, but they have well-known limitations : they allow for a lower recommended discharge current, have a shorter lifespan, and their performance degrades relatively quickly when frequent cycles are required. Lithium-ion (LiFePO4) batteries (lithium iron phosphate) have replaced these technologies in most current residential installations, and not simply due to a passing trend.
This chemistry allows for much deeper discharges without damaging the cell, offers several thousand cycles, and maintains stable performance for much of that lifespan. As a result, despite a higher purchase price, the cost per cycle is considerably lower than that of lead-acid batteries . Manufacturers such as Pylontech, BYD, and Victron Energy are already benchmarks in this segment, with products that have become standard in residential installations of varying sizes and budgets.
Sizing and pending regulations
One of the most crucial aspects for maximizing the profitability of a solar battery is its correct sizing. An oversized battery increases the initial investment without providing a proportional return, while an undersized one leaves the system unable to meet demand during peak consumption hours . Calculating the appropriate size should be based on the actual energy consumption profile of the home, not just the installed capacity of the panels, and should consider both typical nighttime consumption and the necessary buffers for days with lower solar production, which are especially important during the winter months.
The sector awaits the approval of the new Royal Decree on Self-Consumption and Distributed Storage, which is expected to explicitly recognize the role of energy storage within the Spanish electricity system. UNEF (the Spanish Association of Energy Companies) is calling for, among other measures, that the exemption from access and connection permits for installations under 15 kW be determined based on the power actually injected into the grid , not the installed capacity. It is also requesting that the simplified procedure be applied to all projects with up to 500 kW of access capacity. While this regulation is pending, market data already confirms a clear trend: batteries have become virtually indispensable in any residential self-consumption installation in Spain that aims to maximize its profitability.
Beyond the savings from shifting consumption, some users also highlight other advantages of energy storage, such as the ability to provide additional power during peak consumption periods without increasing their contracted power, resulting in further savings on their monthly bill. The trends observed during 2025 point to a significant shift in the Spanish market : self-consumption is beginning to move from a model primarily focused on generating electricity towards one in which storing and managing that energy is becoming increasingly important.
In short, photovoltaic self-consumption in Spain continues to grow, albeit at a more moderate pace, and batteries have become the key player. The combination of more mature technology, more competitive prices, and greater awareness of the need for energy independence is driving its adoption . The challenge now lies in ensuring that regulations keep pace with this change, simplifying procedures and recognizing the value of distributed storage. Only in this way can the full potential of Spain's solar energy be harnessed and an efficient and accessible energy transition for all be guaranteed.