Spanish income tax forms with calculator and coins on a table

Subsidies 6 min read

IRPF deduction for solar panels in 2026: the honest guide

How the 20-60% IRPF deduction for solar panels really works. EEC requirements, the 40% trap, mistakes that void the deduction, 2026 deadline.

Translated from the verified Spanish article. Indicative figures, requires human review before publishing as fact. Always consult your tax advisor.

Yes, you can deduct up to 60% of your solar installation on your 2026 income tax return. But it’s not automatic. You need to meet specific conditions that many sites simplify or simply omit. Here we explain the full truth, the real requirements, and the mistakes that can void your deduction.

The 4 IRPF deductions available in 2026

Royal Decree-Law 7/2026 has extended the three existing energy-efficiency deductions (DA 50, 51, 52) and created a new one specific to self-consumption (DA 62). Indicative information — paperwork is the owner’s responsibility.

Deduction % Condition Max base Deadline
DA 50 (demand)20%Reduce ≥7% heating/cooling demand€5,000/yr31 Dec 2026
DA 51 (primary energy)40%Reduce ≥30% non-renewable primary energy€7,500/yr31 Dec 2027
DA 52 (rehabilitation)60%30% reduction or class A/B€5,000/yr (cum. €15,000)31 Dec 2027
DA 62 NEW (self-consumption)10% indiv / 20% commElectrical Installation Certificate€5,000/yr31 Dec 2026
Source: RD-L 7/2026 (BOE 21/03/2026). DA 50/51/52 are mutually exclusive — only one can be applied. Compatibility with DA 62 is not officially confirmed.

The truth about each deduction

For 20% (DA 50)

You need to prove your installation reduces at least 7% of heating and cooling demand. This is measured by comparing two Energy Efficiency Certificates (EEC): one before the works and one after. It’s the easiest to reach if your home has some room for improvement.

For 40% (DA 51) — the most desired

You need to prove a 30% reduction in non-renewable primary energy consumption. This is the highest bar and the one that creates most confusion among installers and clients.

For 60% (DA 52)

Reserved for energy-rehabilitation works on whole buildings (homeowners’ associations). Requires reaching energy class A or B, or reducing consumption by at least 30%. Max base €5,000 yearly up to a cumulative €15,000 total. Doesn’t usually apply to individual installations.

For the new DA 62 (10-20%)

This is more accessible. It only requires the Electrical Installation Certificate (CIE) — the “boletín” your authorised installer issues at the end of the works. No EEC required.

Installation type Percentage Max base Max deduction
Individual home10%€5,000/yr€500
Residential building (community)20%€5,000/yr€1,000
Batteries are explicitly included. Subsidies received are subtracted from the base before applying the percentage.

The Energy Efficiency Certificate (EEC)

The EEC is mandatory for DA 50, 51 and 52 deductions. It is NOT the same as the electrical certificate (CIE).

Aspect Detail
Who issues itArchitect, technical architect or certified engineer
Cost€80–250 per home (free market)
Validity10 years (RD 390/2021)
You need TWOOne BEFORE the installation + one AFTER
RegistrationMust be filed with the Junta de Andalucía's Department
When to request the 'before' EECBEFORE the first invoice of the works
When to request the 'after' EECBefore 1 January of the year following the works
Source: RD 390/2021 (Energy Certification)

The EEC framework is established by RD 390/2021 (BOE).

5 common mistakes that void the deduction

  1. Not requesting the “before” EEC in time — must be dated before the first invoice of the works.
  2. Paying in cash — payments MUST be by bank transfer or card. Tax Agency does not accept cash.
  3. Installing on a second home — DA 50 and 51 deductions are only for the taxpayer’s habitual residence.
  4. Not keeping itemised invoices — if Tax Agency audits, you need every itemised invoice (materials, labour, taxes).
  5. Assuming the post-EEC is issued automatically — it’s a separate task you must commission after the works.

Practical example: how much do I really recover?

5 kWp installation in habitual residence, total cost €6,500 VAT included, taxpayer with sufficient IRPF gross liability to absorb the deduction. Indicative calculation, depends on actual tax situation.

Scenario % Deduction Applicable base You recover
Only DA 62 (the easiest)10%€5,000€500
DA 50 (if you improve ≥7% demand)20%€5,000€1,000
DA 51 (if you improve ≥30% primary energy)40%€6,500€2,600
DA 51 with extra upgrade (insulation)40%€7,500 (max)€3,000
The deduction is subtracted directly from gross IRPF liability, not from taxable base. If your gross liability is less than the deduction, the surplus is lost (it does not roll over to future years).

Max recoverable with DA 51

3,000

Fuente: Max base €7,500 × 40% · RD-L 7/2026

When is it declared?

  • Installations completed in 2026 → declared in the 2026 income tax return (filed April–June 2027)
  • You need the post-EEC issued before 1 January 2027
  • Keep all documentation: itemised invoices, EEC pre+post, CIE, bank payment receipts
  • Submit documentation alongside the return if Tax Agency requests it

Can non-residents claim?

If you’re an expat owner of a second home on the Costa del Sol and pay IRNR, see our pricing guide for solar in Málaga — there you have full access to IBI/ICIO bonuses. And if you’re a tax resident in another EU country, you may have equivalent deductions in your home country (consult a local tax advisor). For a complete view of all combinable subsidies, check the solar subsidies pillar for Andalucía, and to estimate your savings, try the solar savings calculator or read how much do solar panels cost in Málaga.

Preguntas frecuentes

Can the 40% (DA 51) be combined with the 10% (DA 62)?

There is NO official confirmation from the Tax Agency. DA 50/51/52 use the EEC, DA 62 uses the CIE — different documents. They could be compatible, but until official confirmation do NOT assume so. Consult your tax advisor.

What happens if I request the EEC after starting the installation?

You lose the right to the deduction. The 'before' EEC must be dated before the first invoice. This is mistake #1 that voids the deduction. Request the EEC BEFORE signing any installation contract.

Can I apply the deduction on a second home?

NO for DA 50/51 (require habitual residence). DA 62 self-consumption isn't designed for second homes either. Non-tax-residents are completely excluded from all IRPF deductions.

When is the deduction applied?

On the income tax return for the year you finished the installation. Installations completed in 2026 are declared in the 2026 return (April-June 2027). You need the post EEC issued before 1 January 2027.

What is the deadline for these deductions?

DA 50 and DA 62: until 31 December 2026. DA 51 and DA 52: until 31 December 2027. If RD-L 7/2026 is not extended again, these deductions disappear after.

━ End of article ━

Data verified against primary sources: PVGIS · BOE · BOJA · OMIE · Fundación Renovables

Last verification: 9 April 2026

Keep reading

Subsidies

Solar panel subsidies Málaga 2026 (IRPF + IBI + ICIO)

IRPF 40% + IBI by municipality + ICIO 95% Málaga 2026. Official BOE/Fundación Renovables data. Calculate real aids.

· 6 min read

Subsidies

IBI bonus for solar panels in Málaga: municipality by municipality

Verified IBI + ICIO table municipality by municipality in Málaga 2026. How to apply, documents, and which websites publish false data.

· 6 min read

Technology

April 2025 blackout: why many solar panels didn't work

Technical explanation of the 2025 Iberian blackout and why your on-grid inverter shuts down with the grid. Which equipment does work and how to evaluate yours.

· 8 min read