If you prefer to always view the website in English, please click here.

{{content.phone.title}}

{{content.phone.text}}

{{content.phone.phoneText}}

{{content.form.title}}

{{content.form.text}}

{{content.form.errors.server}}

{{content.form.success.title}}

{{content.form.success.message}} {{model.phone}}

{{content.cta.title}}

{{content.cta.text}}

{{content.app.title}}

{{content.app.text}}

How to deduct electricity expenses on your tax return? A practical and updated guide

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.

Can electricity be deducted on your tax return?

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.

Yes, but only in certain cases

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.

 It is not deductible for private individuals without economic activity

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.

What the IRPF regulations say about utility costs

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.

 

In which cases can you deduct electricity on your tax return? 

To know how to deduct utility expenses, we must first identify which group of taxpayers you belong to, as the requirements vary considerably.

Self-employed people who work from home

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. 

Employed remote workers

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. 

Renting or subletting rooms

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. 

 

What percentage of the electricity bill can you deduct? 

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. 

General rule for the self-employed since 2018 

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. 

Cases in which a different percentage can be applied

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.  

What CANNOT be deducted

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. 

 

How to calculate exactly how much you can deduct

Follow these three steps based on the Tax Agency's example to avoid penalties and carry out the calculation professionally: 

Step 1: Determine the floor space allocated to the business activity 

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. 

Step 2: Apply the 30% factor 

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. 

Step 3: Apply the percentage to each electricity bill 

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). 

 

What documentation do you need to justify the deduction? 

The Tax Office can request proof up to four years after submitting the return. It is essential to have the appropriate documents.  

Supply contract.

It must be active and ideally in the name of the self-employed person.  

Full invoices (not receipts). 

They must include the VAT breakdown, all the tax details of the issuer and the recipient, and the consumption period. 

Proof of primary residence.  

A document proving that the property is the primary residence. 

Floor plan or sketch showing metres dedicated to the activity. 

A technical drawing or cadastral plan identifying the workspace to help justify the applied percentage. 

Form 036/037 with declared activity.  

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.

 

Common mistakes that can cause problems with the Tax Office

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). 

 

Electricity deduction if you are an Endesa customer

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. 

How to download your electricity bills 

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. 

How to view monthly consumption 

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. 

How to anticipate expenses to calculate the annual deduction 

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? 

 

What expenses are deductible?

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:

  • Electricity consumption for self-employed individuals: if you work from home or a commercial space, you can deduct a percentage of your electricity bill.
  • Investments in energy efficiency: such as installing solar panels, improving thermal insulation, and implementing systems that optimise energy consumption.
  • Electric expenses in rental properties: if the contract specifies that the landlord is responsible for covering utilities, these may be included as deductible expenses.

There are specific requirements in each case, so it’s important to check how to correctly apply each deduction.

 

Electricity deductions for self-employed individuals

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:

Requirements for deduction

  • An invoice in the name of the self-employed individual: the invoice must be issued in the professional's name and be related to their economic activity. If the home or commercial space is not registered as part of the business, the deduction may be declined.
  • Professional use: you must prove that the electricity consumption is essential to your professional activity. Before registering as a self-employed individual, you must inform the Tax Agency of the percentage of your home dedicated to your professional activity by submitting form 036 or 037.

 

Deductible expenses

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:

  • Deduction percentage: self-employed individuals working from home may deduct 30% of electricity expenses corresponding to the portion of the home used for work. For example, if your office takes up 20% of the total surface area, the deduction would apply to that percentage.
  • Workspaces: you may deduct the full expense for a commercial space if your business activity is entirely carried out on-site and the utility contracts are in your name as a self-employed individual.

 

Deductions for energy efficiency improvements

If you’ve carried out improvements to reduce your home’s energy consumption, you may also be eligible for certain income tax deductions:

Types of deductible construction works

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.

 

Eligibility requirements for the deductions

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.

 

Other deductions related to electricity

In addition to income tax deductions, there are other grants and benefits available for energy efficiency improvements, both for individuals and businesses:

Grants and subsidies

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:

  • Next Generation EU funds: aimed at energy rehabilitation of buildings and homes, with incentives for installing thermal renewable energy systems.
  • PREE 5000 programme: grants for improving energy efficiency in municipalities with fewer than 5,000 inhabitants.
  • Regional aid: each autonomous community may offer specific incentives for the installation of solar panels, thermal insulation, and energy management systems.

 

Energy efficiency deductions for businesses

Businesses can deduct investments aimed at reducing electricity consumption, provided they meet the requirements set out in current regulations.

Deductible investments include:

  • LED lightning: replacing traditional systems with LED technology to reduce energy use.
  • Automation and energy management: implementing smart systems to optimise electricity use in offices, factories, and retail spaces.
  • Installation of renewable energy systems: businesses that install solar panels or thermal systems can benefit from specific deductions and subsidies.

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.

 

Process for claiming deductions

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:

  1. Gather documentation: keep all electricity bills, supply contracts, and energy efficiency certificates if you have made energy improvements to your home or workplace. This documentation will be essential to justify the deduction.
  2. Complete the tax return form: enter any deductible expenses in the relevant section of the Spanish income tax return (IRPF), ensuring they meet the legal requirements. If you are self-employed, apply the relevant deduction percentage for the space allocated to your professional activity.
  3. Submit the return: complete the filing within the deadline established by the Tax Agency (before 30 June) to avoid potential penalties or the loss of the right to claim the deduction. If you have any questions, you can seek advice from a tax consultant or use the assistance available on the Tax Agency’s online platform.

 

Tips to maximise your tax benefits

To optimise your deductions and avoid errors, it’s important to follow certain best practices.

  • Keep a record of expenses: maintain a detailed log of any consumption related to your professional activity, including utility bills, energy efficiency investments, and any other potentially deductible expenses.
  • Seek advice from a tax consultant: a specialist can help you identify all available deductions, ensuring that you make the most of your tax benefits without making mistakes that could lead to a review or adjustment by the Tax Agency.

Comparison of Electricity and Gas Tariffs

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.

Do you want to see all our offers?

Spend a minute to find the product which best adapts to you:

{{firstStep.title}}

We are finding the right energy for you...

We are finding the right energy for you...

go back icon go back in navigation number 50 icon go to product Tempo Happy 50 Horas calendar icon go to product Tempo Happy Día companies icon go to the business segment gas icon go to gas product catalog rising sun icon go to Tempo Verde-Renewable Energy product home icon go to the household segment 24 hours icon go to One Luz product electricity icon go to Luz's product catalog electricity and gas icon go to the Luz + Gas product catalog moon icon go to product One night light monkey wrench icon go to breakdowns and repairs sun icon go to Tempo Solar product clock icon go to Tempo Happy products 2 hour clock icon go to Tempo Happy 2 Hours product 24 hours icon go to product One Luz number 50 icon go to product Tempo Happy 50 Hours Medium Voltage power line See product catalog with electricity consumption from € 36,000 to € 360,000 / year High Voltage power line See catalog of products with electricity consumption more than € 360,000 / year company icon go to the business segment calendar icon go to product Tempo Happy Day Property management firms icon go to the Property management firms DarkSite icon DarkSite icon light bulb icon See product catalog with electricity consumption less than € 6,000 / year electricity and gas icon go to the Electricity+ Gas Products catalog electricity icon go to the electrical products catalog email icon email contact fax icon fax contact Low Pressure gas icon see catalog of gas products with consumption of less than € 6,000 / year High Pressure gas icon see catalog of gas products with consumption from € 6,000 to € 240,000 / year Medium Pressure gas icon see catalog of gas products with consumption of more than € 240,000 / year gas icon go to gas product catalog Enel icon go to the enel website heater icon heater maintenance service heater maintenance icon go to maintenance service OKGas Heater home icon go to the household segment pressure cooker icon pressure cooker monkey wrench icon go to breakdowns and repairs Medium Voltage power line icon see catalog of electricity products with consumption from € 6,000 to € 36,000 / year moon icon go to product One Night Light sphere icon go to personal website phone icon telephone contact rising sun icon go to Tempo Verde-Renewable Energy product solar panel icon go to photovoltaic solar energy clock icon go to Tempo Happy products black handyman icon with thumb down selected the reaction "I don't like it" little hand icon with thumb down select the reaction "I don't like it" black hand icon with thumb up selected the "like" reaction little hand icon with thumb up select the "like" reaction
Añadir otro equipo eléctrico Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eliminar equipo eléctrico Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspiradora Lorem ipsum dolor sit amet, consectetur adipisicing elit. Horno Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lavadora Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lavavajillas Lorem ipsum dolor sit amet, consectetur adipisicing elit. Microondas Lorem ipsum dolor sit amet, consectetur adipisicing elit. Plancha Lorem ipsum dolor sit amet, consectetur adipisicing elit. Punto de recarga vehículo eléctrico Lorem ipsum dolor sit amet, consectetur adipisicing elit. Radiador eléctrico Lorem ipsum dolor sit amet, consectetur adipisicing elit. Secadora Lorem ipsum dolor sit amet, consectetur adipisicing elit. Split Aire Acondicionado Lorem ipsum dolor sit amet, consectetur adipisicing elit. Termo Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tostador Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vitrocerámica Lorem ipsum dolor sit amet, consectetur adipisicing elit. Power edit Lorem ipsum dolor sit amet, consectetur adipisicing elit. Map marker Lorem ipsum dolor sit amet, consectetur adipisicing elit.