Aeternus Power

The legal advantages of solar self-consumption for businesses in Spain: rights, permits, tax and contracts

By Francesca Greco, Head of Legal & Regulatory

Solar modules on the façade of a municipal social services centre in Madrid, beside a tree with yellow autumn leaves
Photo: Hanjin / Wikimedia Commons, CC BY-SA 3.0, adapted

In Spain, your business has a legal right to produce and use its own electricity without paying charges on it, with fewer permits than most people expect, and the law gives value to the power you do not use. Councils can cut your local taxes and, in corporate tax, plants that start operating in 2026 can be depreciated freely, on conditions. This guide sets out, as of 16 November 2026 and with the rule behind each point, what the law gives you, including if you rent your building or pay for the plant through a power purchase agreement (PPA), and what it still asks of you.

You have a right to produce and use your own electricity

Self-consumption (autoconsumo) means using the electricity from a plant at or near your site: on your building, over the car park or on adjacent land. It is governed by article 9 of the Electricity Sector Act (Law 24/2013) and by Royal Decree 244/2019 of 5 April, which sets its administrative, technical and economic conditions.

Royal Decree-law 15/2018 recognised the right to self-consume electricity without charges and removed the charge on self-consumed energy, the so-called ‘sun tax’ (impuesto al sol). Since 7 October 2018, the renewable power your business produces and uses has been exempt from all tolls and charges. Power you buy from the grid still pays them, as it does for any consumer.

And the plant does not have to be yours. In every arrangement, the consumer and the owner of the installation can be different people or companies, which is what makes it possible to lease the plant or to pay only for its power through a PPA.

Fewer permits than most people expect

A plant that exports power to the grid needs grid access and connection permits. Zero-export plants (sin excedentes), fitted with an anti-export device that keeps power off the grid, do not need them, whatever their size; nor do exporting plants of 15 kW or less on urbanised land.

Small plants have less paperwork too. Zero-export plants of up to 100 kW only have to meet the technical regulations to connect, and exporting plants of up to 100 kW do not have to be entered in the national register of production installations. For solar, the 100 kW is measured on the inverters’ power, not the modules’.

With the council, several regions have replaced the building licence with a lighter procedure, though the construction tax (ICIO) is still due. Our regional guides for Madrid, Catalonia and Valencia, in Spanish, go into detail. In short:

  • Madrid region: a responsible declaration (declaración responsable) for renewable self-consumption systems, unless they affect historic or artistic heritage, public land or an environmentally protected area (article 155 of Law 9/2001, the Madrid Land Act).
  • Catalonia: prior notice (comunicación previa) for solar on buildings and car-park canopies that rises no more than one metre above a flat roof or lies parallel to a pitched one, with some exceptions (articles 9 bis and 187 bis of the Catalan Planning Act).
  • Valencia region: a responsible declaration for solar installations on existing private buildings (article 14 of Decree-law 14/2020).

Surplus power has value in law

Surplus is the power your plant produces when your site is not using it. Each kWh your site takes from the plant saves you buying it from the grid, with its energy price, tolls and charges; an exported kWh is valued as energy only. So it pays to size the plant so that little is left over, as our commercial solar guide explains.

What is left over still has a value set by law. If the plant has no anti-export device, you can choose between two routes:

  • Simplified compensation, for renewable plants of up to 100 kW in total, with a surplus compensation agreement and no other support scheme. Your retailer deducts the value of the exported power from each bill, at the price agreed with it or, on the regulated small-consumer tariff (PVPC), at each hour’s market price less the cost of imbalances.
  • The limit on compensation: the deduction never exceeds the value of the power you bought from the grid in that billing period, which cannot be longer than a month, and a plant that compensates cannot sell its power any other way.
  • Selling on the market, for plants of any size that do not compensate. The plant exports as a production installation, and its holder, the producer, is paid for the power exported under the rules in force. Above 15 kW, or outside urbanised land, it needs grid access and connection permits.

You can share power with other businesses or with your neighbours

Several businesses on an industrial estate, or the residents of a building, can draw on the same plant and split its output under an agreement signed by all of them: this is collective self-consumption. When the power travels through the grid, the arrangement must allow export, and a business can combine it with its own zero-export plant. Our guide to collective self-consumption on industrial estates, in Spanish, takes it step by step.

It can also be organised through a renewable energy community. This is a legal entity with open, voluntary membership whose members, close to its projects, are individuals, small and medium-sized businesses or local authorities, and its main purpose is environmental, economic or social benefit rather than profit. A small or medium-sized business can join if this is not its main commercial activity. Royal Decree-law 7/2026 gave the government three months to adopt regulations developing these communities, and in November 2026 they had still not been published. The same decree-law created the self-consumption manager (gestor de autoconsumo), who handles the paperwork on behalf of the consumers who authorise it.

The plant and the consumers must meet at least one of these conditions, under Royal Decree 244/2019 as it stands on 16 November 2026:

  • Being connected to the same internal network, or joined by a direct line.
  • Being connected to the low-voltage network that leaves the same transformer station.
  • Being less than 500 metres apart, measured in plan between the meters.
  • Being less than 5,000 metres apart, if the plant is solar or wind, has up to 5 MW and connects through the grid. This is the latest change published in the BOE, Spain’s official gazette, in force since 22 March 2026.
  • Sharing the same cadastral reference, by its first 14 digits.

If you rent your building, or it belongs to a community of owners

When you rent a warehouse or commercial premises, the lease comes first. Where it says nothing, the Urban Leases Act (Ley de Arrendamientos Urbanos) does not let a tenant carry out works that change the property’s layout without the landlord’s written consent. If the tenant goes ahead without it, the landlord can terminate the lease or, when it ends, require everything to be put back as it was or keep the works without paying anything.

Before you install, sign an annex with the landlord that states who owns the plant, how long you may use the space, who claims the reductions in the property tax (IBI) and the construction tax (ICIO) and what happens if you leave. Our guide to solar on a rented warehouse, in Spanish, covers it in detail.

In a building with several owners, the Horizontal Property Act (Ley de Propiedad Horizontal) makes agreement easier. Installing renewable energy systems, shared or private, can be approved at any owner’s request by a third of the owners holding a third of the ownership shares. The community cannot then charge the cost to anyone who did not vote in favour. If the system is for common use and the whole community pays, a simple majority of owners and shares is enough, as long as the yearly charge, after grants and financing, does not exceed twelve months of ordinary service charges.

Taxes that reward self-consumption

The law lets councils cut three local taxes but does not oblige them to: each council decides in its tax bylaw (ordenanza fiscal) whether to do so, by how much, for how long and on what conditions. Our guide to solar tax incentives goes into detail.

In corporate tax, renewable self-consumption plants that start operating in 2026 can be depreciated freely, so your company can deduct the investment as quickly as it chooses. There are conditions: the investment that qualifies is capped at €500,000, the company must keep its average headcount for the following 24 months, buildings are excluded, and plants required by the Building Code qualify only above the legal minimum. As of 16 November 2026, the law does not extend this to plants that start in 2027.

For homes, personal income tax (IRPF) allows a deduction in 2026 of 10% of what you pay to install renewable self-consumption, with or without batteries, in a property you own, or 20% in mainly residential buildings, on up to €5,000 a year. The installation must be finished in 2026 and have its electrical installation certificate, and it cannot be used for a business activity. The deductions for energy-efficiency works on a home, of 20% or 40%, cover payments up to 31 December 2026, and the 60% deduction for works on the whole building runs to 31 December 2027. None of them can be combined with the self-consumption deduction for the same installation.

TaxWhat it taxesMaximum reductionWho pays it
IBI, the property taxThe property, every year50% of the taxThe property’s holder, usually its owner
ICIO, the construction taxThe works, once, at a rate of up to 4% of their cost95% of the taxThe owner of the works, meaning whoever pays for them
IAE, the business activity taxThe business activity, every year50% of the taxOnly companies with a net turnover of €1 million or more; individuals and smaller companies are exempt

A summary as of 16 November 2026, not personal advice. Local reductions depend on the bylaw in force in your municipality: check with your tax adviser that your company and your plant meet each condition.

With a PPA, the contract shares out the obligations

In a PPA, a financing partner pays for the plant and owns it, and your business buys the power it produces. The law allows this because the consumer and the owner can be different, and it leaves almost everything else to what the parties agree: the Civil Code accepts any terms that are not contrary to the law, morality or public order, and what is agreed has the force of law between the parties. Our solar PPA guide explains how it works.

Tax advantages follow whoever meets each tax’s conditions. Free depreciation belongs to whoever invests in the plant, which in a PPA is the financing partner. The IBI reduction goes on the property holder’s bill, and the ICIO reduction to whoever pays for the works, which in a PPA is also the financing partner. Ask for the contract to state who applies for each reduction and whether it is reflected in the price. Our guide to the end of a PPA, in Spanish, covers the end-of-term options.

In the PPAs we structure, from 50 kWp, the contract sets out from day one:

  • That the financing partner pays for, maintains and insures the plant for the whole term.
  • The price per kWh, set in the contract and starting below what your business pays the grid when it signs.
  • Any yearly increase, written into the contract from the start.
  • That you pay only for the power the plant supplies.
  • The options at the end of the term: buying the plant, extending the contract or having the plant removed.

What the law still asks of you

The advantages come with few obligations, but clear ones. The plant must be installed by an electrical installation company, which on completion issues the electrical installation certificate and lodges it with your regional government to register the installation. At low voltage, some installations also need an initial inspection by an approved inspection body before they start, for example industrial installations that require a project and exceed 100 kW, followed by an inspection every five years.

Your business must be entered in the self-consumption register, from data your regional government passes to the national register. If your site and the plant are at low voltage and the plant is under 100 kW, the region enters it automatically from the certificate. Your grid access contract must also reflect the self-consumption: you notify the distributor, directly or through your retailer, and it amends the contract within ten days. To choose who builds the plant, see our guide to choosing a builder in Spain.

My advice: before you sign, make sure the contract states in writing who owns the plant, who maintains and insures it, who claims each tax reduction and what happens if you leave the building. Check these points too:

  • Who handles the certificate, the register entry and, where needed, the grid access and connection permits.
  • The warranties on the equipment and the works, and who claims under them.
  • The expected output, and what happens if the plant produces less or breaks down.
  • What happens to surplus power and who keeps its value.
  • What happens if the rules change, for example tolls, charges or taxes.

How Aeternus helps

Aeternus Power is an independent energy company based in Madrid. We study your consumption and your site, structure how you pay, whether by buying, leasing or, from 50 kWp, a PPA, and bring in a vetted builder and the financing. In our proposals, who owns the plant, who maintains and insures it, the price and the end-of-term options are in writing from the start.

We never own plants. We are paid a commission by whoever builds or finances the project, never by you, and only if it goes ahead. For a first figure, try the preview on our business page; for homes, see our homeowners page. For a study with your bills, contact us: we reply within two working days.

Questions

Do I need a building licence to install solar on a warehouse in Spain?

It depends on the region. In the Madrid region a responsible declaration is enough, unless the installation affects historic or artistic heritage, public land or an environmentally protected area; in Catalonia, prior notice if it rises no more than one metre above a flat roof; and in the Valencia region, a responsible declaration on existing buildings. The construction tax (ICIO) is still due.

Is there still a sun tax in Spain?

No. Royal Decree-law 15/2018 removed that charge, and since 7 October 2018 renewable power you produce and use yourself has been exempt from all tolls and charges. Power you buy from the grid is paid for as before.

Can I sell surplus solar power in Spain?

Yes. With a renewable plant of up to 100 kW you can offset it on your bill, up to the value of the power you buy from the grid on each bill; at any size you can sell it on the market as a production installation. Our commercial solar guide explains the options.

Can I install solar on a rented warehouse in Spain?

Yes, with the landlord’s written consent if the lease says nothing else. Without it, the landlord can terminate the lease or, when it ends, require everything to be put back as it was or keep the installation without paying for it.

What majority does a community of owners in Spain need to approve solar?

A third of the owners holding a third of the ownership shares, at any owner’s request, and those who do not vote in favour pay nothing towards the installation or its upkeep. If it is for common use and the whole community pays, a simple majority is enough, as long as the yearly charge does not exceed twelve months of ordinary service charges.

Can my company depreciate a solar plant in a single year in Spain?

If the plant starts operating in 2026, it can be depreciated freely, all at once if you wish, on up to €500,000 of investment and if you keep your average headcount for 24 months. In a PPA the plant belongs to the financing partner, so the depreciation is theirs. Check with your tax adviser.

Sources

  • BOE: Real Decreto 244/2019 of 5 April, administrative, technical and economic conditions of self-consumption, articles 3, 4, 5, 7, 8, 13, 14 and 20 (consolidated text, last updated 21 March 2026): https://www.boe.es/buscar/act.php?id=BOE-A-2019-5089
  • BOE: Ley 24/2013 del Sector Eléctrico, articles 6, 9 and 12 bis: self-consumption, exemption from tolls and charges, renewable energy communities and self-consumption managers (consolidated text): https://www.boe.es/buscar/act.php?id=BOE-A-2013-13645
  • BOE: Real Decreto-ley 15/2018 of 5 October, urgent measures for the energy transition and consumer protection, preamble and title II (consolidated text): https://www.boe.es/buscar/act.php?id=BOE-A-2018-13593
  • BOE: Real Decreto-ley 7/2026 of 20 March, comprehensive plan in response to the Middle East crisis, articles 36 and 37 and final provisions 8, 14 and 17 (consolidated text): https://www.boe.es/buscar/act.php?id=BOE-A-2026-6544
  • BOE: Real Decreto Legislativo 2/2004, local finance law, articles 63, 74, 82, 88, 101, 102 and 103: IBI, IAE and ICIO (consolidated text): https://www.boe.es/buscar/act.php?id=BOE-A-2004-4214
  • BOE: Ley 27/2014 on corporate tax, additional provision 17: free depreciation for plants that start operating up to 2026 (consolidated text): https://www.boe.es/buscar/act.php?id=BOE-A-2014-12328
  • Agencia Tributaria (23 March 2026): tax measures in Real Decreto-ley 7/2026, including the income tax deduction for self-consumption and free depreciation: https://sede.agenciatributaria.gob.es/Sede/todas-noticias/2026/marzo/23/medidas-materia-tributacion.html
  • BOE: Ley 49/1960 on horizontal property, article 17: majorities for renewable energy (consolidated text): https://www.boe.es/buscar/act.php?id=BOE-A-1960-10906
  • BOE: Ley 29/1994 on urban leases, articles 4, 23 and 30: works by the tenant (consolidated text): https://www.boe.es/buscar/act.php?id=BOE-A-1994-26003
  • BOE: Ley 9/2001, Land Act of the Madrid region, article 155: acts subject to a responsible declaration (consolidated text): https://www.boe.es/buscar/act.php?id=BOE-A-2001-18984
  • BOE: Decreto Legislativo 1/2010, Catalan Planning Act, articles 9 bis and 187 bis: prior notice for solar (consolidated text): https://www.boe.es/buscar/act.php?id=BOE-A-2010-13883
  • BOE: Decreto-ley 14/2020 of the Valencian government, measures to speed up renewable energy, article 14: responsible declaration (consolidated text): https://www.boe.es/buscar/act.php?id=DOGV-r-2020-90356
  • BOE: Real Decreto 842/2002, low-voltage electrical regulations, article 18 and instructions ITC-BT-04 and ITC-BT-05: installation certificate and inspections (consolidated text): https://www.boe.es/buscar/act.php?id=BOE-A-2002-18099
  • BOE: Civil Code, articles 1091 and 1255: binding force of contracts and freedom of contract (consolidated text): https://www.boe.es/buscar/act.php?id=BOE-A-1889-4763
  • MITECO (29 March 2019): press release on the self-consumption royal decree, completing Real Decreto-ley 15/2018, which repealed the so-called sun tax: https://www.miteco.gob.es/content/dam/miteco/es/prensa/190405ndpcminautoconsumo_tcm30-496256.pdf
  • Caloryfrio (6 November 2026): the status of the royal decrees to boost self-consumption and energy communities: https://www.caloryfrio.com/energias-renovables/energia-solar/reales-decretos-autoconsumo-comunidades-energeticas-2026.html

Latest

Europe’s power prices in early November 2026: from €184/MWh in Spain to €347/MWh in Ireland

Futures put 2027 power at €113 to €144/MWh in Spain, Portugal, France and Germany: what it means for your next contract

Europe enters winter with its lowest gas stocks since 2013: what it means for your power bill

Talk to us