Living in Spain Buying property

A Guide To Installing Solar Panels In Spain

There is no official price list for solar panels in Spain: you pay what the installer quotes, normally with 21% VAT on top. The only worked home example published by IDAE, the state energy agency, dates from June 2021: €7,200 for the panels and €6,400 for a 5.5 kWh battery before VAT, €16,500 in all with VAT. Use it to see how a bill splits between panels and battery, not as today’s price.

Solar panels on the roof of a house

The national grants closed to new applications on 31 December 2023. What exists now is tax relief. Residents who pay Spanish income tax can deduct 10% of what they pay for a solar system, battery included, that is installed and paid for between 1 January and 31 December 2026 (20% for flat owners in a residential block), on a maximum of €5,000. Town halls may also reduce your IBI property tax and the building works tax.

This guide walks you through the key facts about installing solar panels in Spain: system types, batteries, the legal rules, costs, tax relief, maintenance, and what happens when you eventually sell the property.

How do solar panels work?

Solar panels use photovoltaic (PV) cells to absorb sunlight and convert it into direct current (DC). An inverter then transforms this DC electricity into alternating current (AC), which powers your home’s appliances and devices. Surplus energy can either be fed back into the grid for compensation or stored in a battery if your system includes one.

The efficiency of your system depends on the quality of the panels, their positioning, roof angle, and how much sunlight your area receives throughout the year.

Why use solar panels?

Solar power allows you to reduce dependency on your electricity supplier, lower your energy bills, and reduce your carbon footprint. Many homeowners see it not only as an ecological investment but as a shield against swings in electricity prices. Spain reached 8.8 GW of installed solar self-consumption in 2025, according to provisional figures published by the Ministry for the Ecological Transition in May 2026.

Solar panels on the roof of a white house with a hillside behind

What are the types of solar panel systems?

There are three main installation options in Spain:

  • On-grid (grid-tied): The most common system. You stay connected to the electricity grid, use solar energy during daylight, and draw power from the grid at night. Excess power is sent to the grid and its value is taken off your bill through “simplified compensation” (explained below). This is not net metering: you are not credited kilowatt for kilowatt.
  • Off-grid: These setups function completely independently of the public grid. You'll need a battery storage system to store excess energy for nighttime or cloudy-day use. Suited to rural or remote homes, but more expensive upfront. Stand-alone systems fall outside the national self-consumption rules (Royal Decree 244/2019) and are authorised under each region’s own procedure.
  • Hybrid systems: A combination of on-grid and battery storage. You can store excess energy and still access the grid if necessary. These systems provide greater energy independence while still qualifying for grid compensation.

In law, a grid-connected system is registered in one of two ways under Royal Decree 244/2019. “Without surplus” means a device stops any electricity leaving your home. “With surplus” means the excess goes to the grid, and systems of up to 100 kW can choose simplified compensation. Either kind can be individual (one home) or collective (several homes sharing one installation).

Solar batteries in Spain: how they work and what the rules say

A battery is optional. You do not need one to register under any of the legal types, but you may add one if you wish. Its job is to store the solar electricity your home does not use at that moment, so you can use it in the evening instead of buying from the grid. Only when the battery is full does the excess go to the grid for compensation.

  • The rule: Royal Decree 244/2019 (Article 5.7) requires the battery to share the metering equipment and protections of the solar installation. In practice your installer fits and legalises both together.
  • Why people add one: surplus sent to the grid can only reduce the energy part of your bill and never below zero, so anything above that is given away. A battery lets you keep that electricity for yourself.
  • What it costs: there is no official price. In IDAE’s worked home example of June 2021, a 5.5 kWh battery cost €6,400 before VAT, close to the €7,200 paid for the panels. Ask for the battery to be priced on its own line, with its capacity in kWh and its warranty.
  • Tax relief: the income tax deduction for systems installed in 2026 expressly covers storage fitted as part of the system (see the section on grants and tax relief below). The law does not spell out whether a battery added later to existing panels qualifies, so ask a tax adviser before you rely on it.
  • Grants: the national programme that paid up to €490 per kWh of home battery closed to new applications on 31 December 2023.

A government decree to update the rules on self-consumption and home storage has been in draft since October 2025. When this guide was checked in November 2026 it had not been published, so Royal Decree 244/2019, last amended in March 2026, is still the rulebook.

Why is Spain the ideal location for solar energy?

Spain has some of the highest solar irradiation levels in Europe, particularly in the south and east. Even in the winter months, most regions receive enough sunlight to generate significant amounts of electricity. This makes solar a viable year-round option. With grid electricity prices fluctuating and more people seeking eco-responsible solutions, solar panels have become one of the smartest long-term investments for homeowners.

Is there a solar tax in Spain?

No. The so-called “sun tax” (impuesto al sol) was abolished in October 2018 by Royal Decree-law 15/2018, which recognised the right to use your own electricity free of charges. The detailed rules followed in April 2019 in Royal Decree 244/2019, which is still the main rulebook.

Homeowners who send excess energy to the grid can use simplified compensation (compensación simplificada). Here is how it works:

  • You sign a compensation contract through your electricity supplier. It is needed even though you are both the producer and the consumer.
  • Each month the supplier values your surplus and takes it off the energy part of your bill. On the regulated tariff (PVPC) the value follows the hourly market price. On a free-market contract it is the price you agree with your supplier, so compare offers.
  • The discount can never be more than the cost of the energy you bought that month. It does not reduce the fixed charges and you are never paid money.
  • Compensation starts once the installation is legalised with your region and registered by the grid company. It is not backdated.

The law also allows collective self-consumption, so a community of neighbours or an apartment building can share one installation. The panels do not have to be on your own roof. Since 22 March 2026, solar panels of up to 5 MW connected through the grid can supply homes within 5,000 metres (it was 2,000 metres before). For other shared installations the limit is 500 metres.

Private cover in Spain

See a doctor or specialist privately instead of waiting your turn. Sanitas plans from €22,10 a month.

Get a price

How much do solar panels cost in Spain?

No public body publishes a price list for home solar installations, so any “average price” you read is an estimate. What you pay is the installer’s quote, and it depends on:

  • Size: the power of the panels in kWp (kilowatts peak). More panels cost more in total.
  • Battery: whether you add one and its capacity in kWh. In the IDAE example below it cost almost as much as the panels.
  • Your roof: flat or sloping, tile or sheet, how easy it is to reach, and whether scaffolding is needed.
  • Equipment: the type of inverter and the monitoring system.
  • Paperwork: the electrical certificate, registration, and the town hall’s fees and building works tax (ICIO).
  • VAT: the general rate of 21%.

The one worked example from a public body is in a study by IDAE, the state energy agency, dated June 2021. A home with electric heating and hot water paid €7,200 for the solar installation and €6,400 for a 5.5 kWh battery before VAT: €13,600 in total, or €16,500 with VAT. It is one real installation at 2021 prices, so use it only as a rough guide.

On VAT, the reduced rate of 10% for renovation work in homes only applies when the materials supplied by the firm doing the work come to no more than 40% of the bill. With solar panels the equipment is usually a large part of the cost, so expect 21% and ask the installer to show the rate on the quote.

Ask at least three installers for a written quote showing the total with VAT, the kWp of panels, the kWh of any battery, the warranties, and whether all the paperwork is included.

How many panels do I need?

The number of panels depends on how much electricity you use, when you use it, and how much unshaded roof you have. A serious installer will ask for your last 12 months of electricity bills, which show your yearly use in kWh, and will size the system from them.

Bigger is not always better. Because surplus sent to the grid can only reduce the energy part of your bill, a system far larger than your own use gives part of its output away. A home that uses most of its power in the evening may gain more from adding a battery than from adding panels.

Also check our guide to saving money on electricity in Spain.

Do you need planning permission?

Usually not a full building licence. According to IDAE, practically every region has simplified the process, and in most cases a prior notice or responsible declaration (comunicación previa or declaración responsable) lodged at the town hall replaces the building licence. It is still a municipal matter: each town hall sets its own conditions and fees in its bye-laws and can ask for extra documents, so check before work starts.

If your property is part of a community of owners (comunidad de propietarios), the Horizontal Property Law applies. Installing shared or private renewable energy systems can be approved, at the request of any owner, by one third of the owners who together hold one third of the ownership shares (Article 17.1). Owners who did not vote in favour cannot be charged for the installation or its upkeep. Always check with your local town hall.

What permits and certificates are needed from the installer?

Your installer should handle the following for a grid-connected home system:

  • A boletín eléctrico, officially the Certificado de Instalación Eléctrica (CIE), lodged with your region’s industry or energy department. You also need it to claim the income tax deduction.
  • The technical design document required by the low-voltage electrical regulations (a design report or a full project, depending on the installation).
  • The self-consumption code (CAU), which the installer requests from the grid company for your area.
  • Registration in the Registro de Autoconsumo (self-consumption registry). For low-voltage systems of up to 100 kW the region does this itself from the installer’s paperwork, so you do not apply separately.

Systems with surplus of up to 15 kW on urban land do not need an access and connection permit from the grid company. To receive compensation for excess energy you then sign the compensation contract through your electricity supplier.

How long do solar panels last and what maintenance is needed?

Solar panels have no moving parts and are built to work for decades, but no official body sets a lifespan. What protects you is the paperwork: ask for the manufacturer’s product warranty and performance warranty for the panels, and the separate warranties for the inverter and any battery, in writing before you sign.

Maintenance includes:

  • Cleaning the panels when dust builds up, following the manufacturer’s instructions (more often in dry, dusty areas)
  • Checking the inverter and the monitoring system regularly, so a fault is spotted quickly
  • Occasional inspection of mounts and cables

IDAE also recommends insuring the installation, either with its own policy or by adding it to your home insurance, to cover both damage and any liability to other people.

Man cleaning solar panels with a long-handled mop

How much can I save?

There is no official figure, because the saving depends on three things: how much of your solar electricity you use yourself at the moment it is produced, the price you pay for grid electricity, and the price your supplier gives you for surplus.

In IDAE’s worked example of June 2021, a home that used 7,000 kWh a year cut the electricity it bought from the grid to about 1,870 kWh after fitting panels and a 5.5 kWh battery. Its yearly bill fell from about €1,800 to about €600.

You will not reach a bill of zero. The fixed part of the bill stays, and surplus compensation cannot reduce it.

How long until the system pays for itself?

It depends on the price you pay, how much of the electricity you use yourself, and electricity prices over the years, so be wary of any promise of a fixed number of years.

  • In IDAE’s worked example of June 2021 (panels plus a 5.5 kWh battery, no grant), the payback was 11.3 years before VAT and 13.7 years with VAT.
  • A system without a battery costs less to buy, and tax relief or a town hall discount shortens the wait.

Ask each installer to show how they worked out the payback: the yearly production in kWh, the share you will use yourself, and the electricity price they assumed.

Are there still grants or tax relief for solar panels?

The national grants under Royal Decree 477/2021, paid from European recovery funds through the regions, closed to new applications on 31 December 2023. No national grant for home solar panels is open now. What is available is tax relief:

  • Income tax deduction for solar systems: if you pay Spanish income tax (IRPF) as a resident, you can deduct 10% of what you pay between 1 January and 31 December 2026 for a renewable self-consumption system, batteries included, on a property you own. Owners of homes in a mainly residential building where the system is installed deduct 20%. The most that counts is €5,000 a year, so the deduction is worth up to €500, or up to €1,000 at 20%.
  • The conditions: the installation must be finished in 2026 and have its electrical certificate (CIE). You must pay by card, bank transfer, named cheque or payment into a bank account, never in cash. Any subsidy is taken off first, and systems used for a business do not count. You claim it in your income tax return for 2026, which is filed in 2027.
  • Energy-efficiency deductions: the older income tax deductions of 20%, 40% and 60% for works that cut a home’s energy use run to 31 December 2026 for individual homes and to 31 December 2027 for whole residential buildings. They depend on energy certificates issued before and after the works, and you cannot claim them and the solar deduction for the same installation. Our article on home energy tax breaks covers them.
  • Town hall discounts: the law lets each town hall reduce IBI property tax by up to 50% for homes with solar systems, and the building works tax (ICIO) by up to 95%. These are options, not rights: they apply only if your town hall has put them in its tax bye-laws, with its own percentage, number of years and conditions.

The income tax deduction for solar systems was created by Royal Decree-law 7/2026 for installations in 2026 only. When this guide was checked on 14 November 2026, no extension into 2027 had been published, so if you want to use it, the system must be finished and paid for by 31 December 2026.

Check IDAE’s grant portal and your regional energy agency for any new calls.

What happens if you sell your home with solar panels?

Having solar installed can make your property more attractive to buyers who want lower running costs. In most cases the solar system passes to the new owner with the house. Make sure you:

  • Provide the buyer with the system documentation, the electrical certificate and the warranties
  • Hand over access to the monitoring system
  • Tell the buyer that the electricity contract, and the surplus compensation contract with it, must be put in their name
  • Notify the regional energy registry if required

If your system is under financing or a lease, read the contract before you agree a sale and settle with the finance company what happens to it.

More in Buying and owning property 13 guides and 3 articles

See all 16

Back to top

Read next

Share this

Reviewed by Sean Guy, authorised Sanitas agent (agent code 22395) and DGSFP-registered insurance mediator (C0320X5769518Z), Marbella.

Written by the HealthPlan Spain team: English-speaking Sanitas health insurance specialists, helping expats in Spain get the right cover since 2011. Authorised and regulated by the DGSFP.

Get covered in Spain

Compare Sanitas plans and get an instant price from €22,10 a month, with our English-speaking team.