Home & property in Spain

Solar Panels in Spain — Rules, Paperwork and Home Insurance

A plain-English guide to installing solar panels on a Spanish home: how the self-consumption (autoconsumo) rules work, the paperwork from town hall to registration, what happens in a block of flats, how surplus electricity is credited to your bill — and why your home insurer needs to know about the panels.

Spain is one of the sunniest countries in Europe, and rooftop solar has moved firmly from niche to mainstream. Drive through almost any urbanisation on the coast or suburb inland and you will see panels on villas, fincas and, increasingly, apartment blocks. The good news is that home solar in Spain is legal, encouraged and better regulated than it has ever been. The less good news is that it still comes with Spanish paperwork — town-hall permissions, installation certificates, registration, and a community vote if you live in a flat. This guide walks through the whole picture in plain English: the self-consumption rules, the legalisation process, surplus compensation, possible local tax reductions, ongoing maintenance — and the part most guides skip entirely, which is what solar panels mean for your home insurance.

What this guide covers

Why so many homes in Spain are going solar

The case for solar in Spain is not complicated. The country enjoys some of the highest levels of sunshine in Europe, electricity is a significant running cost for most households, and the technology has become cheaper and more reliable over the past decade. For expats in particular, three things tend to drive the decision:

  • Lower electricity bills. A well-sized system supplies a meaningful share of a household's daytime consumption — air conditioning, pool pumps and electric water heating are all daytime-heavy loads that suit solar well. If you are still getting to grips with how Spanish electricity billing works, our guide to paying your electricity bill in Spain covers the basics.
  • Predictability. Energy prices move around; sunshine on your own roof does not. Many owners like knowing that a chunk of their consumption is insulated from market swings.
  • Property appeal. A legalised, documented solar installation is increasingly seen as a plus when a home is sold, in the same way that good insulation or efficient heating is.

None of this means solar is automatically right for every home — orientation, shading, roof condition and how much daytime electricity you actually use all matter, and a reputable installer will model your situation rather than sell you the biggest system that fits. But the fundamentals in Spain are about as favourable as they get in Europe.

Completely legal — and actively promoted. The official name for generating electricity at home and using it yourself is autoconsumo (self-consumption). Spain's Ministry for the Ecological Transition (MITECO) defines it as the consumption, by one or several consumers, of electricity from production installations located near the consumption points and associated with them. In everyday terms: panels on your roof, powering your home.

The legal framework sits in the Electricity Sector Law (Law 24/2013), which was amended in 2018, with the detailed administrative, technical and economic rules set out in Royal Decree 244/2019. That decree is the document your installer will be working to: it defines the types of self-consumption, how installations are connected, how surpluses are handled and how the compensation mechanism works.

Two practical consequences of the current framework are worth knowing:

  • Self-consumption can be individual or collective. One home with its own panels is individual self-consumption. Several consumers sharing one installation — for example, neighbours in a block sharing a rooftop system — is collective self-consumption, and the rules explicitly provide for it.
  • There is an official register. Spain keeps a free, declarative administrative register of self-consumption installations. The autonomous communities manage their own territorial registries and report the data upwards, and for typical home systems the administration commonly completes the registration from the documentation your installer files — you do not usually need to chase it personally, but you should end up with proof that your system is registered.
The short version: home solar in Spain is legal, regulated and routine. The framework is national (Royal Decree 244/2019), but the paperwork runs through your town hall and your autonomous community, which is why the exact process varies a little depending on where you live.

With or without surpluses — the types of self-consumption

Royal Decree 244/2019 splits home solar into two main modalities, and the choice affects both your paperwork and your electricity bill:

  • Self-consumption without surpluses (sin excedentes). The installation includes an anti-spill device that physically prevents any electricity being exported to the grid. You generate, you consume, and nothing leaves the property. Legally you remain a consumer only, which keeps the administrative side simpler.
  • Self-consumption with surpluses (con excedentes). The installation can feed spare electricity into the grid. Within this modality, most households opt into the simplified compensation mechanism, where surpluses are credited against the bill (more on this below). The alternative — selling surplus energy on the market as a producer — exists but involves obligations that rarely make sense for an ordinary home.

Which is better? For most owner-occupied homes with a standard rooftop system, self-consumption with surpluses plus simplified compensation is the common choice: daytime generation usually exceeds daytime use at some points, and it is better to be credited for that energy than to throw it away. Without-surpluses setups tend to suit particular technical or contractual situations — your installer will advise which fits your case.

Batteries deserve a mention here. Storage lets you use more of your own generation in the evening instead of exporting it, and battery prices have fallen steadily. A battery changes the economics rather than the legal category — a home system with storage is still ordinary self-consumption — but it does add value to the installation, which matters later when we talk about insurance.

The paperwork, step by step

The legalisation process is the part that worries people most, and the honest answer is that a competent installer handles nearly all of it. It still pays to understand the steps, because you are the one who should end up holding the documents.

1. Survey, design and quote

A professional installer surveys the roof, models your consumption and proposes a system size. Insist on an installer that is properly authorised for electrical work (an empresa instaladora habilitada) and get the scope in writing: equipment, mounting, electrical work, paperwork, timescales and after-sales support. If the quote does not explicitly include the legalisation paperwork, ask why.

2. Town-hall permission

Before work starts, the installation needs the town hall's authorisation. In many municipalities a declaración responsable (responsible declaration) has replaced the full works licence for standard rooftop systems — a simpler filing in which the owner or installer declares that the work meets the applicable rules. Others still require a works licence, and homes in protected areas, historic centres or listed buildings can face extra conditions. Requirements genuinely vary from one town hall to the next, so this step is always local. There may also be a municipal works tax (ICIO) to pay, which again varies by municipality.

3. Installation and certification

The physical installation of a typical home system takes days rather than weeks. When it is finished, the installer issues the electrical installation certificate (widely known as the boletín), which is filed with the industry department of your autonomous community. This certificate is a key document: keep it, along with the technical specification of the panels and inverter.

4. Registration

Self-consumption installations are recorded in the administrative register mentioned above. For ordinary home systems, the autonomous community commonly completes this from the documentation already filed, and the process is free. What matters to you is the outcome: confirmation that your installation is registered and legal. Ask your installer to provide it as part of the handover pack.

5. Updating your electricity arrangements

Finally, the paperwork reaches your electricity contract. The distributor may need to adjust its records or meter configuration, and if you have chosen self-consumption with surpluses and simplified compensation, you sign a compensation agreement so that surpluses are credited on your bills. If you have been thinking of changing supplier anyway, this is a natural moment — our guide to switching electricity supplier in Spain explains how that works.

Buying a home that already has panels? Ask the seller for the installation certificate, the registration confirmation, the town-hall paperwork and any compensation contract. An undocumented installation can usually be regularised, but it is far better to sort that out before completion than after — the same logic as any other unlegalised work when buying a house in Spain.

Surplus compensation — how spare electricity reduces your bill

Most home systems in Spain use the simplified compensation mechanism (compensación simplificada) created by Royal Decree 244/2019. It works like this:

  • During the day, your panels feed any electricity you are not using into the grid.
  • Your supplier values that exported energy at a rate set in your compensation agreement.
  • On each bill, the value of your exports is deducted from the cost of the energy you bought from the grid.

Three rules shape what you can expect from it, all set out in the decree:

  • It applies to renewable installations up to 100 kW — a ceiling that comfortably covers any domestic system.
  • Billing is monthly. The compensation is worked out within each billing period, which cannot exceed one month.
  • The credit cannot exceed the value of the energy you bought. In any billing period, the economic value of your surplus cannot be greater than the value of the energy you consumed from the grid. In other words, compensation can shrink the energy part of your bill towards zero, but a home system cannot turn your electricity bill into an income stream.

This last point is worth absorbing before you size a system. Oversizing a domestic installation in the hope of "selling" large surpluses does not pay under simplified compensation — excess value beyond your own consumption in the month is simply not credited. The economic sweet spot is a system matched to your actual consumption pattern, which is exactly what a good installer will design.

One more practical note: compensation reduces the energy term of the bill. Fixed charges, taxes and other regulated components still apply, so even a very productive roof does not make electricity entirely free.

Flats and the community of owners

If you live in an apartment or a townhouse within a community, the roof is almost always a common element — it belongs to the community of owners, not to whoever lives on the top floor. That does not put solar out of reach; it just adds a governance step.

The Horizontal Property Law (Law 49/1960, on horizontal property) deals with this directly. Under Article 17.1, the installation of communal systems for harnessing solar or other renewable energy can be approved by one third of the owners, representing one third of the participation quotas — a deliberately low threshold compared with the majorities needed for many other communal works. Two features of the rule matter in practice:

  • Those who vote for it pay for it. The community cannot pass the installation or maintenance costs on to owners who did not expressly vote in favour. An owner who stayed out can join later by asking to use the system — at which point they pay their proportional share of the cost, with interest.
  • It pairs naturally with collective self-consumption. The autoconsumo rules explicitly allow several consumers to share one installation, so a rooftop system can serve a group of participating flats, with the generation shared between them under an agreed split.

If you want panels for your own exclusive use — say, on a private terrace or on part of the communal roof — the position is different: you are using or affecting common elements, so raise it with the community and get consent recorded in the minutes of a general meeting before spending money. Communities differ enormously in how they respond, and a well-prepared proposal (installer's report, visual impact, who pays, who benefits) makes approval far more likely. For the wider picture of how communities work and what the communal policy does and does not cover, see our guide to the comunidad de propietarios and its insurance.

Solar panels, IBI and local incentives

Here is the part everyone asks about: does installing solar reduce your property tax? The honest answer is: often, but it depends entirely on your municipality.

IBI — the annual local property tax — is set and collected by town halls, and many of them offer IBI reductions for homes that install solar systems. The size of the discount, how many years it lasts and the conditions attached (for example, minimum system size relative to the home's needs, or applying within a set period after the installation) are decided locally and vary widely. Some town halls offer generous multi-year reductions; others offer none at all. There may also be local reductions on the works tax (ICIO) when you file for the installation itself.

Because the rules are local, the only reliable approach is to ask your own town hall — or have your gestor or installer ask — what applies in your municipality, and to watch the application deadlines, which are commonly tied to the installation or certification date. Treat any blanket percentage you read online with caution: it may be true for one municipality and wrong for yours. For how IBI itself works, who pays it and when, see our full guide to IBI property tax in Spain.

Solar panels and your home insurance

This is the section that almost every solar guide skips, and it is the one that can cost you real money if you get it wrong. A solar installation is a valuable, permanent addition to your home, bolted to the most weather-exposed part of the building. Your home insurance needs to know about it.

Declare the panels to your insurer

Once installed, panels (and any battery and inverter equipment) form part of the building. That means they belong inside the buildings (continente) sum insured on your policy — the figure that represents what it would cost to rebuild your home. If you add a solar system worth several thousand euros and never tell your insurer:

  • your declared rebuild value no longer reflects reality, so you are underinsured; and
  • Spanish insurers commonly apply a proportional rule to underinsured properties, meaning claims — including claims that have nothing to do with the panels — can be paid at a reduced rate.

Declaring the installation is straightforward: tell your insurer or broker the installed value of the system and ask for the buildings sum insured to be updated. It can usually be done mid-term or at renewal, and the premium effect is generally modest — you are covering a few thousand euros of extra rebuild value, not doubling the policy. If you are unsure how sums insured work in the first place, our complete guide to home insurance in Spain explains continente and contenido in plain English.

What cover matters for solar

When you review the policy (or shop for a new one), the points that matter most for a solar installation are:

  • Storm, wind and hail. Ordinary weather damage is commonly covered under the buildings section, but policies differ in the conditions and wind thresholds they apply. Check how the wording treats externally mounted equipment.
  • Fire and electrical damage. Inverters and wiring are electrical equipment; cover for electrical damage (daños eléctricos) is a valuable extra that many Spanish policies offer, and it is directly relevant to solar kit.
  • Theft. Panels on isolated rural properties have occasionally been targets for theft. If your home is a finca or an isolated villa, check how theft of externally fixed items is treated.
  • Liability. If a badly fixed panel came loose in a storm and damaged a neighbour's property or injured someone, the civil liability section of your home policy is what responds. Professional installation, with the certificate to show for it, matters here too.
  • Unoccupancy conditions. If the panels are on a second home that stands empty for long periods, remember that policies apply special conditions to unoccupied properties. Our holiday home insurance guide covers this in detail.

Insurers may also ask whether the installation was carried out professionally and legalised. This is another reason the paperwork pack — installation certificate, registration, town-hall filing — is worth keeping safe: it supports any future claim involving the system. And if you are wondering whether home insurance is even obligatory in Spain, the short answer is that it is generally not required by law but strongly advisable (and lenders normally require buildings cover with a mortgage) — see do I need home insurance in Spain? for the full picture.

Storms, hail and the Consorcio safety net

Spain has a two-layer system for weather damage, and solar owners should understand both layers.

Layer one: your own policy. Ordinary storms, wind and hail — the kind of weather that happens most years — are handled by your home insurer under the terms of your policy, as described above.

Layer two: the Consorcio. Truly extraordinary events are covered not by your insurer but by the Consorcio de Compensación de Seguros, Spain's public extraordinary-risks scheme. The Consorcio compensates damage from events such as flooding, earthquakes and atypical cyclonic storms — which include tornadoes and winds gusting above 120 km/h. Every ordinary property policy carries a small surcharge that funds the scheme.

The crucial condition: Consorcio protection only exists if you hold an ordinary, in-force insurance policy on the property, with payments up to date. If your home — panels included — is uninsured, or your declared values are badly out of date, the extraordinary-risks safety net is weakened in exactly the same way as your ordinary cover. For residential properties, Consorcio compensation for material damage is paid without a deductible, which makes it a genuinely valuable layer of protection — but only for insured, properly declared property.

Put simply: a declared, insured solar installation is protected twice — by your own policy for ordinary weather and perils, and by the Consorcio for extraordinary events. An undeclared installation risks being poorly protected on both layers.

Maintenance — keeping the system healthy

Solar panels are famously low-maintenance, which is part of their appeal in Spain's climate. Low-maintenance is not no-maintenance, though, and a little routine care protects both the output and your position if you ever need to claim:

  • Cleaning. Dust, pollen and the occasional Saharan dust episode (calima) settle on panels and reduce output. Rain does part of the job; periodic cleaning does the rest. On safely accessible roofs some owners do it themselves; otherwise installers and specialist firms offer cleaning visits.
  • Visual checks. After significant storms, look (from the ground or via photos) for cracked glass, displaced panels or loose cabling, and report storm damage to your insurer promptly.
  • Monitor the numbers. Most modern inverters come with an app showing daily generation. A sustained, unexplained drop in output is the earliest sign that something needs attention.
  • Fixings and structure. Mounting structures live outdoors in sun, wind and salt air (on the coast). An occasional professional check of fixings, seals and roof penetrations is cheap compared with a leak or a wind-loss.
  • Keep the records. Invoices, certificates, maintenance receipts and monitoring data all help if you ever claim for damage to the system — and demonstrate the installation was professional and cared for. Bear in mind that damage attributed to neglect or lack of maintenance is commonly excluded under home policies.

Panel manufacturers typically back their products with long performance warranties, and inverters have shorter lifespans than panels — your installer should explain the expected service life of each component and what after-sales support is included.

Your quick checklist

  • Use an authorised installer and get the full scope — including legalisation paperwork — in writing.
  • Confirm the town-hall requirement for your municipality (declaración responsable or works licence) before work starts.
  • In a flat, get the community's approval recorded in the minutes first — Article 17.1 of the Horizontal Property Law sets a one-third threshold for communal renewable installations.
  • Keep the handover pack: installation certificate, registration confirmation, town-hall filing, technical specs and invoices.
  • Sign the compensation agreement if you chose self-consumption with surpluses, and check the credits appear on your bills.
  • Ask your town hall about IBI and ICIO reductions — many offer them, terms vary locally, and deadlines apply.
  • Declare the installation to your home insurer and update the buildings sum insured — or get a quote for a policy that reflects the home as it now is.
  • Diarise basic maintenance: cleaning, post-storm checks and an eye on the generation figures.

Frequently asked questions

Are solar panels legal in Spain?

Yes. Self-consumption of electricity (autoconsumo) is legal and actively encouraged. The framework sits in the Electricity Sector Law (Law 24/2013), amended in 2018 and developed by Royal Decree 244/2019, which sets out how home installations are authorised, connected and compensated. You still need the right paperwork — town-hall permission, an installation certificate and registration — but the process is well established and a good installer handles most of it.

What is autoconsumo?

Autoconsumo (self-consumption) is the official term for generating electricity — usually with rooftop solar panels — and consuming it in the same or an associated property. It can be individual or collective (several homes sharing one installation), and either without surpluses, where a device prevents any export to the grid, or with surpluses, where spare energy is fed in and commonly credited against your electricity bill.

Do I get paid for surplus solar electricity in Spain?

Most homes use simplified compensation: surplus energy exported to the grid is valued at a rate agreed with your supplier and credited against each monthly bill. It applies to renewable installations up to 100 kW. By law the credit cannot be worth more than the energy you bought from the grid in that billing period, so compensation can shrink the energy part of your bill but cannot turn a home system into an income stream.

Can I install solar panels on a flat in Spain?

Often, yes, but the roof of an apartment building is a common element, so the community of owners is involved. Under Article 17.1 of the Horizontal Property Law, communal solar or renewable-energy systems can be approved by one third of the owners representing one third of the participation quotas, and the cost falls on those who voted in favour. For a private installation using common areas, seek the community's consent at a general meeting first.

Do I need planning permission for solar panels in Spain?

You need the town hall's authorisation, but in many municipalities a responsible declaration (declaración responsable) has replaced the full works licence for standard rooftop systems. Requirements vary by municipality and region, and homes in protected areas or listed buildings may face extra conditions. A good installer will confirm the local requirements and usually prepares the paperwork as part of the job.

Do solar panels reduce IBI property tax?

They can. Many town halls offer IBI reductions for homes with solar installations, but the discount, its duration and the conditions are decided locally and vary widely — some municipalities are generous, others offer nothing. Ask your own town hall or a gestor what applies where you live and watch the application deadlines, which are commonly linked to the installation or certification date.

Do I need to tell my home insurer about solar panels?

Yes. Panels are a permanent improvement to the building, so they should be declared and included in your buildings sum insured. If you never mention them, your rebuild value is understated and you risk being underinsured — and Spanish insurers commonly apply a proportional rule that reduces claim payments on underinsured properties. Declaring the installed value is a quick job, done mid-term or at renewal.

Are solar panels covered against storm and hail damage?

Ordinary storm, wind and hail damage is commonly covered under the buildings section of a Spanish home policy, provided the panels are declared and professionally installed. Policies differ in the conditions and wind thresholds they apply to externally mounted equipment, so check the wording. Truly extraordinary windstorms — gusts above 120 km/h or tornadoes — are handled by the Consorcio de Compensación de Seguros instead.

What is the Consorcio and how does it relate to solar panels?

The Consorcio de Compensación de Seguros is Spain's public scheme for extraordinary risks — events such as flooding, earthquakes and atypical cyclonic storms with gusts above 120 km/h. If such an event damages your home and its declared solar installation, compensation comes from the Consorcio rather than your insurer, and for residential property it is paid without a deductible. The condition is that you hold an ordinary, in-force property policy with payments up to date.

Will solar panels increase my home insurance premium?

Declaring panels raises your buildings sum insured, which can nudge the premium up modestly, because the system adds rebuild value that needs covering. The increase is generally small compared with the cost of replacing an undeclared system after a storm, fire or theft — and small compared with the risk of a proportional reduction applying to an underinsured home. It is also a sensible moment to review the policy as a whole.

How much maintenance do solar panels need in Spain?

Relatively little. The basics are periodic cleaning (dust, pollen and Saharan dust reduce output), a visual check after big storms, an occasional professional inspection of fixings and roof penetrations, and keeping an eye on the inverter's generation figures. Many installers offer maintenance visits. Staying on top of maintenance also matters for insurance, because damage attributed to neglect is commonly excluded from home policies.

I am buying a house in Spain that already has solar panels — what should I check?

Ask the seller for the installation certificate, the registration confirmation, the town-hall paperwork, the equipment invoices and warranty documents, and any surplus-compensation contract. An undocumented installation can usually be regularised, but it is better resolved before completion. When you arrange home insurance for the purchase, make sure the panels are included in the declared rebuild value from day one.

Important: 247 Expat Insurance is an insurance broker, not a law firm, tax adviser or immigration adviser. This guide is general information about installing solar panels in Spain and is not legal, tax or financial advice. Rules, procedures, local taxes and incentives change and vary by region, municipality and case. Always take advice from a qualified professional — and confirm local requirements with your town hall — about your own situation. 247 Expat Insurance is registered with the Dirección General de Seguros y Fondos de Pensiones (DGSFP).

Adding solar? Make sure your home insurance keeps up

A solar installation changes your home's rebuild value — and your policy should reflect it. Tell us about your home and the system, and we will help arrange buildings and contents cover that includes the panels, in plain English, with no obligation.

Get a home insurance quote
Related reading:
Swimming Pool Rules, Safety and Insurance in Spain
Damp and Subsidence in Spanish Homes
Wildfire Risk and Home Insurance in Spain
Home Insurance in Spain: The Complete Guide
Do I Need Home Insurance in Spain?
IBI Property Tax in Spain — Expat Guide
Comunidad de Propietarios — What Is Covered?
Paying Your Electricity Bill in Spain
Switching Electricity Supplier in Spain
Holiday Home Insurance in Spain — Guide