In our base scenario, a 5 kW solar system in Valencia pays back in 9.3 years without incentives, and the same system with a 5 kWh battery takes 11.2 years. Looked at on its own, the extra saving the battery brings does not recover its cost of about €3,000 within 15 years. So for most homes, a battery is justified by other reasons: heavy night-time use, backup during power cuts or very low credit for surplus energy.
Why a battery pays back slowly
The battery stores the energy left over at midday and releases it in the evening and at night. Without a battery, that same energy would go to the grid as surplus and be credited on your bill under Spain’s simplified surplus compensation (compensación simplificada de excedentes).
So each kWh that goes through the battery does not save the full electricity price. It saves the difference between what you would pay to buy it and what you would be credited for exporting it:
| Item | Base scenario |
|---|---|
| Price of the energy you no longer buy | €0.17/kWh |
| Surplus credit you no longer get | €0.045/kWh |
| Saving per kWh stored | €0.125/kWh |
A 5 kWh battery with 90% usable depth delivers at most about 4 kWh a day, after losing close to 10% in charging and discharging. If it filled and emptied every day of the year, it would shift about 1,450 kWh, around €175 in the first year. In practice that does not happen: in winter, with short days, it often does not fill, and on days with little night-time use it does not empty. With the cycles we simulate hour by hour and an installed price of €3,000, the battery’s cumulative saving does not reach its cost within 15 years, and the battery also loses capacity with use.
When it does make sense
- You use a lot of power at night. If most of your consumption is in the evening and at night and you have surplus almost every day, the battery runs more cycles a year.
- Your surplus credit is very low or you hit the cap. Under Real Decreto 244/2019, surplus credit cannot exceed the cost of the energy you buy in the month. In summer many homes hit that cap and the extra surplus is worth nothing. If that kWh is worth zero, storing it saves the full €0.17.
- You want power during a blackout. After the Iberian blackout of 28 April 2025, battery sales rose 119%, according to APPA. To work during a cut, the inverter needs a backup function and the installation must isolate the home from the grid. Many batteries switch off with the grid unless this is set up.
- You include it in the 2026 tax deduction. According to the AEAT, the base of the 2026 self-consumption deduction in Spanish income tax (IRPF) includes storage, up to €5,000 in total. If your panels already reach €5,000, the battery adds no deduction. This only helps Spanish tax residents.
Our figures give no money value to backup. If it is worth something to you, add it yourself.
Battery now or later
If you are unsure, you can install a hybrid inverter now, which accepts a battery, and add the battery later. A hybrid inverter costs a little more than a standard one but avoids replacing it afterwards.
Royal Decrees 1062 to 1065/2026, approved on 24 November, allow batteries without panels and treat storage linked to the consumer as a connection that can be combined with any type of self-consumption. MITECO, the Spanish energy ministry, says the specific conditions will be set by later regulation. Until then, do not count on income from charging at cheap hours.
What you do and what the installer does
You can check your hourly consumption on your distribution company’s website (distribuidora, the grid owner in your area) and see how much energy you use between 18:00 and 08:00. That tells you whether a battery would have work to do. Fitting the battery, connecting it to the inverter and issuing the electrical installation certificate (CIE) are done by a licensed installation company.
What to ask the installer
- How many usable kWh does the battery have, and at what depth of discharge?
- How many cycles or years does the manufacturer guarantee, and with what final capacity?
- Does the inverter have a backup function? Which circuits stay on during a blackout?
- What yearly saving do you calculate for the battery alone, and with what surplus credit price?
- Is the battery on the same invoice as the panels, for the 2026 deduction?
Common mistakes
- Buying the largest battery. Above a certain size it no longer fills in winter and each extra kWh adds less.
- Valuing the battery’s saving at the full electricity price. Unless you hit the surplus cap, the saving is the price difference.
- Assuming it works in a blackout. Without a backup function, it does not.
- Placing it somewhere hot. Heat shortens battery life. Ask for the maximum operating temperature.
Next step
Compare your system with and without a battery in the solar battery calculator, which simulates your year hour by hour. If you do not yet know how many panels you need, start with the solar panel calculator.