A commercial solar self-consumption installation in Spain does not pass through one national approval process. It passes through up to four separate administrative layers, each run by a different body, each with its own documents and its own timing: a municipal works procedure at the town hall, electrical design and safety compliance, grid access and connection through the electricity distributor, and registration and legalisation through the autonomous community.
Which of those layers apply and the form they take depend on decisions made about the project rather than on its capacity alone. Whether the installation operates with surplus or without it, whether it connects at low or medium voltage, whether it sits on a roof or on land, whether the land is urbanised and which municipality and autonomous community it falls in all change the route.
This means the answer to "what permissions do we need?" cannot be given from a kilowatt figure. It can only be given once the configuration is settled and the local requirements have been checked for the specific municipality, autonomous community and distributor.
The four administrative layers
These run in parallel more often than in sequence, and they are frequently confused with one another.
Municipal works or planning procedure. Handled by the town hall. Governs the physical works on the building or land and is the layer that determines whether construction may lawfully begin. It also generates the ICIO construction tax liability.
Electrical design and safety compliance. Handled by the qualified designer and the authorised installer. Governs whether the installation is designed and built to the applicable electrical regulations, and produces the technical documentation and certificates that later layers depend on.
Grid access and connection. Handled by the electricity distributor. Governs whether and on what terms the installation may connect to the network and export to it where applicable. Some configurations are exempt from this layer entirely.
Regional registration and legalisation. Handled by the autonomous community's energy or industry authority. Governs the formal recognition of the installation, the processing of the installation certificate and entry in the self-consumption registry.
Exemption from one layer does not affect the others. An installation exempt from access and connection permits still requires electrical compliance, still requires whatever the municipality demands, and still requires regional legalisation.
Who does what
| Body | Role |
|---|---|
| Town hall (ayuntamiento) | Municipal works procedure, ICIO, local planning, heritage and fire conditions |
| Autonomous community energy or industry authority | Registration, legalisation, processing of installation certificates, regional procedures |
| Electricity distributor | Access and connection where required, CAU code, metering, contract modification |
| Authorised installer and qualified designer | Technical design, project documentation, construction, installation certificates |
| Inspection body (OCA) | Initial inspection where the applicable regulations require it |
| Supplier or market representative | Surplus compensation contract, or representation where surplus is sold |
The distributor does not grant municipal or regional approval, and the autonomous community does not grant grid access. Each body decides only its own layer.
The decisions that determine the route
Seven choices shape which procedures apply. They should be settled before any application is made, because changing them later usually means starting parts of the process again.
With surplus or without surplus. The single most consequential choice, because it determines whether the access and connection layer applies at all.
Installed capacity. Relevant to several thresholds, though not in the blanket way it is often described.
Low-voltage or medium-voltage connection. Medium-voltage projects follow a materially different route, with more demanding technical documentation and additional authorisation steps in many autonomous communities.
Roof-mounted, carport or ground-mounted. Affects the municipal procedure and potentially the land-use and environmental requirements for ground-mounted installations.
Individual or collective self-consumption. Collective arrangements involve multiple supply points, a distribution agreement between participants and additional documentation.
Urbanised or non-urbanised land. A statutory condition attaching to one of the access and connection exemptions, and a significant factor in the municipal route.
Environmental, heritage or land-use constraints. A listed building, a protected setting, a rural land classification or a location within a protected area each add requirements that no capacity threshold predicts.
Access and connection: what the law actually says
This is where most confusion arises, so it is worth setting out precisely.
Article 17 of Real Decreto 1183/2020, giving effect to the second additional provision of Real Decreto-ley 15/2018, exempts certain installations from obtaining access and connection permits:
- Generation installations belonging to consumers under the self-consumption without surplus modality.
- Under the with surplus modality, production installations of 15 kW or less that are located on urbanised land having the facilities and services required by planning legislation.
The urbanised-land condition is part of the rule, not a footnote. A 12 kW with-surplus installation on rural land does not qualify simply because it is under 15 kW. This is the most commonly misstated point in the whole area.
A separate exemption applies to consumers meeting the requirements of article 25.1 of Real Decreto 1048/2013, covering supplies of up to 100 kW at low voltage and 250 kW at high voltage on urbanised land that had the required facilities and services before the electricity supply was needed. This relates to the consumer's supply rather than to the generation installation, and it is a different provision from the 15 kW rule.
Anything not falling within an exemption follows the applicable access and connection process with the network operator, submitting a single joint application in which the network manager for which permits are sought acts as the single point of contact.
Economic guarantees
Where an access and connection application is required, the applicant must generally show that an economic guarantee has been deposited with the body competent to authorise the installation. Article 23 of Real Decreto 1183/2020 sets this at 40 euros per kW installed.
Exemptions from the guarantee include installations of 15 kW or less, and self-consumption generation installations not classified as production installations. A further exemption applies to installations associated with a with-surplus self-consumption modality of installed capacity not exceeding 100 kW, unless they form part of a grouping exceeding 1 MW as defined in article 7 of Real Decreto 413/2014.
Note that this is a guarantee exemption, not an exemption from the access and connection process itself. The two are separate questions and a project can require the process while being exempt from the deposit.
Because these provisions have been amended over time, verify the current position against the consolidated text before relying on it for a specific project.
Route comparison
The following compares configurations against the layers that apply. It is a guide to the questions to ask, not a substitute for checking the specific case.
| Configuration | Access and connection permits | Economic guarantee | Simplified compensation available | Other layers |
|---|---|---|---|---|
| Without surplus, any capacity | Exempt under article 17 | Not applicable | Not applicable, no export | Municipal, electrical and regional layers all apply |
| With surplus, 15 kW or less, on qualifying urbanised land | Exempt under article 17 | Exempt at this capacity | Available if conditions met | Municipal, electrical and regional layers all apply |
| With surplus, above 15 kW, up to 100 kW | Process normally required | Exemption available subject to the grouping condition | Available if conditions met | All layers apply |
| With surplus, above 100 kW | Process normally required | Guarantee normally required | Not available | All layers apply, with additional obligations as a producer |
Capacity for these purposes must be read carefully. Installed generation capacity, contracted import capacity and permitted export capacity are three different figures, and a proposal that uses one where another is meant will produce the wrong route. For photovoltaic systems, installed capacity under Real Decreto 244/2019 is based on the maximum capacity of the inverter or the combined maximum capacity of multiple inverters.
Without surplus does not mean without procedure
Anti-export equipment holds inverter output below site demand so that nothing passes to the distribution network. A controller monitors flow at the connection point and reduces generation as required.
Choosing this configuration removes the access and connection layer, which can materially shorten the programme. It removes nothing else.
The installation still requires proper electrical design and documentation. It still requires whatever municipal procedure the town hall applies. It still requires regional registration and legalisation. It still requires a CAU code from the distributor and any applicable modification of the supply contract to reflect the self-consumption modality. The anti-export system itself requires documentation demonstrating that it functions as specified.
The choice is a technical and commercial one about what happens to surplus generation. It is not an administrative shortcut around the process as a whole.
What the 100 kW threshold does and does not mean
The 100 kW figure appears in several places and is routinely described as a general permission threshold. It is not.
What it does affect:
- Simplified compensation. Only available for renewable generation with installed capacity of 100 kW or less, along with the other applicable conditions. Above that, surplus must be handled through sale under producer arrangements or the installation must operate without surplus.
- The economic guarantee exemption for with-surplus installations, subject to the grouping condition.
- Certain administrative simplifications under Real Decreto 244/2019 for low-voltage consumers with low-voltage generation below 100 kW, where registration in the self-consumption registry is carried out by the autonomous community from the low-voltage electrical regulation documentation, and modification of the access contract is handled by the distributor from documentation forwarded by the autonomous community.
What it does not affect:
- It is not a planning-permission threshold. Municipal requirements are set by each town hall and turn on the nature of the works, the building and the location, not on generation capacity.
- It does not impose a maximum size on commercial self-consumption. Practical limits come from the property, the electrical installation, safety requirements, available grid capacity and the project economics.
- It does not by itself determine whether an access and connection process is required. That question is governed by the exemptions in article 17.
The municipal layer
Municipal requirements are set by each town hall through its own ordinances, and there is no single national form or timescale.
Depending on the municipality and the nature of the works, a project may proceed by prior communication (comunicación previa), by responsible declaration (declaración responsable), or by works licence (licencia de obra). Many municipalities apply lighter procedures to rooftop installations on existing industrial buildings and heavier ones to ground-mounted arrays, new structures such as carports, or works affecting protected buildings. Which applies has to be established from the local ordinance.
A responsible declaration or prior communication does not automatically permit immediate construction everywhere. Some municipalities allow work to begin on submission, others impose a waiting period, others attach conditions or reserve the right to require a full licence for particular works. This is a matter of the local ordinance and should be confirmed rather than assumed.
The ICIO, the tax on constructions, installations and works, is normally payable, calculated on the cost of the works at a rate set locally. Many municipalities offer rebates on ICIO and on IBI for renewable installations, but these are established by each town hall's fiscal ordinance, vary widely and are not a national entitlement. Where a rebate is available it usually has to be applied for, sometimes before the works begin.
Additional municipal considerations that may apply include heritage protection where the building or its setting is listed, fire safety requirements affecting array layout and access routes, structural approval, and visual impact conditions in protected townscapes.
Technical documentation
The precise set depends on capacity, voltage, configuration and the requirements of the autonomous community. A commercial project commonly involves:
| Document | Purpose |
|---|---|
| Feasibility and design basis | Establishes capacity, configuration and the assumptions the design rests on |
| Electrical project or technical design document | The engineering design, signed by a qualified technician where required |
| Structural verification | Confirms the building can carry the installation |
| Single-line diagram | Shows the electrical arrangement, protections and connection point |
| Equipment specifications and certificates | Panels, inverters, protections, meters and mounting system |
| Installation certificate | Issued by the authorised installer, then registered, validated or processed as required by the autonomous community |
| Protection and anti-export documentation | Evidence that protections and any fitted export limitation function as specified |
| Inspection certificate | Where the applicable regulations require initial inspection by an authorised control body |
On who signs: the threshold at which a full electrical project signed by a qualified technician is required, rather than a simpler technical memorandum, is set by the applicable electrical regulations and by the requirements of the autonomous community. For commercial installations of any meaningful size a signed project is the normal expectation, and for medium-voltage installations it is invariable.
On inspection: initial inspection by an authorised control body is required in the cases set out in the applicable regulations, and the triggering circumstances differ between low-voltage and high-voltage installations. Confirm whether the specific project falls within them at design stage rather than at commissioning.
Construction and commissioning
Physical work should not begin before the municipal position is clear. Starting works without the applicable municipal procedure completed exposes the business to enforcement action and can complicate the later legalisation.
The access and connection process, where required, runs on its own timetable and does not have to be complete before all preparatory work, but for those projects the installation cannot be connected or energised until the relevant distributor conditions, metering and contractual steps are complete. Installations without surplus are exempt from access and connection permits, and for those the constraint on energisation is not a distributor permit but the applicable electrical, municipal and regional commissioning requirements, together with the metering and contractual steps that apply to their configuration.
Three states are frequently conflated and should be kept distinct:
Energisation is the point at which the installation is electrically live and able to operate. It requires the applicable commissioning requirements to be satisfied and the necessary metering and contractual arrangements to be in place.
Legalisation is the completion of the administrative process with the autonomous community, including the processing of the installation certificate and entry in the self-consumption registry.
Commercial operation is the point at which the arrangements governing the value of the electricity are effective, meaning the compensation contract or the producer and market arrangements for sold surplus.
These can occur at different times. An installation may be physically complete and not yet legalised, or legalised and not yet receiving compensation for surplus. Payment terms in an installation contract should reflect the difference.
Distributor steps, CAU and contract changes
The installer requests the CAU, the self-consumption code, from the distributor. It is derived from the CUPS: the 22-character CUPS followed by the letter A and three digits, typically A000 for individual self-consumption. For collective self-consumption it is formed from one of the CUPS associated with the group followed by A000.
The CAU identifies the self-consumption arrangement uniquely and is needed to complete the installation certificate. It is generated by the distributor rather than granted at discretion.
Where the installation exports and is treated as a production installation for that energy, a CIL is also assigned, being the production installation code for settlement purposes.
The supply contract must reflect the self-consumption modality. Under Real Decreto 244/2019, for consumers connected at low voltage with low-voltage generation below 100 kW, the modification of the access contract is carried out by the distributor from documentation forwarded by the autonomous community, which must send that information within ten days of receipt, with the distributor then notifying suppliers and consumers within five days. For other configurations the contractual position must be arranged directly or through the supplier.
Metering arrangements depend on the configuration. Installations with surplus require measurement of both imported and exported energy, and larger or medium-voltage installations may require metering equipment of a different type from that already installed.
Regional registration and legalisation
The autonomous community administers registration and legalisation, and the procedure differs between communities. Some operate dedicated electronic platforms, some require particular forms describing the installation configuration, and documentation requirements are not uniform.
The national self-consumption registry is electronic and declarative, with free access for the authorities specified in the regulation, and with sections for self-consumption without surplus and with surplus. Aggregated data is made freely available, which is not the same as unrestricted public access to identifiable entries. For consumers connected at low voltage with low-voltage generation below 100 kW, registration is carried out by the autonomous community from the low-voltage electrical regulation documentation rather than requiring a separate application by the business.
Registration is not permission to build. It is formal recognition of an installation that has been built, and it comes after the municipal and electrical layers rather than instead of them.
The applicable regional procedure should be identified by name at the start of a project. The IDAE professional guide to processing self-consumption covers the regional routes and is the appropriate starting point, with the autonomous community's own current guidance taking precedence where the two differ.
Surplus arrangements
Three routes exist and the choice interacts with everything above.
Simplified compensation. Available where the applicable conditions are met, including renewable generation with installed capacity of 100 kW or less. Qualifying surplus is valued and applied within the electricity billing process. A surplus compensation contract is entered into and sent to the distributor. It is compensation rather than an unrestricted sale, and a consumer using it cannot simultaneously sell the same surplus through the market.
Sale of surplus. The installation is treated as an electricity producer for the exported energy, with the corresponding market, tax, metering, representation and administrative obligations. This is the route for installations above the compensation threshold and for those choosing to sell rather than compensate.
Without surplus. No export, and therefore no compensation or sale. Surplus generation is curtailed.
Indicative process sequence
The following is indicative. Regional and municipal ordering differs, some steps run in parallel, and the sequence for a medium-voltage exporting installation is materially longer than for a low-voltage installation without surplus.
- Establish the configuration: with or without surplus, capacity, connection voltage, mounting type.
- Confirm the applicable route for the specific municipality, autonomous community and distributor.
- Complete the technical design and structural verification.
- Submit the municipal works procedure and settle ICIO.
- Where required, submit the access and connection application with any economic guarantee.
- Request the CAU from the distributor.
- Construct the installation once the municipal position permits.
- Complete testing, and inspection by an authorised control body where required.
- Issue installation certificates and complete regional legalisation and registry entry.
- Complete metering, contract modification and any applicable surplus compensation contract or producer and market arrangements.
- Energise and begin operation under the applicable arrangements.
Processing times vary by autonomous community, municipality, distributor and project type, and no single national figure is meaningful. Ask for indicative timescales for the specific bodies involved and treat them as estimates.
Responsibility table
| Task | Normally handled by | What the business should verify |
|---|---|---|
| Route determination | Designer or project engineer | That the route is specific to this municipality, community and distributor, and stated in writing |
| Technical design and project | Qualified technician | That it is signed, that the signatory is competent for the voltage level, and that it matches what is built |
| Structural verification | Structural engineer | That it exists as a document, not as an opinion in a proposal |
| Municipal procedure | Installer or a specialist agent | Which procedure applies, whether works may begin on submission, and who pays ICIO |
| Access and connection application | Installer or project engineer | Whether an exemption applies and on what statutory basis |
| Economic guarantee | Applicant for the installation authorisation | Whether one is required, its amount and who funds it |
| CAU request | Authorised installer | That it has been obtained before certificates are issued |
| Inspection by control body | Installer arranges, OCA performs | Whether inspection is required for this installation |
| Regional legalisation and registry | Installer or agent, with the autonomous community | That processed certificates and registry evidence are provided |
| Contract modification and metering | Distributor and supplier | That the contract reflects the self-consumption modality |
| Surplus arrangements | Supplier or market representative | Which route applies and when it takes effect |
Common causes of delay
Incorrect CUPS or site data. A transcription error produces a failed lookup rather than an obvious error, and can cost weeks before anyone notices.
Unclear ownership or lease consent. Where the business leases the building, landlord consent in a form acceptable to the relevant bodies is needed, and obtaining it late is a common bottleneck.
Missing structural evidence. Proceeding without documented structural verification, then being asked for it, stops the process at the point where it is most expensive to stop.
Incomplete distributor application. Where an application is submitted without all the required information, the network operator may request rectification, and processing is delayed while the applicant responds. This is an ordinary correction request and is a different matter from the statutory grounds on which an application may be held inadmissible, which are set out in Real Decreto 1183/2020 and carry their own consequences. The two should not be conflated, but both are avoided by submitting a complete application first time.
Capacity unavailable at the connection point. Network capacity is finite and its availability is not always visible in advance. This can cap or delay a project regardless of everything else.
Mismatch between design and submitted documentation. Where the installed system differs from what was submitted, whether in capacity, inverter configuration or protection arrangement, the legalisation will not proceed until the documents are corrected.
Municipal or heritage constraints. Discovered late, these can require redesign of the array layout or the mounting approach.
Unconfirmed medium-voltage requirements. Assuming a low-voltage route for a project that turns out to require medium-voltage treatment adds engineering, equipment, documentation and time.
Questions to ask before signing an installation contract
- Which specific municipal procedure applies at this town hall, and who submits it?
- May construction begin on submission, or is a waiting period or licence required?
- Who calculates and pays the ICIO, and has any available rebate been checked?
- Is this installation exempt from access and connection permits, and on what statutory basis?
- If an application is required, who submits it, and who funds any economic guarantee?
- Who signs the electrical project, and are they competent for this voltage level?
- Is structural verification included, and will a signed document be provided?
- Is inspection by an authorised control body required, and is it in the price?
- Which autonomous community procedure applies, and who handles legalisation and registry entry?
- Which surplus arrangement is assumed, and who arranges the contract or representation?
- What happens to the programme if capacity is unavailable at the connection point?
- What are the payment milestones, and are they tied to energisation, legalisation or commercial operation?
- Which of these items are excluded from the quoted price?
Completion checklist
Before final payment, the business should hold:
| Evidence | Why it matters |
|---|---|
| Signed electrical project or technical design document | The design record for the installation as built |
| As-built single-line diagram | Reflects what exists, not what was proposed |
| Structural verification document | Evidence the roof was assessed, not assumed |
| Municipal procedure evidence and ICIO settlement | Confirms the works were lawfully carried out |
| Access and connection documentation, or written basis of exemption | Establishes the grid position |
| CAU, and CIL where applicable | Identifies the installation for administrative purposes |
| Installation certificate processed by the autonomous community | The core legalisation document |
| Registry entry evidence | Confirms inclusion in the self-consumption registry |
| Inspection certificate, where required | Confirms the inspection was carried out and passed |
| Updated supply contract showing the self-consumption modality | Confirms the contractual position is correct |
| Surplus compensation contract, or producer and representation arrangements | Confirms surplus has somewhere to go |
| Equipment documentation, warranties and monitoring access | Needed for operation, maintenance and any future claim |
| Commissioning and test records | Establishes the performance baseline |
A project is not complete when the panels are installed. It is complete when this evidence exists.
Frequently asked questions
Do commercial solar panels need planning permission in Spain? It depends on the municipality and the works. Town halls set their own requirements, and depending on the case a project may proceed by prior communication, responsible declaration or works licence. Roof-mounted solar is not automatically exempt throughout Spain, since municipal and regional rules can provide exemptions or simplified procedures in particular places while others apply fuller procedures. Ground-mounted arrays and carports usually attract heavier procedures.
Does a business need grid access and connection permission? Not always. Installations without surplus are exempt under article 17 of Real Decreto 1183/2020, as are with-surplus installations of 15 kW or less on urbanised land meeting the statutory condition. Other with-surplus installations normally require the applicable process.
What is the 15 kW exemption? An exemption from access and connection permits for with-surplus production installations of 15 kW or less, available only where the installation is on urbanised land having the facilities and services required by planning legislation. Capacity alone does not qualify an installation.
What changes above 100 kW? Simplified compensation is not available, so surplus must be sold under producer arrangements or the installation must operate without surplus. The economic guarantee exemption for with-surplus installations also ceases to apply above that capacity.
Is 100 kW a planning threshold? No. It affects the compensation mechanism, guarantee exemptions and certain administrative simplifications. Municipal requirements are set locally and do not turn on generation capacity.
What is the difference between permission, registration and legalisation? Permission authorises works or connection before the fact. Registration is entry in the self-consumption registry after the installation exists. Legalisation is completion of the administrative process with the autonomous community, including the processing of the installation certificate. Registration is not permission to build.
Who signs the electrical project? A qualified technician, with the requirement and the applicable threshold set by the electrical regulations and by the autonomous community. For medium-voltage commercial installations a signed project is invariably required.
What does the distributor actually do? Handles access and connection where required, issues the CAU, arranges metering and modifies the access contract in defined cases. It does not grant municipal or regional approval.
Can installation work begin before every procedure is complete? The municipal position must permit it. Where an access and connection process applies, it may still be running during construction, but the installation cannot be connected or energised until the relevant distributor conditions, metering and contractual steps are complete.
How long does approval take? There is no meaningful national figure. Timescales vary by autonomous community, municipality, distributor, configuration and voltage level, and the access and connection layer is usually the longest where it applies.
What records should the business retain? The signed project, as-built single-line diagram, structural verification, municipal evidence and ICIO settlement, access and connection documentation or basis of exemption, CAU and CIL, processed installation certificate, registry evidence, inspection certificate where applicable, updated supply contract, surplus arrangements, equipment documentation and commissioning records.
Reviewed 19 August 2026. National provisions are amended periodically and regional and municipal requirements differ. Confirm the applicable route against the consolidated legislation and the current guidance of the relevant autonomous community, municipality and distributor before fixing a programme or budget.
Sources
| Source | Used for |
|---|---|
| Real Decreto 244/2019 | Administrative, technical and economic conditions for self-consumption; the with-surplus and without-surplus modalities; simplified compensation and the 100 kW condition; installed capacity measured at the inverter; the self-consumption registry as electronic and declarative with free access for specified authorities and free access to aggregated data; registration and access contract modification for low-voltage consumers with low-voltage generation below 100 kW, and the ten-day and five-day communication periods |
| Real Decreto 1183/2020 | Article 17 exemptions from access and connection permits, including the without-surplus exemption and the 15 kW with-surplus exemption conditioned on urbanised land with the facilities and services required by planning legislation; the extension to consumers under article 25.1 of Real Decreto 1048/2013; article 23 economic guarantees at 40 euros per kW and the exemptions from them; statutory grounds for inadmissibility of applications; the network manager as single point of contact |
| CNMC Circular 1/2021 | Procedural detail on access and connection to transmission and distribution networks |
| IDAE, Guía Profesional de Tramitación del Autoconsumo | Processing routes by autonomous community; the CAU composed of the 22-character CUPS followed by A and three digits; the role of the authorised installer in requesting it |
| IDAE, Oficina de Autoconsumo FAQ | CAU generation and the distinction between individual and collective self-consumption codes; the CIL as the production installation code for settlement purposes |
| MITECO, access and connection FAQ | Application of the article 17 exemptions and the guarantee deposit procedure |
| Junta de Andalucía, autoconsumo | Example of a regional legalisation procedure beginning with the CAU request to the distributor, illustrating variation between autonomous communities |
