Introduction

Currently, human life is facing great challenge due to modern infrastructure development and rapid environmental degradation (Aguila 2020). Massive greenhouse gases (GHGs) are emitted in the environment because of economic growth fueled by fossil fuel consumption that warms the atmosphere (Toma et al. 2020). According to Abeydeera et al. (2019), GHG production is the main factor behind CO2 emissions. Burning of excessive fossil fuels produce CO2 emissions in abundance leading to rise in Earth’s temperature and unexpected variations in climate. In the future, unclean energy resources will influence power and energy policies (Khan et al. 2021). Therefore, there is need to control CO2 emissions and other pollutants through energy innovation, more efficient environmental regulations, and multilateral environmental agreements. This requires more thorough investigation of energy-environmental nexus as the guidebook for policymakers to resort to environmentally friendly energy sources.

Environmental Kuznets curve (EKC) is the most celebrated tool to investigate the relationship between economic expansion and environmental quality. Although this hypothesis explains a critical sustainable development issue, it draws a huge amount of criticism from academics and researchers. However, despite considerable criticism, EKC has not lost its curious attraction and fascination showing its undeniable survival power (Husnain et al. 2021). The well-known debate on EKC that started in the early 1990s is still alive (Harbaugh et al. 2002) and continues to haunt researchers and academics while explaining the link between environment and economic growth. It establishes an inverted U-shaped relationship between pollution and income, that is, “a certain inevitability of environmental degradation along a country’s development path at an earlier stage of development, and a significant improvement at a later stage, both because of economic growth” (Panayotou 1993). Thus, it is a useful indicator to understand whether an increase in income and wealth ameliorates ecological footprint and environmental pressure (Mäler 2013).

Global sustainability is closely linked to the current debate on the relationship between environmental degradation and income per capita. Extensive empirical literature exists on EKC and a substantial portion of these studies focus on knowing the causal relationship between GHG emissions and economic expansion (Abdullah et al. 2017; Ansari et al. 2020; Zhang, 2021). Over the last few decades, the world has seen unprecedented economic growth that has affected the environment to a considerable level. The fast economic growth requires large amounts of energy to support rapid industrial growth. This can threaten the sustainable development of the economy and worsen the environmental quality (Adom and Kwakwa 2014).

For all economies, the maximization of economic growth is fundamental. However, it raises concerns because of its close association with environmental degradation explained by the so called EKC (Ansari et al. 2020) which suggests growth performance automatically resolves environmental issues. Some studies state the non-applicability of EKC to poor countries that are uncertain to find the level of development where the environment starts improving because of economic growth. Poor countries often compromise their environmental standards in search of much-needed economic growth achieved through foreign direct investment and international competitiveness (Aşıcı and Acar 2016). Due to lower prices of inputs and environmental regulations in developing nations, developed countries shift their polluting industries to low-income economies leading to a phenomenon called “Pollution Haven Hypothesis” (Copeland and Taylor 1994). Empirical evidence suggests that economic activities expand because of increase in energy consumption (Hongxing et al. 2021), in turn, environmental quality deteriorates due to energy led carbon emissions (Musah et al. 2021). Environment and natural resources deplete as a result of increased production, in the process of economic expansion, which uses more energy. People change their consumption behavior from low emission products to high emission products including air conditioners and automobiles in the periods of prosperity, thereby increasing the emissions level in the atmosphere (Musah et al. 2021). However, if the renewable energy has high share in the energy mix, it is not necessary that increased energy use may worsen carbon emission (Hossain 2011).

Rising environmental and health concerns associated with CO2 emissions require the adoption of clean energy methods to fulfill energy demands to reduce global warming (Lau et al. 2019). Renewable energy sources are regarded as potential factors that can mitigate emissions (Dogan et al. 2021; Baek 2016). From an investment standpoint, renewable energy has been acknowledged as more profitable with immense market potential. A transition towards renewables ensures energy security, alleviates poverty, and stimulates economic growth by promoting cleaner production and reducing ever-increasing CO2 emissions (Ulucak 2020). Renewables shield environmental pressure and reduce foreign dependency. Hence, renewables can effectively help validate energy security and improve environmental quality (Luqman et al. 2019). Thus, unfolding the role of renewable energy at different stages of development is crucial to devising effective policies to mitigate environmental issues without compromising economic growth.

The energy-growth nexus in the context of EKC is a less studied area (Luzzati and Orsini 2009) which is equally important as the environment-growth relationship. The traditional empirical literature on the subject is mainly concerned with the identification of the causal relationship between energy consumption and economic growth and overlooks the possibility of a quadratic association between the variables (Asafu-Adjaye 2000). However, due to the realization of pressure that energy consumption may exert on the environment while achieving sustainable development, in the recent past, the trend has changed and this relationship is being studied under the EKC hypothesis (Suri and Chapman 1998). Most of the energy use comes from fossil fuel that emits a large amount of GHGs in the environment and raises concerns about the sustainability of the environment. A handful of studies can be found that have examined the energy environmental Kuznets curve (EEKC) for a country as well as for specific regions. For example, Pablo-Romero and De Jesús 2016 test the hypothesis for Latin America. Aruga (2019) examines this relationship for Asia–Pacific countries but to the best of our understanding, no study has tested the EEKC hypothesis by considering the role of income for the whole world.

The EKC between energy consumption and economic development commonly known as energy-EKC has also been investigated in some of the past studies. In the countries where nonrenewable energy is intensively used, the EEKC is more relevant (Mahmood et al. 2021). Accelerated energy consumption is an outcome of increasing economic growth, hence it seems logical to comprehensively assess the effect of different phasis of economic growth on energy use with the help of cubic EEKC hypothesis. In empirical literature, usually the EEKC has been tested considering a quadratic association between economic growth and energy consumption, hence testing of the EEKC using cubic terms at global level is warranted. Therefore, this study uses quantile panel regression model to test EEKC in a global perspective using both quadratic and cubic relationship of energy variable and economic growth.

Controlling for population increase and urbanization is critical due to their closeness with environment. Population increase can affect carbon emissions. Numerous studies have found the positive association between population increase and carbon emissions (Wang et al. 2013). Likewise, Li et al. (2021) mention that increase in population does not attract energy efficiency initiatives thus leading to further increase in carbon emissions. As a result of economic expansion, people move from rural areas to urban areas to enjoy high living standard including access to quality education, improved sanitation conditions, and advanced infrastructure. This increased influx of people towards major commercial centers is linked to abiotic deterioration of the environment that includes forest, sea, soil, and air quality (Li et al. 2021). The demand for construction, production, and transportation arises as a result of strong economic trend that may damage the environment by using massive amounts of non-renewable energy.

The contribution of this study is manyfold. First, for a better interpretation of the findings, a glance is placed at the patterns of countries grouped according to income level instead of grouping them according to their geographical location. Second, investigating the EEKC hypothesis globally is particularly interesting as it contains countries experiencing a different level of economic development (low, middle, high-income). The study result is expected to provide strong inputs in the public policy domain on the environment and sustainable energy. If the EEKC holds in a group of countries, it would mark the start of an era where energy consumption starts declining with economic growth. This will reveal that energy consumption in such a group of countries does not increase and cause no environmental degradation (Aruga 2019). However, if the hypothesis of EEKC is denied for a particular group of countries, it would imply the non-existence of a turning point for energy consumption. In this case, it will suggest that economic growth will intensify environmental pressure through an increase in energy consumption implying the importance of adopting energy-saving technology in the particular group of economies to reduce its environmental impact.

Thirdly, this study divides total energy consumption into renewable energy and non-renewable energy consumption and thus estimates EEKC for both types of energy to better understanding the relationship between energy consumption and economic growth. Especially the role of renewable energy is important from developing countries’ standpoints because of its high infrastructure cost (Iram et al. 2020). Furthermore, to avoid ever-deteriorating ecological footprint and economic troubles caused by traditional sources of energy in developing nations, it is important to substitute fossil fuel in economic activities with renewable energy sources (Inglesi-Lotz and Dogan 2018).

The fourth contribution is methodological since we apply quantile regression to understand the role of different income levels in determining the EEKC hypothesis. Mean value estimators obtained from panel models can lead to misleading results. The quantile regressions enable us to evaluate the dependent variable at various points of its condition distribution and highlight the comprehensive scenario of the nexus among the variables (Cade and Noon 2003). The motivation behind applying the quantile regression approach is to identify the heterogeneous nature of various income groups and changing market conditions. Hübler (2017) stated that the quantile regressions address outliers effectively compared to methods based on the mean. Therefore, the quantile regression is an interesting method to analyze the EEKC hypothesis as it allows the estimation of different slopes for different quantiles.

Finally, this analysis tests this hypothesis both for renewable and non-renewable energy consumption to better understand the implications of this relationship by introducing some control variables like urbanization and population growth. Such determinants of energy consumption have often been ignored in previous empirical studies, and hence, makes our findings more reliable and consistent for the policy framework.

Literature review

In energy literature, how economic growth impacts energy consumption has been the subject of ever-extending debate (Csereklyei and Stern 2015) and hence produced voluminous literature on the subject (Araç and Hasanov 2014; Pablo-Romero and De Jesús 2016). However, the majority of these studies does not investigate this nexus in the framework of the EKC hypothesis. The first study that tested the EKC hypothesis concerning energy consumption was carried out by (Suri and Chapman 1998). Before this study, energy-related pollutants were more common to represent environmental quality and many of the empirical studies tested EKC without energy consumption data. Pablo-Romero and De Jesús (2016) used data for 22 Latin American and Caribbean countries over the 1990–2011 period on energy consumption and per capita gross value added and found no support in favor of EEKC for this region. Raza et al. (2020) employed data from next-11 and BRICS countries for the period 1990–2015 to test the residential energy EKC and reported cointegration between all the variables (economic growth, financial development, and energy consumption) in the long run. Furthermore, residential energy consumption has negative impact on environmental quality. To examine the existence of the EEKC hypothesis, Luzzati and Orsini (2009) used data for 113 economies period covering from 1971 to 2001 and reported the non-existence of any inverted-U-shaped association between GDP and energy consumption. Using panel quantile regression approach, Awan et al. (2022a) provide fresh evidence regarding the nexus between global energy efficiency and CO2 emissions by using data from 107 countries for the period 1996–2014 and conclude that energy efficiency significantly reduces CO2 emissions. Furthermore, inverted U-shaped nexus between GDP and CO2 was observed validating the EKC. Using data for 188 countries ranging from 1993 to 2010, Chen et al. (2016) investigated the link between energy consumption, economic growth, and CO2 emissions, and pointed out that there does not exist an inverted-U shaped association between economic growth and energy consumption. By using different energy proxies such as renewable and non-renewable energy, natural gas consumption, and oil and cool consumption, Mahmood et al. (2021) investigated the energy-EKC for Egypt using data from 1965 to 2019 and confirm the existence of long run energy-EKC hypothesis.

Aruga (2019) tested the EEKC using yearly data for 19 Asia–Pacific countries for the period 1984–2014 and pointed out that an inverted U-shaped relationship between energy consumption and economic growth exists for the whole region. However, this relationship does not hold for lower-middle-income countries. Using data from 8 rounds of HIES spanning 1998–2019, Awan et al. (2022b) investigated the energy poverty trends and predictor of energy poverty in Pakistan and point out that during the last two decades, there has been increase in energy poverty despite significant economic progress. They found female-headed families, less education, and households with a low endowment as major predictor of energy poverty. Bilgili et al. (2022) used EKC to examine the environment-gender nexus for the panel of 36 countries and confirm the existence of an inverted U-shaped EKC. Furthermore, they reported that male and female labor participation differently impacts the environment especially in the agriculture sector. Kocoglu et al. (2021) used quantile regression technique and threshold analysis to study the non-linearity between urbanization and CO2 emissions for 15 emerging economies for the period 1995–2015. Their findings revealed that an inverted U-shaped relationship exists between urbanization and CO2 emissions. Haider et al. (2022) used the ARDL bounds testing method to study the relationship between nitrous oxide emissions and economic growth in Canada, controlling for exports and agriculture land use, for the period of 1970–2020. Their findings confirmed the existence of EKC both for total N2O emissions and agricultural induce N2O emissions.

Our reading of the literature led us to group these studies into three main strands. The first strand of studies is mainly concerned about the important role of economic growth as the determinant of energy consumption (Jiang and Ji 2016; Song and Zheng 2012) assuming that energy intensity and economic growth are linearly associated. It is known that energy intensity declines in anticipation to increases in per capita income due to improvements in energy efficiency (Mahmood and Ahmad 2018). However, it is asserted that energy intensity escalates when the income level rises in a country (Sineviciene et al. 2017).

The second strand of literature focuses on the convergence hypothesis across countries. Two types of convergences are considered: beta convergence and sigma convergence (Deichmann et al. 2018). In beta-convergence, it is identified whether energy intensity in less efficient countries decreases faster than those of more efficient whereas sigma convergence deals with the decreasing size of energy intensity across countries. The convergence hypothesis is supported by the majority of empirical studies (Hajko 2014; Kiran 2013) but different factors like economic structural breaks (Karimu et al. 2017), sector of the economy (Jiang et al. 2018), size of data set and geographical difference (Liddle 2010), and types of estimates (Hajko 2014) can influence this result. For example, no evidence of convergence hypothesis found in Africa, Caribbean, and Latin American countries while in Eurasian and OECD economies convergence hypothesis exists. Working on the data of 97 countries for the period 1971–2003, Le Pen and Sévi (2010) showed the absence of global convergence hypothesis with weak support of local convergence.

The third thread of literature is related to validating the EKC called EEKC in the context of energy consumption. The EEKC postulates the inverted U-shaped relationship between energy consumption and economic expansion which is backed by many empirical studies (Jakob et al. 2012). However, like the EKC, the EEKC is not based on solid grounds, and results obtained from the empirical literature are vulnerable to variable selection and level of economic development. For example, it is found that in Germany, energy intensity inverted U-shaped curve reduces when the variable trade is included in the model (Kander et al. 2017). Some authors opine that the bell shape relationship between energy consumption and economic growth does not reflect the reality (Lescaroux 2011). Several factors like variable choice, initial conditions, and the use of energy-efficient technology determine the shape of the energy-growth relationship. Likewise, energy prices and inclusion/exclusion of energy used for trade can potentially impact the shape and nature of this association (Kander et al. 2017; Richmond and Kaufmann 2006). On the other hand, many empirical studies could not validate the EEKC hypothesis (Luzzati and Orsini 2009; Csereklyei and Stern 2015). In addition to the well-known U-shaped link, a handful of studies identify an S-shaped relationship between energy intensity and economic growth (Smil 2003; van Benthem 2015).

The worldwide economic expansion has created millions of jobs and increased access to wide variety of food especially in the developing economies (Luo and Tung 2007). Energy sector is the backbone of the development in market expansion, globalization, and industrialization. The world energy consumption has far reaching repercussions for the socioeconomic development to society (Bilgen, 2014). However, urbanization based on enhanced energy consumption is polluting the environment and increase in population is also responsible for the degradation of environmental quality. Sheng et al. (2017) stated that urbanization consumes massive amounts of energy and negatively affect environmental quality. According to Dogan and Inglesi-Lotz (2020), urbanization is a prominent determinant of CO2 emissions and causes environmental variation while Pata (2018) stated that urbanization causes CO2 emissions through increased economic growth and financial development. Furthermore, residential and industrial sectors energy demand increases because of urbanization (Lee et al. 2018). Robalino-López et al. (2015) demonstrate that growth in population can lead to increase in CO2 emissions. Therefore, this study includes urbanization and population growth as control variables in the model.

The short-lived survey of the empirical literature reveals many weaknesses of the existing literature. Firstly, the majority of the studies focus on a single country or a group of countries (Aruga 2019; Inglesi-Lotz and Dogan 2018) but global evidence is needed for intensive analysis of the EEKC hypothesis and sound policy framework. Secondly, mixed findings emerge from all three strands of literature that necessitate global evidence on the EEKC hypothesis. Based on the aforementioned reasons, this work can be distinguished from the previous studies in the following way: (i) for the first time, this study provides a worldwide perspective of EEKC by considering the level of development in each group of countries, (ii) cross-sectional dependence is common among countries because of a high degree of socio-economic integration (Dogan et al. 2020) which standard panel data techniques cannot account for. We utilize second-generation panel data techniques that assume cross-section dependence, (iii) although there are country-specific and region-specific studies that investigate EEKC for renewable or non-renewable energy, this study used both types of energy to validate EEKC worldwide.

Data and methodology

This study used secondary time series data collected from well-known international institutions. The sampled countries were stratified and selected based on their income level classified by the World Bank (see Table 1). Due to the unavailability of data, all countries are not included in the sample. We included 20 countries from lower-income countries (LICs), 41 countries from lower middle-income countries, 38 countries from higher middle-income countries, and 45 countries from higher income countries.

Table 1 Variables, measurement, data sources, and sampled countries

Model specification, estimation technique, and procedures

This study has estimated three different models to examine the EEKC. The first model used total energy consumption as a dependent variable, while in the second and third models, renewable energy consumption and non-renewable energy consumption are taken as dependent variables respectively. The motivation behind comparing the three models is when we focus solely on total energy consumption, we may miss some countries that consume more renewable and non-renewable energies. For instance, from Europe, only Germany (ninth) is found in the top ten total energy consumers (Enerdata 2021). However, we can find that Germany, UK, Spain, France, and Italy, among the top ten renewable energy consumers (Statista 2021).

Three models are specified as follows:

$$ECON=f\left(GDPPC, {GDPPC}^{2}, {GDPPC}^{3}, URBAN, POP\right)$$
(1)
$$RECON=f\left(GDPPC, {GDPPC}^{2}, {GDPPC}^{3}, URBAN, POP\right)$$
(2)
$$NRECON=f\left(GDPPC, {GDPPC}^{2}, {GDPPC}^{3}, URBAN, POP\right)$$
(3)

ECON, RECON, and NRECON represent total energy consumption, renewable energy consumption, and nonrenewable energy consumption respectively. GDP is the per capita income, URBAN is urbanization, and POP is population growth. The choice of control variables, urbanization, and population growth is based on the existing empirical literature. For instance, the most recent studies used urbanization (Liu and Peng 2018; Maneejuk et al. 2020; Sultana et al. 2021; Topcu and Girgin 2016; Wang and Yang 2019) and population growth (Begum et al. 2015; Chaurasia 2020; Nepal and Paija 2019; Vo 2021).

Cross-sectional dependence

The first step in panel data estimation is to examine the presence of cross-sectional dependence (CD) (Xiaoman et al. 2021, as CD is a common and serious issue in panel data settings and, if not appropriately addressed, may yield unreliable and biased estimates (Pesaran 2007). The CD may emerge from grouping the countries into panels based on income levels that demonstrate cross-sectional dependence. In literature, the four widely used tests of CD are the Pesaran CD test, the Pesaran LM test, the Breusch-Pagan LM test, and Free’s CD test. To deal with the issue in the framework of apparently discrete regression models, the LM static test of Breusch and Pangan (1980) is valid only for infinite T and fixed N. Biasness of LM test statistic gets worse with large N and also not suitable for finite T (De Hoyos and Sarafidis 2006). Thus, to validate cross-sectional dependence between the panel units, this study employs panel CSD (cross-sectional dependence) tests of Frees (1995) and Pesaran (2007).

Unit root test

After applying the CD test, the order of integration is tested. Two types of panel unit root tests, first-generation and second-generation, can determine the order of integration of a series (stationarity property of variables). First-generation unit root tests such as LLC (Westerlund 2007) and IPS (Im et al. 2003) are not suitable to estimate stationarity among the series (Dogan et al. 2020) in the presence of CD. Consequently, we use cross-sectionally augmented Im-Pesaran-Shin (CIPS) unit root tests (Pesaran 2007) as it is capable of taking account of both heterogeneity and cross-sectional dependence with the null of no stationarity in case of all the panel units within the panel against at least one stationary panel unit as an alternative hypothesis. Pesaran unit root test based on truncated CADF statistics (i.e., \({t}_{i}(N,T)\)) is given as:

$$CIPS=\frac{I}{N}\sum\nolimits_{i=1}^{N}{t}_{i}(N,T)$$
(4)

Panel estimation/cointegration

Engle-Granger-based cointegration tests (e.g., Kao 1999; Pedroni 1999, 2004) and Fisher-type (Choi 2001) are useful when there is no CD. The main advantage of the Pedroni residual-based test relative to the others is that it accounts for heterogeneity by using specific parameters (Demissew Beyene and Kotosz 2020). However, the most common panel cointegration tests when there is CD are (Groen and Kleibergen 2003; Westerlund and Edgerton 2007) Durbin-Hausman test (Gengenbach et al. 2016; Persyn and Westerlund 2008) and Banerjee and Carrion-i-Silvestre (2017) cointegration test. The current study uses the Westerlund panel cointegration test (Westerlund 2007) to examine the cointegration of total energy, renewable energy, and nonrenewable energy consumptions with the explanatory variables. This technique is divided into the group (Gt and Ga) and panel (Pt and Pa) statistics: the Gt and Ga statistics test whether cointegration exists for at least one individual series and the Pt and Pa statistics pool information over all the individual series to test whether cointegration exists for the panel as a whole (Persyn and Westerlund 2008).

FMOLS, DOLS, fixed effect

The current study employs FMOLS, DOLS, and FE models. The selection of these different models was motivated by the result of cointegration tests. Besides, these models have their unique differential characteristics. For instance, both FMOLS and DOLS take care of small sample and endogeneity bias. Furthermore, they use the white heteroskedastic standard errors. This study also considered both the parametric and non-parametric tests by employing FMOLS and DOLS, respectively. Unlike FMOLS and DOLS, the FE is a static model and capable of taking account of panel cross-section with a varying intercept based on the introduction of dummy for FE in the framework, while in the random effects framework, the intercept is supposed to be a random variable (Akbar et al. 2011).

Based on the general panel FMOLS equations of Pedroni (2001), our FMOLS model is specified as:

$${ENERGY}_{it}={\alpha }_{it}+{\delta }_{it}t+{\beta }_{1i}{GDPPC}_{it}+{{\beta }_{2i}GDPPC}_{it}^{2}+{{\beta }_{3i}GDPPC}_{it}^{3}+{\beta }_{4i}{URBAN}_{it}+{\beta }_{5i}{POP}_{it}+{\mu }_{it}$$
(5)

where \(i and t\) represent the ith country in tth time period, t is a linear time trend, \({\beta }_{1i}-{\beta }_{5i}\) are long-run coefficients, and \({\mu }_{it}\) is the error term.

Quantile regression

Due to cointegration results, this study employs FMOLS, DOLS, FE, and quantile regressions to estimate the data set. According to Cade and Noon (2003), findings and policy implications derived from panel mean regressions may lead to spurious results; however, quantile regressions provide a more complete picture of the relationships of the variables. Besides, panel quantile regression captures the heterogeneity of different income groups and market conditions (Allard et al. 2018). Therefore, this study employs a panel quantile approach along with panel mean regression.

Therefore, to further evaluate the validity of dependence pattern and cointegration among the studied variables derived from FMOLS, DOLS, and FE, we employ the PQR (panel quantile regression) framework (Cheng et al. 2018). Following Sheng et al. (2017) and Wu and Lin (2022), we included URBAN and POP in the same model, which may lead to multicollinearity problems. However, we examined the presence of multicollinearity and found none. PQR is characterized for its differential characteristic of taking account of marginal influence throughout the distribution (Kaza 2010), i.e., taking account of outliers affecting specified percentiles of the distribution. Other econometric frameworks focus on the average influence, which in general overestimate/underestimate or cannot detect the true dependence (Binder and Coad 2011). The PQR offers more in-depth and thorough dependence between the series across the restricted distribution (Zhang et al. 2015).

Results and discussion

Panel model estimation results

As stated in the methodological section, we apply panel unit root tests to determine the order of each series which is important to identify estimation techniques. To decide which type of unit root and cointegration tests are more appropriate, it is mandatory to test the CD. The CD test Frees (1995) confirms cross-sectional dependence in the errors.Footnote 1 Therefore, this study employed the second-generation unit root tests called the CIPS test (Pesaran 2007). The results show that the target variables are stationary at a 1% level of significance at the first difference I(1) for all countries, LICs, LMICs, and HMICs.Footnote 2

After determining the variables’ order of integration, testing for cointegrations is the next step in panel data econometrics. Among the existing cointegration tests that allow CD, this study employed the Westerlund panel cointegration test (Westerlund 2007). The rationale for using these cointegration tests (Westerlund and Edgerton 2007) is that most panel cointegration tests have failed to reject the null hypothesis of no cointegration due to failure of common-factor restriction (Banerjee and Carrion-i-Silvestre 2017). However, the Westerlund (2007) test does not require any common factor restriction (Abdullah et al. 2017) and allows for a large degree of heterogeneity. Besides, all target variables (energy consumption and GDP per capita) in this study are integrated at order one in all sampled countries.

This study conducted two panel cointegration tests between the target variables (energy consumption and GDP per capita) and all variables in the models. Except for LICs (in all models), the cointegration result between energy consumptions and GDP per capita shows that two out of four statistics of Westerlund and Edgerton (2007) are statistically significant in all groups and models. Likewise, except for HMICs (M1 and M3) and HICs (M1), the cointegration results for all variables show two out of four statistics statistically significant. Regarding the cumulative cointegration tests for the two-panel tests, all statistics of Westerlund (2007) are statistically significant except for the LICs (in all models) and HMICs (in M1 and M3), implying that the null hypothesis of no cointegration is strongly rejected. This means that except for the LICs (in all models) and HMICs (in M1 and M3), there are long-run relationships among the variables in the models (see Table 2).

Table 2 Panel cointegration test

After the cointegration tests, the next step is to estimate the model using both static and dynamic panel models. Specifically, the study employed the FEFootnote 3 model due to the absence of cointegration in LICs (in all models) and HMICs (in M1 and M3). The presence of cross-sectional dependence limits the study from employing alternative dynamic panel models such as panel ARDL (PMG, MG, DFE) and system GMM (Forte et al. 2014; Menegaki 2019). However, several recent studies employed FMOLS or DOLS, while the cross-sectional dependence test strongly rejects the null hypothesis of no CD (Konstantakopoulou 2020; Mitić et al. 2017; Neagu 2019).

The FMOLS results presented in Table 3 show that except for HICs (in M2), the target-independent variables (GDPPC, GDPPC2, and GDPPC3) have a significant positive, negative, and positive effect on all types of energy consumptions, respectively. Like most scholars, when we consider only the coefficient signs, the study found an N-shaped relationship between GDPPC and energy consumption in all groups of countries except for HICs. This N-shaped result implies that energy consumption is high at an early stage of economic growth (energy consumption is increasing with increasing GDPPC). However, when the economy rises further, energy consumption declines. This may not be long-lasting; instead, energy consumption will grow again with economic growth unless some measure is taken. Despite the differences in methodologies, case studies, scope, variables used, and others (hereafter ceteris paribus/other things are constant), this finding is in line with Luzzati and Orsini (2009), Pablo-Romero and De Jesús (2016), Mahmood (2021), and Mahmood et al. (2021). However, the current study is unique because we examined variables’ relationships beyond the signs of the coefficients (observing the number of observations before and after turning points). Accordingly, the maximum and minimum turning values of GDPPC for M1 (is 43,201.58 and 89,630.49), for M2 (53,535.07 and 89,869.41), and for M3 (42,188.16 and 89,487.71). This implies that the relationship between GDPPC and the total energy consumption is positive and non-linearFootnote 4 but does not follow either inverted U-shaped or N-shaped form. This is because most countries’ GDPPC in most periods (above 90.7% of the total observations) remained below the maximum threshold values. For instance, for M1, around 3808 observations are below 43,201.58 GDPPC, 324 observations are between 43,201.58 and 89,630.49 GDPPC, and only 44 periods are above 89,630.49 GDPPC. Therefore, the relationship between GDPPC and total energy consumption is dominantly positive and non-linear. Ceteris paribus, this finding coincides with Moosa and Burns (2022).

Table 3 FMOLS, DOLS, and FE results

Similarly, the FMOLS result of M1 and M3 for LMICs has no stationary points, but they reach at max at 3096.77 and 3034.48 GDPPC, respectively, and most periods are below these thresholds. Therefore, the relationship between GDPPC and the total (non-renewable) energy consumption is dominantly positive and non-linear but does not follow either inverted U-shaped or N-shaped. Likewise, the max and min turning points for M2 are 3359.81 and 4910.86 GDPPC, respectively, but around 90% of the periods are below the maximum threshold. Therefore, we can conclude that the relationship between GDPPC and energy consumption is positive and non-linear in LMICs. Ceteris paribus, this result coincides with Moosa and Burns’s (2022) results.

The FMOLS result of M1 for HICs has max and min stationary values at 64,776.77 and 94,376.22 GDPPC, respectively. Similarly, the max and min turning values for M3 are 52,890.61 and 92,616.62 GDPPC, respectively. But most observations (91.3% and 85.75%) are below the maximum threshold value in both models. Hence, the relationship between GDPPC and the total (nonrenewable) energy consumption is positive and non-linear in HICS. Other things being constant, this conclusion concurs with Moosa and Burns (2022). The FMOLS result of M2 for HMICs has max and min turning values at 7601.46 and 17,000.52 GDPPC, respectively. But most observations (75.7%) are below the maximum threshold value. Hence, the relationship between GDPPC and renewable energy consumption is dominantly positive and non-linear, which is similar to Moosa and Burns (2022), ceteris paribus.

Similarly, the DOLS result of total sampled countries confirmed a positive and non-linear relationship between GDPPC and total (nonrenewable) energy. However, the DOLS result of M1 and M3 for LMICs has no stationary points, but they reach maximum at 3739.66 and 2337.23 GDPPC, respectively and most periods are below these thresholds. Therefore, the relationship between GDPPC and the total (non-renewable) energy consumption is dominantly positive. However, the max and min turning points for M2 are 3362.63 and 4446.70 GDPPC, respectively, but most periods are below the maximum turning point. Therefore, we can conclude that the relationship between GDPPC and energy consumption is positive and non-linear in LMICs, in line with Moosa and Burns (2022). The DOLS result for HICs the max and min turning point for M1 (42,851.67 and 98,185.35) and M3 (39,980.88 and 98,373.36) GDPPC, respectively, and most of the values are below the maximum threshold values. Therefore, the relationship between GDPPC and the total (nonrenewable) energy consumption is positive and non-linear. However, the U-shaped EEKC was observed in M2 of HMICs. This is because most periods are found below the minimum (38.8%) and between the min and max (60.5%) thresholds. Other things being constant, this result is consistent with that of Filippidis et al. (2021). Likewise, the FE result revealed that the relationship between GDPPC and energy consumption is positive and non-linear for the LICs and HMICs.

Quantile regression results

Table 4 shows that except for some variables,Footnote 5 the correlations between independent variables are below the rule of thumb value (0.7) for stronger correlation (Allard et al. 2018). However, when URBAN and POP are estimated in the same model, this might lead to multicollinearity problems. Therefore, this study employed the multicollinearity (VIF) test and confirmed that no multicollinearity exists in all models. All the VIF values are below 5, with the highest value of 3.00, which implies an absence of multicollinearity (see Table 4).

Table 4 Pearson’s correlation

Besides using the panel estimation techniques, this study also employed the quantile estimation by choosing nine quantiles (10th, 20th, 30th, 40th, 50th, 60th, 70th, 80th, and 90th). Though the panel mean results showed a positive and non-linear relationship between GDPPC and energy consumption for most models and groups of countries, the quantile estimations revealed mixed (positive and non-linear, inverted U-shaped, U-shaped, and N-shaped) EEKC. The results in Table 5 show the quantile estimation of models 1–3 for total sampled countries. Similar to the FMOLS, DOLS, and FE results, a positive and non-linear (not follows either inverted U-shaped or N-shaped) EEKC was observed at the 70–90th quantile for model 1. This is because most countries have GDPPC below the maximum threshold level (see Fig. 1). However, U-shaped EEKC is observed in 10th and 20th quantiles. This is because most countries have GDPPC below the minimum and maximum threshold values (see Fig. 2).

Table 5 Results from quantile regression for total sampled countries and models
Fig. 1
figure 1

The relationship between GDPPC and ECON at 70th quantile for total sampled countries

Fig. 2
figure 2

The relationship between GDPPC and ECON at 10th quantile for total sampled countries

The result also confirmed that from 10 to 30th and at 60th quantiles, a U-shaped EEKC is observed for model 2. However, a positive and non-linear relationship between GDPPC and renewable energy was observed in the last quantile.

Table 5 also confirmed a positive and non-linear relationship between GDPPC and nonrenewable energy consumption in 30th, 50th, and 70–90th quantiles, but it is U-shaped in the 20th quantile in model 3. According to Allard et al. (2018), these mixed and inconclusive results can be due to heterogeneity between and within these income groups; therefore, they recommended decomposing the countries based on their income level. Except for 20th and 40th quantiles, urbanization has a positive and significant effect on all types of energy consumptions. However, population growth significantly reduces all types of energy consumption in the 50–90th quantiles.

Table 6 shows the quantile estimation of the models for the LICs group. For model 1, N-shaped EEKC is observed in the 10th and 20th quantile (see Fig. 3), but it is U-shaped in 40–80th. Besides, from 20th to the 50th quantile, there is a U-shaped EEKC in model 2. Table 6 also confirmed that model 3 has an N-shaped EEKC in 10th and 20th quantiles, but it is U-shaped in the 40–70th. Therefore, the result for LICs is also mixed and inconclusive for all models. Urbanization has a positive and significant effect on total (at 10–20th and 60–80th), renewable (at 10th, 20th, and 80th), and nonrenewable energy consumption (at 20th and 90th) quantiles. Population growth has a positive and significant effect on total (at 40th, 50th, and 80th), renewable (at 70th and 80th), and nonrenewable energy consumption (at 50th and 60th) quantiles. However, the reverse is true for models 1 and 3 at the 10th quantile.

Table 6 Results from quantile regression for LICs
Fig. 3
figure 3

The relationship between GDPPC and ECON at 10th quantile for LICs

The results in Table 7 show the quantile estimation of all models for the LMICs group. In both models 1 and 3, there is an N-shaped EEKC in the quantiles from 20 to 70th. However, at the 80th quantile, both models have no specific stationary values but reach maximum at 1815.18 and 1718.03 GDPPC respectively. Consequently, most countries’ GDPPC in most periods is below and above the maximum threshold values. Therefore, there is an inverted U-shaped EEKC at the 80th quantile in models 1 and 3. Our conclusion is also supported by research from Luzzati and Orsini (2009), Aboagye (2017), Hundie and Daksa (2019), and Aruga (2019).

Table 7 Results from quantile regression for LMICs

Similarly, since most periods are below the minimum threshold values, we can say an inverted U-shaped (30–80th quantiles) EEKC existed in model 2. Urbanization has a negative and significant effect on total (at 20th, 30th, and 50th), renewable (at 50–90th), and nonrenewable energy consumption (at 10–30th) quantiles. However, it significantly increases renewable energy consumption at 10th and 20th quantiles. Population growth has a negative and significant effect on total (at 50th, 70–90th), renewable (at 10th, 20th, 40th, 50th, and 90th), and nonrenewable energy consumption (at 70–90th) quantiles.

The results in Table 8 show the quantile estimation of model 1–3 for HMIC groups. For all models, the study found U-shaped EEKC in 50–80th quantiles. Besides, there is U-shaped EEKC in models 1 and 2 at quantiles between 50 and 90th. However, there is an inverted U-shaped EECK in model 1 at the 20th quantile. Except for model 2 at the 10th quantile, urbanization significantly increases all types of energy consumptions at all quantiles. However, population growth has a negative and significant effect on all energy consumption at 50–90th quantiles. Similarly, it significantly reduces renewable energy consumption at 20–40th quantiles. But it significantly increases both total and nonrenewable energy consumptions at 10th and 20th quantiles.

Table 8 Results from quantile regression for HMICs and all models

Table 9 shows the quantile estimation result of all models for the HICs group. There is an inverted U-shaped EEKC observed in 70–90th quantiles for model 1. Similarly, there is an inverted U-shaped EEKC for model 3 in the 30–90th quantiles. However, the result confirmed that the relationship between GDPPC and renewable energy consumption is positive and non-linear at the 50th and 70th quantiles because most observations are found between the minimum and maximum threshold values of GDPPC. Except for at the 20th (for model 1), 10th and 80th (for model 2), and 90th quantile (for model 3), urbanization significantly increases all types of energy consumptions. However, population growth significantly reduces all types of energy consumption at the 30–90th quantiles. Moreover, it has a negative and significant effect on renewable and nonrenewable energy consumption at the 20th quantile.

Table 9 Results from quantile regression for HICs

The quantile results for HICs and other groups of countries are mixed and inconclusive; therefore, the EEKC should be studied carefully and thoroughly. Commonly, the panel mean estimations might lead to non-representative results for the sampled countries but employing quantile regressions like this study shows the relationship between income and energy consumption varies between quantiles; hence, policy recommendations based on quantile regression might be effective compared to the mean regressions.

Finally, Koenker and Bassett (1982) and Newey and Powell (1987) advocated the use of slope equality and symmetry testing to look at the heterogeneous distribution of the estimated quantile parameters. The quantile slope equality and symmetric quantiles test compare all coefficients from the estimated equation quantiles from 0.1 to 0.9 using the Wald test statistic. Table 10 shows that the homogeneity null hypothesis is rejected at a 1% level of significance.

Table 10 Wald statistics

Discussion

Analyzing the empirically established close nexus between energy consumption and economic growth has been a fascinated topic for researchers and academics. The importance of this nexus further increased as energy consumption deteriorates the environment and put pressure on countries to adopt renewable energy sources instead of fossil fuel that damages the environment through CO2 emissions. Furthermore, investigating the transition in the association between economic growth and energy consumption by type or total and for economies grouped in the context of the development stage is crucial because each group of countries is heterogeneous in terms of energy consumption and renewable energy share in the total energy mix. Hence, this study investigates the EEKC by type or total energy consumption globally to have deeper insights into the energy policy framework.

Both panel models and quantile regressions indicated that energy consumption and economic growth are cointegrated in the long run in all groups except in LICs. Based on the FMOLS model, we conclude that the relationship between GDPPC, total energy, and non-renewable energy consumption is positive and non-linear but does not follow either inverted U-shaped or N-shaped form. On the other hand, quantile estimations revealed mixed (positive and non-linear, inverted U-shape, U-shape, and N-shape) EEKC.

The mixed results can be attributed to the heterogeneity between and within these income groups (Allard et al. 2018). This means that the hypothesis of transition in energy consumption is occurring only in developed nations and there is no room for developing countries to implement energy-efficient policies to mitigate environmental challenges as it may compromise their much-needed economic growth. Our findings suggest that the optimal policy for low-income countries is to “grow first, clean up latter.” They can adopt energy conservation policies once they surpass the threshold income level and catch the high-income countries. Moving on to the EEKC is not a difficult task for low-income countries as we demonstrate that developed countries are growing while using energy-efficient technologies. Probably, developing countries can learn from developed nations in framing energy policies that effectively worked for them and achieve sustainable development. The developed countries in the world need to support developing countries to achieve development goals by transferring economic and technological support.

The overall findings of the study suggest that the EEKC should be studied carefully and thoroughly to analyze the nexus between energy consumption and economic growth and results should be interpreted with relation to the countries’ development stage. The same policy framework is not applicable for each group of economies as the EEKC hypothesis is not overwhelmingly accepted. While framing energy conservative policies, regulators should consider the degree of development in each country. Renewable energy may be an efficient substitute for the traditional sources of energy including fossil fuel and can help outpace environmental pressures (Zoundi 2017).

Conclusions

This paper investigated the energy environmental Kuznets curve for 144 countries divided into three groups, low income, middle income, and high-income countries based on world bank criteria 2021. Results obtained from panel regression and cointegration analysis support the existence of EEKC for high-income countries, while these results cannot be verified in the case of middle and low-income countries at lower quantiles. This means that the hypothesis of transition in energy consumption is occurring only in developed nations and there is no room for developing countries to implement energy-efficient policies to mitigate environmental challenges as it may compromise their much-needed economic growth. Moving on to the EEKC is not a difficult task for low-income countries as we demonstrate that developed countries are growing while using energy-efficient technologies. Probably, developing countries can learn from developed nations in framing energy policies that effectively worked for them and achieve sustainable development. In the same vein, the developed countries in the world need to support developing countries to achieve development goals by transferring economic and technological support.

For future research, it is important to investigate what type of support developed nations could lend to developing countries to achieve the goal of economic development in the context of the EEKC. In addition, other control variables such as inflation, financial development, and the foreign direct investment might need to be considered in the EEKC model. As we studied the EEKC hypothesis globally for the first time, the econometric model used in the analysis is in a simple form. However, it includes two control variables (urbanization and population growth) that are the key determinants of energy consumption. To pursue further research, future models may include other meaningful variables like energy price, income disparity energy poverty, and so on.