IRPF deduction for photovoltaic self-consumption 2026: guide for freelancers

Many self‑employed people and small companies in Spain are considering photovoltaic panels: they reduce the electricity bill and can also give access to tax deductions. The frequent difficulty is that rules change often and the concrete conditions (percentage, limit, documentary requirements) vary by type of taxpayer and by autonomous community. In this article I explain, in clear language and with a practical example, how to calculate an IRPF deduction for investment in self‑consumption for the 2026 tax return and which steps to follow so you do not make avoidable mistakes.

I will not invent percentages or new rules: where appropriate I point to the current legislation and to the official sources you should consult.

What is the “deduction for self‑consumption” in practical terms?

Broadly speaking, a deduction for photovoltaic self‑consumption is a fiscal benefit that reduces the tax burden linked to the investment in a solar installation. In practice this means that part of the cost you incurred for the installation can be applied as a deduction on the IRPF return of a self‑employed person who uses the installation in their professional activity or in their home.

The specific conditions (which percentage applies, whether there is a maximum cap, whether the deduction is taken in a single year or spread over several years, compatibility with grants, etc.) depend on state and autonomous community rules. For official information consult the Agencia Tributaria and the competent regional authorities. Useful guides and resources:

  • Agencia Tributaria (information on deductions related to energy efficiency and works): https://sede.agenciatributaria.gob.es/Sede/vivienda-otros-inmuebles/deducciones-obras-mejora-eficiencia-energetica-viviendas/deduccion-obras-mejora-consumo-energia-renovable/base-porcentaje-deduccion.html
  • IDAE (technical guides and self‑consumption procedures): https://www.idae.es/publicaciones/guia-profesional-de-tramitacion-del-autoconsumo
  • BOE (legislation and royal decrees related to self‑consumption incentives): https://www.boe.es/buscar/act.php?id=BOE-A-2021-10824

If you need to check how your autonomous community regulates requirements and grants, consult the regional administration website (examples given in the Spanish version):

  • Comunitat Valenciana (example of regulations/authorisations): https://www.gva.es/es/inicio/procedimientos?id_proc=21988
  • Junta de Andalucía — Autoconsumo: https://www.juntadeandalucia.es/organismos/universidadindustriaenergiaeinnovacion/areas/energia/autoconsumo.html

Important note: there is no single national “rate” that applies uniformly to all self‑consumption deductions in 2026. The AEAT (Agencia Tributaria) regulates deductions linked to energy efficiency, and some autonomous communities add complementary deductions or specific requirements. Therefore, before filing your return, confirm your specific case with the AEAT and the relevant regional administration.

Requirements and documentation (what you must keep)

To justify the deduction to Hacienda it is advisable to gather and retain at least the following:

  • Original invoice for the installation (itemised: materials, labour, technical design if applicable).
  • Proof of payment (bank transfer, receipt, etc.).
  • Installer certificate or authorised document proving installed capacity and technical conditions.
  • Communication or registration in the regional or municipal installations registry, if applicable (check the regional website).
  • Resolutions or certificates of public grants received (if any).
  • Calculation of the professional use share versus private use (explained below).
  • Technical report or project if the rule requires it because of installed capacity.

Bear in mind: some requirements are regional or municipal; confirm what applies in your territory by consulting the guidance published by your autonomous community (see IDAE and the regional links above).

How to calculate the deduction: clear steps

Below is a step‑by‑step method you can apply with your own numbers. Where legal values are needed (percentages, caps, years of application) this article directs you to official sources instead of asserting a single figure.

1) Determine the eligible investment base

  • Baseinvestment = Totalinstallationcost – Publicgrants_received

Include in the total cost everything invoiced for the installation (materials, equipment, labour, project). Subtract grants or incentives you have received: frequently the deduction applies to the net amount you actually bore, but confirm the specific treatment with the AEAT and the regional rules.

2) Check the applicable deduction percentage

  • %deduction = percentage set by the rule applicable to your case (consult the AEAT and the autonomous community legislation)

There is not a single national “%deduction” that fits all cases: the Agencia Tributaria publishes rules for deductions related to energy efficiency and regional administrations can set complementary deductions.

3) Apportion by professional use (if applicable)

If the installation is used entirely for the professional activity (for example, a workshop that consumes all produced energy), 100% of the investment may be eligible. If it is shared between business use and domestic use, you must allocate the portion attributable to the activity.

Practical method to prorate:

  • Record a representative period (e.g. 3 months) of energy generated and energy consumed by the professional activity.
  • %professionaluse = kWhconsumedinactivity / kWhtotalgenerated

If you cannot measure kWh directly, you can use reasonable criteria (area dedicated to the activity, machine operating hours, etc.) and document the methodology.

4) Calculate the theoretical deduction

Basic formula:

  • Theoreticaldeduction = Baseinvestment × %deduction × %professional_use

Example form: Deduction = (Cost − Grant) × %deduction × %professional_use

5) Annual limits and application in the tax return

The treatment (annual cap, ability to apply the deduction over several years, whether it reduces IRPF liability in the year of execution or acts as a tax credit carried forward) depends on the rule applicable to the particular deduction. Check the AEAT and regional legislation to know:

  • whether there is an annual ceiling or a global limit,
  • in which tax years the deduction can be claimed,
  • whether the deduction is set against tax due in the year of execution or functions as a credit for later years.

Reference sources: the AEAT publishes guides and manuals on deductions and tax periods; also check the corresponding regional legislation.

Illustrative example (hypothetical)

This example is hypothetical and uses percentages illustratively; legal percentages must be checked in the cited sources.

Situation: Marta is self‑employed (a repair workshop) and installs a 6 kW photovoltaic system in her unit that costs EUR 7,500. She receives a municipal grant of EUR 1,500. She estimates, from measurements and typical consumption, that 60% of the energy generated is used for her professional activity.

Suppose (HYPOTHETICAL — not a legal figure) that the allowed deduction were 20%.

Calculation:

  • Base_investment = EUR 7,500 − EUR 1,500 = EUR 6,000
  • %deduction = 20% (HYPOTHETICAL — confirm with AEAT/regional rules)
  • %professional_use = 60% (0.6)

Theoretical_deduction = EUR 6,000 × 0.20 × 0.6 = EUR 720

Interpretation: in this example Marta could apply EUR 720 as a deduction on her IRPF provided the rule applicable to her case in 2026 allows that percentage, that base treatment and that temporal allocation. If the deduction cannot be consumed in a single year because of insufficient tax liability, you should check the compensation or carry‑forward rules (consult the AEAT and the regional legislation for exact treatment).

Practical checklist before filing

  • [ ] Itemised invoice for the installation
  • [ ] Proof of payment matching the invoice
  • [ ] Installer certificate or technical document proving the installation
  • [ ] Evidence of grants or aid received
  • [ ] Registration or communication to the regional/municipal body (if applicable)
  • [ ] Documented calculation of the % professional use (measurements or reasonable criteria)
  • [ ] Consult your tax advisor about accounting treatment (fixed assets, amortisation, etc.)

Common mistakes and practical recommendations

  • Failing to justify the % professional use: arbitrary allocations without support are often flagged in inspections.
  • Forgetting to subtract grants from the investment base: many deductions require a net base (check the applicable rule).
  • Overlooking mandatory communications or registrations in the autonomous community: these can condition the deduction’s validity.
  • Not coordinating with your tax advisor: the accounting treatment (recording as fixed assets, applying amortisation) affects the final outcome and must align with the deduction.

Practical tip: before you carry out an installation, do an energy and tax audit. At Momentum Logic AI we include the audit and technical architecture phase so you know from day one which part of the investment will be fiscally deductible and how to integrate it in accounts and business processes.

How Momentum Logic AI supports the process

Our Momentum Process — audit, architecture, local deployment, integration and optimisation — is designed so the installation not only performs well technically but that its documentation and monitoring also make it easier to apply fiscal benefits:

  • Audit: we measure consumption and propose the right capacity to maximise self‑consumption.
  • Architecture: we design the system with documentary traceability and billing in mind.
  • Local deployment and integration: we coordinate installers and monitoring tools to record kWh and justify the % professional use.
  • Optimisation: we help ensure the installation operates in ways that improve fiscal and operational returns.

If you wish, we can start with a Free Assessment to review your specific case and prepare the necessary documentation (commercial proposal required for contracted services; no guaranteed tax outcome is promised).

Conclusion

Calculating the IRPF deduction for photovoltaic self‑consumption in 2026 essentially means applying the legal deduction to the net investment base and apportioning it for professional use. However, practical details (percentages, caps, allowed years, documentary requirements) depend on current legislation and your particular situation. Before you file, confirm the applicable percentages and limits for 2026 with the Agencia Tributaria or your tax adviser and keep all technical and administrative documentation.

This article was drafted with the support of artificial intelligence and reviewed by qualified Momentum Logic AI staff before publication.

Keep reading

NOX

¿Quieres que NOX audite este proceso en tu negocio?

Diagnóstico gratis de 15 min

Comentarios

Leave a Reply

Your email address will not be published. Required fields are marked *