1 Motivation

There is huge evidence and consensus that global emissions of greenhouse gases are causing global air temperatures to increase, resulting in climate change.Footnote 1 At a global level, the potential consequences include rising sea levels, increased frequency and intensity of floods and droughts, changes in biota and food productivity, and upstream trends in diseases.Footnote 2 Thus, climate change has posed a severe threat to the sustainable development of the human society, the economy, and the environment.

At the particular level of the European Union (EU28, hereafter), conforming to the European Environment Agency (2015), more than 80% of the total greenhouse gas emissions are encountered to be a consequence of energy production and energy consumption by the end-use sectors (agriculture, industry, commercial and public services, households, and transport).Footnote 3 These energy-related greenhouse gas emissions are mainly compounded by carbon dioxide (CO\(_{2}\)) emissions, an essential environmental pollutant that has greatly contributed to global climate change, as shown by Ozturk and Acaravci (2010).Footnote 4 Despite not being the world’s largest emitter of energy-related CO\(_{2}\), the EU28 contributes to the mentioned global emissions by 10%, which indicates that it has a non-insignificant role in the global warming trends.Footnote 5

Hence, while efforts to mitigate the adverse effects of climate change are partly focused on limiting the emissions of all greenhouse gases, particular attention is being also paid to energy production and consumption due to its crucial importance for the evolution of the energy-related CO\(_{2}\) emissions. There is a clear interrelationship between energy consumption, the share of low-carbon energy sources in such consumption, energy efficiency, and greenhouse gas emissions. Therefore, the energy and climate targets set by supranational bodies and national authorities approach all these elements. For instance, at an United Nations conference in August 2007, it was agreed that an emission reduction in the range of 25–40% with respect to 1990 levels is necessary to avoid the most catastrophic forecasts. More recently, “doubling the global rate of improvement in energy efficiency” or “increasing substantially the share of renewable energy in the global energy-mix” were set as key objectives by the United Nations (2015) in their “2030 Agenda for Sustainable Development”.

Turning again to the European sphere, together with the well-known targets established by the European Comission (2012-10-25, later modified in 2013) in its Europe 2020 Strategy or Horizon 2020 (H2020, hereafter), the European Union authorities have defined an even more ambitious climate scenario that is amongst their main priorities. For 2030, (1) greenhouse gas emissions must be reduced by 40% with respect to 1990 levels (20% for H2020), (2) primary energy use must experience a 32.5% reduction to be achieved by improving energy efficiency (20% for H2020), and (3) a share of 32% in the final energy-mix in favor of renewable energies must be reached (20% for H2020). Furthermore, the European Comission (2019-10-31) declared in a report to the European Parliament and the Council that the objective is to achieve climate neutrality by 2050, i.e., net-zero greenhouse gas emissions in 2050. This translates into a plan to decarbonize the European economy by 80–95% with respect to the emission levels of 1990, accompanying this with a strong reduction of energy consumption, which points out again the relevance of making progress toward energy efficiency.

Within those forming the EU28, Spain is another country that, due to its geographical location and socioeconomic characteristics, is also vulnerable to climate change, as shown by the Ministerio de Medio Ambiente (2005). Conjointly with the rest of the EU28 member states, Spain faces strong commitments derived from the ambitious European climate targets for 2020 and 2030. Each member state can set its own targets as long as they match those defined at European level. In this sense, according to the Ministerio de Turismo, Energía y Agenda Digital (2017) and the Ministerio de para la Transición Ecológica (2017), the targets fixed by the Spanish authorities would entail (1) achieving a 42% share of renewable energies in the final energy use for 2030 (20% for 2020),Footnote 6 (2) improving the country’s energy efficiency by 39.5% for 2030 (20% for 2020), and (3) reducing greenhouse gas emissions by 23% with respect to 1990 levels for 2030 (10% with respect to 2005 levels for 2020).Footnote 7

Aiming to comply with the targets set by the European Union as well as by the national authorities, both Spain and the EU28 as a whole adopted different policies and measures. An overview of these policy trends is recovered from the ODYSSEE database published by ODYSSEE-MURE (2020b). Some of these measures are (1) the promotion of renewable energy (including electricity from renewable sources), (2) the creation of the EU emissions trading scheme (a market for carbon dioxide allowances to ensure that emissions reductions can be made where it is most economically efficient), (3) the development of combined heat and power, (4) the improvement in the energy efficiency performance of buildings, (5) the stimulus to use alternative fuels in transport (in particular biofuels), (6) the reduction of the average CO\(_{2}\) emissions of new passenger cars, and (7) the taxation of certain energy products and electricity.Footnote 8

Following the implementation of these measures, mainly after the 2007 crisis, it can be noted that both the EU28 and Spain were progressively moving toward meeting the H2020 targets in recent years. This is shown in Fig. 1. Further, in Fig. 2 we observe that Spain has done a great effort in reducing emission levels since 2005. However, this positive evolution cannot compensate the huge increase of emissions occurred from 1995 to 2005, which still leaves Spain in 2017 with higher emission levels than those observed in 1995. On the contrary, the EU28 has experienced a long-term downward trend, but at a lower decreasing growth rate than the last years of the Spanish trend. Considering the year 2017, the last year of analysis in this study, we recognize how greenhouse gas emissions (in Panel A of Fig. 1) are the only magnitude that meets its European target H2020 both in Spain and in the EU28. The other two H2020 targets (the share of renewables in the final energy-mix and the use of primary energy) are not met, either in Spain or in the EU28 (in Panels B and C of Fig. 1, respectively). We can only notice how the reduction target for primary energy use was fulfilled in Spain during the years 2013 to 2015, but in the last two years the magnitude is again not complying with the H2020 target.

Fig. 1
figure 1

Compliance with H2020 Targets. Note: Levels above 100 indicate target compliance

Consequently, although the reduction of greenhouse gas emissions is on a positive trend that leads Spain (in 2017) to accomplish the European target H2020 for such magnitude, both the EU28 and Spain have to continue making efforts to fulfill the rest of the 2020 targets. Furthermore, Spain should be careful with the last developments of CO\(_{2}\) emissions, which experienced a slight increasing trend that could lead to a deviation form the target compliance. In addition, both regions must continue working vigorously in a direction that permits them to later satisfy the 2030 targets, which are even more ambitious than those for 2020, as we have seen above. Besides, according to some analyses published by the World Bank and ClimateWorks Foundation (2014), this line of work to control the emissions can offer opportunities for the economic performance of the country, generate new jobs, benefit agriculture, and boost the development of better technologies for the supply of energy.

Fig. 2
figure 2

Energy-related CO\(_{2}\) emissions. Note: This figure is depicted using the estimation approach presented in this document. The energy-related CO\(_{2}\) emissions shown are those associated to final energy consumption. This final energy consumption has been climate-adjusted in order to abstract from potential weather effects, which results in a magnitude that is comparable across regions

Obviously, one of the major areas to be addressed in order to effectively control emissions is the efficient use of energy. Improving energy efficiency seems very handy to offer a win-win situation, as it decreases energy costs, energy use, and at the same time, negative impacts related to such energy use, like CO\(_{2}\) emissions. Further, using less energy for a certain task gives better possibilities to use energy sources with a predictable price development, which in practice means domestic energy sources, especially in countries that heavily depend on energy imports, like Spain. These arguments clearly highlight the need to implement measures in this regard. However, not all the increase in energy efficiency is translated into energy savings.

Some energy equipment could experience an efficiency increase, but if this equipment is not utilized at its maximum rated capacity, sometimes the efficiency improvement is not translated into energy savings. Moreover, technological or efficiency improvements generate cost savings, but these savings could be devoted to new energy consumption and investment, which also requires more energy services, which could consequently increase energy-related emissions. Both pathways generate more activity and may reduce, and even eliminate, the environmentally positive effects of the improvements. This is the so-called rebound effect. Indeed, this effect may be large enough to exceed the maximum expected energy savings from technological or efficiency improvements. Hence, for a better understanding of the impacts of efficiency improvements on our process of energy-use reduction, rebound effects must be incorporated to our analyses. Therefore, care about these rebound effects needs to be taken by policy-makers when calculating the energy saving potential of different measures oriented to improve energy efficiency. Freire-González and Puig-Ventosa (2015) argue that for energy-efficiency-improving policies to be effective, they must be accompanied by other measures such as an effective communication and awareness of the citizens, regulatory instruments and/or an appropriate taxation. An effective combination of traditional efficiency measures with new policies oriented to tackle the rebound effect would maximize the effectiveness of the policy objective of reducing energy consumption. For Vivanco et al. (2016), it is crucial to establish economic instruments for the energy efficiency measures to be completely effective and deal with rebound effect problems. These authors suggest that economy-wide cap-and-trade systems as well as energy and carbon taxes, when designed appropriately, emerge as the most effective policies in setting a ceiling for emissions and addressing energy use across the economy. In addition, these rebound effects vary across end-use sectors. In this sense, Medina et al. (2016) intends to identify the Spanish economic sectors where investment from energy-efficiency-improving measures should be allocated in order to reach the targeted energy efficiency levels in the overall economic system.

Besides, only if these energy-efficiency-improving measures are always pursued alongside the decarbonization of the energy system, the carbon-reducing potential of such measures can be guaranteed, as suggested by Malpede and Verdolini (2016). However, these efforts to develop an adequate energy efficiency policy and to promote the use of a lower-carbon energy-mix should not damage the domestic competitiveness of the economy. The relationship between economic growth, energy consumption and CO\(_{2}\) emissions is an essential issue that we face in the 21st century, and it is of far-reaching concern to scholars worldwide. To investigate this matter, several methodologies have been traditionally applied. Zhang et al. (2018) list some of the main ones: the Kuznets curve theory, the Granger causality analysis and co-integration tests, the vector auto-regressive models used to analyze the long-term dynamics, and the decoupling models. The latter approach is followed by Fernández-González et al. (2014), who show that there is a usually a coupling process between energy consumption and economic growth in advanced economies. Therefore, in these economies is more difficult to reduce energy consumption and alternative efforts should be made in order to achieve the decarbonization of the economy, as suggested by Román-Collado and Colinet (2018).

Nevertheless, we must bear in mind that the above-mentioned measures to promote efficiency do not explain or influence by themselves alone the evolution of the energy-related CO\(_{2}\) emissions. There may be many potential factors underlying the progression observed both in Spain and in the EU28 and their convergence to the established targets, irrespective of the impact of the energy efficiency policies and measures, as suggested by Economidou and Román-Collado (2019). Some of these factors could be the economic activity level, the efficiency of the conversion sector, the demography, lifestyle changes, the weather, etc. For example, the 2007 crisis could have a profound impact on the industrial sectors and services which in turn could affect energy consumption and consequently energy-related CO\(_{2}\) emissions. Another example includes weather fluctuations, which could affect the heating and air cooling demand provoking that, in a particular warm year, energy consumption may simply drop due to lower heating demand in the residential and services sectors.

Therefore, in order to support the most appropriate energy policy decisions, an integrated analytical method to understand the driving forces behind the observed developments of energy-related CO\(_{2}\) emissions, energy consumption and energy efficiency (the three main energy and climate targets previously presented) is irremediably needed. It is precisely here where our work enhances the available related literature, since we develop a methodological framework to investigate the contributions of various influencing factors to the evolution of the energy-related CO\(_{2}\) emissions between 1995 and 2017 both in Spain and in the EU28. With our proposed method, in addition to many macro and efficiency influencing factors discussed before, we are able to capture the role that the primary energy consumption and the share of renewable sources in the energy-mix play in the developments of the energy-related CO\(_{2}\) emissions. This implies that all magnitudes for which the main energy and climate targets are defined and their interrelationships can be monitored within one comprehensive methodological framework. Our period of analysis, 1995–2017, is determined by the availability of data. We should mention that for the findings about the changes that occurred between 1995 and 2017 to be representative of what certainly happened, we must identify two clearly distinct sub-periods, as shown in Fig. 2. These sub-periods are delimited by the year 2007, since it marks the end of a economic expansion period and the beginning of a deep recession followed by a posterior recovery. In this way, we first analyze the 1995-2007 sub-period, and subsequently the 2007–2017 sub-period, both for the EU28 and for Spain. The results that we present give interesting information related to the drivers and inhibitors of the energy-related CO\(_{2}\) emissions in both the Spanish economy and the European economy as a whole. These results are useful not only for researchers, but also for private utility companies and policy-makers, as they can contribute to construct and implement the optimal saving and efficiency measures to achieve the mentioned climate and energy targets. In fact, this paper speaks directly to Spanish and European authorities in the field of energy and climate.

The remainder of the document is organized as follows. Section 2 sheds light on the relevance of our analysis by reviewing the existing literature. Section 3 presents the methodology and the databases utilized in our work. Section 4 reports the results. And finally, Sect. 5 concludes.

2 Conceptual and empirical framework

In this Section, we revise the existing literature and remark the contributions of our work. We first introduce the rationale behind our hybrid approach in Sect. 2.1. Second, we propose an allocation diagram scheme for assigning the responsibility of primary energy requirements and CO\(_{2}\) emissions to end-use sectors in Sect. 2.2. Third, we present the selected influencing factors to be analyzed in Sect. 2.3. Fourth, we discuss about the differences between energy intensity and energy efficiency metrics in Sect. 2.4. Fifth, we propose and describe a method to distinguish between technical and apparent end-use energy efficiency in Sect. 2.5. Finally, we overview the main contributions of this work in Sect. 2.6.

2.1 Hybrid approach mixing SDA and IDA

There are several methodologies to assess the developments of certain energy or environmental magnitudes like emissions. Among others, in a very enriching survey work by Wang et al. (2017), we find methods based on econometric models, system dynamics approaches, computable general equilibrium (CGE) models, and decomposition analyses. Our work focuses on the latter, and more precisely, on two different methods: the structural decomposition analysis (SDA, hereafter) and the index decomposition analysis (IDA, hereafter). In recent times, many researchers are using SDA and IDA techniques as tools for analyzing energy or environmental trends.

Both decomposition techniques have been compared in many survey papers, e.g., Su and Ang (2012), Hoekstra and van den Bergh (2003), and Wang et al. (2017). The comparison encounters that the IDA approach is more flexible in its formulation and has a relatively lower data requirement than the SDA approach. However, the IDA method only provides information about the direct effects, ignoring the indirect and final demand effects, as shown by Zeng et al. (2014). On the other hand, the SDA, a framework based on the development of input–output models/tables, provides a wider range of information regarding technical concerns, including final demand effects, and more detailed explanation of the structural factors, such as the Leontief effect (or technical effect), as argued by Cansino et al. (2016) and Xie (2014). Further, the SDA method can shape socioeconomic drivers from both production (or supply) and final demand (or end-use) perspectives. When it particularly comes to the IDA method, we find several decomposition techniques that are documented extensively in a survey paper by Ang and Zhang (2004). Among others, we find the Laspeyres decomposition method and the Divisia index decomposition method. The latter contains the logarithmic-mean Divisia index (LMDI, hereafter) and the arithmetic mean Divisia index (AMDI), both in the additive and multiplicative formulations (leading to redundant results). As suggested by Ang (2015), the logarithmic-mean Divisia index in its additive formulation is the most recommended IDA approach due to its theoretical foundation, robustness, adaptability, ease of use, and result interpretation. It provides a perfect decomposition (i.e., the results do not contain any residual term), permits the investigation of more than two factors, provides a simple and direct association between the additive and the multiplicative decomposition form, and is consistent-in-aggregation (i.e., the estimates of an effect at the subgroup level can be aggregated to give the corresponding effect at the group level).

Through these techniques, many research works attempt to identify quantitatively the contributions of many influencing factors to the evolution of some energy or environmental aspects. For example, an increasing proportion of the thermal power in the end-use sectors will increase the energy-related CO\(_{2}\) emissions, while increasing end-use energy efficiency will reduce them. These driving forces can be analyzed within this type of methodologies, which have been widely used in the literature. Focusing on the performance assessment, we can classify these research works into three different types. The first type deals with assessments over time in a specific country, i.e., single-country temporal analysis. This category accounts for most of the developed studies in the literature. The second type gathers studies that analyze the performance of more than one country. A temporal analysis like the one in the first type is here applied independently for several countries or regions in a way that the results can be compared between countries, i.e., multi-country temporal analysis. The third type of studies focuses on comparative analyses between countries using the data of a specific year, i.e., single-year spatial or cross-country analysis.

The first type of studies comprises the conventional IDA and SDA studies applied to one single country or region, where no further elaboration is required. When it particularly comes to applying SDA techniques for the Spanish case, we find different works. For instance, Butnar and Llop (2007) investigate the composition of greenhouse gas emissions in Spain in an input–output fashion, Cazcarro et al. (2013) use the same methodology to study the evolution of water consumption in Spain, Alcántara and Roca (1995) propose a similar framework to examine the energy-related CO\(_{2}\) emissions and their relationship with energy consumption, and, finally, Cansino et al. (2016) use a SDA approach to undercover the main drivers of changes in CO\(_{2}\) emissions in the Spanish economy. On the other hand, we can also find thousands of studies following different IDA approaches for a number of geographies in a single-country temporal fashion. More precisely, for the Spanish case, we encounter Cansino et al. (2012), who analyze the greenhouse gas emissions in the Spanish economy, and Cansino et al. (2015), who investigates the driving forces of Spain’s CO\(_{2}\) emissions. Finally, in a recent work that makes use of both SDA and IDA methods separately, Román-Collado and Colinet (2018) determine whether energy efficiency is a driver or an inhibitor of the energy consumption changes in Spain.

The second category of studies is a direct extension of the first one. A requirement of these works is that the same decomposition method and a consistent data format are used for every region analyzed so that the results obtained can be meaningful compared. There are several papers applied to very different geographies that use SDA and IDA methods to investigate such concerns in a multi-country temporal fashion. When it comes to the SDA approach, there are studies that establish a relationship between energy consumption in Spain and that of other countries of the European Union, like Alcántara and Duarte (2004). On the other hand, we can encounter many research works following different IDA approaches in a multi-country temporal way. Goh and Ang (2019) elaborates a survey gathering the main studies that implement the LMDI method in recent years worldwide. But more precisely, for the European and the Spanish case we find numerous papers applying the LMDI methodology. Examples of it are Economidou and Román-Collado (2019), who assess the progress toward energy and climate targets in the European Union, and Mendidulce et al. (2010), who compare of the evolution of energy intensity in Spain and in Europe. Our work will contribute to this second type of decomposition studies, since it assesses through SDA and IDA techniques the evolution of energy-related CO\(_{2}\) emissions in Spain and in the EU28 applying to each region the same temporal analysis separately. These studies, where our work is also framed, show the growing popularity of researches where the main focus is to compare the development or performance of a group of countries over time. However, one should note that the resulting comparisons are not direct because mathematically there are no direct linkages between the results of the countries compared.

The third type of studies, single-year spatial, is very different from the first two ones explained above. Using the data of a specific year, the spatial analysis conducted is static and the results obtained are valid for the year of analysis. Ang et al. (2015) review the literature of the spatial decomposition analysis, investigate the methodological issues, and propose a spatial decomposition analysis framework for multi-region comparisons. Some examples applying this type of spatial analysis for the European and Spanish spheres are Sun (2000), who analyzes the CO\(_{2}\) emission intensity for 15 European countries in 1995, and Bartoletto and del Mar Rubio-Varas (2008), who perform a spatial analysis of the CO\(_{2}\) emissions for Spain and Italy in years 1861 and 2000, respectively. However, with this third type of studies, changes in regional disparities over time cannot be traced analytically since the spatial analyses conducted are different for different years. To address this issue, Ang et al. (2016) develop an IDA procedure that integrates the key features of type 2 and type 3 studies, where both spatial differences between regions and temporal developments in individual regions are captured simultaneously, i.e., spatial–temporal index decomposition analysis (ST-IDA). This methodology essentially establishes formal linkages of the static spatial comparison results of a group of regions for each year over a specific time period. The consolidated results of this new empirical framework reveal each and every region’s performance over time as well as how it is compared to those of other regions at any point in time on an equal footing. However, this methodology has the disadvantage that the interpretation of its results is not as straightforward as in the second type of studies presented in this Subsection, which may lead to less clearly understandable conclusions.

When listing typical influencing factors analyzed through decomposition methods, population, income, economic structure, energy intensity and energy-mix are factors commonly encountered to be analyzed through IDA techniques. On the other hand, the SDA approach examines contributions of some technical influencing factors such as the efficiency of the energy conversion sector. Nevertheless, according to the deep literature review of decomposition methods applied to environmental concerns carried out by Ma et al. (2018), it is still difficult to find evaluations of all the previous factors within a single and comprehensive methodology that combines both SDA and IDA approaches. One of these examples is the mentioned work by Ma et al. (2018), who analyzes energy-related CO\(_{2}\) emissions in China using a hybrid approach that mixes an input–output model and some LMDI decompositions.Footnote 9 But, to the best of our knowledge, there is no work developing such a hybrid approach for Spain and the EU28. This is where our paper adds value and contributes to the literature, since we propose a method that takes into account jointly the effects that (1) technical aspects of the physical energy system (analyzed through energy input–output models) and (2) macro-level influencing factors traditionally employed (studied through IDA decomposition methods) have in the evolution of energy-related CO\(_{2}\) emissions in Spain and in the EU28. Thus, we refer to this hybrid integrated approach, which benefits from the advantages of both SDA and IDA techniques, as input–output logarithmic mean Divisia index (IO-LMDI, hereafter) decomposition method.

2.2 Responsibility of energy-related CO\(_{2}\) emissions

Key in this type of research work is to have a deep understanding of how the energy system works in order to distribute the responsibility of the primary energy requirements and the energy-related CO\(_{2}\) emissions. As an example of the energy flow in Spain and in the EU28, a graphical overview of the process is depicted in Figs. 13 and 14 of Appendix. In a national energy system, primary energy (mainly derived from domestic production and imports) is first processed, transported, and converted into numerous types of secondary energy. This conversion process generates many emissions, principally heat and electricity generation based on fossil fuels. The secondary energy is then distributed to the end-use sectors, which are also emission generators (e.g., fuel burning). This shows that both energy conversion and energy use by the end-use sectors greatly influence the emissions from the energy system, thus an analytical method like that here proposed by us is needed to study both sides of the energy system in a unified way. However, this kind of analyses requires a criteria definition to determine who have the responsibility of the CO\(_{2}\) emissions derived from the energy transformation process (e.g., electricity generation). After a search of the literature, we encounter two ways to allocate the responsibility of the primary energy requirements, and consequently the CO\(_{2}\) emissions: (1) considered as direct energy consumption/emissions of the conversion process or (2) considered as indirect consumption/emissions of the end-use sectors.

The first allocation criteria directly follows from the energy balances or the emission inventories, where the reported amount of energy consumption/emissions of each sector is just the direct quantity. This means that, for example, emissions from the transformation of primary fuels in thermal stations to deliver heat and electricity to the residential sector are reported under energy industries, whereas emissions from the burning of coal in a stove by a household would be reported as part of emissions from the residential sector. Nonetheless, we opt for the second allocation way since it seems to be the most appropriate to us, in as much as, for instance, the CO\(_{2}\) emitted from a coal fired power station is not assigned to the electricity sector, but rather distributed among those who use the electricity generated by such power plant. In this type of demand-side-oriented setup, the energy sector would be included directly (as end-use sector) and indirectly. On the one hand, the energy used by the conversion sector as input to produce final energy products would be considered as primary energy requirement whose responsibility would lie with the end-use sectors. On the other hand, the final energy consumed by the energy sector in the form of own-produced energy or energy purchased by the producers to operate their installations would not be distributed to the end-use sectors. This type of strategy permits a better understanding of the underpinning trends from an energy demand perspective by linking final energy consumption and CO\(_{2}\) emissions. This could be useful from a policy viewpoint, as for example, policies to improve the insulation of residential buildings could reduce both direct and indirect emissions.

Aiming to perform this class of approach, we build an energy input–output table using the observed energy flows of the system that will serve us to allocate the responsibility of primary energy requirements and energy-related CO\(_{2}\) emissions to the end-use economic sectors (including the energy branch as final-energy user), the different existing transport modes and the various energy end-uses of households and services. This strategy is based on the allocation diagrams for CO\(_{2}\) emissions developed by the European Environment Agency (2015), Alcántara and Roca (1995) and Ma et al. (2018), and allows us to fully identify the responsibility of CO\(_{2}\) emissions of various sectors in each stage of the energy system, which means that our analysis would depict a complete figure of the energy system as it incorporates all sectors of the economy.Footnote 10 In practice, in order to implement the mentioned strategy, we first propose two parameters: (2) the derived primary energy quantity conversion factor (\(K_{\mathrm{PEQ}}\)) and (2) the primary carbon dioxide emission factor (\(K_{C}\)) of each secondary energy.Footnote 11 Both are key technical influencing factors obtained from an structural energy input–output model. Second, we build a method using \(K_{\mathrm{PEQ}}\) and \(K_{C}\) to calculate the equilibrium data of energy and CO\(_{2}\) emissions for the whole physical process of energy use, i.e., we can trace the primary energy and the derived CO\(_{2}\) emissions along the different energy flows from production (or imports) to final use. Finally, we use this equilibrium data to allocate the responsibility of primary energy requirements and CO\(_{2}\) emissions among the end-use sectors.

2.3 Influencing factors entering the decomposition

In addition, making use of the mapping previously presented, we develop an improved LMDI decomposition method to depict the contributions of many influencing factors to the evolution of the energy-related CO\(_{2}\) emissions at the Spanish and the European level from 1995 to 2017. When selecting the influential factors to be analyzed, a common starting point is the Kaya identity. Kaya (1990), in his very influential work, applied the idea of an IPAT identity to identify the major drivers of environmental impact (I) and CO\(_{2}\) emissions: the amount of population (P), the affluence of that population (A), and the level of technology (T). Waggoner and Ausubel (2002) added a new term, consumption (C), to the identity and called the result ImPACT identity. Based on such body of literature, we propose to extend our defined expression for energy-related CO\(_{2}\) emissions to include the impact of not only the aforementioned traditional factors, but also many novel ones regarding technical and some other extra aspects. That is, we develop an augmented version of the Kaya identity. More precisely, the following factors are included in our proposed decomposition: (1) population; (2) income per capita level (in purchasing power parity form in order to make it comparable across regions); (3) economic structure and (4) its intra-sectoral composition; (5) some social and (6) living-standards factors; (7-8) final energy intensity; (9) different types of end-uses of energy; (10) weather; (11) energy-mix (to study the influence of the share of renewable energy sources, principally); (12) efficiency of the conversion sector; and (13) type of primary energy sources (high- or low-carbon) used to make final energy consumption available.

2.4 End-use energy intensity versus end-use energy efficiency

Out of all the aforementioned factors, which will be explained in detail in the rest of the document, the element related to energy intensity (the well-known energy consumption to monetary output quotient) deserves a special consideration. This ratio has been traditionally understood as a key driver of emission trends, as it was assumed to be a good indicator of changes in energy efficiency of the end-use sectors (when final energy consumption was used as a measure) and changes in energy efficiency of the transformation sector (when primary energy consumption was used as a measure). In our particular case, as explained previously, the methodology that we use enables us to clearly identify the aspects related to the efficiency of the energy transformation system through the primary energy quantity conversion factor (\(K_{\mathrm{PEQ}}\)). It means that, in our setup, the energy efficiency of the conversion sector is measured by means of the SDA method through changes in the Leontief inverse matrix. Therefore, once the energy efficiency of the transformation sector is addressed, one might think that by including energy intensity (the ratio of final consumption to monetary output) as a factor of the LMDI decomposition, we capture changes in the end-use energy efficiency. However, we do not agree that this is the appropriate approach as, in our view, energy intensity is not a valid proxy for end-use energy efficiency.

A few grounds for rejecting energy intensity as an efficiency metric are detailed in what follows. Energy intensity, although it is undoubtedly affected to a greater or lesser extent by efficiency in energy use, may be influenced by other factors such as the production structure, the degree of vertical integration or the capital-labor ratio, the scale of operations, etc. For instance, a decrease in energy intensity is not a synonym for energy savings, technical progress, reduction of energy waste or lower energy consumption in absolute terms, but it may also occur if energy consumption grows at a lower rate than the monetary output of what is produced with said energy. Moreover, apart from the quantitative characteristics of economic sectors, energy efficiency is also influenced by the requirements of the private residential and transport sectors. But to calculate energy intensity we need to know the monetary value of the output of the energy-consuming sector, and this value cannot be measured for non-productive sectors such as households and transport. Thus, energy intensity would not be an appropriate measure of the end-use energy efficiency.

For all these reasons, an alternative factor seems to be necessary to provide a good measurement of the end-use energy efficiency, since it is a determinant influence on CO\(_{2}\) emissions and occupies a prominent place on the environmental policy agenda. However, since our formulation of the LMDI identity is conducive to the presence of energy intensity as a contributing factor, the best method to solve the above-mentioned issue is to separate observed physical energy intensity from structural changes affecting the energy intensity. In this sense, following the method proposed by Torrie et al. (2018), what we do is to subject the energy intensity factor to further extension or factorization that allows us to identify to what extent the observed physical energy efficiency influences changes in energy intensity, and therefore in CO\(_{2}\) emissions. This is done by decomposing the energy intensity ratio between (1) consumption per physical unit of output (e.g., energy used per produced car) and (2) the ratio of physical output to the monetary output (e.g., produced cars per monetary value added of those cars). To this end, physical activity drivers have to be defined, which will vary significantly between sectors. This irremediably implies an additional data requirement and relies on a one-to-one correspondence between energy consumption data and physical activity data. An additional strength of this strategy is the possibility to study in a consolidated manner the energy efficiency of both productive and private sectors, as we can also define energy efficiency factors for the transportation sector (e.g., energy use per passenger-kilometer) and the households (e.g., energy consumption per m\(^{2}\) of dwelling). As a result, another contribution to the literature is made, as we are able to reconcile the energy efficiency and energy intensity metrics within a refined decomposition approach that is applied for the Spanish economy and the EU28 economy as whole.

2.5 Apparent versus technical end-use energy efficiency

One must note that the observed physical end-use energy efficiency presented in the previous Subsection need not be an accurate measure of the actual technological progress. That is, we must differentiate between (i) observed or apparent physical end-use energy efficiency and (ii) technical end-use energy efficiency. In our analysis, we assume that a technological advance cannot be reversed. In other words, technical energy efficiency cannot decrease. Normally, we associate a fall in energy consumption per physical unit, i.e., an increase in apparent energy efficiency, with an increase in energy efficiency of the end-use sectors.

However, in certain cases, the observed or apparent energy efficiency of the end-use sectors (the energy consumption per unit produced or per physical unit installed) is observed to decrease (increase). In these scenarios, it cannot be deduced that it is due to a decrease in technical efficiency, since we assume that technological progress cannot be reversed. What may be actually happening when we observe a reduction in apparent energy efficiency is that the installed equipment is not being used efficiently or that the improvement in technical efficiency, or technological advance, could have lowered the costs or prices of certain energy causing an increase in the consumption of that energy, i.e., the so-called rebound effect.

That is why it is necessary to discern between what is driving the apparent or observed energy efficiency. To do so, as shown in Fig. 3, we subject such observed end-use energy efficiency to a further decomposition and we examine the role played by (1) technical energy efficiency or actual energy savings, (2) rebound effects, and (3) other factors (where the infra-utilization of the installed energy equipment can be a key contributor) in its developments. As a result, we will contribute to the literature by reconciling observed and technical end-use energy efficiency metrics. We will review the technical energy efficiency influences and the potential rebound effects in Sect. 2.5.1 and the influence of other factors like the infra-utilization in Sect. 2.5.2.

2.5.1 Rebound effect

It is not right to analyze the apparent end-use energy efficiency without a deep mention of the induced rebound effect. Usually, one may think that technical efficiency improvements result in providing the same amount of energy service to the consumer using less energy, what would induce positive changes in the observed energy efficiency. However, by having equipment that uses less energy, the energy service becomes less costly (effective price is reduced) for the user than before the energy efficiency improvement happened. This decrease in the cost of the energy service could provoke increases in energy consumption that can occur through a price-reduction or other behavioral responses. In this way, the observed energy efficiency may not reflect actual changes in the technical energy efficiency. This is one of the main reasons why it is unavoidable to separate the technical efficiency from the observed (or apparent) energy efficiency.

Fig. 3
figure 3

Decomposition of apparent end-use energy efficiency

Mathematically, as shown in Eq. 1, we define the rebound effect (RE) as the fraction of the potential energy savings (PES) that is not translated into actual energy savings (AES).

$$\begin{aligned} \mathrm{RE} := 1-\frac{\mathrm{AES}}{\mathrm{PES}} \end{aligned}$$
(1)

The PES are given by the evolution of the technical energy efficiency, which is typically estimated by engineering models that assume no economic responses to improved energy efficiency and non-reversible improvements. The AES are usually depicted by observed changes in the apparent energy efficiency once we have controlled for potential rebound effects and other factors like the infra-utilization of the energy equipment installed. This formula could seem very simple and handy. However, the price- or cost-induced rebound effect is a very complex element. It is the umbrella term for a variety of economic mechanisms that comprises every reaction of the agents when they face an effective price reduction. Every potential reaction can be identified as a different type of rebound effect. Hence, the identification of every type of rebound effect is a very complicated process that depends on many aspects. Here, as shown in Fig. 3 and explained as follows, we provide a classification of the different types of price-induced rebound effect following the influential works of Greening et al. (2000), Sorrell (2007), Azevedo (2014) and Freire-González et al. (2017).

  1. 1.

    Direct rebound effect It was first defined by Khazzoom (1980) as the increase in the demand of an energy service caused by improvements in the efficiency of that particular energy service. It encompasses (1) pure substitution effects derived from the incentive to use more energy input of the energy whose effective price has fallen. This effect is typically given by the own-price elasticity of demand for a particular energy service. The direct rebound effect also covers potential (2) income effects. The cost reduction derived from the technical efficiency improvement may increase real incomes, which will positively impact on consumption of all commodities, including that of the energy product whose effective price has fallen as a result of the technical efficiency improvement.

  2. 2.

    Indirect rebound effect It is usually defined as the increase in the demand for other goods and services that also require energy for their production and distribution and that are affected by the reduction in the effective cost of the energy service considered and the associated increase in disposable income. This indirect rebound effect can originate from a number of sources. As it can be observed in Fig. 3, it covers: (1) output effects (producers may use the cost savings from energy efficiency improvements to increase output, increasing consumption of capital, labor and materials, which themselves require additional energy to provide); (2) substitution effects (given by the cross-price elasticities of demand for non-energy services); (3) income effects (increased real incomes will impact on consumption of all commodities, which will indirectly enhance an increase in the energy consumption); (4) compositional effects (relatively energy-intensive products benefit more from the fall in the effective energy prices); (5) competitiveness effects (the fall in supply prices of commodities that use energy as an input for production could stimulate their demand, increasing energy needs); and (6) embodied energy, (energy needed to implement the technical efficiency measure that leads to the technical change).

  3. 3.

    Economy-wide rebound effect It accounts for every increase in the demand of energy services caused by a higher economic growth and consumption at a macroeconomic level as a consequence of a technical efficiency improvement of the energy service considered. It comprises all sub types of rebound effects. The economy-wide rebound effect takes into account not only direct and indirect rebound effects, but also general equilibrium rebound effects. The latter effects account for the adjustments of prices and quantities of goods and services on the whole economy after an energy efficiency improvement. As the technical efficiency improves, there will be a reduction in the price of the energy services, which in turn will lead to a new overall equilibrium of supply and demand for all goods and services in the economy.

There is a variety of interpretations of the rebound effect depending on the magnitude and sign of the effect. (i) For values below zero, we encounter negative rebound effects or super-conservation effects. It means that the technical energy efficiency improvement is over realized, i.e., the energy consumption declines in a greater proportion than the extent to what the technical energy efficiency improves. (ii) When the value of the rebound effect is zero, we can say that the technical energy efficiency improvement is fully realized, i.e., the energy consumption drops in the same proportion than the extent to what the technical energy efficiency improves. (iii) We find partial rebound effects for values between zero and one hundred. In this case, the technical energy efficiency improvement is partially offset by an increased demand for energy. Finally, (iv) for values of the rebound effect greater than one hundred, we encounter the so-called backfire effect. In this particular case, the technical energy efficiency improvement is outweighed by an increased demand for energy, i.e., the energy consumption increases in a greater proportion than the extent to what the technical energy efficiency improves.

There is an open discussion regarding the actual magnitude of the rebound effect. For the concrete case of the Spanish economy, several research studies estimating direct rebound effects exist. Using panel data from the period 1991–2003, Freire-González (2010) estimates the magnitude of direct rebound effect for all energy services using electricity in households of Catalonia (Spain) using econometric techniques. He finds an estimated direct rebound effect of 35% in the short term and 49% in the long term. Gálvez et al. (2014) estimate the direct rebound effect in the residential sector for Spain. They analyze electricity and natural gas direct rebound effects using data on residential heating and domestic hot water consumption in 2012 and encounter direct rebound effects of 70–80% for electricity and of more than 100% for natural gas. Finally, in the most recent work addressing this topic, Bordon Lesme et al. (2020) estimate short- and long-run direct rebound effects with data on households’ electricity consumption in Spain. Using a two-step Error Correction Model through GMM estimation, they find direct rebound effects between 26 and 35% in the short-run and around 36% in the long-run.

After reviewing the literature on rebound effects for Spain one can note how the empirical works do not offer a consensus about the magnitude of the direct rebound effect. Moreover, these studies focus exclusively on the residential sector of the economy and on certain specific energy products. However, for our analysis, we would need to learn what the total rebound effect of the economy is, for every sector (as a whole and separately for each of them) and for every energy product. That is why it is undoubtedly necessary to study what the economy-wide rebound effect is. In this way, we will be able to quantify the rebound effect of the total economy, which will capture the influences not only of direct and indirect rebound effects, but also of general equilibrium rebound effects, as shown in Fig. 3. In other words, we will move the core of this discussion toward the magnitude of the economy-wide rebound effect.

Sorrell and Dimitropoulos (2008) state that the economy-wide rebound effect from energy efficiency improvements may be expected to be larger than the direct rebound effect. However, the mechanisms involved are complex, interdependent, and difficult to conceptualize, and the magnitude of this effect is extremely difficult to estimate empirically. While both direct and indirect rebound effects are microeconomic and can be tested empirically, the magnitude of the economy-wide rebound effect should be estimated by the use of Computable General Equilibrium (CGE) models or macro-econometric models. These models carefully capture the dynamics of a entire economy and, as a consequence, calibrating such models to replicate current conditions and running them under alternate conditions is a daunting task. As pointed out by Azevedo (2014), these theoretical frameworks rely on assumptions about price, income, substitution elasticities, cost-minimizing behavior from producers, utility-maximizing behavior from consumers. But once these setup conditions for building the theoretical framework are defined, one could perform an analysis of the economy-wide rebound effects which microeconomic or bottom-up analyses may be inappropriate to handle with.

Colmenares Montero et al. (2019) review the state-of-the-art of energy and climate modeling vis-a-vis the rebound literature and they find that worldwide research works report, on average, economy-wide rebound effects around 58%. When we look at the European countries, we encounter the work by Malpede and Verdolini (2016). They estimate the economy-wide rebound effect for 5 major European economies (Germany, France, Italy, the UK and Spain) over the years 1995-2009 and show a range of estimates of 50–60%. Other work reviewing economy-wide rebound effects for a number of countries is Adetutu et al. (2016). They use a combined stochastic frontier analysis (SFA) and two-stage dynamic panel data approach to explore the magnitude of the economy-wide rebound effect for 55 countries over the period 1980 to 2010. They find economy-wide rebound effects of 50–60% for both Spain and Europe.

Finally, placing the focus on the Spanish sphere, we find three important papers that calculate the economy-wide rebound effect. Guerra and Sancho (2010) build a CGE model and show that the use of engineering savings instead of general equilibrium potential savings downward biases economy-wide rebound effects and upward-biases backfire effects. Duarte et al. (2018) also construct a dynamic CGE model, but only covering the residential sector, and estimate economy-wide rebound effects for Spain of the order of 50–70%. Finally, Peña-Vidondo et al. (2012) present a static CGE model describing an open economy disaggregated into 27 production sectors, with 27 consumer goods, a representative consumer, the public sector and a simplified rest of the world and accounting for every group of energy products. This model also has the particular feature of including unemployment in labor markets, given the high level of unemployment in the Spanish economy. With this very complex and complete model, they estimate economy-wide rebound effects in Spain of 60–70%.

One can see how there is a greater consensus on estimates of the economy-wide rebound effect. In this sense, in our work we will use these estimates from the literature to identify the economy-wide rebound effect in Spain and in Europe and thus be able to decompose the effect of technical energy efficiency on the observed evolution of the apparent energy efficiency of the end-use sectors.

2.5.2 Other factors: infra-utilization

Apart from changes in technical efficiency and their possible rebound effects, an observed increase in the unit energy consumption (or decrease in apparent energy efficiency) may be due to other factors. As shown in Fig. 3, the apparent end-use energy efficiency is influenced by other factors that are calculated as a residual from differences between the evolution of the apparent efficiency and the evolution of the technical efficiency and its potential rebound effects.

Among this other-factors category, we find that decreases of the apparent energy efficiency may be due to an inefficient use of the equipment, as it is often observed during economic recessions. This is particularly true in industry or freight transport. For instance, as documented by ODYSSEE-MURE (2020a), in a period of recession, the energy consumption of the industry does not decrease proportionally to the activity as the efficiency of most equipment drops, as they are not used at their maximum rated capacity. It means that part of its energy consumption is independent of the production level. This infra-utilization is also well documented by the Ministerio de Turismo, Energía y Agenda Digital (2017). In that case, the technical energy efficiency does not decrease as such, as the equipment is still the same, but it is used less efficiently. This is another of the main reasons why it is unavoidable to separate the technical efficiency from the observed (or apparent) energy efficiency.

2.6 Overview of the main contributions of this study

In sum, we are convinced that the present work, which

  1. (i)

    Mixes features and benefits from both IDA and SDA decomposition techniques,

  2. (ii)

    Provides an allocation diagram scheme for assigning the responsibility of primary energy requirements and CO\(_{2}\) emissions to the end-use sectors including both economic and non-productive sectors,

  3. (iii)

    Analyzes more potential influencing factors than those typically examined,

  4. (iv)

    Proceeds in a way that reconciles energy intensity and energy efficiency metrics,

  5. (v)

    And distinguishes between technical and observed end-use energy efficiency taking into account potential rebound effects and other factors

represents a novelty and offers clear value added to past studies devoted to the study of the energy-related CO\(_{2}\) emissions trends both in Spain and in the EU28. In addition, to the best of our knowledge, there is no previous study for Spain and the EU28 that uses such recent and disaggregated data.

3 Methodology and data

In this Section, we first introduce the primary energy conversion factor (\(K_{\mathrm{PEQ}}\)) in Sect. 3.1 and the primary carbon dioxide emission factor (\(K_{C}\)) in Sect. 3.2. Then, these key parameters are adopted to develop an LMDI decomposition method suitable for analyzing all influencing factors driving the evolution of energy-related CO\(_{2}\) emissions in Sect.  3.3. Finally, a further decomposition for the apparent end-use energy efficiency is presented in 3.4. All data used for these calculations are briefly introduced in the course of this Section.

3.1 Primary energy conversion factor

Any estimation of primary energy must first establish factors for conversion between energy magnitudes. Here, the primary energy quantity conversion factor (\(K_{\mathrm{PEQ}}\)), which was suggested by many authors in previous studies, is the key parameter for establishing the connection between final energy consumption and primary energy consumption.Footnote 12\(K_{\mathrm{PEQ}}\) is defined as the total number of units of primary energy that must be consumed to produce one unit of final energy. There are several methods to calculate this primary energy quantity conversion factor. The European Comission (2016) conducted a survey about some of the methodologies available, applying them to the specific case of electricity, but valid for other types of energy. The purpose of the strategy is to be able to express final energy consumption in both standard quantity (SQ) form and primary energy quantity (PEQ) form. The SQ form denotes the heat value of final energy consumed by the end-use sectors while the PEQ form denotes the total primary energy consumed to produce such final energy by compensating all energy losses upstream. However, the compensating process for energy losses upstream is complex and involves many interacting conversion sub-sectors. Thus, we follow an input–output method in the spirit of the theoretical framework used by Alcántara and Roca (1995) and Ma et al. (2018) to acquire the \(K_{\mathrm{PEQ}}\) of each energy product.

The input–output method has been widely applied to reveal internal relationships among the economic sectors. The development of an input–output table can reflect the balance of material or capital flows among all sectors while the Leontief inverse matrix of the table can establish the connection between the end-use consumption and the total consumption (which includes both intermediate and end-use consumption) of the flows. Therefore, using the input–output method, we can here construct an energy input–output table of energy sectors to establish the connection between final energy consumption and primary energy consumption by using the Leontief inverse matrix.

3.1.1 Establishment of the energy input–output table

To estimate the primary energy required for final energy consumption, a first approximation (an underestimation, as it will be discussed below) is based on the existing interrelationships in the Spanish energy sector so that each final energy consumption (primary or secondary) corresponds to a primary energy vector containing all primary energy sources that must be consumed to make such final consumption available.Footnote 13 For this purpose, making use of the Complete Energy Balances of the European countries published by Eurostat (2020c), which provide detailed data on energy supply, energy conversion, and final energy consumption, we can modify such energy balance table into an energy input–output table as shown in Table 1 (all table entries are expressed in SQ form).

The complete energy balance involves 63 energy products (the complete list of products can be shown in Table 13 of Appendix). These energy sources can be either primary or secondary and can be consumed either (1) directly by the end-use sectors to cover their energy needs (final demand of energy i, \(Y_{i}\)) or (2) by the conversion sector to produce final energy that will be later consumed by the end-use sectors (this refers to the intermediate consumption part, where \(Q_{i,j}\) is the quantity of energy i consumed to produce energy j in the transformation sector).

Table 1 Energy input–output table

However, we should also take into account that many secondary energy products (oil derivatives and electricity, among others) could be directly imported from abroad. In our analysis, we consider that an imported energy unit is offset by an exported unit, so we only focus on what the net balance is (the difference between imports and exports).Footnote 14 When there is a positive net import balance in one secondary energy product, we must obviously consider that this entry of energy means a greater availability of primary energy.Footnote 15 To do this, we use the methodology proposed by Alcántara and Roca (1995) and we treat these positive net import balances of secondary products as a primary energy source valued for its energy content. In other words, in addition to the 63 energy types, we must augment our input–output table to incorporate the positive net import balances of secondary products. It means that we would have as many new primary energy sources (denoted by \(N_s\)) as secondary products with a positive net import balance.Footnote 16 We should note that the final demand of those positive net import balances of secondary products is 0, i.e., \(Y_i=0\), for \(i=\{63+1, \ldots ,63+N_s\}\), since such positive net import balances would just enter the input–output table in the intermediate consumption part. For example, if electricity were the energy product 1, the positive net import balance of electricity, say it would be the energy product 63+3, would just appear as an input for production of electricity. It means that \(Q_{63+3,1}\) would report such positive net import balance quantity and that the row would be filled with zeros elsewhere.

The final demand of energy i is denoted by \(Y_{i}\). This quantity includes several elements according to the Sankey Diagrams for Energy Balances developed by Eurostat (2020l). It results from the sum of (1) final energy consumption of energy i (including also final energy i consumption of the energy branch, i.e., energy i consumed to operate installations for energy production and transformation), (2) final non-energy consumption of energy i (for instance, oil used as timber preservative), (3) distribution and transmission losses of energy i (energy losses due to transport or distribution of electricity, heat, gas, as well as pipeline losses), (4) energy i consumed by international maritime bunkers (fuel consumption of ships during international navigation), (5) energy i consumed by international aviation (fuels delivered to aircrafts for international aviation), and (6) positive net export balances of energy i (when the quantity of energy i produced or transformed in the territory which is sent abroad is larger than the quantity of energy i coming from outside the territory).

The energy balances report 27 different types of energy transformation or conversion processes in the transformation sector section (see Table 17 of Appendix for a detailed description of all of them). These processes involve all activities where one energy commodity (either primary or secondary) is transformed into a secondary energy commodity (e.g., natural gas transformed into electricity in a power plant). For these 27 types of energy transformation processes, Eurostat (2020c) reports the energy inputs that they require to produce the energy transformation output. Therefore, the transformation inputs reported in the balances would be the quantities that would fill the intermediate demand part of our input–output table (elements \(Q_{i,j}\), for \(i,j=\{1, \ldots ,63\}\)). However, there is a limitation coming from many of these transformation processes resulting in more than one energy output.Footnote 17 Thus, within a unique transformation process, we could not identify exactly which part of the transformation input is dedicated to produce which energy output. To overcome this issue, we assume that the inputs of each transformation process are distributed proportionally to each energy output in case that the transformation process results in more than one energy output. For example, if a transformation process X results in an output of 2 units of energy A, 2 units of energy B and 1 unit of energy C, the inputs of the transformation process X would be assigned in the following way: 40% to produce energy A, 40% to produce energy B, and 20% to produce energy C. In this way, we manage to allocate an intermediate energy demand to each type of energy output, which would allow us to fully identify our input–output table in the intermediate demand part.

Finally, \(Q_{i}\) denotes the total output of energy i, i.e., the total energy i needs. It can be calculated from two perspectives. From the demand side, the total energy needs result from the sum of the intermediate consumption and the final demand. This mathematical relationship is expressed in Eq. (2) for the case of energy i. Further, Eq. (3) shows the matrix form containing all energy products.

$$\begin{aligned} \sum _{j}^{63+N_s} Q_{i,j} + Y_{i}= & {} Q_{i} \end{aligned}$$
(2)
$$\begin{aligned} ID + Y= & {} Q, \end{aligned}$$
(3)

where \(Q_{i,j}\) is the ij-element of the matrix of intermediate demand, ID, Q is the column vector of total output, and Y is the column vector of final demand.

On the other hand, from the supply side, \(Q_i\) results from the sum of (1) the primary production of energy i (extraction from natural sources into a usable form), (2) the quantity of energy i recovered or recycled (e.g., the supply of renewable energy commodities produced in other fuel balances or certain petroleum products which are reprocessed and recycled), (3) the stock changes of energy i (difference between the opening stock level and closing stock level for stocks held on national territory), (4) the transformation output of energy i (quantity of energy obtained as a result of all transformation processes), and (5) the positive net import balance of energy i (when the energy quantities produced or transformed in the territory which are sent abroad are smaller than the energy quantities coming from outside the territory). Both calculations lead to the same quantity of energy needs, \(Q_i\).Footnote 18

3.1.2 Leontief inverse matrix of energy input–output table

We define the direct consumption efficiency (or transformation coefficient) \(a_{i,j}\) as the energy i consumed to produce one unit of energy j, which is shown in Eq. (4).

$$\begin{aligned} a_{i,j} = \frac{Q_{i,j}}{Q_j} \end{aligned}$$
(4)

Hence, Eq. (3) can be further expressed as Eq. (5).

$$\begin{aligned} AQ + Y = Q, \end{aligned}$$
(5)

where \(a_{i,j}\) is the ij-element of the matrix A.

Further, Eq. (5) can be rewritten as Eq. (6), where \((I-A)^{-1}\) is the Leontief inverse matrix, which is denoted with symbol \(L'\), as shown in Eq. (7).

$$\begin{aligned} Q= & {} (I-A)^{-1}Y \end{aligned}$$
(6)
$$\begin{aligned} Q= & {} L'Y \end{aligned}$$
(7)

In the Leontief inverse matrix, the ij-element, \(L'_{i,j}\), indicates the total number of units of energy i that should be consumed as transformation input in the energy sector in order to provide one unit of energy j for final energy consumption of the end-use sectors. Now, as we are interested in knowing just how much primary energy is necessary to make a unit of energy available for consumption of the end-use sectors, we must ignore the coefficients \(L'_{i,j}\) for which i is a secondary energy product. In other words, we must drop the rows of the matrix \(L'\) that correspond to secondary energy products. Obviously, it does not refer to the rows included to incorporate positive net import balances of secondary energy products. Thus, we can further calculate the total units of primary energy that should be consumed in the conversion sector in order to provide one unit of energy j for end-use by using Eq. (8).

$$\begin{aligned} K_{\mathrm{PEQ},j} = \sum _{i=1}^{63+N_s} L'_{i,j} \cdot \mathbbm {1}_{i\notin \mathcal {S}} \end{aligned}$$
(8)

where \(\mathcal {S}\) is the subset of secondary energy products, \(\mathbbm {1}_{i\notin \mathcal {S}}\) is an indicator variable that takes value 1 when the energy product i is not part of the subset of secondary products and 0 otherwise, and \(K_{\mathrm{PEQ},j}\) is the primary energy quantity conversion factor of energy j. In other words, \(K_{\mathrm{PEQ},j}\) would represent the direct and indirect primary energy requirements needed to obtain a unit of energy j for consumption of the end-use sectors. Therefore, this elevation factor allows us to transform energy quantities in standard (or final energy) quantity (SQ) form into primary energy quantity (PEQ) form.

This should be taken as a first approximation of the primary energy required by each final-demand energy product. In fact, this could be potentially an underestimation because, as discussed by Alcántara and Roca (1995), a more complete analysis would require the study of the direct and indirect energy demands of the conversion sector on other economic sectors, including transport, to include the energy needed to be able to make this input energy available, i.e., part of which is usually included as final energy consumption is in fact energy consumption necessary to transform the primary sources. In addition, we cannot consider the energy consumed in other countries to provide the energy used in Spain through imports. In this sense, if the primary energy requirements of imported secondary products were higher than the requirements of exported secondary products, we would be underestimating the associated impact. However, despite the relevance of this issue in the assessment of environmental impacts attributable to the Spanish economy, it is beyond the scope of this study. Finally, it should be noted that our approach has an aggregate perspective. We implicitly consider that any electricity user consumes the same primary energy needs for every Kw/h used and this is not the case in reality. For example, industrial plants that produce their own electricity or individual houses with photovoltaic cells have different distribution losses and these are also different according to the voltage at which electricity is distributed. But on top of that, we believe that the method we use allows us to have a fairly accurate approach to analyze the primary energy requirements of an economy and their evolution over time.

\(K_{\mathrm{PEQ}}\) is further used to derive the primary carbon dioxide emission factor in Sect. 3.2. It is used in Sect. 4 to compute and show the responsibility of the energy-related CO\(_{2}\) emissions associated to each end-use sector and to each final energy product. In addition, it is adopted to develop the LMDI method to decompose the evolution of energy-related CO\(_{2}\) emissions in Sect. 3.3.

3.2 Primary carbon dioxide emission factor

After introducing the acquirement of the parameter \(K_{\mathrm{PEQ}}\) of each energy product to assign the responsibility of the primary energy requirements among the energy products, we further introduce the acquirement of the primary carbon dioxide emission factor (\(K_{C}\)) in this Subsection. This is a key parameter for establishing the connection between energy consumption expressed in PEQ form and CO\(_{2}\) emissions. Following Ma et al. (2018), \(K_{C,j}\) is defined as the total number of units of CO\(_{2}\) that are emitted when one unit of end-use energy j expressed in PEQ form is consumed. The mathematical expression to acquire this parameter is given by Eq. (9).

$$\begin{aligned} K_{C,j} = \sum _{m=1}^{63+N_s} \frac{L'_{m,j} \cdot \mathbbm {1}_{m\notin \mathcal {S}}}{K_{\mathrm{PEQ},j}} \cdot {{f}}_m \end{aligned}$$
(9)

Further, if we would like to compute the total number of units of CO\(_{2}\) that are emitted when one unit of end-use energy j expressed in SQ form (rather than in PEQ form) is consumed, we would have to calculate the elevation factor \(K_{C,SQ,j}\), which is given by Eq. (10).

$$\begin{aligned} K_{C,\mathrm{SQ},j}= & {} K_{C,j} \cdot K_{\mathrm{PEQ},j} = \sum _{m=1}^{63+N_s} \frac{L'_{m,j} \cdot \mathbbm {1}_{m\notin \mathcal {S}}}{K_{\mathrm{PEQ},j}} \cdot {f}_m \cdot K_{\mathrm{PEQ},j}\nonumber \\= & {} \sum _{m=1}^{63+N_s} L'_{m,j} \cdot \mathbbm {1}_{m\notin \mathcal {S}} \cdot {f}_m \end{aligned}$$
(10)

In Eqs. (9) and (10), \(K_{\mathrm{PEQ},j}\), \(L'_{m,j}\), and \(\mathbbm {1}_{m\notin \mathcal {S}}\) are defined as previously in Sect. 3.1. Here, \({f}_m\) denotes the CO\(_{2}\) emission factor of the primary energy m. The acquirement of this emission factor will be discussed in what follows.

3.2.1 Carbon dioxide emission factor

We define here the CO\(_{2}\) emission factor \({f}_m\) as the kilograms of CO\(_{2}\) emitted when a human activity (combustion and the upstream, i.e., the production and transport of the energy product) makes use of 1 KTOE of primary energy m. It means that \({f}_m\) will be expressed as kg-CO\(_{2}\)/KTOE. In order to calculate such parameter, we rely on the methodology and the data presented by the Intergovenmental Panel on Climate ChangeIntergovenmental Panel on Climate Change (2006) and introduce the formula given by Eq. (11).

$$\begin{aligned} {f}_m = \mathrm{NCV}_m \cdot {v}_m \cdot {o}_m \cdot \frac{44}{12} \end{aligned}$$
(11)

where \(\mathrm{NCV}_m\) is a factor to convert the net calorific value of the energy m into TJ units. In our case, the energy quantities in the energy balances are expressed in KTOE. Hence, we have to multiply the KTOE quantity of each energy product m by \(NCV_m=41.868\) to convert it into TJ. \({v}_m\) is the carbon content per unit of calorific value of the energy product m, expressed in kg-CO\(_{2}\)/TJ. It can be shown in Table 13 of the Appendix. \({o}_m\) denotes the oxidation rate of the energy product m when it is used. The value of \({o}_m\) is usually 1, reflecting complete oxidation of the energy product m. Lower values are used only to account for carbon retained indefinitely in ash or soot. Finally, \(\frac{44}{12}\) denotes the molecular weight ratio of carbon dioxide (CO\(_{2}\)) to carbon (C). We should mention that the CO\(_{2}\) emission factors of the different primary energies are the same for every region.

3.2.2 Estimation of energy-related carbon dioxide emissions

The \(K_{C,\mathrm{SQ},j}\) factor (or the \(K_{\mathrm{PEQ},j}\) and \(K_{C,j}\) factors) can be further adopted to estimate the energy-related CO\(_{2}\) emissions. By means of applying the aforementioned factors to the final energy demand data that Eurostat (2020c) publishes in its energy balances, we are able to approximate the energy-related CO\(_{2}\) emissions of an economy. This is the reference approach used in the guidelines of the Intergovenmental Panel on Climate ChangeIntergovenmental Panel on Climate Change (2006). This is a top–down estimation approach, but there is another way to estimate the emissions in a bottom-up fashion, for which we would need to collect data relating to the mileage, energy consumption, and CO\(_{2}\) coefficients of various types of vehicles at different speeds, as well as the number of each vehicle. We discard here such bottom-up approach because these data on many end-use activities are difficult to obtain and opt for the top–down approach, which is only based on terminal energy consumption easily accessible through the energy balances. Accordingly, we can estimate the energy-related CO\(_{2}\) emissions by using Eq. (12).

$$\begin{aligned} C_{E} = \sum _{j=1}^{63} E_{\mathrm{SQ},j} \cdot K_{C,j} \cdot K_{\mathrm{PEQ},j} = \sum _{j=1}^{63} E_{\mathrm{SQ},j} \cdot K_{C,\mathrm{SQ},j} \end{aligned}$$
(12)

where \(C_{E}\) denotes the total energy-related CO\(_{2}\) emissions associated to the energy magnitude E, \(E_{\mathrm{SQ},j}\) stands for the quantity of the energy product j being part of the energy magnitude E in SQ form, and \(K_{C,j}\), \(K_{\mathrm{PEQ},j}\), and \(K_{C,\mathrm{SQ},j}\) are the elevation factors calculated in Eqs. (8), (9) and (10).

Then, by changing the energy magnitude that we impute to \(E_{\mathrm{SQ},j}\), we can estimate the energy-related CO\(_{2}\) emissions that different energy magnitudes imply. In addition, the estimated elevation factors, \(K_{C}\) and \(K_{C,\mathrm{SQ}}\), are adopted to compute and show the responsibility of the energy-related CO\(_{2}\) emissions associated to each end-use sector and to each final energy product in in Sect. 4, and to develop the LMDI method to decompose the evolution of energy-related CO\(_{2}\) emissions in Sect. 3.3.

3.3 LMDI decomposition model

Following the estimation approach for energy-related CO\(_{2}\) emissions presented in Eq. 12, and using the sectoral final energy consumption data that Eurostat (2020c) publishes in its energy balances (with some adjustments to acquire the sectoral disaggregation that we present, as it will be discussed below), we can derive the total energy-related CO\(_{2}\) emissions at year t as the sum of the energy-related CO\(_{2}\) emissions coming from each of the sectors considered at year t, as shown in Eq. 13.

$$\begin{aligned} \begin{aligned} C_{\mathrm{TOT}}^{ t}&= \sum _{s} \sum _{j=1}^{63} E_{\mathrm{SQ},s,j}^{ t} \cdot K_{C,j}^{ t} \cdot K_{\mathrm{PEQ},j}^{ t} = \sum _{s} \sum _{j=1}^{63} E_{\mathrm{SQ},s,j}^{ t} \cdot K_{C,\mathrm{SQ},j}^{ t} \\&= C_{\mathrm{AGRI}}^{ t} + C_{\mathrm{IND}}^{ t} + C_{\mathrm{CPS}}^{ t} + C_{\mathrm{HH}}^{ t} + C_{\mathrm{TRA}}^{ t} = \sum _{s} C_{s}^{ t} \end{aligned} \end{aligned}$$
(13)

where \(s=\{\mathrm{AGRI,IND,CPS,HH,TRA}\}\) indexes the different end-use sectors, \(C_{s}^{ t}\) denotes the energy-related CO\(_{2}\) emissions associated to the sector s at year t, \(E_{\mathrm{SQ},s,j}^{ t}\) stands for the end-use energy quantity of product j consumed by the sector s at year t in SQ form, and \(K_{C,j}\), \(K_{\mathrm{PEQ},j}\), and \(K_{C,\mathrm{SQ},j}\) are the elevation factors calculated in Equations (8), (9) and (10). Three of the five sectors here presented refer to economic sectors, i.e., they refer to economic activities included in the NACE list.Footnote 19 These economic sectors are agriculture, denoted by AGRI, industry, denoted by IND, and commercial and public services, denoted by CPS. In addition, there are two other sectors responsible for CO\(_{2}\) emissions which are not economic or business sectors: households, denoted by HH, and transport, denoted by TRA.

We can also use Eq. 12 to compute the energy-related CO\(_{2}\) emissions identity of each sector separately and extend it to further consider macro-level, technical and other extra details about many type of changes through the complex energy system along stages of the energy supply chain. This means that we follow a multisectoral augmented Kaya identity approach to study the contributions of many influencing factors to the evolution of the energy-related CO\(_{2}\) emissions. In what follows, we present the LMDI decomposition strategy that we follow for each of the five previously mentioned sectors and how we aggregate them to examine the overall changes. It should be noted that decomposition strategy varies for each sector, as the depth of decomposition is highly dependent of the input data availability, especially at finer levels of disaggregation. And reaching very deep levels of disaggregation is what we are seeking, because in that way we ensure that changes in many factors are really due to the change in the factor itself, and not due to structural changes on a larger scale, as demonstrated by Sinton and Levine (1994).

3.3.1 Agriculture

For the agricultural sector, we can apply Eq. 12 to the final energy consumption data of the sector coming from Eurostat (2020c) and extend it as Eq. 14 to express the energy-related CO\(_{2}\) emissions provoked by the mentioned sector at year t. This extension is designed to consider the following influential factors: population (1), which was considered the most important driver of the original IPAT identity; (2) total product per capita as a proxy of the income per capita,Footnote 20 which describes the affluence of the population referred to; (3) economic structure, to account for changes in energy consumption and emissions due to changes in the relative importance of the sectors in the economy; (4) intra-structure of the sector, to capture changes derived from the sub-sectoral composition; (5) end-use energy intensity, which pretends to describe changes due to technological improvements and policy effects; (6) energy-mix of final consumption, to observe the influence of fossil or low-carbon energies in the final consumption; and (7) primary CO\(_{2}\) emission factor, which is intended to explain technical efficiency changes of the transformation sector (measured through changes in the Leontief inverse matrix previously presented) and changes in the primary energy-mix of the conversion process.

$$\begin{aligned}&C_{\mathrm{AGRI}}^{ t} = \sum _{m} \sum _{j=1}^{63} \underbrace{P^{ t}}_{\text {(1)}} \cdot \underbrace{\frac{{V}_{\mathrm{TOT}}^{ t} \cdot \chi ^{ t}}{P^{ t}}}_{\text {(2)}} \cdot \underbrace{\frac{{V}_{\mathrm{AGRI}}^{ t} \cdot \chi ^{ t}}{{V}_{\mathrm{TOT}}^{ t} \cdot \chi ^{ t}}}_{\text {(3)}} \cdot \underbrace{\frac{{V}_{m,\mathrm{AGRI}}^{ t} \cdot \chi ^{ t}}{{V}_{\mathrm{AGRI}}^{ t} \cdot \chi ^{ t}}}_{\text {(4)}} \cdot \underbrace{\frac{E_{\mathrm{SQ},m,\mathrm{AGRI}}^{ t}}{{V}_{m,\mathrm{AGRI}}^{ t} \cdot \chi ^{ t}}}_{\text {(5)}} \cdot \underbrace{\frac{E_{\mathrm{SQ},m,\mathrm{AGRI},j}^{ t}}{E_{\mathrm{SQ},m,\mathrm{AGRI}}^{ t}}}_{\text {(6)}} \cdot \underbrace{K_{C,\mathrm{SQ},j}^{ t}}_{\text {(7)}},\nonumber \\ \end{aligned}$$
(14)

where m represents the different agricultural sub-sectors (\(m=\{\mathrm{AF,FISH}\}\)), AF stands for agriculture and forestry, FISH stands for fishing, \({V}_{\mathrm{TOT}}^{ t}\) denotes the total gross value added of the economy at year t, \({V}_{\mathrm{AGRI}}^{ t}\) represents the gross value added of the agricultural sector at year t, \({V}_{m,\mathrm{AGRI}}^{ t}\) describes the gross value added of the agricultural sub-sector m at year t, \(\chi ^{ t}\) is a scaling factor to adjust the value added quantities to the purchasing power parity (PPP) of the region analyzed in order to make the magnitudes comparable across regions, and the different final energy products are indexed by j.Footnote 21

Moreover, we can further extend Eq. 14 into 15. With this expression, we can reconciliate end-use energy intensity and end-use energy efficiency metrics in a single framework. This is a recognized issue in the literature related to decomposition analysis, as shown by Belzer et al. (2017) and discussed in Sect. 2. Here, in the spirit of the framework proposed by Torrie et al. (2018), we can disentangle (1) which part of the end-use energy intensity change is due to changes in the apparent or observed end-use energy efficiency (or physical intensity, i.e., energy unit consumption) and (2) which part is due to other influencing structural factors captured by the relation of physical driver to economic output. In addition, following the decomposition strategy presented by Ma et al. (2018), the primary CO\(_{2}\) emission factor can be further extended to capture the influence of (3) changes in the technical efficiency of the conversion sector (measured through changes in the Leontief inverse matrix) and (4) changes in the energy-mix used in the transformation process (4).

$$\begin{aligned} \begin{aligned}&C_{\mathrm{AGRI}}^{ t} = \sum _{m} \sum _{j=1}^{63} P^{ t} \cdot \frac{{V}_{\mathrm{TOT}}^{ t} \cdot \chi ^{ t}}{P^{ t}} \cdot \frac{{V}_{\mathrm{AGRI}}^{ t} \cdot \chi ^{ t}}{{V}_{\mathrm{TOT}}^{ t} \cdot \chi ^{ t}} \cdot \frac{{V}_{m,\mathrm{AGRI}}^{ t} \cdot \chi ^{ t}}{{V}_{\mathrm{AGRI}}^{ t} \cdot \chi ^{ t}} \cdot \underbrace{\frac{D_{m,\mathrm{AGRI}}^{ t}}{{V}_{m,\mathrm{AGRI}}^{ t} \cdot \chi ^{ t}}}_\text {(1)} \cdot \underbrace{\frac{E_{\mathrm{SQ},m,\mathrm{AGRI}}^{ t}}{D_{m,\mathrm{AGRI}}^{ t}}}_\text {(2)} \cdot \frac{E_{\mathrm{SQ},m,\mathrm{AGRI},j}^{ t}}{E_{\mathrm{SQ},m,\mathrm{AGRI}}^{ t}} \cdot \underbrace{K_{\mathrm{PEQ},j}^{ t}}_\text {(3)} \cdot \underbrace{K_{C,j}^{ t}}_\text {(4)} \\&\quad = \sum _{m} \sum _{j=1}^{63} {\mathrm{POP}}^{ t} \cdot {\mathrm{INC}}^{ t} \cdot {\mathrm{STR}}^{ t}_{\mathrm{AGRI}} \cdot {\mathrm{INTR}}^{ t}_{\mathrm{AGRI},m} \cdot {\mathrm{OUT}}^{ t}_{\mathrm{AGRI},m} \cdot {\mathrm{EFF}}^{ t}_{\mathrm{AGRI},m} \cdot {\mathrm{MIX}}^{ t}_{\mathrm{AGRI},m,j} \cdot {\mathrm{CONV}}^{ t}_{j} \cdot {\mathrm{EMI}}^{ t}_{j} \end{aligned} \end{aligned}$$
(15)

where \(D_{m,\mathrm{AGRI}}^{ t}\) is the physical activity driver of the sub-sector m at year t and \(K_{C,j}^{ t}\) and \(K_{\mathrm{PEQ},j}^{ t}\) are the elevation factors calculated in Eqs. (9) and (8) at year t.

The data feeding this equation are gathered from different databases. First, the final energy consumption of the agricultural sector is determined directly by the Eurostat (2020c) energy balances, as they also distinguish the consumption of its sub-sectors. Second, the physical activity drivers are the Utilised Agricultural Area and the Wooded Land for the AF sub-sector, while the physical driver for the FISH sector is the Fishing Fleet.Footnote 22 Data are extracted from Eurostat (2020e), Eurostat (2020b), and Eurostat (2020f), respectively. Thus, the apparent or observed end-use energy efficiency will be determined by the energy consumption per thousand hectare of utilized agricultural area and wooded land and by the energy consumption per gross tonne of fishing fleet, respectively, for each sub-sector. Third, the Gross Value Added both for the sector and sub-sectors (in chain linked volumes, base 2015, to remove price effects) and for the national total is extracted from Eurostat (2020g) following the economic sector matching scheme presented in Table 16 of the Appendix.Footnote 23 Finally, population and PPP data at the national level are extracted from Eurostat (2020i) and Eurostat (2020k), respectively.

Subsequently, applying the additive LMDI decomposition technique to Eq. 15, we can derive the contributions the mentioned factors to the change in the energy-related CO\(_{2}\) emissions of the agricultural sector from \(t=0\) to \(t=T\) by using Eq. 16.Footnote 24

$$\begin{aligned} \begin{aligned} \Delta C_{\mathrm{AGRI}}^{ T}&= C_{\mathrm{AGRI}}^{ T} - C_{\mathrm{AGRI}}^{ 0} \\&= \Delta C_{\mathrm{POP},\mathrm{AGRI}}^{ T} + \Delta C_{\mathrm{INC},\mathrm{AGRI}}^{ T} + \Delta C_{\mathrm{STR},\mathrm{AGRI}}^{ T} \\&\quad + \Delta C_{\mathrm{INTR},\mathrm{AGRI}}^{ T} + \Delta C_{\mathrm{OUT},\mathrm{AGRI}}^{ T} \\&\quad + \Delta C_{\mathrm{EFF},\mathrm{AGRI}}^{ T} + \Delta C_{\mathrm{MIX},\mathrm{AGRI}}^{ T} + \Delta C_{\mathrm{CONV},\mathrm{AGRI}}^{ T} + \Delta C_{\mathrm{EMI},\mathrm{AGRI}}^{ T} \end{aligned} \end{aligned}$$
(16)

where the factor \(\Delta C_{\mathrm{EFF},\mathrm{AGRI}}^{ T}\) for the agricultural sector, as an example, would be constructed as shown in Eq. 17 (and in analogous manner for other factors and other sectors).

$$\begin{aligned} \Delta C_{\mathrm{EFF,AGRI}}^{ T} = \sum _{m} \sum _{j=1}^{63} L({C}^{ T}_{\mathrm{AGRI}},{C}^{ 0}_{\mathrm{AGRI}}) \cdot ln\left( \frac{{\mathrm{EFF}}^{ T}_{\mathrm{AGRI},m}}{{\mathrm{EFF}}^{ 0}_{\mathrm{AGRI},m}}\right) \end{aligned}$$
(17)

with \(L(a,b) = (a-b)/(ln(a)-ln(b))\) being the logarithmic mean of two positive real numbers, which is used as the weighting function in the LMDI decomposition approach.Footnote 25 At this point, we must stress that the LMDI method is not defined for zeros or negative values in the dataset (due to logarithmic terms in the formula), hence it is necessary to substitute these to avoid errors in computation. We here use the so-called Small Value Strategy proposed by Ang and Choi (1997) and we substitute the zero values by values smaller than \(10^{{-}20}\).Footnote 26

Following this scheme, \(\Delta C_{\mathrm{POP},\mathrm{AGRI}}^{ T}\) describes the change in the energy-related CO\(_{2}\) emissions of the agricultural sector from \(t=0\) to \(t=T\) that is associated to changes in population, \(\Delta C_{\mathrm{INC},\mathrm{AGRI}}^{ T}\) is the change associated to the variations in income per capita (or GVA per capita), \(\Delta C_{\mathrm{STR},\mathrm{AGRI}}^{ T}\) represents the change attributed to the economic structure, \(\Delta C_{\mathrm{INTR},\mathrm{AGRI}}^{ T}\) provides information about the change related to composition variations of the agricultural sector (or intra-structure), \(\Delta C_{\mathrm{OUT,AGRI}}^{ T}\) denotes the changes linked to the structural elements influencing the energy intensity (or variations in the ratio of physical activity driver to economic output), \(\Delta C_{\mathrm{EFF,AGRI}}^{ T}\) stands for changes associated to the physical end-use energy intensity (or apparent end-use energy efficiency), \(\Delta C_{\mathrm{MIX,AGRI}}^{ T}\) describes the change attributed to variations in the composition of the end-use energy-mix, \(\Delta C_{\mathrm{CONV,AGRI}}^{ T}\) represents the change linked to the technical efficiency of the conversion sector (or variations in the primary energy requirements), and \(\Delta C_{\mathrm{EMI,AGRI}}^{ T}\) denotes the change associated to the share of carbon primary energy sources used to make the final energy consumption available.

3.3.2 Industry

Regarding the industrial sector, we can implement the same extension of the energy-related CO\(_{2}\) identity that we perform for the agricultural sector, since the granularity of the data is the same. In this sense, following Eq. 15, the energy-related CO\(_{2}\) emissions coming from the industrial sector and the influential factors to be analyzed can be derived from Eq. 18.

$$\begin{aligned} \begin{aligned}&C_{\mathrm{IND}}^{ t} = \sum _{m} \sum _{j=1}^{63} P^{ t} \cdot \frac{{V}_{\mathrm{TOT}}^{ t} \cdot \chi ^{ t}}{P^{ t}} \cdot \frac{{V}_{\mathrm{IND}}^{ t} \cdot \chi ^{ t}}{{V}_{\mathrm{TOT}}^{ t} \cdot \chi ^{ t}} \cdot \frac{{V}_{m,\mathrm{IND}}^{ t} \cdot \chi ^{ t}}{{V}_{\mathrm{IND}}^{ t} \cdot \chi ^{ t}} \cdot \underbrace{\frac{D_{m,\mathrm{IND}}^{ t}}{{V}_{m,\mathrm{IND}}^{ t} \cdot \chi ^{ t}}}_\text {(1)} \cdot \underbrace{\frac{E_{\mathrm{SQ},m,\mathrm{IND}}^{ t}}{D_{m,\mathrm{IND}}^{ t}}}_\text {(2)} \cdot \frac{E_{\mathrm{SQ},m,\mathrm{IND},j}^{ t}}{E_{\mathrm{SQ},m,\mathrm{IND}}^{ t}} \cdot \underbrace{K_{\mathrm{PEQ},j}^{ t}}_\text {(3)} \cdot \underbrace{K_{C,j}^{ t}}_\text {(4)} \\&\quad = \sum _{m} \sum _{j=1}^{63} {\mathrm{POP}}^{ t} \cdot {\mathrm{INC}}^{ t} \cdot {\mathrm{STR}}^{ t}_{\mathrm{IND}} \cdot {\mathrm{INTR}}^{ t}_{\mathrm{IND},m} \cdot {\mathrm{OUT}}^{ t}_{\mathrm{IND},m} \cdot {\mathrm{EFF}}^{ t}_{\mathrm{IND},m} \cdot {\mathrm{MIX}}^{ t}_{\mathrm{IND},m,j} \cdot {\mathrm{CONV}}^{ t}_{j} \cdot {\mathrm{EMI}}^{ t}_{j} \end{aligned} \end{aligned}$$
(18)

where IND stands for industry, \(m=\{\mathrm{EEI},\mathrm{FBT},\mathrm{TL},\ldots ,\mathrm{CON}\}\) indexes the industrial sub-sector, EEI stands for energy sector and extractive industries, FBT stands for food, beverages and tobacco, TL stands for textile and leather, WWP stands for wood and wood products, PPP stands for paper, pulp and print, CPC stands for chemical and petrochemical industry, NMM stands for non-metallic minerals, BM stands for basic metals, MAC stands for machinery, TE stands for transport equipment, OI stands for other industry, CON stands for construction, and the rest of notations describe analogous aspects to those shown in Eq. 15.

In this regard, the only difference from the agricultural sector is the definition of physical activity drivers for each of the industrial sub-sectors. Here, following the matching sector scheme presented in Table 16 of Appendix and based on the strategy proposed by ODYSSEE-MURE (2020a), we compute the physical activity driver of each sub-sector with the Production Volume Index for each of them, respectively. This is an index reported by Eurostat (2020j) that approximates the output of each sub-sector in physical terms.Footnote 27

Therefore, applying the LMDI decomposition technique to Equation 18, we can derive the change in the energy-related CO\(_{2}\) emissions of the industrial sector from \(t=0\) to \(t=T\) by using Eq. 19.

$$\begin{aligned} \begin{aligned} \Delta C_{\mathrm{IND}}^{ T}&= C_{\mathrm{IND}}^{ T} - C_{\mathrm{IND}}^{ 0} \\&= \Delta C_{\mathrm{POP,IND}}^{ T} + \Delta C_{\mathrm{INC,IND}}^{ T} + \Delta C_{\mathrm{STR,IND}}^{ T} \\&\quad + \Delta C_{\mathrm{INTR,IND}}^{ T} + \Delta C_{\mathrm{OUT,IND}}^{ T} \\&\quad + \Delta C_{\mathrm{EFF,IND}}^{ T} + \Delta C_{\mathrm{MIX,IND}}^{ T} + \Delta C_{\mathrm{CONV,IND}}^{ T} + \Delta C_{\mathrm{EMI,IND}}^{ T} \end{aligned} \end{aligned}$$
(19)

where the notations represent analogous aspects to those shown in Eqs. 16 and 17, but now for the industrial sector.

3.3.3 Commercial and public services

The granularity of the data in the commercial and public services sector follows a different perspective. Whereas we were able to gather the energy consumption and the economic output of the different sub-sectors within the agricultural and industrial sectors directly from the Eurostat (2020c) energy balances, in the case of commercial and public services, we are unable to observe a similar breakdown at the sub-sector level. However, within the conglomerate of activities that constitutes the commercial and public services sector (see Table 16 of Appendix), we can impute the fraction of energy consumption that is devoted to each type of energy end-use making use of the ODYSSEE-MURE (2020b) database.Footnote 28 In other words, we can see how much of the final energy consumption (with a breakdown by energy product) of the commercial and public services sector is allocated to space heating (SH), hot water (HW), cooking (COOK), air cooling (AC), and lighting (LIGHT). Therefore, given the breakdown of the data for this sector, the extension of the energy-related CO\(_{2}\) emissions identity for the commercial and public services sector to include the influencing factors would be as shown in Equation 20.

$$\begin{aligned}&C_{\mathrm{CPS}}^{ t} = \sum _{u} \sum _{j=1}^{63} P^{ t} \cdot \frac{{V}_{\mathrm{TOT}}^{ t} \cdot \chi ^{ t}}{P^{ t}} \cdot \frac{{V}_{\mathrm{CPS}}^{ t} \cdot \chi ^{ t}}{{V}_{\mathrm{TOT}}^{ t} \cdot \chi ^{ t}} \cdot \frac{D_{\mathrm{CPS}}^{ t}}{{V}_{\mathrm{CPS}}^{ t} \cdot \chi ^{ t}} \cdot \frac{E_{\mathrm{SQ},\mathrm{CPS}}^{ t}}{D_{\mathrm{CPS}}^{ t}} \nonumber \\&\qquad \quad \cdot \underbrace{\frac{E_{\mathrm{SQ},u,\mathrm{CPS}}^{ t}}{E_{\mathrm{SQ,CPS}}^{ t}}}_\text {(1)} \cdot \underbrace{\left( \frac{{\mathrm{HDD}}^{ t}}{{\mathrm{HDD}}_{\mathrm{ref}}} \right) _{u=\mathrm{SH}} \cdot \left( \frac{{\mathrm{CDD}}^{ t}}{{\mathrm{CDD}}_{\mathrm{ref}}}\right) _{u=\mathrm{AC}}}_\text {(2)} \cdot \frac{E_{\mathrm{SQ},u,\mathrm{CPS},j}^{ t}}{E_{\mathrm{SQ},u,\mathrm{CPS}}^{ t}} \cdot K_{\mathrm{PEQ},j}^{ t} \cdot K_{C,j}^{ t} \nonumber \\&\quad = \sum _{u} \sum _{j=1}^{63} {\mathrm{POP}}^{ t} \cdot {\mathrm{INC}}^{ t} \cdot {\mathrm{STR}}^{ t}_{\mathrm{CPS}} \cdot {\mathrm{OUT}}^{ t}_{\mathrm{CPS}} \cdot {\mathrm{EFF}}^{ t}_{\mathrm{CPS}} \cdot {\mathrm{USE}}^{ t}_{\mathrm{CPS},u} \nonumber \\&\qquad \quad \cdot {\mathrm{WEA}}^{ t}_{\mathrm{CPS},u} \cdot {\mathrm{MIX}}^{ t}_{\mathrm{CPS},u,j} \cdot {\mathrm{CONV}}^{ t}_{j} \cdot {\mathrm{EMI}}^{ t}_{j} \end{aligned}$$
(20)

where CPS stands for commercial and public services, \(u=\{\mathrm{SH,HW,COOK},\mathrm{AC,LIGHT}\}\) indexes the particular energy end-use, \(\mathrm{HDD}^{t}\) (\(\mathrm{CDD}^{t}\)) denotes the heating (cooling) degree days during the year t, \(\mathrm{HDD}_{\mathrm{ref}}\) (\(\mathrm{CDD}_{\mathrm{ref}}\)) stands for the reference value of heating (cooling) degree days for the whole period of analysis (from 1995 to 2017), the ratio \(\frac{{\mathrm{HDD}}^{ t}}{{\mathrm{HDD}}_{\mathrm{ref}}}\) is 1 for \(u\ne SH\) and the ratio \(\frac{{\mathrm{CDD}}^{ t}}{{\mathrm{CDD}}_{\mathrm{ref}}}\) is 1 for \(u\ne AC\), and the rest of notations describe analogous aspects to those shown in Eq. 15.

We can notice that in this sector we do not find the intra-structural component, since there is no disaggregation by sub-sectors as there was in the previous two sectors. However, we find two new influential factors that we did not have before: (1) the share of the different end-uses in the total final energy consumption of the sector and (2) the climate factor. The latter is included so that the magnitudes of both regions (Spain and the EU28, in our case) are comparable and to ensure that the differences between regions are not due to purely climatic systemic differences. In this sense, the final energy consumption for space heating and air cooling is adjusted following Reuter et al. (2019), since variations in weather are a determining factor for this type of end-uses and we must take this into account.Footnote 29 For that purpose, we access the data regarding the heating (cooling) degree days published by Eurostat (2020d). Finally, it should be commented that because we do not have disaggregation by sub-sectors, because the data coverage of the production volume index does not include the entire commercial and public services sector, and given that other indicators such as the surface area of the sector’s installations, the number of offices or other technical aspects are not available for the sector as a whole, the only statistic that we consider valid to act as a physical activity driver for the sector is the number of employees provided by Eurostat (2020h). Therefore, the apparent end-use energy efficiency (or physical end-use intensity) of this sector will be determined by the energy consumption per employee.

Hence, applying the LMDI decomposition technique to Eq. 20, we can derive the change in the energy-related CO\(_{2}\) emissions of the commercial and public services sector from \(t=0\) to \(t=T\) by using Eq. 21.

$$\begin{aligned} \begin{aligned} \Delta C_{\mathrm{CPS}}^{ T}&= C_{\mathrm{CPS}}^{ T} - C_{\mathrm{CPS}}^{ 0} \\&= \Delta C_{\mathrm{POP,CPS}}^{ T} + \Delta C_{\mathrm{INC,CPS}}^{ T} + \Delta C_{\mathrm{STR,CPS}}^{ T} \\&\quad + \Delta C_{\mathrm{OUT,CPS}}^{ T} + \Delta C_{\mathrm{EFF,CPS}}^{ T} \\&\quad + \Delta C_{\mathrm{USE,CPS}}^{ T} + \Delta C_{\mathrm{WEA,CPS}}^{ T} + \Delta C_{\mathrm{MIX,CPS}}^{ T} \\&\quad + \Delta C_{\mathrm{CONV,CPS}}^{ T} + \Delta C_{\mathrm{EMI,CPS}}^{ T} \end{aligned} \end{aligned}$$
(21)

where the notations represent analogous aspects to those shown in Eqs. 16 and 17, but now for the commercial and public services sector. Furthermore, following this scheme, \(\Delta C_{\mathrm{USE,CPS}}^{ T}\) describes the change in the energy-related CO\(_{2}\) emissions of the commercial and public services sector from \(t=0\) to \(t=T\) that is associated to changes in the share of the different end-uses in the total final energy consumption of the sector and \(\Delta C_{\mathrm{WEA,CPS}}^{ T}\) is the change associated to the variations in the climate conditions.Footnote 30

3.3.4 Households

For the household sector (denoted by HH), the approach is designed based on the energy end-uses in that sector, a similar strategy to that followed for the commercial and public services sector. In this case, the difference comes from the energy consumption of households not being associated with any economic activity (included in the NACE list), but coming from a private activity. Again, in the case of households, we are not able to observe a breakdown by energy end-uses directly from the Eurostat (2020c) energy balances. However, we can impute the fraction of energy consumption that is devoted to each type of energy end-use making use of the ODYSSEE-MURE (2020b) database. In this sense, we can observe how much of the final energy consumption of the households is allocated to space heating (SH), hot water (HW), cooking (COOK), air cooling (AC), and lighting (LIGHT). In addition, due to a different definition of the apparent end-use energy efficiency factor for each end-use type of the residential final energy consumption and given the breakdown of the data for this sector, the extension of the energy-related CO\(_{2}\) emissions identity for the household sector to include the influencing factors would be separated in this case into two different expressions, as shown in Eqs. 22 and 23.

Equation 22 displays the extension of the energy-related CO\(_{2}\) emissions identity for the case of space heating as energy end-use.

$$\begin{aligned} \begin{aligned}&C_{HH,SH}^{ t} = \sum _{j=1}^{63} P^{ t} \cdot \underbrace{\frac{{H}^{ t}}{P^{ t}}}_\text {(1)} \cdot \underbrace{\frac{{A}^{ t}}{{H}^{ t}}}_\text {(2)} \cdot \frac{E_{\mathrm{SQ,SH,HH}}^{ t}}{{A}^{ t}} \cdot \frac{{\mathrm{HDD}}^{ t}}{{\mathrm{HDD}}_{\mathrm{ref}}} \cdot \frac{E_{\mathrm{SQ,SH,HH},j}^{ t}}{E_{\mathrm{SQ,SH,HH}}^{ t}} \cdot K_{\mathrm{PEQ},j}^{ t} \cdot K_{C,j}^{ t} \\&\quad = \sum _{j=1}^{63} {\mathrm{POP}}^{ t} \cdot {\mathrm{SOC}}^{ t} \cdot {\mathrm{COM}}^{ t} \cdot {\mathrm{EFF}}^{ t}_{\mathrm{HH,SH}} \cdot {\mathrm{WEA}}^{ t}_{\mathrm{HH,SH}} \cdot {\mathrm{MIX}}^{ t}_{\mathrm{HH,SH},j} \cdot {\mathrm{CONV}}^{ t}_{j} \cdot {\mathrm{EMI}}^{ t}_{j} \end{aligned} \end{aligned}$$
(22)

where \({H}^{ t}\) denotes the number of dwellings in the region at year t, \({A}^{ t}\) represents the total area of dwellings in the region (in m\(^{2}\)), and the rest of notations describe analogous aspects to those shown in Eqs. 15 and 20. In this case, data for \({A}^{ t}\) and \({H}^{ t}\) are extracted from the ODYSSEE-MURE (2020b) database. Therefore, the factor \({\mathrm{EFF}}^{ t}_{\mathrm{HH,SH}}\) is defined as energy consumption for space heating use per m\(^{2}\) of dwelling in the region. In the case of the household sector, we do not find influencing factors like income per capita, economic structure and intra-structure, structural factors affecting the energy intensity of the sector nor a factor calibrating the share that the different energy end-uses have in the total energy consumption of the sector. However, we discover two new influencing factors that we had not found before: (1) the social factor (i.e., less people living together in one dwelling) and (2) the comfort factor (or factor related to living standards, i.e., an increasing/decreasing area per dwelling).

On the other hand, Eq. 23 displays the extension of the energy-related CO\(_{2}\) emissions identity for the case of household energy end-uses different from space heating.

$$\begin{aligned}&C_{\mathrm{HH},\overline{\mathrm{SH}}}^{ t} = \sum _{u\ne \mathrm{SH}} \sum _{j=1}^{63} P^{ t} \cdot \underbrace{\frac{{H}^{ t}}{P^{ t}}}_\text {(1)} \cdot \frac{E_{\mathrm{SQ},u,\mathrm{HH}}^{ t}}{{H}^{ t}} \cdot \left( \frac{{\mathrm{CDD}}^{ t}}{{\mathrm{CDD}}_{\mathrm{ref}}} \right) _{u=\mathrm{AC}} \cdot \frac{E_{\mathrm{SQ},u,\mathrm{HH},j}^{ t}}{E_{\mathrm{SQ},u,\mathrm{HH}}^{ t}} \cdot K_{\mathrm{PEQ},j}^{ t} \cdot K_{C,j}^{ t} \nonumber \\&\quad = \sum _{u\ne \mathrm{SH}} \sum _{j=1}^{63} {\mathrm{POP}}^{ t} \cdot {\mathrm{SOC}}^{ t} \cdot {\mathrm{EFF}}^{ t}_{\mathrm{HH},u} \cdot {\mathrm{WEA}}^{ t}_{\mathrm{HH},u} \cdot {\mathrm{MIX}}^{ t}_{\mathrm{HH},u,j} \cdot {\mathrm{CONV}}^{ t}_{j} \cdot {\mathrm{EMI}}^{ t}_{j}\nonumber \\ \end{aligned}$$
(23)

where the factor \({\mathrm{EFF}}^{ t}_{\mathrm{HH},u}\) is defined here as energy consumption for end-use u per dwelling in the region and the rest of notations describe analogous aspects to those shown in Equations 15 and 20. It can be noticed that we do not incorporate the factor \({\mathrm{COM}}^{ t}\) for energy end-use types different from space heating, but only the factor \({\mathrm{SOC}}^{ t}\)(1). We should also note that the ratio \(\frac{{\mathrm{CDD}}^{ t}}{{\mathrm{CDD}}_{\mathrm{ref}}}\) is 1 for \(u\ne \mathrm{AC}\).

Therefore, applying the LMDI decomposition technique to Eqs. 22 and 23, we can derive the change in the energy-related CO\(_{2}\) emissions of the household sector from \(t=0\) to \(t=T\) by using Eq. 24.

$$\begin{aligned} \begin{aligned} \Delta C_{\mathrm{HH}}^{ T}&= \Delta C_{\mathrm{HH,SH}}^{ T} + \Delta C_{\mathrm{HH},\overline{\mathrm{SH}}}^{ T}\\&= (C_{\mathrm{HH,SH}}^{ T} - C_{\mathrm{HH,SH}}^{ 0}) + (C_{\mathrm{HH},\overline{\mathrm{SH}}}^{ T} - C_{\mathrm{HH},\overline{\mathrm{SH}}}^{ 0}) \\&= \Delta C_{\mathrm{POP,HH}}^{ T} + \Delta C_{\mathrm{SOC,HH}}^{ T} + \Delta C_{\mathrm{COM,HH}}^{ T} \\&\quad + \Delta C_{\mathrm{EFF,HH}}^{ T} + \Delta C_{\mathrm{WEA,HH}}^{ T} \\&\quad + \Delta C_{\mathrm{MIX,HH}}^{ T} + \Delta C_{\mathrm{CONV,HH}}^{ T} + \Delta C_{\mathrm{EMI,HH}}^{ T} \end{aligned} \end{aligned}$$
(24)

where the notations represent analogous aspects to those shown in Eqs. 16 and 17, but now for the household sector. Furthermore, following this scheme, \(\Delta C_{\mathrm{SOC,HH}}^{ T}\) describes the change in the energy-related CO\(_{2}\) emissions of the household sector from \(t=0\) to \(t=T\) that is associated to changes in social factors and \(\Delta C_{\mathrm{COM,HH}}^{ T}\) is the change associated to comfort or behavior developments.Footnote 31

3.3.5 Transport

As far as the transport sector is concerned (denoted by TRA), the strategy is based on the final energy demands coming from the different existing transport modes. Again, these energy consumptions are not associated with any economic activity (included in the NACE list), but are taken as energy consumption derived from private activity.Footnote 32 In terms of energy consumption data availability for this sector, the Eurostat (2020c) energy balances present a disaggregation by transport mode (rail, road, aviation, navigation, and pipelines), but no distinction is made on the share of the energy consumption of each transport mode that corresponds to freight (FR) and passenger transport (PASS). This distinction is very relevant as the most appropriate indicator to express activity is passenger-kilometers (PKM, hereafter) in the case of passenger transport and tonne-kilometers (TKM, hereafter) in the case of freight transport. As the conversion of PKM to TKM is not possible, alternative sources like the ODYSSEE-MURE (2020b) database must be considered. In this sense, since domestic navigation (NAVI) and pipeline transport (PIPE) are freight transport by definition and domestic air transport + other (AVI) is passenger transport by definition, using the shares offered by the ODYSSEE-MURE (2020b) database, we calculate which part of the road transport (ROAD) and train transit (RAIL) is due to passenger transport and which part is due to freight transport.Footnote 33 Once we have defined it, we have a complete disaggregation of the transport energy consumption by transport modes. Therefore, the extension of the energy-related CO\(_{2}\) emissions identity for the transport sector to include the influencing factors would be given by Eq. 25.

$$\begin{aligned} \begin{aligned}&C_{\mathrm{TRA}}^{t} = \sum _{p} \sum _{q} \sum _{j=1}^{63} P^{ t} \cdot \underbrace{\frac{{K}^{ t}_{p}}{P^{ t}}}_\text {(1)} \cdot \underbrace{\frac{{K}^{ t}_{p,q}}{{K}^{ t}_{p}}}_\text {(2)} \cdot \frac{E_{\mathrm{SQ},p,q,\mathrm{TRA}}^{ t}}{{K}^{ t}_{p,q}} \cdot \frac{E_{\mathrm{SQ},p,q,\mathrm{TRA},j}^{ t}}{E_{\mathrm{SQ},p,q,\mathrm{TRA}}^{ t}} \cdot K_{\mathrm{PEQ},j}^{ t} \cdot K_{C,j}^{ t} \\&\quad = \sum _{p} \sum _{q} \sum _{j=1}^{63} {\mathrm{POP}}^{ t} \cdot {\mathrm{SOC}}^{ t}_{p} \cdot {\mathrm{STR}}^{ t}_{p,q} \cdot {\mathrm{EFF}}^{ t}_{p,q} \cdot {\mathrm{MIX}}^{ t}_{p,q,j} \cdot {\mathrm{CONV}}^{ t}_{j} \cdot {\mathrm{EMI}}^{ t}_{j} \end{aligned} \end{aligned}$$
(25)

where \({K}^{ t}_{p}\) denotes the PKM at year t in the whole passenger transport if \(p=PASS\) and the TKM at year t in the whole freight transport if \(p=FR\), \({K}^{ t}_{p,q}\) stands for the PKM of the passenger transport mode q (for \(q=\{\mathrm{ROAD,RAIL,AVI}\}\)) at year t if \(p=\mathrm{PASS}\) and the TKM of the freight transport mode q (for \(q=\{\mathrm{ROAD,RAIL,NAVI,PIPE}\}\)) at year t if \(p=FR\), and the rest of notations describe analogous aspects to those shown in Equation 15. PKM and TKM data are gathered from the ODYSSEE-MURE (2020b) database for every transport mode except for pipeline transport, whose associated TKM are taken from a report published by Eurostat (2020m).Footnote 34 Therefore, the apparent end-use energy efficiency of the transport sector is measured as energy consumption per PKM (if passenger transport) or per TKM (if freight transport). We do not find in this sector influencing factors like income per capita, intra-structure, weather, comfort, structural factors affecting the energy intensity of the sector nor a factor calibrating the share that the different energy end-uses have in the total energy consumption of the sector. However, two influencing factors that we have presented above are here redefined: (1) the factor \({\mathrm{SOC}}^{ t}_{p}\) is here constructed as PKM or TKM per capita and (2) the factor \({\mathrm{STR}}^{ t}_{p,m}\) describes the modal composition of the passenger or freight transport structure.

Hence, applying the LMDI decomposition technique to Equation 25, we can derive the change in the energy-related CO\(_{2}\) emissions attributed to the transport sector from \(t=0\) to \(t=T\) by using Eq. 26.

$$\begin{aligned} \begin{aligned} \Delta C_{\mathrm{TRA}}^{ T}&= C_{\mathrm{TRA}}^{ T} - C_{\mathrm{TRA}}^{ 0} \\&= \Delta C_{\mathrm{POP,TRA}}^{ T} + \Delta C_{\mathrm{SOC,TRA}}^{ T} + \Delta C_{\mathrm{STR,TRA}}^{ T} \\&\quad + \Delta C_{\mathrm{EFF,TRA}}^{ T} + \Delta C_{\mathrm{MIX,TRA}}^{ T} \\&\quad + \Delta C_{\mathrm{CONV,TRA}}^{ T} + \Delta C_{\mathrm{EMI,TRA}}^{ T} \end{aligned} \end{aligned}$$
(26)

where the notations represent analogous aspects to those shown in Eqs. 16 and 17, but now for the transport sector.

3.3.6 Factor aggregation scheme and data

After carefully explaining the different LMDI decomposition strategies that we have performed for each of the five sectors presented above and given the aggregation property of the LMDI formulation, the obtained sectoral results are summed up to review the composition of the energy-related CO\(_{2}\) emissions as a whole. Based on Eq. 13, where it is stated that the total energy-related CO\(_{2}\) emissions is equivalent to the aggregation of the different sectoral estimates of such magnitude, we can obtain an aggregate LMDI decomposition for the change in the total energy-related CO\(_{2}\) emissions from \(t=0\) to \(t=T\) by using Eq. 27.

$$\begin{aligned} \begin{aligned} \Delta C_{\mathrm{TOT}}^{ T}&= \Delta C_{\mathrm{AGRI}}^{ T} + \Delta C_{\mathrm{IND}}^{ T} + \Delta C_{\mathrm{CPS}}^{ T} + \Delta C_{\mathrm{HH}}^{ T} + \Delta C_{\mathrm{TRA}}^{ T} = \sum _{s} \Delta C_{s}^{ T} \\&= \Delta C_{\mathrm{POP,TOT}}^{ T} + \Delta C_{\mathrm{INC,TOT}}^{ T} + \Delta C_{\mathrm{SOC,TOT}}^{ T} + \Delta C_{\mathrm{COM,TOT}}^{ T} \\&\quad + \Delta C_{\mathrm{STR,TOT}}^{ T} + \Delta C_{\mathrm{INTR,TOT}}^{ T} + \Delta C_{\mathrm{OUT,TOT}}^{ T} \\&\quad + \Delta C_{\mathrm{EFF,TOT}}^{ T} + \Delta C_{\mathrm{USE,TOT}}^{ T} + \Delta C_{\mathrm{WEA,TOT}}^{ T} \\&\quad + \Delta C_{\mathrm{MIX,TOT}}^{ T} + \Delta C_{\mathrm{CONV,TOT}}^{ T} + \Delta C_{\mathrm{EMI,TOT}}^{ T} \end{aligned} \end{aligned}$$
(27)

where the factor \(\Delta C_{\mathrm{EFF,TOT}}^{ T}\), as an example, would be constructed as shown in Eq. 28 (and in analogous manner for other factors).

$$\begin{aligned} \Delta C_{\mathrm{EFF,TOT}}^{ T} = \sum _{s} C_{\mathrm{EFF},s}^{ T} \end{aligned}$$
(28)

for \(s=\{\mathrm{AGRI,IND,CPS,HH,TRA}\}\). However, as we have seen in the above narrative, not all sectors (or sub-sectors) imply a change for the aggregate magnitude. For example, the weather factor at the aggregate level is only determined by how the climate shapes the energy consumption devoted to space heating or air cooling in the services and residential sectors. In any case, an overview of how the factors are aggregated is shown in Fig. 4. Finally, to check the validity of the decomposition, we estimate the annual change of the total energy-related CO\(_{2}\) emissions from \(t=0\) to \(t=T\) and we compare it with the quantity obtained by aggregating the changes in the different factors and sectors. In this regard, our check reveals 0% differences for the vast majority of cases, with the difference never exceeding 2%, which may be due to the problem that the LMDI approach has in dealing with close-to-zero values.

Fig. 4
figure 4

Aggregation scheme over factors and sectors

3.4 Further decomposition of apparent end-use energy efficiency

After performing the decomposition presented in the previous Sect. 3.3, we can see how much the apparent end-use energy efficiency contributes to the evolution of energy-related CO\(_{2}\) emissions in Spain and the EU. However, as we commented in Sect. 2.5, this observed end-use energy efficiency may be driven not only by the technical efficiency itself, but also by other influences such as possible rebound effects resulting from technical efficiency improvements or other factors such as the infra-utilization of installed energy equipment. For this reason, we consider it necessary to develop a methodology of decomposition that allows us to know what is really driving the apparent end-use energy efficiency (the observed energy unit consumption).

Firstly, we define what we understand as apparent end-use energy efficiency. For each sub-sector of the economy previously presented, m, belonging to a sector, s, the apparent end-use energy efficiency at year t, \(\mathrm{AEE}_{m,s}^{t}\), is determined by the physical activity driver of said sub-sector, \(D_{m,s}^{t}\), divided the final energy consumption of said sub-sector, \(E_{\mathrm{SQ},m,s}^{t}\). Note that since a decrease in the specific unit energy consumption is an increase in the apparent energy efficiency, such observed energy efficiency will be given by the inverse of the mentioned specific unit energy consumption. That is,

$$\begin{aligned} \mathrm{AEE}_{m,s}^{t} = \frac{1}{\frac{E_{\mathrm{SQ},m,s}^{t}}{D_{m,s}^{t}}} = \frac{D_{m,s}^{t}}{E_{\mathrm{SQ},m,s}^{t}}. \end{aligned}$$
(29)

In order to make the evolution of all these apparent energy efficiency indicators comparable across sub-sectors, we calculate an index with base 100 in 1995 (the beginning of our analysis period), i.e., \(\mathrm{AEE}_{m,s}^{1995}=100\). In addition, once presented for each sub-sector, the apparent end-use energy efficiency index of the sector s as a whole, \(\mathrm{AEE}_{s}^{t}\), is determined by the average of whose sub-sector indexes pondered by the weight of each of them in the final energy consumption of the sector, \(\omega _{m,s}^{t}=\frac{E_{\mathrm{SQ},m,s}^{ t}}{E_{\mathrm{SQ},s}^{ t}}\). That is, \(\mathrm{AEE}_{s}^{t} = \sum _{m} \mathrm{AEE}_{m,s}^{t} \cdot \omega _{m,s}\). Analogously, the total or national apparent end-use energy efficiency index will be given by \(\mathrm{AEE}_{\mathrm{TOT}}^{t} = \sum _{s} \mathrm{AEE}_{s}^{t} \cdot \omega _{s}^{t}\), with \(\omega _{s}^{t}\) being in this case the share of the sector s in the total final energy consumption, \(\frac{E_{\mathrm{SQ},s}^{ t}}{E_{\mathrm{SQ,TOT}}^{ t}}\).

Secondly, we present the calculation of the technical end-use energy efficiency index. Following the definition and calculations provided by ODYSSEE-MURE (2020a), for each sub-sector of the economy previously presented, m, belonging to a sector, s, the technical end-use energy efficiency index (also called ODEX index) at year t, \(\mathrm{TEE}_{m,s}^{t}\), will be defined as the apparent end-use energy efficiency index assuming non-reversible efficiency improvements. A decrease in the specific unit energy consumption (an increase of the apparent energy efficiency index) indicates that energy efficiency has been improving. However, in some cases the observed indicator shows an increase (an decrease in the apparent energy efficiency index), resulting in a negative energy efficiency improvement. Since we assume non-reversible technical efficiency improvements, this increase in the specific unit energy consumption may be due to an inefficient use of the equipment (part of the energy consumption is independent of the production level), as it is often observed during economic recession, or due to rebound effects derived from a fall in the effective energy cost. In this case, the apparent energy efficiency index can be replaced by technical energy efficiency index, by considering that if the apparent energy efficiency index for a given sub-sector decreases at year t its value will be kept constant in the calculation of the technical efficiency, i.e., the considered apparent energy efficiency index will be that from year \(t-1\). Thus, the technical end-use energy efficiency index of the sub-sector m in the sector s at year t will be depicted by Eq. 30.

$$\begin{aligned} \begin{aligned} \mathrm{TEE}_{m,s}^{t}&= \mathrm{TEE}_{m,s}^{t-1}\cdot \frac{E_{\mathrm{SQ},m,s}^{t}+D_{m,s}^{t}\cdot \left( \frac{E_{\mathrm{SQ},m,s}^{t-1}}{D_{m,s}^{t-1}} - \frac{E_{\mathrm{SQ},m,s}^{t}}{D_{m,s}^{t}} \right) }{E_{\mathrm{SQ},m,s}^{t}} \\&= \mathrm{TEE}_{m,s}^{t-1}\cdot \frac{E_{\mathrm{SQ},m,s}^{t}+D_{m,s}^{t}\cdot \left( \frac{1}{\mathrm{AEE}_{m,s}^{t-1}} - \frac{1}{\mathrm{AEE}_{m,s}^{t}} \right) }{E_{\mathrm{SQ},m,s}^{t}} \\&= \mathrm{TEE}_{m,s}^{t-1}\cdot \frac{E_{\mathrm{SQ},m,s}^{t}+\mathrm{PES}_{\mathrm{SQ},m,s}^{t}}{E_{\mathrm{SQ},m,s}^{t}} \end{aligned} \end{aligned}$$
(30)

where \(\mathrm{PES}_{\mathrm{SQ},m,s}^{t}\) denotes the potential energy savings (PES) from \(t-1\) to t and is calculated by multiplying the physical activity driver at t by the variation in the specific unit energy consumption between \(t-1\) to t, and it is assumed that \(PES_{\mathrm{SQ},m,s}^{t}=0\) for \(\mathrm{AEE}_{m,s}^{t}\le \mathrm{AEE}_{m,s}^{t-1}\). It means that the technical end-use energy efficiency index of the sub-sector min the sector s at year t will be obtained by multiplying the index in the previous period, \(\mathrm{TEE}_{m,s}^{t-1}\), by the ratio between the final energy consumption of the sub-sector without potential energy savings (PES) at t, \(E_{\mathrm{SQ},m,s}^{t} + \mathrm{PES}_{\mathrm{SQ},m,s}^{t}\), and the actual energy consumption at t, \(E_{\mathrm{SQ},m,s}^{t}\), assuming that these PES cannot be negative. For example, say that the technical end-use energy efficiency index of the construction sub-sector were 103 in year 2001, the final energy consumption of such sub-sector were 2,1 in 2002, and the PES of said sub-sector were 0,18 in 2002. Then the technical end-use energy efficiency index of the construction sub-sector in year 2002 would be \(111,82=103\cdot \frac{2,1+0,18}{2,1}\).

Finally, once presented for each sub-sector, as shown in Eq. 31, the technical end-use energy efficiency index of the sector s as a whole, \(\mathrm{TEE}_{s}^{t}\), will be computed by multiplying the sectoral index in the previous period, \(\mathrm{TEE}_{s}^{t-1}\), by the average of whose sub-sectoral index changes pondered by the weight of each of these sub-sectors in the final energy consumption of the sector, \(\omega _{m,s}^{t}=\frac{E_{\mathrm{SQ},m,s}^{ t}}{E_{\mathrm{SQ},s}^{ t}}\).

$$\begin{aligned} \mathrm{TEE}_{s}^{t} = \mathrm{TEE}_{s}^{t-1}\cdot \left( \sum _{m} \frac{\mathrm{TEE}_{m,s}^{t}}{\mathrm{TEE}_{m,s}^{t-1}}\cdot \omega _{m,s}^{t} \right) \end{aligned}$$
(31)

Analogously, the total or national technical end-use energy efficiency index will be given by Eq. 32.

$$\begin{aligned} \mathrm{TEE}_{\mathrm{TOT}}^{t} = \mathrm{TEE}_{\mathrm{TOT}}^{t-1}\cdot \left( \sum _{s} \frac{\mathrm{TEE}_{s}^{t}}{\mathrm{TEE}_{s}^{t-1}}\cdot \omega _{s}^{t} \right) \end{aligned}$$
(32)

with \(\omega _{s}^{t}\) being in this case the share of the sector s in the total final energy consumption, \(\frac{E_{\mathrm{SQ},s}^{ t}}{E_{\mathrm{SQ,TOT}}^{ t}}\). We should note that with our calculations of the technical energy efficiency index, we success to acquire the same numbers as those published by ODYSSEE-MURE (2020a) in its ODEX index series, which highlights and shows the adequacy of the method we follow for the estimation of technical efficiency.

After having presented both apparent and technical end-use energy efficiency indexes, we can decompose the index-points change in the apparent end-use energy efficiency index of sector s from \(t-1\) to t, \(\Delta \mathrm{AEE}_{s}^{t}\), as the sum of the apparent index-points changes caused by three influencing components. As shown in Eq. 33, these components will be: (1) the index-points change in the apparent efficiency index caused by technical efficiency index changes in sector s, \(\Delta \mathrm{AEE}_{\mathrm{TEE}_{s}^{t},s}^{t}\); (2) the index-points change in the apparent efficiency index caused by the rebound effect derived from a technical change in sector s, \(\Delta \mathrm{AEE}_{\mathrm{RE}(\mathrm{TEE}_{s}^{t}),s}^{t}\); and (3) the index-points change in the apparent efficiency index caused by a variation in other factors in sector s, \(\Delta \mathrm{AEE}_{\mathrm{OF}_{s}^{t},s}^{t}\), where the infra-utilization of installed energy equipment could enter as a key contributor, jointly with other extra non-identifiable factors.

$$\begin{aligned} \Delta \mathrm{AEE}_{s}^{t} := \Delta \mathrm{AEE}_{\mathrm{TEE}_{s}^{t},s}^{t} + \Delta \mathrm{AEE}_{\mathrm{RE}(\mathrm{TEE}_{s}^{t}),s}^{t} + \Delta \mathrm{AEE}_{\mathrm{OF}_{s}^{t},s}^{t} \end{aligned}$$
(33)

for \(s=\{\mathrm{AGRI,IND,CPS,HH,TRA}\}\) if we analyze the sectoral apparent energy efficiency metrics and for \(s=TOT\) if we assess the total or national apparent energy efficiency index change.

More precisely, the index-points change in the apparent efficiency index caused by technical efficiency index changes in sector s, will be directly given by the index-points change in the technical efficiency index. That is, \(\Delta \mathrm{AEE}_{\mathrm{TEE}_{s}^{t},s}^{t}=\Delta \mathrm{TEE}_{s}^{t}\).

A more detailed explanation is needed when it comes to identify the index-points change in the apparent efficiency index caused by the rebound effect derived from a technical change. As discussed in Sect. 2.5.1, it is not right to analyze the apparent end-use energy efficiency without a deep mention of the induced rebound effect. In this sense, a positive change in the technical end-use energy efficiency could make an energy service become less costly (effective energy price is reduced) for the user than before the technical energy efficiency improvement happened. This decrease in the cost of the energy service could provoke increases in the final energy consumption, which would negatively contribute to the evolution of the observed end-use energy efficiency. This mechanism is known as rebound effect, which is mathematically defined as the fraction, RE, of the index-points change in the technical efficiency index, \(\Delta \mathrm{TEE}_{s}^{t}\), that is not directly translated into the index-points change in the apparent efficiency index. That is, we identify the index-points change in the apparent efficiency index caused by the rebound effect as \(\Delta \mathrm{AEE}_{\mathrm{RE}(\mathrm{TEE}_{s}^{t}),s}^{t}=-\mathrm{RE}\cdot \Delta \mathrm{TEE}_{s}^{t}\).Footnote 35

Since we can identify the index-points change in the technical efficiency index, the only remaining aspect to be determined would be the RE fraction itself. For this purpose, we rely on the available academic literature devoted to estimate the magnitude of these rebound effects. More precisely, we use the economy-wide rebound effect estimates from Peña-Vidondo et al. (2012) and Adetutu et al. (2016). As discussed in Sect. 2.5.1, we select academic works that estimate the economy-wide rebound effect, because it is a wider definition of the rebound effect which encompasses all possible sub-types of rebound effects.

One the one hand, we use the economy-wide rebound effect estimates of Adetutu et al. (2016) to be able to compare the evolution of the rebound effect over time both in Spain and in the EU28. They use a combined stochastic frontier analysis (SFA) and two-stage dynamic panel data approach to explore the magnitude of the economy-wide rebound effect for 55 countries over the period 1980 to 2010.Footnote 36 The use of their estimates has the advantage of allowing us to have economy-wide rebound effects for both Spain and the EU28 (i) calculated on an equal methodological footing and (ii) for a long period of time. However, these estimates do not allow us to analyze more than the rebound effect of the total economy. In this sense, with these data we cannot reach higher levels of disaggregation and analyze the rebound effects by sector or by type of energy.

To make the latter possible, we refer to the results provided by Peña-Vidondo et al. (2012). They develop a CGE model (i) describing an open economy disaggregated into 27 production sectors, with 27 consumer goods, a representative consumer, the public sector and a simplified rest of the world and (ii) accounting for every group of energy products. In addition, unlike similar models, their model has the particular feature of including unemployment in labor markets, which is key for calculating economy-wide rebound effects given the high level of unemployment in the Spanish economy. The results of these authors are an enormous discovery for us, since they allow us to learn about the economy-wide rebound effect for each sector and for each group of energy products. Moreover, the sectoral structure of this analysis permits us to fully match their sectors and sub-sectors with the sectoral disaggregation available in our work. However, this article only analyzes Spain for the year 2005.Footnote 37 Therefore, in Sect. 4 we will only be able to show the sectoral breakdown of this effect for the Spanish case, while for the EU28 case we will only have the total aggregate rebound effect. Finally, another favorable point is that both papers, with different methodologies, estimate similar economy-wide rebound effects for Spain (of the order of 60%), which highlights the validity of the selected literature, albeit different, for acquiring the estimates of rebound effects.

Finally, the index-points change in the apparent efficiency index caused by a variation in other factors in sector s, \(\Delta \mathrm{AEE}_{OF_{s}^{t},s}^{t}\), is the only contributor to the evolution of the apparent end-use energy efficiency index that needs to be identified. This is defined residually as \(\Delta \mathrm{AEE}_{\mathrm{OF}_{s}^{t},s}^{t}= \Delta \mathrm{AEE}_{s}^{t} - \Delta \mathrm{AEE}_{\mathrm{TEE}_{s}^{t},s}^{t} - \Delta \mathrm{AEE}_{\mathrm{RE}(\mathrm{TEE}_{s}^{t}),s}^{t}\). This last contributor is a umbrella term that is determined in a residual way and where the infra-utilization of installed energy equipment could enter as a key contributor, jointly with other extra non-identifiable factors. However, we are not able to reach higher level of detail within this contributor, so we cannot distinguish what part of the other-factors term is actually determined by the infra-utilization of installed resources and what part is not. In any case, we believe that said infra-utilization plays an important role in driving the observed or apparent end-use energy efficiency index. Decreases of the apparent energy efficiency that cannot be explained by rebound effects may be due to an inefficient use of the equipment, as it is often observed during economic recessions. As shown by the Ministerio de Turismo, Energía y Agenda Digital (2017), in a period of recession, the energy consumption of the industry does not decrease proportionally to the activity as the observed efficiency of most equipment drops, as they are not used at their maximum rated capacity. It means that part of its energy consumption is independent of the production level. This is why we believe that infra-utilization is a key component of the other-factors contributor, although we cannot state it with certainty since we cannot decompose further said contributor.

To sum up, we provide an example on how we decompose the index-points change in the apparent end-use energy efficiency of a sub-sector from \(t-1\) to t. Let’s say that the machinery industrial sub-sector presented an apparent end-use energy efficiency index of 104 at \(t-1\) and of 107 at t. We can deduce that the index-points change in its observed end-use energy efficiency at t is +3. In addition, say that such sub-sector (i) experienced an increase in its technical end-use energy efficiency of 8 index points from \(t-1\) to t and (ii) present a rebound effect of 45%. Then, the index-points change in the apparent end-use energy efficiency of the machinery industrial sub-sector can be decomposed as follows: \(3 = (8) - (40\%\cdot 8) + (3-8+40\%\cdot 8) = (8) - (3,2) + (-1,8)\). It means that (i) the technical energy efficiency contributes with 8 positive index-points to the index-points change in the apparent end-use energy efficiency of the machinery industrial sub-sector, (ii) the rebound effect contributes negatively with − 3,2 index points to said change, (iii) and other factors contribute also negatively with up to − 1,8 index points to such change.

4 Results

Once the methodology that we adopt to estimate the energy-related CO\(_{2}\) emissions and to determine the contribution of certain factors to the evolution of said magnitude has been presented, we can now provide a description of the main results found. The assignments of primary energy requirements and CO\(_{2}\) emissions responsibilities are shown in Sects. 4.1 and 4.2, respectively. Subsequently, the factor and sectoral decomposition results for the evolution of the energy-related CO\(_{2}\) emissions are shown in an aggregated way in Sect. 4.3. The remaining Subsections are devoted to a separate analysis of each of the most relevant influencing factors in the mentioned evolution.

4.1 Allocation of primary energy requirements

First, we make use of the estimated \(K_{\mathrm{PEQ}}\) to derive the primary energy requirements associated to each component of the final energy demand, as shown Table 2. We must note that the estimation of the primary energy requirements associated to the final energy demand reveals a number that is equivalent to the gross available energy (calculated from the supply side) reported in the energy balances published by Eurostat (2020c), which proves that our method of estimation is appropriate. We can observe that the total primary energy requirements have increased, both in the EU28 (+ 4.2%) and in Spain (+ 33.5%) from 1995 to 2017, being the increase much higher in the Spanish case. We can also show that the requirements solely associated to final energy consumption are responsible of the greatest fraction of total primary energy requirements, but their weight has experienced a drop both in the EU28 (from 85.3 to 80.9%) and in Spain (from 80.6 to 77.5%). The final non-energy consumption, and to a lesser extent the distribution losses, have also reduced their weight in the total primary energy requirements, which was already small, in favor of the weight gained by the primary energy requirements associated to the consumption dedicated to the international maritime bunkers and aviation, and the positive net export balances. This is an evolution that can be observed both in the EU28 and in Spain.

Table 2 Total primary energy requirements (Demand perspective)

Moreover, applying the respective \(K_{\mathrm{PEQ},j}\) elevation factor to each energy product j, we can obtain the primary energy requirements derived from each energy product. For this purpose, we show in Table 3 how much the primary energy requirements related to each energy product group (a compendium of similar energy products) contribute to the requirements stemming from the total energy supply, a magnitude reported in the energy balances published by Eurostat (2020c) which results from subtracting all energy consumption not directly related to the activity in the territory (i.e., energy consumption for international maritime bunkers and aviation and energy consumption to cover positive net export balances) from the total final energy demand.

Table 3 Primary energy requirements associated to total energy supply

Again, the estimation of the primary energy requirements associated to the total energy supply reveals a number that is equivalent to the magnitude reported in the energy balances published by Eurostat (2020c), which highlights the strength of our estimation approach. We can notice how the total energy supply has increased from 1995 to 2017 in Spain, while in the EU28 it not only has not been maintained, but has decreased. We also see how the primary energy needs associated with electricity have increased in both regions, accounting for a higher weight in Spain. At the same time, we can see that derived heat does not represent a significant weight in Spain, while in the EU28 it has a not insignificant weight. Finally, we can show how the weight of the requirements derived from oil and petroleum products (which accounted for 50% of primary energy needs in Spain in 1995) and the weight associated to natural gas are evolving approaching European values (around 30% for oil products and in the region of 15% for natural gas). However, the weight of the oil derivatives is still relatively large in Spain in comparison with the EU28. Finally, as for the weight of renewable energies in the primary mix, it can be seen that Spain (which accounted for a greater presence of renewables than the EU28 in 1995) is experiencing a much weaker increase than the one observed in the EU28. Consequently, the EU28 has witnessed a greater decarbonization of its national primary mix than Spain from 1995 to 2007.

Table 4 Primary energy requirements associated to final energy consumption

Further, by applying the \(K_{\mathrm{PEQ}}\) elevation factor to the final energy consumption, we can compute the responsibility of each end-use sector in the primary energy requirements related to such final energy consumption. We should note that the final energy consumption has been corrected by the heating and cooling degree days of each region in order to make the quantities comparable across regions, i.e., quantities not reflecting asymmetric changes in weather conditions in both regions.

In Table 4, we can notice that the climate-adjusted primary energy requirements derived from final energy consumption increase by 31.7% in Spain from 1995 to 2017, while they remain unchanged in the EU28. The industry is the sector with the highest responsibility of primary energy needs both in Spain and in the EU28. The main differences across regions lie in (i) the household sector, with share of the primary energy requirements being much higher in the EU28 than in Spain, and in (ii) the transport sector, which is more relevant for the Spanish primary energy needs than for those of the EU28. Finally, the share attributed to commercial and public services grows to a greater extent in Spain than in the EU28.

4.2 Allocation of carbon dioxide emissions

Making use of the previous mapping scheme to assign responsibilities of primary energy requirements and the \(K_{C,j}\) - \(K_{C,\mathrm{SQ},j}\) elevation factors, the estimated energy-related CO\(_{2}\) emissions derived from the total final energy demand (recall that it does not include only final energy consumption, but also other magnitudes) are shown in Table 5. We find that the mentioned emissions have increased by 22% in Spain from 1995 to 2017, while they remain in the levels of 1995 in the EU28. We also detect that the emissions derived from final energy consumption account for the largest proportion of the total CO\(_{2}\) emissions (around 80%), but this proportion has diminished in favor of the weight gained by the CO\(_{2}\) emissions associated to energy consumption for international maritime bunkers, non-domestic aviation, and positive net export balances. This is an evolution that can be observed both in the EU28 and in Spain.

Table 5 Energy-related CO\(_{2}\) emissions associated to total final energy demand

Moreover, applying our estimated \(K_{C,\mathrm{SQ},j}\) elevation factor to the consumption of each energy product j, we can obtain the energy-related CO\(_{2}\) emissions derived from each energy product in the final energy consumption, which has been adjusted by the heating and cooling degree days of each region in order to make the magnitudes comparable across regions. This is the reference magnitude to study the evolution of the emissions, since it does not incorporate the energy-related CO\(_{2}\) emissions related to international energy activities, energy distribution losses and positive net energy export balances. In other words, this is the most appropriate magnitude because it solely reflects the energy-related CO\(_{2}\) derived from national energy activities. For this purpose, we show in Table 6 how much the energy-related CO\(_{2}\) emissions related to each energy product group (a compendium of similar energy products) contribute to the total energy-related CO\(_{2}\) emissions stemming from the adjusted final energy consumption. Foremost, we should note that the estimation of the energy-related CO\(_{2}\) emissions associated to final energy consumption reveals a number that is equivalent to the magnitude reported in the Air Emission Accounts published by Eurostat (2020a), which highlights the strength of our estimation approach.Footnote 38

Table 6 Energy-related CO\(_{2}\) emissions associated to final energy consumption (I)

Further on, when reading Table 6 we realize that while the CO\(_{2}\) emissions related to final energy consumption have increased by 16.2% from 1995 to 2017 in Spain, they have dropped by 7.4% in the EU28. We also observe how the CO\(_{2}\) emissions associated with natural gas and renewables have increased in both regions (due to a higher use of these energy products), accounting both of them for a smaller weight in Spain than in the EU28. At the same time, we can see that derived heat does not represent a significant weight in Spain, while in the EU28 it has a not insignificant relevance. Finally, we can discern how the weight of the CO\(_{2}\) emissions derived from solid fossil fuels and oil and petroleum products is evolving in a downward direction, but being oil products still more relevant in Spain than in the EU28 in terms of associated CO\(_{2}\) emissions.

Table 7 Energy-related CO\(_{2}\) emissions associated to final energy consumption (II)

From a different perspective, we can also compute the responsibility of each end-use sector in the energy-related CO\(_{2}\) emissions associated to the weather-adjusted final energy consumption. In Table 7, we can notice that the industry was typically the sector with the highest CO\(_{2}\) emissions both in Spain and in the EU28, but its prominent role has been decreasing and we encounter that the transport sector over-passed the weight of the industry in the energy-related CO\(_{2}\) emissions attributable to the weather-adjusted final energy consumption in Spain. The transport sector has more relevance in Spain than in the EU28, despite the increase of its weight in the latter region. Finally, the share attributed to the commercial and public services has slightly increased both in Spain than in the EU28 from 1995 to 2017. The most noticeable differences between the two regions in terms of the sectoral structure of emissions are found in households (with a greater weight in the EU28) and in transport (with a larger share in Spain). This is clearly a result of the weather (Spanish households contributing less to emissions) and the systemic structure of transport (the main mode of transport in Spain is road transport, which is much more carbon-intensive).

4.3 Decomposition of the evolution of carbon dioxide emissions

After having over-viewed the general picture of the energy-related CO\(_{2}\) emissions estimation, we move on to our decomposition analysis to identify what factors have been the most relevant influences underlying the observed evolution of said total energy-related CO\(_{2}\) emissions (that shown in Fig.  2 of Sect. 1). To do this, we believe that it would be appropriate to divide our entire analysis period into two sub-periods determined by the outbreak of the 2007 crisis, i.e., we will have a sub-period 1995-2007 and another sub-period 2007–2017. Figure 5 shows the contributions (in %) of each of the thirteen influencing factors considered to the aggregate evolution of the CO\(_{2}\) emissions associated with final energy consumption. In addition, Table 6 presents the actual evolution of the energy-related CO\(_{2}\) jointly with the hypothetical evolution that such magnitude would have had if each contributing factor would have acted independently.

Fig. 5
figure 5

Factor contributions to the total change in energy-related CO\(_{2}\) emissions. Note: Positive contributions refer to an increase of the energy-related CO\(_{2}\) emissions associated to the evolution of the factor. Negative contributions refer to a decrease of the energy-related CO\(_{2}\) emissions associated to the evolution of the factor

The CO\(_{2}\) emissions associated with final energy consumption increased by 43% in Spain (from 241.12 Gg CO\(_{2}\) to 345.07 Gg CO\(_{2}\)) and by 4% in the EU28 (from 4005.45 Gg CO\(_{2}\) to 4171.02 Gg CO\(_{2}\)) from 1995 to 2007.Footnote 39 The population growth, a rising per capita disposable income and other social factors were the main drivers behind this development. These effects were much greater in the EU28 than in Spain (in both periods). These large effects in the EU28 reversed the very positive effect on emissions reduction that the increase in the apparent or observed energy efficiency of the end-use sectors had, resulting in an increase of the total emissions during the mentioned sub-period. However, this is not what can be observed in Spain, since despite the first factors mentioned above not contributing to the same extent as in the EU28 to the increase in emissions, the evolution of the apparent energy efficiency in the Spanish end-use sectors, unlike in the EU28, was driving further the increase in total emissions.

Fig. 6
figure 6

Evolution of energy-related CO\(_{2}\) emissions and contributors. Note: End-use efficiency refers to the apparent end-use efficiency

On the other hand, from 2007 to 2017 (the last year for which we have disaggregated data), CO\(_{2}\) emissions associated with final energy consumption fell by 19% in Spain (from 345.07 Gg CO\(_{2}\) to 280.10 Gg CO\(_{2}\)) and by 11% in the EU28 (from 4005.45 Gg CO\(_{2}\) to 3710.51 Gg CO\(_{2}\)). At the EU28 level, this evolution is mainly determined by (i) the increase in the apparent end-use energy efficiency and in the improvement of the efficiency in the energy transformation sector (which means that less and less primary energy is required to produce the necessary energy demanded by the end-use sectors), (ii) the evolution of the productive structure toward sectors that generate fewer emissions, and by (iii) a lower use of fossil fuels for energy transformation. These factors offset the increases in emissions related to population growth, increased income and other social factors, resulting in a decrease in aggregate emissions. Spain has experienced a similar evolution, but the gains in the apparent end-use energy efficiency and in the efficiency of the energy conversion sector that can be observed in the EU28 are not detected in Spain. This means that the Spanish emissions have not been reduced from 2007 to 2017 as much as they could potentially have been if the same energy efficiency improvements (both in apparent end-use efficiency and in efficiency of the conversion sector) as in the EU28 had been observed in Spain. In Spain, the main factor behind the reduction of emissions is the economic structural transition toward less emission-generating sectors and its shift toward higher value products (captured by the monetary to physical output relation factor), changes that are not observed to the same extent in the EU28. Finally, we must note that the apparent energy efficiency is influenced by many factors and do not uniquely depend on the actual technical efficiency, hence we must be cautious when interpreting these results. A more detailed explanation in this regard will be presented in Sect. 4.7.

Analyzing these same developments from a sectoral perspective (see Fig. 7), we can note how the transport and services sectors were the main contributors to the increase in emissions that occurred from 1995 to 2007 in the EU28. In Spain, the transportation and the services sector, although to a lesser extent than in the EU28, also contributed to the increase in emissions. Contrarily, despite households and industrial sectors being an inhibitor of the increase in emissions in the EU28, they were a clear driving force of the Spanish emissions during said sub-period. However, during the sub-period 2007–2017, households and especially industry were clear inhibitors and led to a decline in emissions both in Spain and the EU28. In this latter sub-period, the transport sector also contributed significantly to the fall in emissions, with this contribution being much greater in Spain than in the EU28.

Fig. 7
figure 7

Sectoral contributions to the total change in energy-related CO\(_{2}\) emissions. Note: Positive contributions refer to an increase of the energy-related CO\(_{2}\) emissions associated to the evolution of the factor. Negative contributions refer to a decrease of the energy-related CO\(_{2}\) emissions associated to the evolution of the factor

It remains open and what is behind the evolution of each sector, whether structural changes, efficiency changes, final energy-mix, etc.. Thus, after the identification of the most influential factors and sectors in the evolution of the aggregate CO\(_{2}\) emissions associated to the final energy consumption, we analyze in more detail each of them in the following Subsections.

4.4 Population, income and other social factors

We have previously shown in Fig. 5 that the effects of population growth, rising per capita disposable income and other social elements were emission-augmenting factors during both sub-periods considered in Spain and in the EU28. In Fig. 8 we can see how the population grew throughout the period considered, both in Spain and in the EU28, although it is true that this growth is slightly more pronounced in the Spanish case. Obviously, the larger the population, the greater the energy consumption and, consequently, the higher the energy-related emissions. Therefore, the population is a driving force for emissions throughout our period of analysis. When it comes to the GVA per capita, we can notice that it also experiences an upward trend if we analyze the beginning and the end of the period. However, it is true that there are a few years after the 2007 crisis (in Spain until 2014 and in the EU28 until 2009) for which the income per capita fell, which could make households and businesses consume slightly less energy during this sub-period, driving emissions down. But from an aggregate perspective in time, the GVA per capita emerges as a driver of emissions, since the higher the income per capita, the greater the energy consumption by the agents of the economy and the greater the consumption of other goods, which consequently increases the energy demand that is necessary to cover their production.

Fig. 8
figure 8

Population, income and other social/comfort factors

In terms of social factors, the number of dwellings per capita increased almost steadily throughout the period, which would lead to higher emissions. On the other hand, the comfort factor, which is measured by the area per dwelling, fell during the period analyzed, but this fall does not translate into a significant contribution to the decrease in emissions. Finally, other social factors such as per capita PKM and per capita TKM, which indicate how much we travel per capita or how much goods are moved per capita, are observed to have increased from 1995 to 2007. This means that, for this sub-period, as there is an increasing transit of people and goods, there is a higher energy consumption of transport, which leads to rising emissions, i.e., PKM and TKM per capita being an upward pressure on emissions. However, this trend ceases abruptly with the arrival of the 2007 crisis and, immediately afterwards, the PKM and TKM per capita fall (to a greater extent in the case of goods) for a few years until their posterior recovery, with the fall being much more pronounced and the recovery more delayed in Spain than in the EU28. This discrepancy between regions in the evolution of the aforementioned magnitudes derived from the impact of the 2007 crisis is the reason why, while the social factors were emission inhibitors in Spain during the 2007–2017 sub-period, they were emission driving forces in the EU28.

In aggregate, taking into account all population, income and social factors, we can say that all their related effects offset each other and give rise to a contribution to the emissions that make them increase. In other words, the conglomerate of these factors could be considered as an emission-generating element.

4.5 Economic structure

As we have clearly shown in Fig. 5, the economic structure factor is an inhibitor of energy-related CO\(_{2}\) emissions for both sub-periods of analysis. The logic behind this result is that the economic structure of both Spain and the EU28 (economically advanced regions) has undergone a process of tertiarization. This mentioned process can be evidently characterized by the changes in the different sectoral shares observed in Table 8. In this Table, the sub-sector shares refer to the weight that each sub-sector has in its particular sector. Analogously, the sector shares refer to the weight that each sector has in the total production. It can be noticed how the industry (a traditionally emission-generating sector) has decreased its weight in favor of the commercial and public services. In this way, activities requiring less energy needs have become more relevant, which leads to a reduction in emissions.

By reading this Table 8 we can also explain why the intra-structural factor is an emission-driving force in Spain for the 2007–2017 sub-period, while in the EU28 this factor drives the pressure down. Within industry (or in the intra-industrial structure), the activities of the energy sector and the extractive industries have increased their share of the total industrial GVA in Spain, while they have reduced it in the EU28. These industries are traditionally very energy-intensive, and therefore very emission-intensive. Hence, as their weight within the industry increases, the intra-structural factor becomes an upward-pressure on emissions for the Spanish case.

Table 8 GVA share

4.6 Transport sector composition

Performing an analogous exercise to the one carried out on the GVA shares in the previous Subsection, we analyze in Table 9 what the compositional change of the transport sector has been during our analysis period. It should be recalled that modal shifts in the transport sector are included within the contribution of the structural factor to the evolution of emissions, although it is true that changes in the economic structure play a more significant role in the structural factor than what the change in the modal composition of transport plays.

Table 9 Transport mode composition

We must recall from Fig. 7 that the transport sector affects the change in aggregate emissions in an augmenting manner during the 1995–2007 sub-period and in a downward way during the 2007–2017 sub-period. This is perfectly consistent with what we learn from Table 9. During the 1995–2007 sub-period, there is an increase in the share of aviation (for passengers) and road transport (for goods), which are typically energy- and emission-intensive transport modes, hence inducing an upward pressure on emissions both in Spain and in the EU28. On the other hand, during the 2007–2017 sub-period, the share of rail transport for passengers increased both in Spain and in the EU28, and since this is a more energy-efficient mode, it leads to downward pressure on emissions.

4.7 End-use energy efficiency

Consistently with Fig. 5, the influence of the apparent or observed end-use energy efficiency on emissions is one of the major differences between the EU28 and Spain. While in the EU28 the apparent end-use energy efficiency (measured as energy unit consumption, i.e., final energy consumption per physical output/item) is increasing throughout the period under consideration, and is a major inhibitor of emissions, in Spain such apparent efficiency has not improved at all (for any of the sub-periods), which means that emissions are not reduced in Spain as much as they could have been if an apparent end-use efficiency trend such as that observed in the EU28 had been observed.

However, as discussed previously in Sect. 2.5, there are many driving forces driving the apparent energy end-use efficiency from behind. One must note that the observed physical or apparent end-use energy efficiency need not be an accurate measure of the actual technological progress. Therefore, as discussed in Sect. 3.4, it is necessary to discern between what is actually driving the apparent or observed energy efficiency. And to do so, we subject such observed or apparent end-use energy efficiency to a further decomposition and we examine the role played by (1) technical energy efficiency or actual energy savings, (2) rebound effects, and (3) other factors (where the infra-utilization of the installed energy equipment can be a key contributor) in its developments.

Firstly, on the basis of the technical end-use energy efficiency indexes calculated in Sect. 3.4 and the rebound effect estimates of Adetutu et al. (2016), we can analyze the aggregate evolution of the apparent end-use energy efficiency both in Spain and in the EU28 and discover which components are effectively driving this evolution.

Fig. 9
figure 9

Contributors to aggregate apparent end-use energy efficiency

What we can observe in Fig. 9 is that, while the apparent or observed end-use energy efficiency has decreased notably in Spain, it has increased considerably in the EU28 from 1995 to 2017. One could think that the EU28 is becoming more energy-efficient than Spain, but this is completely misleading. What we observe is that end-use technical energy efficiency has improved steadily even more in Spain than in the EU28 as a whole. So what could be making apparent energy efficiency decrease in Spain and increase in the EU28? Our simplest explanation is that this difference is due to a greater infra-utilization of energy equipment installed in Spain, among other factors. Although the observed rebound effect is a somewhat more negative influence in Spain than in the EU28, what really differentiates these regions in their apparent energy efficiency are other factors.Footnote 40 Decreases of the apparent energy efficiency that cannot be explained by rebound effects may be due to an inefficient use of the equipment, as it is often observed during economic recessions. This is consistent with the Ministerio de Turismo, Energía y Agenda Digital (2017). They state that, the energy consumption of does not decrease proportionally to the activity in Spain as the observed efficiency of most equipment drops, as they are not used at their maximum rated capacity. It means that part of its energy consumption is independent of the production level. This is why we believe that infra-utilization is a key component of the other-factors contributor, although we cannot state it with certainty since we cannot decompose further said contributor. On the other hand, it can be seen that the influence of other factors on the evolution of apparent energy efficiency is not only non-negative in the EU28, but contributes positively to this evolution. However, we are not able with our analysis to discern what these other possible factors might be.

This makes the Spanish case particular in terms of observed energy efficiency. That is why, since we have more disaggregated data for Spain on the basis of the study by Peña-Vidondo et al. (2012), we analyze which sectors of the economy would be conducting the evolution of end-use energy efficiency, both apparent and technical. In Fig.  10, we can observe the index-points change in the apparent end-use energy efficiency of each sector that is attributed to each factor.

Fig. 10
figure 10

Contributors to sectoral apparent end-use energy efficiency in Spain

It can be seen that the apparent energy efficiency fell in all sectors in Spain during the period 1995–2007, this fall being especially accentuated in the agricultural and services sectors, with decreases in the apparent energy efficiency of 23 and 18 index points, respectively. However, technical efficiency increased in all sectors. But rebound effects and other factors (mainly, the infra-utilization of energy equipment) lead to a decrease in apparent efficiency, with the influence of these other factors being especially relevant in the agricultural and household sectors. Nevertheless, households are the only ones that present a backfire effect, which makes their apparent efficiency losses much lower than, for example, in the case of agriculture. It can also be noted that where there was less infra-utilization was in the industry and transport sectors, but these sectors suffered greater rebound effects.

On the other hand, in the period 2007–2017, the narrative changes. Here, sectors such as agriculture, households or transport experience an increase in their technical efficiency that compensates for the negative effects derived from rebound effects and other factors and leads to increases in their apparent end-use energy efficiency indexes. However, sectors such as industry or the services sector suffer so much from the infra-utilization of equipment caused by the 2007 crisis that they witness how their apparent energy efficiency diminishes despite great advances in their technical efficiency.

After this analysis, we have ascertained what is effectively driving the evolution of the apparent end-use energy efficiency in Spain. However, this does not mean that the apparent efficiency does not need to be taken into account. It is true that apparent efficiency cannot serve us as a proxy for technical energy efficiency due to the reasons previously stated, but this does not imply that the indicators of apparent energy efficiency of the end-use sectors are not relevant anymore. In fact, they are the clearest indicator for policy-makers of where to put the focus when it comes to developing energy efficiency policies or measures. Therefore, an in-depth analysis of this apparent end-use energy efficiency at the sector and sub-sector level is necessary. To this end, we show in Fig. 11 the sectoral sub-drivers underlying the evolution of the aggregate energy efficiency.

Fig. 11
figure 11

Sub-sectoral contributions to the apparent end-use energy efficiency. Note: Positive contributions refer to an upward pressure of the apparent end-use energy efficiency on the energy-related CO\(_{2}\) emissions. Negative contributions refer to a downward pressure of the apparent end-use energy efficiency on the energy-related CO\(_{2}\) emissions. Factors are sorted by contribution to the Spanish apparent energy efficiency contributing factor. There are some contributions in the period 2007-2017 that are greater than 40% (indeed, they are of the order of 200-300%) but the Panel A graph is limited to this region for a better visualization

For the sub-period 1995–2007, some industrial sub-sectors (basic metals, chemical, and food industries) and freight transportation (especially, the navigation transport mode) are identified as the only players whose improvement in apparent end-use energy efficiency contributes to pushing the emissions down in Spain. When it comes to the EU28 sphere, the economic sectors (especially the chemical industries and the basic metals sub-sector) and households (especially in the use of space heating) were the main performers in downward-pushing the CO\(_{2}\) emissions due to an apparent energy efficiency improvement. However, these good-performing sectors for the European case not only fail to show an apparent end-use efficiency improvement in Spain, but also worsen it. More specifically, the space heating use by households, the services sector, the road transport of passengers and many industrial sub-sectors (especially the energy and mining industries) were the main protagonists in the apparent end-use energy efficiency developments observed in Spain, which not only did not experience an improvement, but also showed a considerable worsening during this sub-period, leading consequently to an increase in emissions.

Looking now at the sub-period 2007–2017, we can observe how the sub-sectors that contribute most to the reduction of emissions in Spain through the channel of improving apparent end-use energy efficiency are: freight transport (especially the road mode), space heating and hot water uses by households, the industrial chemical sub-sector and other industrial sub-sectors. Similar trends can also be observed at the European level, even to a greater extent in the uses of households. Further, passenger road transport, electric appliances in households and space heating use by the services sector must be added to the list of apparent end-use efficiency enhancers at the EU28 level. All this means that, at an aggregate level, the EU28 is experiencing an improvement in the aggregate apparent end-use energy efficiency that makes such efficiency a clear inhibitor of emissions. However, despite the improvements in apparent energy efficiency in some sub-sectors in Spain, there are many other sectors that are experiencing a deep worsening of apparent end-use efficiency. These bad actors in terms of apparent end-use energy efficiency are the energy and mining industry, the road passenger transport, the lighting use by households, the construction sector, and, to a lesser extent, the services sector and other industrial sub-sectors. The poor performance of these latter actors imply that the end-use energy efficiency at the aggregate level is an upward pressure on CO\(_{2}\) emissions in Spain.

Finally, it is worth remembering that the 2007 crisis hit these economies very severely, but even more so the Spanish economy. This could lead us to believe that many of the worsening of apparent end-use energy efficiency observed in the 2007-2017 sub-period may result from an inefficient use of the production equipment, as previously discussed. For this reason, more disaggregated data at the sub-sector level is needed to separate technical energy efficiency from apparent (or observed) energy efficiency. At this level of sub-sectoral disaggregation, despite the relevance of this matter, our analysis is only able to monitor changes in apparent energy efficiency (or physical intensity).

4.8 Transformation sector

Recalling from Fig. 5, we have shown that (1) the efficiency of the energy conversion sector (measured through changes in the Leontief inverse matrix) and (2) the use of low-carbon primary sources as transformation inputs for this sector are inhibiting factors of the observed energy-related CO\(_{2}\) emissions.

Table 10 \(K_{\mathrm{PEQ}}\) of main energy products
Table 11 \(K_{C}\) and \(K_{C,SQ}\) of main energy products

First, to show the efficiency improvement of the conversion sector, we display the \(K_{PEQ,j}\) conversion factor of the main energy products in Spain and the EU28 in Table 10 for the beginning and the end of our period of analysis, 1995 and 2017, respectively.Footnote 41 For instance, to make available one unit of electricity in Spain, 2.57 units of primary energy were needed in 1995, while in 2017 the number decreased to 2.13 units. These estimated primary energy quantity conversion factors for electricity are in line with those estimated by the European Comission (2016). In addition, from this Table we can also read that from 1995 to 2017 the weight of oil products, solid fossil fuels, and nuclear heat in the primary energy needs for electricity generation declined in favor of renewable primary sources and natural gas, being this change more pronounced in Spain than in the EU28. On the other hand, heat is another type of final energy that typically requires a large quantity of primary energy, although it is also true that in Spain this type of energy is not consumed. To make a heat energy unit available in the EU28, 1.62 units of primary energy were needed in 1995, while in 2017 that number dropped to 1.49 units. Finally, it should be noted that other final energy products widely consumed both in the EU28 and in Spain, such as primary solid biofuels or natural gas, do not require an additional quantity of primary energy resources to make them available and fuels like gasoline or diesel are in the vicinity of a \(K_{PEQ}\) with value 1 as well. This reinforces the idea of a conversion sector experiencing efficiency improvements and leading emissions to fall both in Spain and in the EU28, as, over the years, it has been realized that this sector needs less primary energy to produce the same quantity of final energy.

Lastly, we use the \(K_{C,j}\) and the \(K_{C,SQ,j}\) factors of the main energy products to present in Table 11 the evolution of the primary carbon dioxide emission factor in Spain and the EU28 for the beginning and the end of our period of analysis, 1995 and 2017, respectively.Footnote 42 For instance, while the consumption of 1 KTOE of electricity by the end-use sectors represented a CO\(_{2}\) emission of 5.3 megatons in 1995, in 2017 the amount dropped to 3.62 megatons of CO\(_{2}\) per KTOE due to a more low-carbon-oriented primary energy-mix of the conversion sector. On the other hand, this same value decreased from 4.97 to 3.70 in the EU28. This is a smaller reduction than that observed in Spain, resulting in slightly cleaner electricity in Spain than in the EU28 in 2017. This is the a consequence of an less dependent electricity on fossil fuels and petroleum products in favor of a higher share of natural gas an renewables in the power generation. The mentioned reduction of the fossil fuels weight in the electricity generation was larger in Spain than in the EU28, which explains the observed smaller \(K_{C,SQ,j}\) of electricity in Spain. We find that other secondary energy products (as diesel or gasoline) that emit a relevant quantity of CO\(_{2}\) (in part, because they are the most used) have not changed much in their primary carbon dioxide emission factor. We also observe how derived heat, a product that is not used in Spain, has a very high \(K_{C,SQ,j}\) in the EU28, but has decreased greatly from 1995 to 2017. Finally, it can be shown how the \(K_{C,j}\) and the \(K_{C,SQ,j}\) factors report the same value primary energy products (which are also consumed as end-use energy products) are considered. This Table rationalizes the downward-pressuring contribution made by the primary energy mix utilized by the conversion sector to the observed energy-related CO\(_{2}\) emission evolution.

5 Concluding remarks

In order to support the most appropriate energy policy decisions, an analytical method to jointly understand the driving forces behind the observed developments of (1) the energy-related CO\(_{2}\) emissions, (2) the energy consumption and (3) the energy efficiency (the three magnitudes for which the main energy and climate targets are defined) is irremediably needed. In this paper, we develop a methodological framework to investigate the contributions of various influencing factors to the evolution of the energy-related CO\(_{2}\) emissions between 1995 and 2017 both in Spain and in the EU28. In this way, within one comprehensive methodological framework, we are able to capture the role played by primary energy consumption and the renewable-energy share of the energy-mix in the developments of the energy-related CO\(_{2}\) emissions.

In addition, the decomposition method that we propose takes into account jointly the effects that (1) the technical aspects of the physical energy system (analyzed through energy input–output models) and (2) the macro-level influencing factors traditionally employed (studied through IDA decomposition methods) have in the evolution of the energy-related CO\(_{2}\) emissions both in Spain and in the EU28. Thus, we refer to this hybrid integrated approach, which benefits from the advantages of both SDA and IDA techniques, as input–output logarithmic mean Divisia index (IO-LMDI, hereafter) decomposition method. Further, with our methodological approach, we also provide an allocation diagram scheme for assigning the responsibility of primary energy requirements and CO\(_{2}\) emissions to the end-use sectors including both economic and non-productive sectors. Moreover, we are able to (3) analyze more potential influencing factors than those typically examined. In addition, we (4) proceed in a way that reconciles energy intensity and energy efficiency metrics. Finally, we (5) distinguish between technical and observed end-use energy efficiency taking into account potential rebound effects and other factors. Therefore, we believe that our work represents a novelty and offers clear value added to past studies devoted to the study of the energy-related CO\(_{2}\) emissions trends both in Spain and in the EU28.

To report of our findings, we make a distinction between two clear sub-periods: 1995-2007 and 2007-2017. In the first mentioned sub-period, the CO\(_{2}\) emissions associated with final energy consumption increased by 43% in Spain (from 241.12 Gg CO\(_{2}\) to 345.07 Gg CO\(_{2}\)) and by 4% in the EU28 (from 4005.45 Gg CO\(_{2}\) to 4171.02 Gg CO\(_{2}\)). The population growth, a rising per capita disposable income and other social factors were the main drivers behind this development. These effects were much greater in the EU28 than in Spain. These large effects in the EU28 reversed the very positive effect on emissions reduction that the increase in apparent or observed energy efficiency of the end-use sectors had, resulting in an increase of the total emissions during the mentioned sub-period. However, this is not what can be observed in Spain, since although the first factors mentioned above did not contribute to the same extent as in the EU28 to the increase in emissions, the evolution of apparent end-use energy efficiency in the Spanish end-use sectors, unlike in the EU28, was driving further the increase in total emissions. Nevertheless, we cannot say that Spain experienced a decrease in its technical end-use energy-efficiency. Indeed, Spain witnessed an increase in such technical end-use energy efficiency. However, the infra-utilization of the installed energy equipment and the rebound effects drove down the apparent or observed end-use energy efficiency.

On the other hand, from 2007 to 2017, the CO\(_{2}\) emissions associated with final energy consumption fell by 19% in Spain (from 345.07 Gg CO\(_{2}\) to 280.10 Gg CO\(_{2}\)) and by 11% in the EU28 (from 4005.45 Gg CO\(_{2}\) to 3710.51 Gg CO\(_{2}\)). At the EU28 level, this evolution is mainly determined by the increase in energy efficiency both in final consumption (apparent end-use efficiency) and in the energy transformation sector (which means that less and less primary energy is required to produce the necessary energy demanded by the end-use sectors), by the evolution of the productive structure toward sectors that generate fewer emissions, and by a lower use of fossil fuels for energy transformation. These factors offset the increases in emissions related to population growth, increased income and other social factors, resulting in a decrease in aggregate emissions. Spain has experienced a similar evolution, but the gains in apparent end-use energy efficiency in both final consumption and energy transformation that can be observed in the EU28 are not detected in Spain. This means that the Spanish emissions have not been reduced from 2007 to 2017 as much as they could potentially have been if the same apparent end-use energy efficiency improvements as in the EU28 had been observed in Spain. In Spain, the main factor behind the reduction of emissions is the economic structural transition toward less emission-generating sectors and its shift toward higher value products (captured by the monetary to physical output relation factor), changes that are not observed to the same extent in the EU28. However, as in the previous sub-period, the infra-utilization of the installed energy equipment (mainly in industrial and services sectors) and the rebound effects drove down the apparent or observed end-use energy efficiency resulting in an increase of the CO\(_{2}\) emissions associated with final energy consumption.

Analyzing these same developments from a sectoral perspective (see Fig. 7), we can note how the transport and services sectors were the main contributors to the increase in emissions that occurred from 1995 to 2007 in the EU28. In Spain, the transportation and the services sector, although to a lesser extent than in the EU28, also contributed to the increase in emissions. Contrarily, despite households and industrial sectors being an inhibitor of the increase in emissions in the EU28, they were a clear driving force of the Spanish emissions during said sub-period. However, during the sub-period 2007–2017, households and especially industry were clear inhibitors and led to a decline in emissions both in Spain and the EU28. In this latter sub-period, the transport sector also contributed significantly to the fall in emissions, with this contribution being much greater in Spain than in the EU28.

As a final conclusion we can say that Spain is on a path toward the decarbonization of the economy. However, despite the fact that this trend is more accentuated than in the EU28, there is still much to be done in order to reverse the huge increases in emissions that occurred in the period of time prior to the 2007 crisis. Furthermore, we can state that the technical energy efficiency of the Spanish economy is improving even more than that of the EU28, although all these gains are exceeded by the losses that the country suffers due to the installation of energy equipment above its potential. That is, there is an energy infrastructure that does not yield its maximum potential, but which has very high fixed energy costs that reduce the observed energy efficiency and puts at risk the achievement of the emissions and energy consumption targets set by the European institutions.

The results that we present give interesting information related to the drivers and inhibitors of the energy-related CO\(_{2}\) emissions both in Spain and in the European economy as a whole. These results are useful not only for researchers, but also for private utility companies and policy-makers, as they can contribute to construct and implement the optimal saving and efficiency measures to achieve the mentioned climate and energy targets.