If you prefer to always view the website in English, please click here.
{{content.phone.text}}
{{content.phone.phoneText}}
{{content.form.text}}
The most common practice is to accept the draft version when submitting your tax return, without knowing that there is a mathematical formula, validated by the Tax Agency (Agencia Tributaria), that allows you to recover a portion of your electricity costs. This option, often forgotten out of fear of making administrative errors, can mean savings of hundreds of euros at the end of the financial year.
Yes, it is possible to deduct electricity on your tax return, but this option is not universal for all citizens. For the Tax Agency to accept the electricity deduction for personal income tax (IRPF), the expense must be directly related to carrying out an economic activity. Therefore, while a private consumer cannot deduct their usual domestic bill, those profiles that use their home or a premises to generate income do have this tax benefit.
Spanish legislation establishes some limitations to prevent fraud. For example, utility expenses such as electricity can only be deducted when the taxpayer is self-employed and uses a part of their home for their professional activity. There are also tax benefits if energy efficiency improvement works have been carried out, such as the installation of solar panels, which allow deductions to be applied directly to the IRPF tax liability.
If you are an employee who simply consumes electricity at home without any declared economic activity, it is not possible to deduct the cost of electricity on your tax return. For the Tax Office (Hacienda), these types of expenses are personal or private consumption, which do not reduce the tax base. The fundamental point is 'allocation' (afectación), meaning it must be necessary to generate the income.
The legal basis is found in Article 30.2.5ª.b) of the IRPF Law. According to this rule, utilities that do not have the quality of being 'storable' (water, gas, electricity, telephony, and internet) are considered tax-deductible expenses for determining net profit under the direct estimation method. Following the 2018 reform, a more precise criterion was also established for situations in which the primary residence is partially used for economic activity, which helped to eliminate the lack of clarity that existed previously.
To know how to deduct utility expenses, we must first identify which group of taxpayers you belong to, as the requirements vary considerably.
If you are an independent professional and have notified the Tax Office that you use a part of your primary residence for your workshop or office, you can apply the primary residence utilities deduction. As this is the most common scenario, it is essential that this allocation is real and has been previously communicated using the relevant tax registration forms.
The situation is different for employees who work from home for a company. As a general rule, utility expenses are not deductible on their personal IRPF return, as it is assumed that the company should ideally cover the expenses or provide the means. However, if the worker decides to register as self-employed to carry out complementary activities from home, they could access the deduction through that professional route.
If you are a homeowner, rent out rooms, and the contract states that the owner is responsible for the utilities, the electricity expense can be deducted as a necessary expense to obtain the property income. In this case, the expense is deducted to calculate the net rental profit, which will subsequently be declared on the tax return.
Calculating what percentage of electricity can be deducted for home working or for exercising a professional activity is the part where the most mistakes are made, which usually leads to inspections by the Tax Office.
The Tax Agency establishes a very specific calculation method. Apply 30% to the proportion of the home's total square metres that are used for professional activity.
A practical example to understand it better: if your house is 100 m² and a 20 m² room is used for work – that is, 20% of the surface area – you cannot deduct 20% of the bill. You must calculate 30% of that 20%. Thus, the final result would be a 6% deduction on each electricity bill.
The regulations allow for the possibility of applying a percentage higher than 30% if the taxpayer can reliably prove that professional consumption is higher. However, this is usually difficult to prove if there is no separate meter for the workspace. On the other hand, if the activity is carried out in commercial premises dedicated exclusively to the business, the electricity expense for the self-employed is fully deductible.
Only those expenses that are properly documented and whose invoice is issued in the name of the person carrying out the activity are admissible. Furthermore, energy efficiency deductions, such as the installation of solar panels, cannot be applied to the part of the home already allocated to professional activity. This is done in this way to prevent the same element from receiving a tax benefit twice.
Follow these three steps based on the Tax Agency's example to avoid penalties and carry out the calculation professionally:
Measure the square metres of the space you use solely for your work. Divide that figure by the total square metres of the home to obtain the percentage. Example: 20 m² (office) / 100 m² (total) = 20% allocation.
Multiply the allocation percentage obtained by a 0.30 factor (which represents the 30% set by law). Example: 20% x 0.3 = 6% final deductible percentage.
Calculate that percentage on the sum of all electricity bills for the year, including taxes. Example: If the annual electricity expense is €1,200, you will be able to deduct €72 (i.e., 6% of €1,200).
The Tax Office can request proof up to four years after submitting the return. It is essential to have the appropriate documents.
It must be active and ideally in the name of the self-employed person.
They must include the VAT breakdown, all the tax details of the issuer and the recipient, and the consumption period.
A document proving that the property is the primary residence.
A technical drawing or cadastral plan identifying the workspace to help justify the applied percentage.
This is the form used to notify the Tax Agency of your incorporation into the registry of business owners, as well as the percentage of the home's surface area you will allocate to carrying out the professional activity.
The most serious mistake is trying to deduct 100% of the electricity bill by arguing that electricity is essential for work. The Tax Agency will systematically reject any deduction that does not follow the rule of 30% of the allocated space, unless there are separate meters that allow a different consumption to be justified.
Another frequent error is not having updated Form 036 or 037. If your census registration does not state that you work from home, the Tax Office will consider 100% of the electricity expense to be private and will deny the deduction, potentially imposing penalties for declaring ineligible expenses. It is also often overlooked that the VAT on these invoices must be deducted proportionally, following a recent change in criteria by the Directorate General of Taxes, which aligns with the position of the Central Economic-Administrative Tribunal (TEAC).
If Endesa is your energy company, the process of gathering the necessary information for your tax return is very easy thanks to our digital platforms.
From the Customer Area or the Endesa Clientes App, you can access all your bills. It is essential to download the bills in PDF format, as they contain all the necessary tax data that does not appear on a bank statement.
Endesa's platform offers the ability to view graphs showing your monthly consumption. This is useful not only for expense control but also for checking that there are no unusual peaks that could be questioned by a tax advisor before incorporating them into the tax return.
Tools like Endesa's tariff comparison tool and capacity calculators will allow you to better understand your consumption. Furthermore, if you are considering making energy efficiency improvements, such as installing solar panels, you can use our tools to estimate the necessary investment and the potential additional 60% deduction in IRPF that these types of renovations currently offer.
Would you like us to analyse whether your current Endesa tariff is the one that best suits your profile as a self-employed person in order to optimise and increase your real savings?
Electricity expenses can be deducted if they are related to an economic activity or to energy efficiency improvements in the property. In general terms, the following are included:
There are specific requirements in each case, so it’s important to check how to correctly apply each deduction.
If you’re self-employed and your professional activity requires electricity consumption, you can deduct part of your bill on your income tax return, as long as certain criteria are met:
As we mentioned earlier, the Tax Agency allows a portion of electricity supply expenses to be deducted if they are related to a professional activity:
If you’ve carried out improvements to reduce your home’s energy consumption, you may also be eligible for certain income tax deductions:
Installation of solar panels
Investment in photovoltaic energy is deductible, as we explain in the following content: IRPF tax deductions for installing solar panels in 2025.
Improvements in insulation
Replacing windows with high-efficiency models, installing insulating doors, and applying thermal cladding—such as ventilated façades, interior insulation, or thermal paints, among other solutions—to reduce energy demand and improve the efficiency of the home or workspace.
Energy certification
One of the key requirements is to have an energy efficiency certificate, both before and after the construction work. This document certifies the improvement in the home's energy consumption following the intervention. It also proves that the renovation has had a positive impact on reducing energy consumption.
The certificate must be issued by an authorised technician before 31 December 2025, and it must reflect the savings achieved. Moreover, the improvement must meet the minimum thresholds required for the deduction to apply.
The deduction amounts to 60%, with a maximum annual deduction base of €5,000. Any amounts paid that exceed this annual limit may be deducted, under the same limit, over the following four years. However, the total deduction base may not exceed €15,000.
Please note that any construction work carried out in the part of the home used for business purposes does not qualify for this deduction.
Regulatory compliance
In order for the construction work to be considered deductible, it must comply with current energy efficiency regulations and fall within the legal framework established by the Spanish Government and the European Union.
This means that the materials and techniques used must adhere to sustainability and energy-saving standards. Moreover, the intervention must be properly registered.
In addition to income tax deductions, there are other grants and benefits available for energy efficiency improvements, both for individuals and businesses:
Grants for the installation of energy efficiency systems can be combined with tax deductions; however, it is important to note that any aid received must be subtracted from the total amount when calculating the deduction in the income tax.
Some of the main grants available include:
Businesses can deduct investments aimed at reducing electricity consumption, provided they meet the requirements set out in current regulations.
Deductible investments include:
To access these benefits, we recommend checking the available aid programmes through the Tax Agency and the Spanish Government's Institute for the Diversification and Saving of Energy (IDAE), as the conditions may vary depending on the region and the type of investment.
To claim the electricity expense deduction on your income tax return, you must follow a series of steps to ensure that the Tax Agency accepts the tax benefit without any issues:
To optimise your deductions and avoid errors, it’s important to follow certain best practices.
You don't need to adapt to Endesa's tariffs because they adapt to you. If you go to our catalogue you can compare the different tariffs for yourself. Or if you prefer, you can answer a few questions and we will take care of comparing all the different electricity and gas tariffs and then make a customised recommendation.
Spend a minute to find the product which best adapts to you:
Spend a minute to find the product which best adapts to you:
{{content.phone.text}}
{{content.phone.phoneText}}
{{content.form.text}}