PropertinspainBuying in Spain from abroad

Note

Solar panels on a home in Spain: the rules

By Daniel WhitcombeReviewed by Marta Calderón IbáñezPublished Updated Stage 3: Choose where and what

Quick answer

Self-consumption is regulated by a royal decree. Installations up to one hundred kilowatts can ask the retailer to compensate surplus on the monthly bill. The works licence is municipal, a flat needs the community, and the installation is registered. The energy agency estimates a payback range for a typical home.

Applies toOwners and buyers who want to add or inherit solar panels on a Spanish home.

On this page: 10 sections
  1. The legal frame
  2. Licence and tax
  3. Size and permits
  4. Registration
  5. Flats and communities
  6. Is it worth it
  7. The building code
  8. Inherited systems
  9. What we could not verify
  10. More on this topic
Checked 26 October 2026by Marta Calderón Ibáñez. Claims on this page are tied to the sources listed at the end.

Solar self-consumption in homes is governed by a royal decree of 2019, which the energy agency explains in its chapters. Its page describes three options for the surplus: register as a producer, store it in a battery, or, for an installation of up to one hundred kilowatts, ask the retailer to compensate it each month on the bill. This page belongs to the chapter on how energy and comfort works, and it uses the agency’s own answers, not an installer’s brochure.

§ 2Licence and tax

The agency says the works licence is a municipal procedure that applies to construction work in general, and that most regions have simplified it to a prior notice, without removing the fees that each municipality sets. The municipal tax on works, the ICIO, also applies, and the agency says municipal bonuses on it, and on the local property tax, could reach up to ninety-five per cent, if the town decides to offer them. Spain autoconsumo Solar subsidies explains the incentives. Ask the town hall what applies.

§ 3Size and permits

The agency’s answers say that installations of up to fifteen kilowatts on urban land are exempt from access and connection permits, and that those up to one hundred kilowatts must apply but need no guarantee. A home installation is normally far smaller. Your installer should handle the paperwork. Ask who is responsible for it in the contract.

§ 4Registration

The agency says the regional authority registers the installation in its self-consumption registry where one exists, and otherwise registration is made in the national register. The distributor issues the identification code of the supply automatically. Ask the installer to give you copies of the registrations.

§ 5Flats and communities

In a block, the roof is a common part. The agency’s answers deal with collective self-consumption in buildings under the horizontal property law, and they say that the installation cannot connect directly to the interior of any associated consumer. They do not say what vote is needed for a roof installation, so ask the administrator and your lawyer. The community can also act as the producer in a collective scheme.

§ 6Is it worth it

The agency estimates that a typical four-person home could recover the installation cost in six to ten years. That is an estimate, not a promise. It depends on use during the day, the roof, the price you paid and electricity tariffs, which change. Ask for two written proposals that show their assumptions, and do not rely on the highest.

§ 7The building code

The code asks for a minimum photovoltaic contribution and a minimum renewable share for hot water in buildings within its scope, mainly new ones and large interventions. It does not oblige an existing home to add panels, as the code summary we read says of existing buildings.

§ 8Inherited systems

If the home has panels, ask for the registration papers, the contract with the retailer, the warranties and the maintenance record. A system without papers is a problem for resale. How insulation works and heating explained explain the other steps that affect your bills.

§ 9What we could not verify

The agency’s answers we read are dated March 2023 and cite decrees that were later amended. Check the current texts before you rely on a limit.

§ 10More on this topic

Damp and mould explained explains how to spot and judge damp and mould in a Spanish home.

FAQRelated questions

Can I sell surplus electricity?

You can choose simplified compensation, where the retailer credits surplus on your monthly bill up to a set installation size, or register as a producer and sell it under the longer route. Ask the installer which option applies to your size and tax position.

Do I need permission?

Yes, in general. The works licence is a municipal procedure, many regions allow a prior notice instead, and each town may charge its own fees. In a flat, the community has its own role, so ask the administrator before any contract.

Is it worth it?

The energy agency says a typical four-person home could recover the cost within a stated range of years. Your roof, shading, use and price paid decide, so get at least two written proposals and test their assumptions.

Sources

About this page

Written by

Daniel Whitcombe

Writer, buying and living in Spain

Daniel writes the chapters on how a purchase runs, who can buy, where to buy and how to check a location. He writes for readers who are new to the Spanish system and prefers plain explanations that name the official source. He is not a lawyer or adviser.

Reviewed by Marta Calderón Ibáñez, chief editor and source editor, 26 October 2026. Checked: Figures and rules checked against the official texts listed below

Found an error? Report it. Each report gets a dated reply, and confirmed corrections are logged on the updates page.

General information only. This is not legal, tax or financial advice. Check your own situation with a qualified adviser.