Energy guide
Solar panels and battery backup for your Spanish home
Spain has some of the best sunshine in Europe, and a home solar system can cut a large part of your electricity bill. Here's what it costs, how you get paid for the surplus, and what you need to keep the lights on in a power cut.
Last reviewed 29 November 2026
Is your home a good fit?
- A roof or plot facing roughly south, east or west, without much shade from trees or neighbouring buildings
- A fair amount of daytime electricity: air conditioning, a pool pump, a water heater, an electric car, or working from home
- You own the roof, or your community of owners agrees (common in flats and townhouses)
If the home is empty for much of the year, solar pays back more slowly, because the surplus is worth less than the electricity you use yourself. A small system to cover the alarm, fridge and pool pump can still make sense.
What it costs
Prices vary with the roof, the equipment and the area, so treat these as rough guides and get at least two quotes:
| System | Suits | Rough installed cost |
|---|---|---|
| 2 to 3 kW | An apartment or a holiday home | €2,500 to €4,500 |
| 4 to 6 kW | A villa or townhouse used most of the year | €5,000 to €9,000 |
| Battery, 5 to 10 kWh | Storing daytime surplus, and backup in a power cut | €3,000 to €6,500 extra |
A well-sized system often pays for itself in somewhere between 5 and 10 years (longer with a battery), and panels typically last 25 years or more. The inverter usually needs replacing once in that time, and batteries generally last 8 to 12 years.
Getting paid for your surplus
Most homes use simplified compensation (compensación simplificada). When your panels make more than you're using, the surplus goes to the grid, and each month your supplier knocks its value off the energy part of your bill. Two catches:
- The surplus is valued at much less than you pay for electricity, so using it yourself (running the pool pump or water heater at midday) saves more.
- The credit can't take the bill below the fixed charges for power, meter rental and taxes. Some suppliers offer a "virtual battery" that carries unused credit to the next month, usually for a monthly fee.
Battery backup and power cuts
The Iberian blackout of April 2025 surprised many solar owners: their panels went off along with the grid. That's by design. A standard grid-connected inverter must shut down when the grid fails, so it doesn't send power down lines that engineers are working on.
To keep power during a cut you need:
- A battery, to store power
- A hybrid inverter with a backup (EPS) function and a switch that disconnects the home from the grid during a cut
- A backup circuit for what matters (lights, fridge, alarm, router, a few sockets), since most systems can't run the whole home
Ask any installer to say in writing which circuits will work during a power cut, and for how long.
Permits, rebates and paperwork
- Town hall: a building licence or a simpler prior notice, plus the construction tax (ICIO). Your installer normally handles it.
- Rebates: most town halls offer a discount on IBI (up to 50%, for several years) and on the ICIO (up to 95%) for homes with solar. The amounts vary by town, and the ICIO rebate is usually claimed with the licence, so ask before you sign.
- Income tax relief: people who pay Spanish income tax as residents can deduct part of the cost of energy improvements, including solar for their own use. The relief currently runs until 31 December 2026; check the conditions with the tax agency or your adviser.
- Grants: the large EU-funded grants have mostly closed, but some regions open new rounds of their own.
- Registration: the installer registers the system with the regional government and arranges compensation with your supplier and distributor. Check your bills show it within a couple of months.
Sources
The official and consumer-body pages we checked this guide against (most are in Spanish).
More guides
Get a solar quote in English
Panels, batteries or backup for power cuts: an English-speaking adviser will call you back with options for your home.
Get a call back in EnglishFree, no obligation. The provider may pay us a fee; it never changes your price.
Frequently asked questions
Do solar panels work during a power cut in Spain?
Not on their own. A standard grid-connected system switches off when the grid goes down, for safety. To keep power during a cut you need a battery and an inverter with a backup (EPS) function.
Can I sell my surplus solar electricity in Spain?
Yes. Under simplified compensation (compensación simplificada), your supplier credits the surplus against the energy part of your bill each month. It can't take the bill below the fixed charges.
Do I need permission to install solar panels in Spain?
Usually a building licence or a simpler prior notice (declaración responsable or comunicación previa) at the town hall, which your installer normally handles. In a flat or townhouse you may also need your community's approval.