Introduction

The human lifestyle and standards are uplifted due to the expansion of technology, but it causes many environmental challenges such as emission of greenhouse gases (GHG) and depletion of the ozone layer (Sapovadia and Vrajlal 2020; Fang et al. 2019). In the present time, reducing the risk of environmental hazard along with economic growth is the current global agenda. Therefore, the world economies assured the United Nations’ Sustainable Development Goals (UNDP 2018) agenda to protect the environmental quality (Chirambo 2018). These policies exposed the traditional economic development policy which was considered as a blunder with environmental sustainability (Murshed 2020a, b). The race in economic growth among the economies has worsened the global environment which causes a serious risk to maintaining the performance of economic growth (Murshed 2018). The environmental economist considers the emission of greenhouse gases during economic activity a major factor responsible for the environmental degradation worldwide. Therefore, during the Paris Agreement conference under the United Nations Framework Convention on Climate Change (UNFCCC), most of the countries are agreeing to adopt a friendly environment policy to reduce the GHG emission and retain the temperature below the pre-industrial level (Horton et al. 2016). The World Development Indicators (WDI 2017) reported a tremendous increase in GHG from the last decades. Globally, the carbon dioxide emission during 1980 was observed to be 19.35 million kilotons which are raised to 35.84 million kilotons during 2017 showing about an 84% increase along this period. Such increase in emission is due to the use of fossil fuel in various sectors of the economy. Transportation, agricultural production, power generator, etc., are responsible for the emission of GHG (Naseem et al. 2020; Alola and Joshua 2020; Nasrullah et al. 2021).

The modern challenges and harmful properties of global warming attracted and forced researchers to focus on the association among energy use, economic growth, and carbon dioxide (CO2) emission (Cai et al. 2018; Bekun et al. 2018; Roinioti and Koroneos 2017). It is even a big challenge for the policymakers and environmental economists in the modern world to consume energy for sustainable development without harming the environment (Luqman et al. 2019). Hence, the attention of researchers toward energy consumption, GDP, and environmental protection increased significantly in the world to deal with this global hazard (Akadiri et al. 2019; Baz et al. 2019; Ozcan et al. 2019). Therefore, the increases in energy demand and climatic issues due to the massive use of fossil fuels forced many economies to move toward renewable energy to decrease ecological footprint and improve air quality (Kuriqi et al. 2019; Baz et al. 2020). Not only other human activities that substantially ruined the natural ecosystem and atmosphere, but the growth in demand for energy also substantially pressurized the ecological footprint (Nathaniel and Rehman Khan 2020; Baz et al. 2020; Nathaniel et al. 2019). This environmental concern is related to the worldwide policymakers, environmentalists, and energy economists to design environmental policies linked to the use of energy and implement it globally (Khan et al. 2019a, b). Though the association between energy consumption and economic growth is important for sustainable growth, this nexus of energy consumption is also responsible for environmental degradation due to GHG emission, which is emitted from the combustion of fossil fuel in various sectors of the economy (Baz et al. 2020). Still, it is expected that energy consumption has a direct relation with the environment but a strong bond also exists between GDP and the environment (Ali et al. 2019).

The energy consumption and CO2 emission increase much faster than real growth which is a considerable challenge to handle the association among economic growth, energy consumption, and environmental quality (Ozcan et al. 2019; Akadiri et al. 2019; Jafari et al. 2012). Previous studies employed the autoregressive distribution lag (ARDL) model to measure the relation between economic growth, environmental degradation, and energy consumption (Ali et al. 2020; Koengkan 2018; Javid and Sharif 2016). Hence, most of the studies ignored the asymmetries that exist among environmental quality, energy use, economic growth, and gross capital formation of G7 countries. World Bank (2018) reported that the G7 countries emit 27.3% (95 billion tons) of the total world carbon emission due to which these countries are facing a huge risk of environmental degradation. This study covers the gap of asymmetries that exist in the fossil fuel among fossil fuel and environmental quality of G7 economies. The study also highlights the positive and negative shocks of the oil, coal, and gas of G7 countries and also focuses on the shipment of energy source which are missing in the existing literature. The previous study mostly used renewable energy and nonrenewable energy in their study, but this study covers the impact of oil, coal, and gas on CO2 emission. Therefore, the current study added to the existing literature by using the nonlinear ARDL model to measure:

  1. a)

    The role of fossil fuel on the mitigation of carbon emission in G7 countries

  2. b)

    The asymmetric/symmetric positive and negative shocks of fossil fuel on carbon emission of G7 economies

  3. c)

    If there is any asymmetric/symmetric causality among the variables

  4. d)

    The robustness of our findings by using the different diagnostic techniques

The paper is classified as follows: “Literature reviews” describe the previous literature, while “Data and variables” shows the data and variables used in the study. “Methodology and model specification” highlights the methods and model specification, while “Results and discussion” presents the estimated result with discussion, and finally, the “Conclusion and suggestion” shows the conclusion with the crucial suggestion.

Literature reviews

Simon Kuznets (1955) proposed the environmental Kuznets curve (EKC) hypothesis which assumes the nonlinear inverted-U-shaped association between income inequality and economic growth. In his study, he observed that the EKC hypothesis replaces the inequality of income and finds the changes in environmental quality and GHG emission with the increase in national income level. Grossman and Krueger (1991) first time check the validity of the EKC hypothesis for Mexico by using sulfur and smoke emission to measure the environmental quality in EKC analysis. The finding of their results verifies the presence of the EKC hypothesis in Mexico. Later, many researchers have followed the EKC hypothesis such as Murshed et al. (2020, 2021), Murshed et al. (2021), Murshed and Dao (2020), Adedoyin et al. (2020), Sun et al. (2019), Ozcan et al. (2018), Asongu et al. (2018), Apergis and Ozturk (2015), Nasrullah et al. (2019, 2020), and Zulfiqar et al. (2020).

Several studies are conducted to measure the impact of various factors responsible for the degradation of environmental quality (Bello et al. 2018; Işik et al. 2017; Acar and Lindmark 2017). Işık et al. (2019) measure the impact of fossil fuel, GDP, population growth, and renewable energy on CO2 emission using the EKC hypothesis of 10 states of the USA. Azam et al. (2016) utilize panel data of China, India, Japan, and the USA by using the fully modified ordinary least square (FMOLS) model for measuring the influence of CO2 emission, trade, energy use, and economic growth. Similarly, Lee et al. (2016) and Al-Mulali et al. (2015) find the unidirectional causality from economic growth and CO2 emission. Hanif (2018) measured the impact of urban sprawling, fossil fuel, and economic growth on CO2 emission using the generalized method of moments (GMM) model, while Saboori et al. (2017) measured the cointegration between CO2 emission, oil consumption, and GDP of three Asian countries using the Johansen cointegration test. Similarly, Baloch et al. (2019) and Saboori et al. (2012) publicized the causal nexus between economic growth and CO2 emission of 59 countries using panel data.

Lei and Zhou (2012) affirmed that inefficient energy and population are the major factors for environmental degradation of 17 countries while Sarkodie and Strezov (2018a, 2018b) analyzed data from 1974 to 2013 of the Australian economy by using the FMOLS model and concluded that nonrenewable energy consumption (NREC) increases the emission factor (EF) by increased CO2 emission while the consumption of renewable energy promotes environmental stability by reducing emission. Remarkably, the economies utilizing high renewable energy have a clean environment and low emission factor. Acheampong et al. (2019) figured out the nexus of EF and NREC of 46 SSA studies and confirmed that the economy’s growth increases from the NREC can generate high emission factor which directly increases the level of CO2 emission. Liu et al. (2017a) find the relation of energy consumption and emission factor of Southeast Asian economies (ASEAN-4 countries: Philippines, Malaysia, Thailand, and Indonesia) covering the period from 1970 to 2013. The study ascertains that renewable energy consumption and agriculture decline the level of CO2 emission while nonrenewable energy consumption deteriorates the emission factor. Liu et al. (2017a, 2017b) also measure the agricultural industry of BRICS economies which emits CO2.

The previous study of Wesseh and Lin (2016) measures the renewable and nonrenewable energy consumption impact on the economic performance of 34 African countries using a dynamic panel data analysis. Their study provides evidence of a rapid increase in economic performance with the utilization of nonrenewable energy consumption as compared to renewable energy. On the other hand, Shahbaz et al. (2015) show that the economic performance is also high with the consumption of renewable energy in Pakistan. Boontome et al. (2017) detected that from 1971 to 2013, the race of economic growth forces the Thailand economy to upsurge the nonrenewable energy consumption level which directly increases the emission factor, while Nathaniel et al. (2019) stated that economic growth and emission factor have unidirectional causality, which implies that the environmental worsen is still connected with the increase in the utilization of nonrenewable energy consumption during the period of under review. The literature of Hanif et al. (2019) studied the 25 middle-income economies of the globe and found the shocking effect of nonrenewable energy on environmental sustainability.

In Latin America, Al-Mulali et al. (2014) figure out that the performance of renewable energy performance is better in encouraging the economies of Latin America than nonrenewable energy due to its efficiency issues. To endure better growth and prosperity, it is recommended to strengthen renewable energy by investment and reduce the dependency on fossil fuel in addition to ensure energy security. In the same manner, Feng et al. (2018) and Long et al. (2015) reinforce China that high economic growth is related to the ecosystem service deficit. The existing literature of Ozcan et al. (2019) which studied 35 OECD countries by using the GMM-panel vector autoregression (PVAR) model covering data from 2000 to 2014 fully supports the literature of Feng et al. (2018). The authors also proved that the rise in the economic growth of the economies worsens the ecological indices due to the dependency on fossil fuel and nonrenewable energy consumption.

Westerlund and Edgerton (2007) carried out a deep study of 74 countries using Pedroni cointegration, FMOLS, bootstrap cointegration, and panel causality technique, while Sharif et al. (2019) proved that renewable energy and nonrenewable energy consumption has a positive and negative impact on the environmental degradation. Relatively, Jorgenson and Clark (2011) studied 65 economies around the world and opined that economic growth has no relation with emission factors. Similarly, 24 North African (MENA) and Middle East countries are studied by Charfeddine and Kahia (2019) from 1980 to 2015 using the PVAR model. Their study provides evidence that renewable energy causes a positive shock on the economic growth while its contribution to CO2 emission is a little weak.

Data and variables

The study employed annual data of G7 countries (Canada, USA, France, Germany, Italy, UK, and Japan) from 1965 to 2019 with a total observation of 55 years except for France. Due to the presence of unit root at the first difference I (1) in Gross Capital Formation of France, the time was chosen from 1985 to 2019 with a total observation of 35 years. The selected independent variable of the study is the consumption of three energy sources (oil [million tons], gas [million tons of oil equivalent], coal [million tons of oil equivalent]), gross domestic products (million US dollar), and gross capital formation (constant local currency unit). The dependent variable is the CO2 emission in million tons emitted by each G7 country. The selected data are obtained from World Development Indicators and British Petroleum Energy Statistical review. The descriptive statistics of the selected variables are shown in Table 1. The estimated results of Jarque-Bera statistics show that all the variables follow a normal distribution. Figures 1, 2, 3, and 4 in the Appendix show the trend of CO2 emission and oil, coal, and gas consumption of G7 countries which shows that CO2 emission and oil, coal, and gas consumption increase each year after 1965 but, after 2010, the CO2 emission and oil and coal consumption show a decline while gas consumption inclines up to 2019.

Table 1 Description of the variables of the G7 nations

Methodology and model specification

The study used nonlinear autoregressive distribution lag (NARDL) pioneered by Shin et al. (2014) to notice that asymmetries arise due to the positive and negative shocks of energy (oil, gas, and coal) consumption. To measure the asymmetries due to positive and negative shocks, Shin et al. (2014) extend the ARDL technique of Pesaran et al. (2001). NARDL technique composes an error correction description that allows capturing the asymmetries which originate from the shocks in time series both short and long run (Mensi et al. 2017). The NARDL model can be applied, when the series is stationary at level, at the first difference and mixed order of integration even if the sample is small (Ahmad et al. 2018a, b). Additionally, the NARDL model also detects the hidden cointegration which is proposed by Granger and Yoon (2002). Hence, this cointegration approach covers all the linkages in macroeconomic variables that a simple ARDL cannot be detected. Due to nonlinear ARDL, it becomes possible to differentiate between the linear and nonlinear cointegration. Many researchers use this technique in the field of applied and theoretical economics due to its multiple functions and advantages (Mensi et al. 2017; Uddin et al. 2018; Rahman and Ahmad 2019). Generally, the relation among the variable can be presented in the following linear equation form:

$$ {\mathrm{CO}}_{2t}={\delta}_0+{\delta}_1{\mathrm{Oil}}_t+{\delta}_2{\mathrm{Gas}}_t+{\delta}_3{\mathrm{Coal}}_t+{\delta}_4{\mathrm{GDP}}_t+{\delta}_5{\mathrm{GCF}}_t+{\mu}_t $$
(1)

where CO2t is the total carbon dioxide emission in time t, Oil represents the total consumption of oil in time t, Gas represents the total consumption of gas in time t, Coal represents the total consumption of coal in time t, GDP is the gross domestic product in time t, GCF is the gross capital formation in time t, μt represents the residual, δ0 is constant, and δ1, δ2, δ3, δ4, and δ5 are the coefficients. The asymmetric cointegration equation is as follows:

$$ {\mathrm{CO}}_{2t}={\delta}_0+{\delta}_1{\mathrm{Oil}}_t^{+}+{\delta}_2{\mathrm{Oil}}_t^{-}+{\delta}_3{\mathrm{Gas}}_t^{+}+{\delta}_4{\mathrm{Gas}}_t^{-}+{\delta}_5{\mathrm{Coal}}_t^{+}+{\delta}_6{\mathrm{Coal}}_t^{-}+{\delta}_7{\mathrm{GDP}}_t+{\delta}_8{\mathrm{GCF}}_t+{\mu}_t $$
(2)

The modified version of Eq. (2) for the NARDL model can be written as

$$ {\displaystyle \begin{array}{c}\varDelta {\mathrm{CO}}_{2t}={\eta}_0+{\sum}_{k=0}^p{\eta}_1\varDelta {\mathrm{CO}}_{2t-k}+{\sum}_{k=0}^p{\eta}_2\varDelta {\mathrm{Oil}}_{t-k}^{+}+{\sum}_{k=0}^p{\eta}_3\varDelta {\mathrm{Oil}}_{t-k}^{-}+{\sum}_{k=0}^p{\eta}_4\varDelta {\mathrm{Gas}}_{t-k}^{+}+{\sum}_{k=0}^p{\eta}_5\varDelta {\mathrm{Gas}}_{t-k}^{-}+\\ {}{\sum}_{k=0}^p{\eta}_6\varDelta {\mathrm{Coal}}_{t-k}^{+}+{\sum}_{k=0}^p{\eta}_7\varDelta {\mathrm{Coal}}_{t-k}^{-}+{\sum}_{k=0}^p{\eta}_8\varDelta {\mathrm{GDP}}_{t-k}+{\sum}_{k=0}^p{\eta}_9\varDelta {\mathrm{GCF}}_{t-k}+{\varsigma}_1{\mathrm{CO}}_{2t-1}+{\varsigma}_2{\mathrm{Oil}}_{t-1}^{+}+{\varsigma}_3{\mathrm{Oil}}_{t-1}^{-}+\\ {}{\varsigma}_4{\mathrm{Gas}}_{t-1}^{+}+{\varsigma}_5{\mathrm{Gas}}_{t-1}^{-}+{\varsigma}_6{\mathrm{Coal}}_{t-1}^{+}+{\varsigma}_7{\mathrm{Coal}}_{t-1}^{-}+{\varsigma}_8{\mathrm{GDP}}_{t-1}+{\varsigma}_9{\mathrm{GCF}}_{t-1}+{\mu}_t\end{array}}\kern0.5em $$
(3)

Keep in mind that the main objective of the study is to measure whether oil, gas, and coal consumption symmetrically or asymmetrically affects the CO2 emission of G7 countries. Therefore, the study follows the methodology of Shin et al. (2014) to capture the symmetric or asymmetric effect. The oil, gas, and coal consumption will be decomposed into two new variables which will capture the positive and negative shocks in oil, gas, and coal as follows:

$$ {\mathrm{Oil}}_t^{+}={\sum}_{j=1}^t\Delta {\mathrm{Oil}}_j^{+}={\sum}_{j=1}^t\max \left(\Delta {\mathrm{Oil}}_j^{+},0\right) $$
(4)
$$ {\mathrm{Oil}}_t^{-}={\sum}_{j=1}^t\Delta {\mathrm{Oil}}_j^{-}={\sum}_{j=1}^t\max \left(\Delta {\mathrm{Oil}}_j^{-},0\right) $$
(5)
$$ {\mathrm{Gas}}_t^{+}={\sum}_{j=1}^t\Delta {\mathrm{Gas}}_j^{+}={\sum}_{j=1}^t\max \left(\Delta {\mathrm{Gas}}_j^{+},0\right) $$
(6)
$$ {\mathrm{Gas}}_t^{-}={\sum}_{j=1}^t\Delta {\mathrm{Gas}}_j^{-}={\sum}_{j=1}^t\max \left(\Delta {\mathrm{Gas}}_j^{-},0\right) $$
(7)
$$ {\mathrm{Coal}}_t^{+}={\sum}_{j=1}^t\Delta {\mathrm{Coal}}_j^{+}={\sum}_{j=1}^t\max \left(\Delta {\mathrm{Coal}}_j^{+},0\right) $$
(8)
$$ {\mathrm{Coal}}_t^{-}={\sum}_{j=1}^t\Delta {\mathrm{Coal}}_j^{-}={\sum}_{j=1}^t\max \left(\Delta {\mathrm{Coal}}_j^{-},0\right) $$
(9)

The error correction mechanism (ECM) can be developed to measure the short-term effect and also to check the consistency of long-term parameters as follows:

$$ {\displaystyle \begin{array}{c}\varDelta {\mathrm{CO}}_{2t}={\eta}_0+{\sum}_{k=0}^p{\eta}_1\varDelta {\mathrm{CO}}_{2t-k}+{\sum}_{k=0}^p{\eta}_2\varDelta {\mathrm{Oil}}_{t-k}^{+}+{\sum}_{k=0}^p{\eta}_3\varDelta {\mathrm{Oil}}_{t-k}^{-}+{\sum}_{k=0}^p{\eta}_4\varDelta {\mathrm{Gas}}_{t-k}^{+}+{\sum}_{k=0}^p{\eta}_5\varDelta {\mathrm{Gas}}_{t-k}^{-}+\\ {}{\sum}_{k=0}^{\mathrm{p}}{\eta}_6\varDelta {\mathrm{Coal}}_{t-k}^{+}+{\sum}_{k=0}^p{\eta}_7\varDelta {\mathrm{Coal}}_{t-k}^{-}+{\sum}_{k=0}^p{\eta}_8\varDelta {\mathrm{GDP}}_{t-k}+{\sum}_{k=0}^p{\eta}_9\varDelta {\mathrm{GCF}}_{t-k}+{\tau}_0{\mathrm{ECT}}_{t-1}+{\mu}_t\end{array}} $$
(10)

ΔCO2t is the first difference of carbon dioxide emission in time t; ΔOiltk, ΔGastk, and ΔCoaltk are the first difference of oil, gas, and coal consumption in time t with a lagged value of k, respectively; η1η9 are the short-term elasticity whereas ς1ς9 are the long-term elasticity; τ0 represents the elasticity of lag error correction term (ECT); and μt is the error correction term.

The presence of long-term cointegration among the selected variables in Eq. (3) is determined by checking the association by using a standard F-test. Precisely, the null hypothesis of ς1 = ς2 = ς3 = ς4 = ς5 = ς6 = ς7 = ς8 = ς9 = 0 is tested. The F-statistics has a lack of normal standard F-distribution due to which the critical value below the null hypothesis cannot be used. Therefore, Pesaran et al. (2001) used upper and lower bound critical values to deal with this problem. The null hypothesis can be accepted in the case where the estimated F-statistics is less than the upper bound critical value. If there is evidence of cointegration, then Eq. (3) can be used to find the response of CO2 emission with a change in oil, gas, and coal consumption both in the long and short run. The estimated result of Eq. (3) can be checked through the Wald test to identify the possible asymmetric effect of oil, gas, and coal consumption on CO2 emission. The null hypothesis of the symmetrical effect of oil, gas, and coal on CO2 emission for the short and long run can be identified if the null hypothesis of the short run (\( \frac{\eta_2}{\eta_1}=\frac{\eta_3}{\eta_1},\kern0.5em \frac{\eta_4}{\eta_1}=\frac{\eta_5}{\eta_1},\kern0.5em \mathrm{and}\ \frac{\eta_6}{\eta_1}=\frac{\eta_7}{\eta_1}\Big) \) and long run (\( \frac{\varsigma_2}{\varsigma_1}=\frac{\varsigma_3}{\varsigma_1},\kern0.5em \frac{\varsigma_4}{\varsigma_1}=\frac{\varsigma_5}{\varsigma_1},\kern0.5em \mathrm{and}\ \frac{\varsigma_6}{\varsigma_1}=\frac{\varsigma_7}{\varsigma_1}\Big) \) is rejected.

Results and discussion

Unit root test

To measure the possible stationarity level in a series, the augmented Dickey-Fuller (ADF) unit root test is considered the most suitable approach. The estimated results of ADF are shown in Table 2 which demonstrates that some of the variables are stationary at level, but at first difference, all the variables of G7 countries are stationary.

Table 2 Traditional unit root test

Structural break unit root test

The traditional unit root used in various studies does not figure out multiple breaks in the series due to various macroeconomic shifts and policy which cause spurious results for policymaking. Therefore, Narayan and Popp (2010) proposed a structural break unit root test at unknown time intervals with two breaks at slope and level. The estimated results in Table 3 show that the Narayan and Popp (2010) test has the correct size and stable power and detects structural break more accurately as compared to various other tests that are used in previous studies (Mishra and Smyth 2014; Salisu et al. 2016)

Table 3 Narayan and Popp unit root test with two structural breaks

Brock, Dechert, and Scheinkman test

After confirming the presence of structural breaks in macroeconomic variables, the study applies the Brock-Dechert-Scheinkman (BDS) test proposed by Broock et al. (1996) to detect the nonlinearity dependencies in the time series. The estimated results of the BDS independence test shown in Table 4 demonstrate that the data series are not identically and independently distributed (iid) and reject the null hypothesis of linearity. Therefore, an asymmetric analysis is important to detect the structural shift and nonlinear association in energy consumption (oil, gas, and coal) and CO2 emission. Figures 1, 2, 3, 4, 5, 6, and 7 show the positive and negative shocks of oil, gas, and coal consumption and their effects on carbon dioxide emission.

Table 4 BDS nonlinearity test results
Fig. 1
figure 1

Positive and negative component of oil, gas, and coal, Canada

Fig. 2
figure 2

Positive and negative component of oil, gas, and coal, USA

Fig. 3
figure 3

Positive and negative component of oil, gas, and coal, France

Fig. 4
figure 4

Positive and negative component of oil, gas, and coal, Germany

Fig. 5
figure 5

Positive and negative component of oil, gas, and coal, Italy

Fig. 6
figure 6

Positive and negative component of oil, gas, and coal, UK

Fig. 7
figure 7

Positive and negative component of oil, gas, and coal, Japan

Testing for asymmetries hypothesis

After the estimation of Eq. (3) for possible cointegration among the series, the study uses the standard Wald test to measure the possible short- and long-run asymmetries in the series. The estimated results of the Wald test in Table 5 show that there is a short-term asymmetry in oil and coal consumption of Canada, gas consumption of the USA, oil and coal consumption of Italy, and oil, coal, and gas consumption of the UK. Similarly, it is also reported that there is a long-term asymmetry in coal consumption of Canada; oil and coal consumption of the USA and France; oil, gas, and coal consumption of Italy; and oil and gas consumption of the UK. The estimated results also show that there is short-term symmetry in gas consumption of Canada, oil and coal of the USA, gas consumption of Italy, and oil, coal, and gas consumption of France, Germany, and Japan. Likewise, there is also long-term symmetry in the oil and gas consumption of Canada, gas consumption of the USA and France, oil and coal consumption of Germany, coal consumption of the UK, and oil, coal, and gas consumption of Japan.

Table 5 Long- and short-term asymmetry results

Cointegration bound test

After the confirmation of structural break, the study compares the critical F-statistics with lower and upper bound values (Pesaran et al. 2001). The estimated results of the bound test shown in Table 6 demonstrate the presence of a long-term cointegration association between oil, gas, and coal consumption; GDP; GFC; and CO2 emission. The F-statistics estimate (CO2 = f(Oil,Gas,Coal,GDP,GCF) for all G7 countries is greater than the upper bound value.

Table 6 Estimated result of bound test for G7 nations

Short-term and long-term estimates of NARDL

The estimated elasticity of the nonlinear ARDL for the short run is shown in Table 7. The estimated coefficient of NARDL indicates that the positive shock and negative shock of oil, gas, and coal consumption increase the CO2 emission of G7 economies. The results imply that the estimated coefficient is positive for oil, gas, and coal consumption, which increases the CO2 emission, and negative for oil, gas, and coal consumption, which decreases the CO2 emission. For instance, the estimated coefficient of oil consumption shows that an increase (decrease) of 1% in oil consumption can significantly increase (decrease) the CO2 emission by 0.422% (−0.487%), 0.430% (−0.436%), 0.806% (−0.367%), 0.377% (−0.292%), 0.871% (−0.388%), 0.092% (−0.546%), and 0.780% (−0.694%) of Canada, USA, France, Germany, Italy, UK, and Japan, respectively. Similarly, the estimated elasticity for the positive and negative shocks of gas consumption is also significant for the G7 countries. The estimated elasticity shows that an increase (decrease) of 1% in gas consumption can increase (decrease) the CO2 emission by 0.398% (−0.201%), 0.178% (−0.167%), 0.188% (−0.452%), 0.060% (−0.223%), 0.147% (−0.383%), and 0.093% (−0.315%) of Canada, USA, France, Germany, Italy, and UK, respectively; the positive shock of gas consumption has no effect, while the negative shock can decrease CO2 emission by 0.384%. Likewise, the estimated results of coal consumption show that an increase (decrease) of 1% coal consumption can significantly upsurge (drop) the CO2 emission by 0.195% (−0.176%), 0.299% (−0.276%), 0.108% (−0.082%), 0.278% (−0.341%), 0.148% (−0.132%), 0.382% (−0.163%), and 0.357% (−0.252%) of Canada, USA, France, Germany, Italy, UK, and Japan, respectively. The coefficient of economic growth shows that in G7 countries, only France and Japan have a significant negative impact on CO2 emission. This implies that a partial sum of 1% increase in the economic growth of France and Japan decreases the environmental degradation and pollution by 0.029% and 0.020%. Similarly, the finding also shows that among the G7 countries, only the gross capital formation of France can increase the air pollution by 0.073% with a 1% increase in France GCF. Furthermore, the estimated results of ΔECT are significant with a negative coefficient implying the existence of cointegration among variables of G7 countries.

Table 7 Estimated results of short-run nonlinear ARDL

The estimated results of NARDL for the long run shown in Table 8 imply that an increase (decrease) of 1% in oil consumption in the long run can significantly increase (decrease) the CO2 emission by 0.498% (−0.505%), 0.224% (−0.308%), 0.547% (−1.643%), 0.128% (−0.566%), and 0.911% (−0.583%) of the USA, Germany, Italy, UK, and Japan, respectively. The rise in consumption of oil can increase the air pollution of France by 0.247% while a decrease in oil consumption decreases the air pollution of Canada by 0.772%. The estimated results are coinciding with the previous study of Munir and Riaz (2020) which implies that an increase in oil consumption can significantly increase environmental degradation and air pollution. Similarly, Hossain (2011), Jebli et al. (2016), and Khan et al. (2019) also stated that an increase in oil consumption can boost environmental degradation. The empirical findings demonstrate that growth (reduction) of 1% in gas consumption can escalate (decline) the air pollution by 0.206% (−0.102%), 0.279% (−0.491%), 0.063% (−0.0.059%), 0.206% (−0.642%), and 0.023% (−0.441%) of the USA, France, Germany, Italy, and UK, respectively. The positive shock of gas consumption in Canada can increase CO2 emission in the long run, but the negative shock has no impact. Similarly, the positive and negative shocks of gas consumption in Japan have no impact on environmental degradation. The estimated results are familiar to the previous study of Dong et al. (2017) which stated that consumption of natural gas increases CO2 emission. Similarly, Solarin and Shahbaz et al. (2015) stated that combustion of gas induces the level of CO2 emission but causes 50% less air pollution than combustion of other fossil fuels, while De Gouw et al. (2014) publicized that combustion of gas is cleaner than that of other fossil fuels which leads to lower CO2 emission.

Table 8 Estimated results of long-run NARDL

Likewise, a single positive shock in coal consumption can uplift the environmental degradation of Canada, USA, Germany, Italy, UK, and Japan by 0.124%, 0.192%, 0.293%, 0.390%, 0.375%, and 0.513%, respectively, while a negative shock in coal consumption can decrease the environmental degradation of the USA, France, Germany, and UK by 0.277%, 0122%, 0.360%, and 0.092%, respectively. Agrawal et al. (2014) stated that coal consumption is a more toxic pollutant and emits more CO2 compared to other fuels while Wei et al. (2009) insisted that coal is a low-quality energy source and its consumption should be limited for preserving the environment. The results imply that G7 countries are developed economies and their energy consumption is more than that in developing countries. Therefore, an increase in energy consumption (oil, gas, and coal) causes environmental degradation in G7 countries and a decrease in energy consumption decreases environmental degradation and pollution in G7 countries. In the long run, the estimated results show that the GDP and GCF of France are only significant. The results imply that an increase of 1% in GDP of France can decrease the air pollution by 0.043% following the EKC hypothesis with inverted-U shape which implies that a certain amount of increase in income of France can improve the environment until stabilization point and later will decrease which is consistent to the previous study of Jardon et al. (2017) and Rahman and Ahmad (2019). Similarly, an upsurge of 1% in GCF can increase air pollution by 0.108% following the study of Althor et al. (2016) and Rahman and Ahmad (2019). The estimated findings of economic growth for Canada, USA, Germany, Italy, UK, and Japan are not supporting the EKC hypothesis as similar to Aye and Edoja (2017). The dynamic multiplier graph shows the quick response of carbon dioxide to the positive and negative shocks of oil, gas, and coal consumption of G7 countries as shown in Figs. 8, 9, 10, 11, 12, 13, and 14.

Fig. 8
figure 8

Dynamic multiplier graph for oil, gas, and coal of Canada

Fig. 9
figure 9

Dynamic multiplier graph for oil, gas, and coal of the USA

Fig. 10
figure 10

Dynamic multiplier graph for oil, gas, and coal of France

Fig. 11
figure 11

Dynamic multiplier graph for oil, gas, and coal of Germany

Fig. 12
figure 12

Dynamic multiplier graph for oil, gas, and coal of Italy

Fig. 13
figure 13

Dynamic multiplier graph for oil, gas, and coal of the UK

Fig. 14
figure 14

Dynamic multiplier graph for oil, gas, and coal of Japan

Stability check and diagnostic tests

The study measures the cumulative sum (CUSUM) and cumulative sum of squares (CUSUMSQ) for measuring the stability of the model. The estimated results shown in Figs. 15, 16, 17, 18, 19, 20, and 21 show that the recursive residuals of the CUSUM and CUSUMSQ remain within the boundaries of 5% critical value of G7 countries. These results employed that the model used for G7 countries is stable.

Fig. 15
figure 15

NARDL CUSUM and CUSUMSQ for Canada

Fig. 16
figure 16

NARDL CUSUM and CUSUMSQ for USA

Fig. 17
figure 17

NARDL CUSUM and CUSUMSQ for France

Fig. 18
figure 18

NARDL CUSUM and CUSUMSQ for Germany

Fig. 19
figure 19

NARDL CUSUM and CUSUMSQ for Italy

Fig. 20
figure 20

NARDL CUSUM and CUSUMSQ for UK

Fig. 21
figure 21

NARDL CUSUM and CUSUMSQ for Japan

Various diagnostic tests are applied to the model to check the biases as shown in Table 9. The estimated R-squared and adjusted R-squared of the G7 countries fall above 90, which is greater than 50, implying our models are good fitted. The estimated results of the diagnostic test show that there is no problem of serial correlation, abnormality, functional form, and heteroscedasticity. These results confirm the nonexistence of biases in the model.

Table 9 NARDL diagnostic test for G7 countries

Symmetric and asymmetric causality test

The estimated results of Hatemi-J (2012) depicted in Table 10 show that there is asymmetric causality between CO2 emission and oil consumption of Canada and UK at 10% and 1% as shown in line 1. Similarly, in line 3, the result shows that the ecological footprint can asymmetrically cause positive change in oil consumption of Canada, USA, France, Germany, Italy, and Japan, while in line 4, a positive change in oil consumption can cause the ecological footprint of France. The estimated results in line 7 show a unidirectional symmetric causality between CO2 emission and gas consumption of Germany and Japan at a 5% significant level. The projected results in lines 9 and 10 show that an asymmetric unidirectional casualty between CO2 emission and positive change in gas consumption of the USA, UK, and Japan exists while there is a bidirectional causality in the CO2 emission and positive change in gas consumption of Canada and France. Lines 11 and 12 show an asymmetric unidirectional causality between ecological footprint and negative shock of the USA and UK while there is a bidirectional asymmetric causality between ecological footprint and negative shock of France. The projected results show that CO2 emission symmetrically causes the coal consumption of Italy in line 13 while an asymmetrical causality exists between CO2 emission with positive change and CO2 emission with a negative change in coal consumption of the USA, France, Germany, Italy, UK, and Japan as shown in lines 15 to 17. The findings in lines 2, 5, 6, 8, 14, and 18 show that there is no causality among the variables.

Table 10 Symmetric and asymmetric causality tests of G7 variables

Conclusion and suggestion

With the rapid increase in urbanization and industrialization after the industrial revolution, the dependencies on energy increase the environmental degradation in the universe. During this race of economics and sustainable development, environmental degradation and air pollution were ignored by various economies. Numerous studies are carried out to measure the impact of renewable and nonrenewable energy consumption on CO2 emission, but still, the literature is missing to measure the impact of oil, coal, and gas consumption on CO2 emission in G7 economies. Therefore, to cover this gap, this study was carried out to measure the asymmetric impact of oil, gas, and coal consumption on CO2 emission in G7 countries. Nonlinear ARDL is applied to the annual time series data from 1965 to 2019 (France from 1985 to 2019) of G7 countries to figure out the short- and long-run associations among variables. The ADF test demonstrates that some of the variables are stationary at level, but at first difference, all the variables of G7 countries are stationary.

The estimated results of NARDL for the long run imply that an increase in oil consumption in the long run can significantly increase the CO2 emission of the USA, France, Germany, Italy, UK, and Japan while a decrease in oil consumption can decrease the air pollution of Canada, USA, Germany, Italy, UK, and Japan. On the other hand, the empirical findings demonstrate that growth in gas consumption can escalate the air pollution of Canada, USA, France, Germany, Italy, and UK while a negative shock of gas consumption can reduce the ecological footprint of the USA, France, Germany, Italy, and UK. Similarly, a single positive shock in coal consumption can uplift the environmental degradation of Canada, USA, Germany, Italy, UK, and Japan while a negative shock in coal consumption can decrease the environmental degradation of the USA, France, Germany, and UK. In the long run, the estimated results show that the GDP and GCF of France are only significant. The study concluded that a 1% movement of oil and gas consumption toward coal consumption in Canada and France can decrease the carbon emission by 1.21% and 0.64%, while a 1% movement of oil and coal consumption toward gas consumption in the USA, Germany, Italy, UK, and Japan can decrease the carbon emission by 1.48%, 1.18%, 2.58%, 1.07%, and 2.34%. It is also concluded that there is symmetric and asymmetric causality between CO2 emission and oil, gas, and coal consumption of G7 countries.

It is concluded from the estimated results of Hatemi-J (2012) that there is asymmetric causality between CO2 emission and oil consumption of Canada and UK, while CO2 emission can asymmetrically cause positive change in oil consumption of Canada, USA, France, Germany, Italy, and Japan and the positive change in oil consumption can cause the CO2 emission of France. There is also a unidirectional symmetric causality between CO2 emission and gas consumption of Germany and Japan. Similarly, an asymmetric unidirectional casualty between CO2 emission and positive change in gas consumption of the USA, UK, and Japan exists while there is a bidirectional causality in the CO2 emission and positive change in gas consumption of Canada and France. Meanwhile, asymmetric unidirectional causality exists between the ecological footprint and negative shock of the USA and UK while there is a bidirectional asymmetric causality between the ecological footprint and negative shock of France. The projected results show that CO2 emission symmetrically causes the coal consumption of Italy while an asymmetrical causality exists between CO2 emission with positive change and CO2 emission with a negative change in coal consumption of the USA, France, Germany, Italy, UK, and Japan. As per the results, it is concluded that there is unidirectional, bidirectional causality between the consumption of oil, coal, and gas and CO2 emission of G7 economies.

The results show that both in the short and long run, the consumption of oil, coal, and gas destabilizes the environment of G7 economies. Therefore, the study recommends the G7 economies to shift toward green technology to stabilize their environment. The study also recommends G7 countries to discourage the consumption of fossil fuel through various barriers and obtain their required energy from the nonrenewable energy source. For the short term, the study suggested that firstly, the government of Canada and France is required to use coal instead of oil and gas while the USA, Germany, Italy, UK, and Japan are required to consume more gas as compared to oil and coal. Secondly, international regulation and framework should be enforced to ensure sustainable development with preventive measurement of environmental degradation. Thirdly, research centers should be developed and encouraged to reduce environmental degradation by using various new technologies.

Limitation of the study

The study is limited to measure the asymmetric cointegration and causality among CO2 emission, fossil fuel consumption, GDP, and FDI of G7 economies. It is observed from the findings that further empirical studies are needed to use different methodologies to examine different countries. The study also needs to be conducted to measure the efficiency level of different energy sources on environmental stability.