Introduction

The significance of both economic growth and environmental sustainability has gained global attention. Environmental sustainability represents a shared challenge and responsibility for the world. In recent decades, the conspicuous occurrences of climate change and global warming have brought substantial focus to environmental degradation. Increasing treaty provisions have been enacted to reduce carbon emissions. The Paris Agreement requires countries to make independent contributions and commitments to reduce carbon emissions (Winning et al. 2019). Governments are required to adopt more rigorous measures to attain their carbon peak and carbon neutrality objectives. The 26th United Nations Climate Change Conference (COP26) in Glasgow witnessed nations reaffirming their commitment to prior climate agreements and making strides toward achieving the Paris Agreement’s objective of restricting global warming to 1.5 degrees Celsius (Scott and Gössling 2021). The environmental Kuznets curve (EKC) is a classic hypothesis explaining the relationship between economic growth and environmental degradation. Among the indicators for studying EKC, carbon dioxide emissions are popular. The ecological footprint, encompassing biologically productive areas such as farmland, pasture, woodland, construction land, fossil energy land, and oceans, is regarded as a more comprehensive measure of environmental degradation. The advancement of Earth’s ecological overload day implies an impending increase in human ecological debts and a greater consumption of ecological products and services, pushing the Earth’s limits (Sarkis 2019). Therefore, investigating the realms of economic and environmentally sustainable development holds paramount significance.

The rise of trade protectionism in recent years has increased the instability of economic development, presenting new challenges to environmental sustainability. Global trade protection measures witnessed a substantial increase following the international financial crisis. More recently, influenced by the COVID-19 pandemic, numerous countries have implemented trade restrictions, resulting in a significant decline in international trade and investment (Barlow et al. 2021). The outbreak of the Russia-Ukraine war in 2022 has further fueled the ascent of trade protectionism (Del Lo et al. 2022). Reverse globalization has introduced profound and intricate challenges to global economic growth, causing increasing uncertainties in environmental protection. Consequently, there is a pressing need for a comprehensive examination of the interplay between trade, economy, and the environment.

Consensus remains elusive regarding the environmentally sustainable implications of trade. The pollution paradise hypothesis posits that developing nations, compelled by the imperative of rapid development, tend to adopt less stringent environmental regulatory policies. This serves as an expedient route for developed countries to shift industries with high energy consumption. Consequently, trade activities are implicated in environmental degradation (Gyamfi et al. 2021; Chen et al. 2022). The pollution halo hypothesis suggests that foreign direct investment, combining capital and technology, can introduce positive energy-efficient technology benefits to the host country. Technological improvements help reduce energy consumption, enhance energy efficiency, lower carbon emissions, and positively impact the host country’s ecological environment (Neves et al. 2020; Tong et al. 2021). A more in-depth examination is imperative to comprehend the intricate interplay between trade and the environment. Matters on international trade, economic growth, and environmental protection necessitate unified deliberation on a global scale.

In the context outlined, this paper aims to address three pivotal questions utilizing panel data encompassing 147 chosen countries spanning the period 1995 to 2018: (1) Within the ambit of the study’s scope, does empirical evidence lend support to the EKC hypothesis? (2) In the economic growth-environmental degradation model, what is the role of trade protection measures? Are there discernible nonlinear effects inherent in this relationship? (3) To what extent does the observed effect differ among countries, contingent upon their respective income levels?

The applied threshold panel regression model in this study incorporates trade as the threshold variable to examine the nonlinear relationship among trade, the economy, and the environment. This study aims to understand how trade protectionism, measured by current trade openness data, influences the environmental Kuznets curve. In doing so, it provides a new perspective on how trade works. Additionally, employing a global panel and four income-level panels, the study unveils heterogeneous effects of trade protection on the EKC. The results show exactly how trade affects the link between economic growth and things like carbon emissions and ecological footprint. This has important implications for policies. By providing comprehensive insights into the integrated development of trade and environmental sustainability, especially across varied income categories, this study contributes nuanced and extensive information. The following sections are organized as follows: Section “Literature review” reviews existing literature, Section “Data and methods” elaborates on methodology and data sources, Section “Empirical results” presents findings and results, Section “Discussion” delves into discussion, and Section “Conclusions, implications, and limitation” summarizes the conclusions and implications.

Literature review

The correlation between environmental protection and economic development has been discussed in previous literature. In 1991, American economists Grossman and Krueger conducted the first empirical research on the relationship between environmental quality and per capita income. Their findings revealed that pollution increases with GDP per capita at low-income levels but decreases with GDP growth at high-income levels (Grossman and Krueger 1991). Panayotou introduced the environmental Kuznets curve to depict the relationship between environmental quality and per capita income (Panayotou 1993). Subsequently, the focal point of discussions and debates gradually shifted towards the EKC. The traditional EKC represents an economic theory that elucidates the correlation between environmental pollution and economic development (Wang et al. 2023a). The fundamental model of the traditional EKC takes the form of an inverted U-shaped curve. Environmental pollution tends to intensify as the country’s economic growth level rises, reaching a peak, and subsequently declining after surpassing a certain threshold. The curve’s assumption implies that initially, as the economy expands, industrialization and urbanization processes contribute to an increase in environmental pollution. However, as the country attains economic prosperity and heightened environmental awareness, the reinforcement of environmental protection measures, promotion of technological innovation, and overall environmental pollution gradually diminish. Some existing research findings corroborate this hypothesis (Murshed et al. 2020; Akadırı et al. 2021; Balsalobre-Lorente et al. 2021). Scholars have amassed evidence supporting the establishment of the EKC using diverse models and methodologies. Destek and Sarkodie (2019) examined the relationship between economic growth, energy consumption, financial development, and ecological footprint to determine the validity of the EKC hypothesis. To analyze panel data spanning eleven newly industrialized countries from 1977 to 2013, this study employed the augmented mean group (AMG) estimator and the heterogeneous panel causality method. The results unveiled an inverted U-shaped relationship between economic growth and ecological footprint. Using the simultaneous equations framework, Yin et al. (2021) examined the causal relationship between FDI, CO2 emissions, and economic growth for 101 countries and four different income groups. Their findings support both the Pollution Paradise Hypothesis and the EKC hypothesis. Farooq et al. (2022) examined the relationship between globalization and carbon dioxide emissions using data from 180 countries between 1980 and 2016. The study unearthed compelling evidence suggesting that economic globalization adversely affects environmental sustainability, and the EKC was validated across all models. Zhang et al. (2019) tested the EKC hypothesis using data on CO2 emissions from manufacturing and construction in 121 countries from 1960-2014 and calculated the inflection points for countries that validate the EKC hypothesis.

Conclusions drawn in certain studies cast doubt on the traditional EKC theory (Pata and Aydin 2020; Alola and Donve 2021). The findings of these studies suggest that the relationship between environmental issues and economic development is more intricate and cannot be easily elucidated by traditional EKC theory. Wang et al. (2021) used the Tapio method and the EKC model to evaluate and predict the status of urban economic development and MSW in China, and the results confirmed the N-shaped and inverted N-shaped relationships between them in different regions. Liu et al. (2021) investigated provincial-level changes in annual fertilizer application in China from 1978 to 2017, and the panel regression revealed an N-shaped shift in the EKC. Moreover, Koc and Bulus (2020) tested the EKC assumptions for South Korea from 1971 to 2017 by examining the dynamic short-run and long-term relationships between per capita GDP, per capita energy consumption, per capita renewable energy consumption, trade openness, and per capita CO2 emissions. Their empirical results identified an N-type relationship between carbon emissions and GDP. Balsalobre-Lorente et al. (2022) investigated the relationship between economic complexity and CO2 emissions in Portugal, Ireland, Italy, Greece, and Spain using a dynamic ordinary least squares estimator. Empirical evidence suggested that they had an inverted U-shaped and further N-shaped relationship.

Furthermore, the existing EKC-related literature can be divided into two categories according to the research area. One is research on a country or a region, for example, France (Pata and Samour 2022), India (Ozcan and Ulucak 2021), and China (Yilanci and Pata 2020; Pata and Caglar 2021). The other is on some selected countries for research, for example, European Union (Dogan and Inglesi-Lotz 2020), sub-Saharan African countries (Tenaw and Beyene 2021), and OECD countries (Isik et al. 2021).

In general, the traditional EKC has undergone extensive examination in scholarly literature. However, consensus needs clarification due to variations among countries and approaches. Moreover, there is a necessity to broaden the exploration of the traditional EKC from a new perspective. A systematic examination of the trade-economy-environment nexus offers valuable insights in this regard.

Incorporating trade variables into the economic-environmental research framework and re-evaluating the EKC assumption from the perspective of trade offers a novel standpoint for this study. To comprehensively analyze the relationship between them, the application of a nonlinear threshold panel regression model is deemed appropriate. The panel threshold regression model captures the relationship at different stages by combining the non-linear features of panel data with threshold variables (Wang et al. 2023b). The model divides the observed data into different stages by introducing threshold variables to establish different regression models in different stages. This model is popular in the field of energy economics. Wang and Shao (2019) employed a panel threshold regression technique to observe the non-linear impact of formal and informal environmental regulations on G20 green growth between 2001 and 2015. Additionally, Zhou and Li (2020) studied the non-linear impact of industrial restructuring on economic growth and carbon dioxide emissions in 32 countries. Li et al. (2022) explored carbon emissions in the transportation industry across 30 provinces in China, employing a methodology that combines the decoupling index and panel threshold analysis. Zeitun and Goaied (2021) examined the non-linear relationship between foreign ownership and firm leverage decisions, investigating whether thresholds on foreign ownership levels moderate the effects of capital structure determinants. Another study used linear and nonlinear models to explore factors affecting carbon emissions (Li et al. 2021). To sum up, the panel threshold model is mature and recognized by scholars from various countries. This paper investigates the non-linear effects of trade on the economy and the environment, and it is appropriate and reliable to apply this model.

Grossman and Krueger proposed the three-effect theory, namely the scale effect, composition effect, and technical effect (Grossman and Krueger 1995), which is applicable to research on the environmental impact of economic growth/trade. There is no consensus on the impact of trade on environmental sustainability. The specific impact of trade on the environment is contingent upon the interplay between positive and negative effects resulting from the joint action of these three factors. In accordance with the scale effect, economic growth requires an increase in input, subsequently escalating resource use, and higher output contributing to an increase in pollution emissions (Hao et al. 2020). The technical effect reflects that cleaner and more advanced technologies are replacing technologies that cause significant environmental pollution, which aids in improving environmental quality (Sinha et al. 2020). The composition effect measures changes in output and input structure as income levels increase. The economy transitions to low-polluting service and knowledge-intensive industries, leading to lower emissions per unit of output and an enhancement in environmental quality (Ahmad et al. 2020). Thus, previous research has widely used the three-effect theory (Park et al. 2018; Le and Ozturk 2020).

The economic and environmental issues stemming from the surge in trade protectionism have garnered global scholarly attention. Research exploring the connection between trade protection and environmental policy is prevalent. Copeland (2000) believed that in the case of non-global pollution, trade liberalization that does not restrict environmental policies leads to a non-cooperative game among countries on pollution policies. The argument posits that the anticipated environmental repercussions of free trade are pertinent to trade policy preferences (Bechtel et al. 2012). Quantitative measures of trade protection remain uncertain. Limited research has directly investigated the impact of trade protection on the environment, with most of the existing literature considering trade openness as an inverse indicator of trade protection.

In existing studies, two hypotheses offer distinct perspectives to elucidate the impact of trade on the environment. The Pollution Paradise Hypothesis contends that trade liberalization results in the relocation of highly polluting industries from countries with stringent environmental regulations to those with lax environmental regulations. Findings from several studies further provide theoretical support for this viewpoint. Drawing on the establishment of China’s intellectual property protection system, integrated trade, Foreign Direct Investment (FDI), and Outward Foreign Direct Investment (OFDI) into a unified international technology spillover framework (Hao et al. 2021). They analyzed the impact of international technology spillovers on China’s carbon emissions, revealing that trade, FDI, and OFDI contribute to an increase in regional carbon emissions. Wang et al. (2021) investigated the mechanism of FDI’s effect on carbon emissions through energy intensity, and the results revealed that FDI is one of the reasons for the increase in emissions in China at this stage, and FDI can also increase carbon emissions indirectly through increasing energy intensity. Vural (2020) investigated the effects of output, trade, and renewable and non-renewable energy on carbon emissions in Sub-Saharan African countries. Long-term empirical findings suggest that nonrenewable energy and trade contribute to the increase in carbon emissions. Liu et al. (2022) investigated the impact of tourism development, economic growth, energy consumption, trade openness, and foreign direct investment on Pakistan’s ecological footprint using the EKC. The findings revealed that trade has an ecological footprint and that foreign direct investment contributes to environmental degradation. Abid et al. (2022) investigated the connection between renewable energy consumption and ecological footprint in Saudi Arabia, contending that capital and trade openness are factors contributing to environmental degradation. Yasmeen et al. (2022) formulated three simultaneous equations to evaluate the effects of Foreign Direct Investment (FDI) inflow, technological innovation, natural resources, and population density on biomass energy consumption and ecological footprint. The empirical findings revealed that FDI has not led to environmental improvement in the Belt and Road region. Nathaniel and Khan (2020) investigated the relationship between urbanization, renewable energy, trade, and ecological footprint in ASEAN countries, confirming the role of trade in environmental degradation. Another study investigated how globalization and electricity consumption are driving Ghana’s human demand for ecological resources. Evidence suggests that globalization has a significant impact on the environmental footprint (Langnel and Amegavi 2020).

The pollution halo hypothesis posits that trade liberalization facilitates the globalization of multinational corporations, often introducing higher environmental standards and technologies into new markets. It could result in advancements in environmental technology and management, leading to improved environmental quality. Some academics endorse this viewpoint. Liu et al. (2021) revisited the relationship between FDI-trade-innovation and carbon emissions in China. The findings revealed that carbon dioxide is inversely related to foreign trade, renewable energy, and technology. Ge et al. (2022) investigated associations between foreign private investment, carbon dioxide emissions, energy consumption, trade openness, and sustainable economic growth using random effects, generalized least squares, and panel VAR estimators. The findings revealed that investment in emerging and advanced economies enhances domestic business contribution and contributes to environmental sustainability in the national economy. Khan et al. (2020) investigated the relationship between G7 countries’ trade, income, eco-innovation, renewable energy, and consumption-based carbon dioxide emissions. Exports have been shown to help with environmental sustainability. Wahab et al. (2021) reached a similar conclusion. Shahbaz et al. (2019) incorporated energy consumption, trade openness, and foreign direct investment into the carbon emission function in the United States, and the results demonstrated that trade openness reduces carbon dioxide emissions. Jiang et al. (2022) investigated the relationship between trade diversification, income inequality, renewable energy, and ecological footprint in 17 Asia-Pacific Economic Cooperation (APEC) countries, concluding that globalization and export diversification reduce ecological footprint. Usman et al. (2021) sought to investigate the determinants of ecological footprint and economic growth in order to assess the effectiveness of financial development, renewable and non-renewable energy use, and economic growth in the 15 highest emitting countries. The Augmented Mean Group (AMG) estimation method revealed that trade openness, financial development, and renewable energy all have a significant impact on overcoming environmental degradation. Zafar et al. (2019) applied the ARDL model to examine the impact of natural resources, human capital, and foreign direct investment on the ecological footprint. The results showed that foreign direct investment significantly reduces the ecological footprint of the United States.

In general, the relationship between trade and the environment is contentious. It is not a straightforward one-way effect but rather a combination of multiple influences. While traditional EKC assumptions have been validated in numerous studies, there is a need for systematic research on trade, economics, and the environment, calling for a re-examination of EKC from a fresh perspective (Wang et al. 2023c). The non-linear effects of trade on the environment warrant attention. Additionally, most existing studies focus on a single environmental indicator, prompting the necessity for a more comprehensive comparative analysis of environmental indicators. Moreover, most studies concentrate on individual countries or economic regions, underscoring the need for comparative research across regions with varying levels of development.

Therefore, this study makes the following contributions: 1) This paper innovatively investigates the environmental Kuznets curve from the perspective of trade protection, extending the traditional EKC theory. By considering the three dimensions of trade, economy, and environment, it highlights the role of trade factor in sustainable development, providing policymakers with insights into identifying environmental impact mechanisms. Unlike traditional ecological studies focused on the relationship between organisms and the environment, this study treats nature, trade activities, and the economy as a composite ecosystem. It incorporates the impact of human activities and studies the driving effect of trade development on ecological restoration from a systemic perspective. 2) This paper employs the threshold panel regression model, using trade as the threshold variable and industrial structure, foreign direct investment, and the globalization index as control variables to analyze the impact mechanism of trade on economic growth, carbon emissions, and ecological footprint. Additionally, the research extends to the perspectives of carbon emissions and ecological footprint, comprehensively analyzing the results for these two environmental variables. By investigating the economic-environmental correlation, this paper integrates various elements into a unified assessment framework, providing a comprehensive understanding of sustainability covering various factors. 3) Considering the heterogeneity of different research objects, this study analyzes the regression results of panel data from 147 countries worldwide and the panel data of four income groups. It examines the EKC curve from the perspective of different income groups, observing the heterogeneous effect of trade on countries with varying income levels.

Data and methods

Data sources

This paper aims to investigate the nonlinear impact mechanism of global trade on the environmental Kuznets curve. We examine the dynamic relationship between GDP per capita, trade, industrial structure, foreign direct investment, the globalization index, and the environment using a panel dataset spanning 147 countries from 1995 to 2018. This paper uses carbon dioxide emissions and ecological footprint as indicators of environmental degradation. GDP per capita is the explanatory variable, and data are in constant 2015 US dollars. Trade is the threshold variable. The explained variables are per capita carbon dioxide emissions and per capita ecological footprint. Control variables include industrial structure, FDI, and the globalization index. They are indicators that are closely linked to globalization. The ratio of industrial added value to GDP is used to determine the industrial structure. The Globalization KOF Index assesses globalization’s economic, social, and political dimensions. Trade liberalization has provided more opportunities and potential for the industrial sector. Globalization can facilitate technological innovation and the diffusion of knowledge, bringing new opportunities and competitive advantages to industrial sectors. However, industrial activities are usually accompanied by energy consumption, material utilization and waste discharge, which may lead to environmental problems. Globalization can promote the transfer and innovation of environmental technology and management, and promote the development of environmentally friendly industries. Figure 1 depicts the interdependence and a brief description of all variables. World Bank (World Bank 2022), Global Footprint Network (Global Foofprint Network 2022), and KOF Swiss Economic Institute (KOF Swiss Economic Institute 2022) are data sources.

Fig. 1
figure 1

Interconnections and brief descriptions of variables.

Considering the heterogeneity of economic development and environmental governance in different countries, this study divides the countries into four income groups according to the World Bank criteria, as shown in Supplementary Fig. A1. This study also reports in detail the countries included in this paper in Supplementary Table A1 of Appendix A.

Proposed econometric models

To test the validity of the EKC hypothesis, environmental degradation is often described as a function of GDP per capita, GDP per capita squared, industrial structure, foreign direct investment, and globalization index. We convert the dataset of some of the considered variables to a natural logarithmic format to reduce possible data outliers and avoid multicollinearity issues (Li et al. 2021). The logarithms of CO2, EF, PGDP, IS, GI, and TRA are represented by LnCO2, LnEF, LnPGDP, LnIS, LnGI, and LnTRA, respectively. According to the studies of Pata (2018), Shokoohi et al. (2022) and Ozgur et al. (2022) the panel version of the empirical model can be expressed as follows:

$$\begin{array}{ll}{{{\mathrm{LnCO}}}}2 = {{{\mathrm{\alpha }}}}_0 + {{{\mathrm{\alpha }}}}_1\left( {{{{\mathrm{LnPGDP}}}}} \right) + {{{\mathrm{\alpha }}}}_2\left( {{{{\mathrm{LnPGDP}}}}^2} \right) + {{{\mathrm{\alpha }}}}_3\left( {{{{\mathrm{LnIS}}}}} \right) + {{{\mathrm{\alpha }}}}_4\left( {{{{\mathrm{FI}}}}} \right)\\ \qquad\qquad+\, {{{\mathrm{\alpha }}}}_5\left( {{{{\mathrm{LnGI}}}}} \right) + \mu \end{array}$$
(1)
$$\begin{array}{ll}{{{\mathrm{LnEF}}}} = {{{\mathrm{\alpha }}}}_0 + {{{\mathrm{\alpha }}}}_1\left( {{{{\mathrm{LnPGDP}}}}} \right) + {{{\mathrm{\alpha }}}}_2\left( {{{{\mathrm{LnPGDP}}}}^2} \right) + {{{\mathrm{\alpha }}}}_3\left( {{{{\mathrm{LnIS}}}}} \right) + {{{\mathrm{\alpha }}}}_4\left( {{{{\mathrm{FI}}}}} \right)\\\qquad\qquad +\, {{{\mathrm{\alpha }}}}_5\left( {{{{\mathrm{LnGI}}}}} \right) + \mu \end{array}$$
(2)

It is common and credible to test EKC models using the GDP per capita square as an explanatory variable. When the coefficient of LnPGDP2 in the regression model’s calculation results is negative, the EKC hypothesis is considered valid; that is, the relationship between economic growth and environmental degradation presents an inverted U-shape.

This study constructs nonlinear threshold models of trade on the economy and the environment and explores the validity of the EKC hypothesis from a new perspective. With trade as the threshold variable, the formula of the single threshold model is as follows:

$$\begin{array}{ll}{{{\mathrm{LnCO}}}}2_{i,t} = {{{\mathrm{\alpha }}}}_1{{{\mathrm{LnPGDP}}}}_{it}I\left( {{{{\mathrm{LnTRA}}}}_{i,t} \le \lambda _1} \right) + {{{\mathrm{\alpha }}}}_2{{{\mathrm{LnPGDP}}}}_{it}I\left( {{{{\mathrm{LnTRA}}}}_{i,t} > \lambda _1} \right)\\ \qquad\qquad\quad +\, {{{\mathrm{\alpha }}}}_{01}{{{\mathrm{LnIS}}}}_{i,t} + {{{\mathrm{\alpha }}}}_{02}{{{\mathrm{LnFI}}}}_{i,t} + {{{\mathrm{\alpha }}}}_{03}{{{\mathrm{LnGI}}}}_{i,t} + \mu _i + \varepsilon _{i,t}\end{array}$$
(3)
$$\begin{array}{ll}{{{\mathrm{LnEF}}}}_{i,t} = {{{\mathrm{\alpha }}}}_1{{{\mathrm{LnPGDP}}}}_{it}I\left( {{{{\mathrm{LnTRA}}}}_{i,t} \le \lambda _1} \right) + {{{\mathrm{\alpha }}}}_2{{{\mathrm{LnPGDP}}}}_{it}I\left( {{{{\mathrm{LnTRA}}}}_{i,t} > \lambda _1} \right)\\ \qquad\qquad +\, {{{\mathrm{\alpha }}}}_{01}{{{\mathrm{LnIS}}}}_{i,t} + {{{\mathrm{\alpha }}}}_{02}{{{\mathrm{LnFI}}}}_{i,t} + {{{\mathrm{\alpha }}}}_{03}{{{\mathrm{LnGI}}}}_{i,t} + \mu _i + \varepsilon _{i,t}\end{array}$$
(4)

where i consigns to an individual country, t is the time dimension. λ represents the threshold value. εi,t is the random error term. μi. is the individual effect.

The formula of the double threshold model is as follows:

$$\begin{array}{ll}{{{\mathrm{LnCO}}}}2_{i,t} = {{{\mathrm{\alpha }}}}_1{{{\mathrm{LnPGDP}}}}_{it}I\left( {{{{\mathrm{LnTRA}}}}_{i,t} \le \lambda _1} \right)\\\qquad\qquad\quad +\, {{{\mathrm{\alpha }}}}_2{{{\mathrm{LnPGDP}}}}_{it}I\left( {\lambda _1 < {{{\mathrm{LnTRA}}}}_{i,t} \le \lambda _2} \right)\\ \qquad\qquad\quad+\, {{{\mathrm{\alpha }}}}_3{{{\mathrm{LnPGDP}}}}_{it}I\left( {{{{\mathrm{LnTRA}}}}_{i,t} > \lambda _2} \right) + {{{\mathrm{\alpha }}}}_{01}{{{\mathrm{LnIS}}}}_{i,t} + {{{\mathrm{\alpha }}}}_{02}{{{\mathrm{LnFI}}}}_{i,t}\\ \qquad\qquad\quad+\, {{{\mathrm{\alpha }}}}_{03}{{{\mathrm{LnGI}}}}_{i,t} + \mu _i + \varepsilon _{i,t}\end{array}$$
(5)
$$\begin{array}{ll}{{{\mathrm{LnEF}}}}_{i,t} = {{{\mathrm{\alpha }}}}_1{{{\mathrm{LnPGDP}}}}_{it}I\left( {{{{\mathrm{LnTRA}}}}_{i,t} \le \lambda _1} \right)\\ \qquad\qquad\quad +\, {{{\mathrm{\alpha }}}}_2{{{\mathrm{LnPGDP}}}}_{it}I\left( {\lambda _1 < {{{\mathrm{LnTRA}}}}_{i,t} \le \lambda _2} \right)\\ \qquad\qquad \quad+\, {{{\mathrm{\alpha }}}}_3{{{\mathrm{LnPGDP}}}}_{it}I\left( {{{{\mathrm{LnTRA}}}}_{i,t} > \lambda _2} \right) + {{{\mathrm{\alpha }}}}_{01}{{{\mathrm{LnIS}}}}_{i,t} + {{{\mathrm{\alpha }}}}_{02}{{{\mathrm{LnFI}}}}_{i,t}\\ \qquad\qquad \quad+\, {{{\mathrm{\alpha }}}}_{03}{{{\mathrm{LnGI}}}}_{i,t} + \mu _i + \varepsilon _{i,t}\end{array}$$
(6)

Empirical methodology

Apreliminary analysis of panel data is necessary before estimating the threshold model. The unit root test is used to find out whether the data for the selected variable is stationary (Li et al. 2023). Panel unit root test refers to the unit root test of each cross-sectional series of variables in the panel data as a whole. Panel data can be divided into two types: homogeneous panel and heterogeneous panel, according to the different data generation methods.

Two unit root test methods, LLC (Levin et al. 2002) and IPS (Im et al. 2003), are used in this study. The LLC test adopts the form of the ADF test, but the LLC test assumes the homogeneity of each cross-section unit; that is, the regression coefficient of the first-order lag term of each longitudinal section time series must be the same. ρi = ρ. Moreover, it also requires each section to be independent of each other. The test formula is as Eq. (7).

$$\begin{array}{*{20}{c}} {\Delta y_{i,t} = \rho y_{i,t - 1} + \mathop {\sum}\limits_{L = 1}^{P_i} {\beta _{iL}\Delta y_{i,t - L} + z_{i,t}^\prime \gamma _i + \varepsilon _{i,t},} } & {\alpha = \rho - 1} \end{array}$$
(7)

where, zi,t represents the fixed effect or time trend term, zi,t = {0}, zi,t = {1}, zi,t = {0,1}. γi is the coefficient vector, and εi,t is the stationary process.

The null and alternative hypotheses are as follows:

$$H_0:\rho = 0;\,H_1:\rho < 0$$
(8)

Compared to LLC, IPS relaxes the assumption of homogeneity. It proposes a unit root test for heterogeneous panel data, which allows ρi to take different values in different cross-sectional units and performs unit root test with the mean t-bar of the DF statistics of each cross-sectional unit. The method is based on the following panel data model:

$$\begin{array}{ll}\Delta y_{i,t} = \rho _iy_{i,t - 1} + \mathop {\sum}\limits_{L = 1}^{p_i} {\beta _{iL}\Delta y_{i,t - L} + z_{i,t}^\prime \gamma _i + \varepsilon _{i,t},} \\\qquad\quad i = 1,\,2,\, \cdots ,\,N;\,t = 1,\,2,\, \cdots ,\,T\end{array}$$
(9)

The null and alternative hypotheses of IPS are: H0: ρi = 1, which is true for all i. H1: ρi < 1, true for at least one i. The test statistic is defined as follows:

$${{{\mathrm{t}}}} - {{{\mathrm{bar}}}} = \frac{1}{N}\mathop {\sum}\limits_{i = 1}^N {t_i}$$
(10)

IPS has given the critical value of the statistic t-bar at different levels of significance by means of stochastic simulation. It perfects the panel unit root test theory and is suitable for balanced panel data.

After determining the stability of the panel data, regression calculations can be performed on the data. This paper applies the threshold panel regression model proposed by Hansen (1999). The basic setting of the single threshold model is shown in Eq. (11).

$$Y_{i,t} = \alpha _0R_{it} + \alpha _1X_{it}I\left( {q_{it} \le \lambda _1} \right) + \alpha _2X_{it}I\left( {q_{it} > \lambda _1} \right) + \mu _i + \varepsilon _{i,t}$$
(11)

where Yi,t is the explained variable. qit is the threshold variable. Xit is the explanatory variable. Rit is the variable that has significant effect on the explained variable in addition to the core explanatory variable. I (·) is an indicative function, and the value in the corresponding brackets is 1 when the condition is satisfied, and 0 when the condition is not satisfied.

The estimation of the threshold λ1 is shown in Eq. (12), and the applied method is ordinary least squares.

$$\widehat {\lambda _1} = arg\,\min S_1\left( {\lambda _1} \right)$$
(12)

The arg min function represents the set of λ1 corresponding to the minimum sum of squared residuals. Then, the estimator of parameter α is: \(\widehat \alpha \left( {\lambda _1} \right) = \left\{ {X^ \ast \left( {\lambda _1} \right)^\prime X^ \ast \left( {\lambda _1} \right)} \right\}^{ - 1}\left\{ {X^ \ast \left( {\lambda _1} \right)^\prime \lambda _1^ \ast } \right\}\). The residual vector is: \(\widehat \varepsilon ^ \ast \left( {\lambda _1} \right) = Y^ \ast - X^ \ast \left( {\lambda _1} \right)\alpha ^ \ast \left( {\lambda _1} \right)\). The residual sum of squares is: \(S_1\left( {\lambda _1} \right) = \widehat \varepsilon ^ \ast \left( {\lambda _1} \right)^\prime \widehat \varepsilon ^ \ast \left( {\lambda _1} \right)\). The residual variance is: \(\widehat \sigma ^2\left( {\widehat {\lambda _1}} \right) = {{\varepsilon}^ \ast}^\prime {{\varepsilon}^\ast} /N\left( {T - 1} \right) = S_1\left( {\widehat \sigma } \right)/N\left( {T - 1} \right)\).

In this paper, the Bootstrap method is used to test the model to test whether the threshold effect is statistically significant. We define the null hypothesis that there is no threshold effect, which is expressed as: H0: α1 = α2. The alternative hypothesis is: H1: α1 ≠ α2. Constructing the F statistic to test the null hypothesis, \(F_1 = \frac{{S_0 - S_1\left( {\widehat {\lambda _1}} \right)}}{{\widehat \sigma ^2}}\). where, S0 and S1 are the residual sum of squares of the null hypothesis and the alternative hypothesis, respectively. The rejection of the null hypothesis means that there exists threshold effect.

The next step is to test whether the threshold value is equal to the true value. Set the null hypothesis that the threshold value is equal to the true value. The likelihood ratio statistic is: \(LR\left( {\lambda _1} \right) = \frac{{S_1\left( {\lambda _1} \right) - S_1\left( {\widehat {\lambda _1}} \right)}}{{\widehat \sigma ^2}}\). Suppose C(α) is a non-rejection interval, \({{{\mathrm{C}}}}\left( {{{\mathrm{\alpha }}}} \right) = - 2{{{\mathrm{ln}}}}\left( {1 - \sqrt {1 - \alpha } } \right)\), and α is the significance level. If LR(λ1) < C(α), the null hypothesis is accepted, that is, the threshold estimate is considered meaningful when the significance level is α, and vice versa.

The basic setting of the double threshold model is:

$$\begin{array}{ll}Y_{i,t} = \alpha _0R_{it} + \alpha _1X_{it}I\left( {q_{it} \le \lambda _1} \right) + \alpha _2X_{it}I\left( {\lambda _1 < q_{it} \le \lambda _2} \right)\\ \qquad+\, \alpha _3X_{it}I\left( {q_{it} > \lambda _2} \right) + \mu _i + \varepsilon _{i,t}\end{array}$$
(13)

The estimation of the second threshold λ2 is as Eq. (14).

$$S_2^\lambda \left( {\lambda _2} \right) = \left\{ {\begin{array}{*{20}{c}} S{\left( {\widehat {\lambda _1},\lambda _2} \right)} & {\widehat {\lambda _1}\,<\,\lambda _2} \\ S{\left( {\lambda _2,\widehat {\lambda _1}} \right)} & {\lambda _2\,<\,\widehat {\lambda _1}} \end{array}} \right.$$
(14)

\(\widehat \lambda _2^\lambda = {{{\mathrm{arg}}}}\,{{{\mathrm{min}}}}\,S_2^\lambda \left( {\lambda _2} \right)\). The F2 statistic is constructed to test which is more significant with single threshold and double threshold. \(F_2 = \frac{{S_1\left( {\widehat {\lambda _1}} \right) - S_2^\lambda \left( {\widehat \lambda _2^\lambda } \right)}}{{\widehat \sigma ^2}}\). If the value of F2 is larger, the double threshold effect is more significant.

Empirical results

Unit root test

We first conduct an empirical analysis through a descriptive analysis of the variable’s descriptive statistics. Table 1 summarizes descriptive statistics for all variables in 147 countries. The current study is conducted for a sample size of 3528 observations.

Table 1 Descriptive analysis of variables in 147 countries.

The results show that the average per capita carbon dioxide emissions over the study period is 1.8225 metric tons, the average per capita ecological footprint is 2.5226 gha, and the average per capita GDP is $4619.31. Table 2 presents descriptive statistics for the four income groups. High-income countries have the largest per capita carbon emissions and ecological footprints, while low-income groups have the smallest. High-income countries have the largest trade volume, with the mean being 64% over the study period. The results of descriptive statistics are realistic and confirmed in most studies.

Table 2 Descriptive analysis of variables in four income groups.

Table 3 presents the unit root test results for panel data of all variables. The stationarity test is significant in econometric analysis to avoid spurious regression traps. This study applies two-panel stationarity tests, LLC and IPS unit root tests. Results for the global and four income groups show that all variables of interest are first-difference stationary. This situation is appealing because the variables are consistent with constant variance and zero mean.

Table 3 Unit root test of panel data.

Cointegration test

This paper uses the Pedroni cointegration test to explore whether there is a long-term correlation between variables. This lays the foundation for further regression analysis. The cointegration test results are shown in Tables 4 and 5. When carbon dioxide is used as an indicator of environmental pollution, the Pedroni test constructs seven statistics, and the results show that four of them reject the null hypothesis at the significance level of 1% or 5%. This proves a long-term stable cointegration relationship between LnCO2 and other variables. When ecological footprint is used as an indicator of environmental degradation, more than half of the seven statistics constructed by the Pedroni test for each study area pass the 1% or 5% significance test. There is a long-term equilibrium relationship between LnEF and other variables.

Table 4 Pedroni residual cointegration test results (CO2).
Table 5 Pedroni residual cointegration test results (EF).

Threshold effect test

Carbon dioxide emissions and ecological footprint were used as explained variables respectively, and a nonlinear threshold panel model was constructed. Table 6 shows the threshold effect test results of panel data from 147 countries worldwide. Further, Table 7 presents the calculation results of the estimated value of the threshold. The double threshold effect of trade on the economic growth-carbon emission model passes the 10% significance level test. The two estimated threshold values are 4.188 and 5.019. The double threshold effect is significant at 10% when the ecological footprint is used as the explained variable. The estimated threshold values are 2.979 and 5.540.

Table 6 Test of the threshold effect in 147 countries.
Table 7 Estimated threshold value in 147 countries.

Table 8 shows the threshold effect test results for the high-income group, the upper middle-income group, the lower middle-income group, and the low-income group. When carbon dioxide emissions are the explained variable, trade as the threshold variable shows a significant double threshold effect in the models of the four income groups. At the 5% level, the double threshold effect of high and lower middle-income groups is significant. For the upper middle- and low-income groups, the significance of the double threshold effect is 10%. In the model of trade on economic-ecological footprint, the four income groups face two scenarios: the single threshold effect and the double threshold effect. The single threshold effect is significant in the upper middle- and upper-income groups. The double threshold effect of low and lower middle-income countries passes the 5% significance level test.

Table 8 Test of the threshold effect in four income groups.

Table 9 also displays the calculated results of threshold estimated values and 95% confidence intervals for the four income groups. It was discovered that different threshold effects and estimated values in the nonlinear trade models on carbon emissions and ecological footprint exist in the same income group countries. When comparing different income groups, the thresholds are also heterogeneous. As a result, it is critical to compare and study the various results in different regions.

Table 9 Estimated threshold value in four income groups.

Threshold estimation results

The threshold regression results for global panel data are shown in Table 10. Results demonstrate that using trade as a threshold variable divides the effect of economic growth on carbon emissions into three intervals. When LnTRA is less than 4.188, the impact coefficient of per capita GDP on carbon dioxide is 0.3845. When LnTRA is between 4.188 and 5.019, the regression coefficient is 0.3766. When LnTRA is greater than 5.019, the coefficient is 0.3613. The positive effect of economic growth on carbon emissions gradually diminishes as trade crosses the two thresholds. Trade has a positive impact on improving global environmental quality. The nonlinear impact of trade on the GDP per capita-ecological footprint model has three stages as well. When trade is less than 19.67% of GDP, the positive coefficient of per capita GDP to per capita ecological footprint is 0.2818. The coefficients are 0.2727 and 0.2915 when LnTRA crosses two thresholds (2.979 and 5.540). The coefficient change follows a U-shaped pattern. The estimated value of the second threshold, on the other hand, is greater, and the data on trade crossing the second threshold is less. As a result, trade reduces the positive impact of economic growth on the environment degradation. The trend of coefficient change caused by the threshold effect is depicted in Fig. 2. From the new perspective of trade as a threshold variable, we find that it is the obvious effect of trade on mitigating environmental pressure.

Table 10 Regression results of threshold model in 147 countries.
Fig. 2
figure 2

Nonlinear coefficient change trend in global.

The environmental effects of control variables are also investigated. The structure of the industrial sector has a significant positive impact on carbon emissions and the environmental footprint. Because industrial development consumes a lot of energy, it inevitably increases environmental pressure. This corresponds to prior research Hu et al. (2020). The regression results for foreign investment are insignificant. Globalization index promotes carbon emissions and ecological footprint. The promoting effect of globalization on environmental degradation has also been confirmed in Adebayo and Kirikkaleli (2021)‘s research.

Various income groups have different policies according to their economic development and environmental governance levels. This study takes into account regional heterogeneity and then performs regression analysis on the threshold model of the four income groups. The regression results of the two models for each income group are shown in Table 11.

Table 11 Regression results of threshold model of four income groups.

The double threshold effect of trade on PGDP-CO2 is significant for the high-income group, with two estimated threshold values of 4.075 and 4.925. The coefficient is 0.0609 when LnTRA is less than 4.075; and 0.0545 when LnTRA is between 4.075 and 4.925. The coefficient is 0.0362 when LnTRA is greater than 4.925. The threshold effect gradually reduces the promotion of economic development on CO2 emissions. This is consistent with the regression results of panel data from 147 countries. The difference is that the coefficients in high-income countries are smaller. When ecological footprint is used as the explained variable, similar results are obtained. Trade divides the PGDP-EF model into two intervals under the single threshold effect. The coefficient is 0.2754 when LnTRA is less than 4.931. When LnTRA exceeds 4.931, the coefficient decreases to 0.2645. Trade development in high-income countries contributes to environmental improvement. Figure 3 depicts the trend of nonlinear coefficient change caused by the threshold effect.

Fig. 3
figure 3

Nonlinear coefficient change trend in high income group.

The results of the calculation for the upper middle-income group are intriguing. When carbon dioxide emissions are the explained variable, trade divides the threshold model into three stages. The positive coefficient of PGDP to CO2 is 0.4941 when LnTRA is less than 3.675. The coefficient rises to 0.5109 when LnTRA is greater than 3.675 but less than 4.022. When LnTRA exceeds 4.022, the coefficient falls to 0.5041. The coefficient exhibits an inverted U-shaped trend, which is consistent with the EKC hypothesis. There is a single nonlinear effect of trade on the ecological footprint. The coefficients are 0.3252 and 0.3315 before and after the threshold value (3.706). Upper middle-income countries’ trade openness has a positive impact on environmental degradation. Figure 4 depicts the changing trend of the coefficients. Economic growth in upper middle-income countries has a greater positive impact on environmental pressures than economic growth in high income countries. Trade has the opposite effect as well.

Fig. 4
figure 4

Nonlinear coefficient change trend in upper middle-income group.

Both models with the explained variables of carbon emissions and ecological footprint exhibit a double threshold effect in the regression results for the lower middle-income group. With coefficients of 0.7340,0.7502, and 0.7766, the trade variable divides the economic impact on carbon emissions into three stages. Trade expansion raises the coefficient. Economic growth has a smaller positive impact on the environment than carbon emissions. When the trade share of GDP is less than 32.98%, the regression coefficient is 0.2579. When the trade openness is between 32.98% and 142.17%, the coefficient is 0.2687. When the trade exceeds 142.17, the coefficient rises to 0.2979. The regression coefficients are all significant at the 1% level. This is the inverse trend of the coefficient change observed in high-income countries. This also lends support to the pollution paradise hypothesis (Guzel and Okumus 2020). Trade, in both models, increases environmental stress in lower middle-income countries. Figure 5 depicts the trend of the coefficient change. In the lower middle-income group, trade contributes to environmental degradation. This corresponds to the investigation of Muhammad et al. (2020).

Fig. 5
figure 5

Nonlinear coefficient change trend in lower middle-income group.

The coefficients of the three regression intervals divided by the trade-carbon emissions threshold model are 0.6716, 0.6459, and 0.6619 for low-income countries. The coefficients become smaller first, then larger. The trade-ecological footprint model has two thresholds: 3.562 and 3.595. When the trade share is less than 35.23%, the regression coefficient is 0.1732. When the trade is between 35.23% and 36.42%, the positive effect becomes stronger (the coefficient is 0.1898). When trade openness exceeds 36.42%, the coefficient decreases to 0.1794. In an inverted U-shape, the coefficient changes. Figure 6 also displays the nonlinear results. At the 1% level, the regression results are highly significant.

Fig. 6
figure 6

Nonlinear coefficient change trend in low-income group.

When comparing the regression results longitudinally across the four income groups, the regression coefficient of economic growth on carbon emissions is lowest for high-income countries and highest for lower-middle-income countries. The positive effect of per capita GDP on ecological footprint is smallest in high-income countries, while the coefficient is greatest in upper-middle-income countries. As income levels increase, the impact of economic growth on environmental pressure initially grows and then diminishes, aligning with the EKC hypothesis. The level of economic development in low-income countries is lower, resulting in a lower degree of environmental pollution. However, as per capita income increases, the degree of environmental degradation tends to rise in tandem with economic growth. The regression coefficients are larger in lower middle income and upper middle-income countries. When economic development reaches a tipping point, with additional increases in per capita income, environmental pollution tends to fall from high to low, and environmental quality gradually improves. Economic growth shows the least but positive effect on environmental pressures in the high-income group. In other words, high-income countries with a high technological content, good economic efficiency, low resource consumption, and fully utilized human resource advantages represent the future path of industrial development. We also discovered heterogeneity in the mechanisms by which control variables affect environmental degradation.

Discussion

This study investigates the non-linear effect of trade protection on the environmental Kuznets curve. Section “Empirical results” systematically analyzes the impact mechanism of trade on the relationship between economic growth and carbon emissions/ecological footprint from both the global perspective and the standpoint of four income groups. Several intriguing findings are worth discussing and provide insights into addressing the research questions posed in this paper.

  1. (i)

    The EKC assumption holds within the study’s scope. The 147 countries analyzed in this paper are categorized into four income groups based on World Bank criteria. Low-income countries typically denote those with relatively underdeveloped economies. In the regression results of the threshold model, the positive coefficient of economic growth for low-income groups on carbon emissions falls between 0.6 and 0.7. As the income level increases, in lower-middle-income countries, the positive coefficient of economic growth on carbon emissions becomes more substantial, ranging from 0.7 to 0.8. After the income level crosses the inflection point of the EKC, the coefficient diminishes. The regression coefficient of economic growth on carbon emissions in the upper-middle-income group is around 0.5. High-income countries, characterized by a relatively developed economy, exhibit the smallest positive effect of the economy on environmental degradation, with a coefficient of less than 0.07. Overall, the changes in the coefficients display a U-shaped curve pattern. In other words, as the level of economic development improves, environmental quality initially deteriorates and then gradually improves. This trend is also observed when the explained variable is the ecological footprint. The findings affirm the presence of the EKC, aligning with prior research findings (Farooq et al. 2022). Economic development in low-income countries tends to rely more heavily on the exploitation of natural resources, including mining, deforestation, and agriculture. This economic structure contributes to the over-exploitation of resources and environmental damage. Additionally, these countries often lack robust environmental policies and regulatory systems (Iyamu et al. 2020). Middle-income countries may experience more pronounced environmental degradation compared to low-income countries. Typically, these countries have achieved certain level of economic development, with accelerated industrialization and urbanization processes. Consequently, large-scale industrial activities, infrastructure construction, and urban sprawl in middle-income countries result in substantial consumption of natural resources and contribute significantly to environmental stress and pollution (Martínez-Zarzoso and Maruotti 2011). Despite achieving some economic development, middle-income countries may still fall behind in environmental technology and innovation. Additionally, there might be a time lag between the emergence of environmental problems and the realization of corresponding measures due to economic development issues. High-income countries generally exhibit higher environmental quality, primarily because they typically possess advanced technology and robust infrastructure. This enables them to implement effective environmental protection measures and pollution control (Hoareau et al. 2021). Furthermore, high-income countries typically boast a diversified economic structure, not solely dependent on natural resource extraction but also emphasizing the development of service industries, technological innovation, and the knowledge economy. This diversified economic structure contributes to a reduction in environmental pressure, resource consumption, and pollution emissions.

  2. (ii)

    Trade protectionism exacerbates environmental degradation. The impact of trade protection exhibits non-linear effects in the economic growth-environmental degradation model (Ge et al. 2022). In essence, trade openness is beneficial for enhancing the quality of the global environment (Jiang et al. 2022). Results show that the influence of economic growth on carbon emissions gradually diminishes as trade successively surpasses thresholds. Openness to trade fosters technological innovation and the transfer of knowledge. Through international trade, enterprises and individuals can access new technologies, advanced management practices, and innovative ideas from other countries, thereby promoting technological progress and economic development. Furthermore, trade openness has facilitated advancements in environmental technology and standards. In the realm of international trade, countries are compelled to adhere to requirements and standards for environmental protection, fostering the development and application of eco-friendly technologies. This, in turn, aids in the reduction of environmental pollution and the efficient use of resources. This paper also provides another interesting finding. In the threshold regression results concerning trade’s impact on the ecological footprint, there is a U-shaped change in the positive coefficient of economic growth as trade increases. The larger estimate for the second threshold provides fresh insights. It is crucial to note that trade openness may also have adverse effects on the environment, such as the over-exploitation of resources. Consequently, to maximize the positive impact of trade openness, the international community should adopt appropriate environmental protection measures and sustainable development strategies, ensuring a balance between economic growth and environmental conservation.

  3. (iii)

    For countries with diverse income levels, there exists heterogeneity in the non-linear impact of trade protection on the economy-environment relationship. As trade increases, the positive coefficient of economic growth in relation to carbon emissions and ecological footprint within the high-income group exhibits a declining trend. Trade has the potential to enhance environmental quality in high-income countries. However, it contributes to environmental degradation to varying extents in upper-middle-income, lower-middle-income, and low-income countries. These findings align with the pollution haven hypothesis (Gyamfi et al. 2021). When a country or region enforces more stringent environmental protection laws and regulations, high-pollution industries may relocate to countries or regions with less stringent environmental laws and regulations, giving rise to what is commonly known as a “pollution haven.” Enterprises in pollution-intensive industries tend to establish themselves in countries or regions with comparatively lower environmental standards (Banerjee and Murshed 2020). Free trade facilitates the transfer of high-carbon industries across borders, with developed countries benefiting and experiencing an improvement in environmental quality. Conversely, developing countries, acting as host nations for foreign investment, often face environmental degradation as a consequence (Essandoh et al. 2020).

Conclusions, implications, and limitation

Conclusion

This study conducted a comprehensive investigation into the intricate relationship between economic growth, trade protectionism, and environmental indicators across 147 countries, segmented into four income groups. The utilization of the Pedroni cointegration test further validated the existence of stable long-term correlations between carbon emissions, ecological footprint, and other variables, establishing the groundwork for nuanced regression analyses. Notably, the study pioneered the exploration of threshold effects, unveiling non-linear relationships between trade, economic growth, and environmental outcomes across income groups. The elucidation of threshold models revealed intriguing insights, showcasing varying impacts of trade on economic growth, carbon emissions, and ecological footprints. Particularly noteworthy were the distinct thresholds identified across income groups, delineating changes in the relationships between trade, economic growth, and environmental impacts. These findings underscored the nuanced nature of economic development’s impact on environmental degradation, supporting theories such as the EKC within specific income brackets while uncovering divergences in others.

  1. (i)

    The study supported the EKC, revealing an inverted U-shaped relationship between economic growth and environmental degradation. The degree of environmental pollution in low-income countries is relatively low, and the regression coefficient of economic growth on environmental degradation is relatively small. The coefficient values become larger for lower-middle-income and upper-middle-income countries. High-income countries have the smallest coefficients. This corresponds to the EKC assumption. With the increase of income level, the pressure of economic growth on the environment first increases and then decreases.

  2. (ii)

    The study revealed the nuanced impact of trade protectionism on environmental degradation. While trade openness globally enhanced environmental quality, nonlinear effects were evident in models examining the relationship between economic growth and environmental degradation. Trade played a pivotal role in promoting technological innovation, fostering economic development, and elevating environmental standards. However, maintaining an optimal balance is imperative to avoid the over-exploitation of resources.

  3. (iii)

    Heterogeneity in the non-linear effects of trade protectionism was apparent across income groups. For different income groups, trade openness reduces environmental degradation in the high-income group but has the opposite effect in the upper-middle and lower middle-income groups, supporting the pollution haven hypothesis. This underscores the importance of implementing stringent environmental regulations and adopting sustainable development strategies to counterbalance trade-induced environmental impacts in developing economies.

Policy implication

This comprehensive analysis highlights the multidimensional interplay between economic growth, trade openness, and environmental quality. It underscores the necessity for tailored policies that take into account income-specific dynamics. These insights carry significant implications for global policymakers, urging the adoption of sustainable development strategies that harmonize economic progress with environmental preservation. This approach ensures a balanced and equitable trajectory toward global sustainability. The paper derives actionable policy recommendations from the conclusive findings:

Environmental Kuznets Hypothesis and Global Collaboration

The globally recognized Environmental Kuznets Hypothesis emphasizes that economic growth doesn’t inherently harm the environment. By contrast, it can spur improved environmental governance. To advance this trajectory, global cooperation should intensify to establish and implement emission reduction targets and facilitate a transition towards clean energy. Developed nations should significantly increase development aid and resource transfers, assisting developing countries in implementing policies and projects for environmental protection and sustainable development. This concerted effort aims to foster a more balanced and environmentally conscious global economy.

Trade policies and environmental balance

Recognizing that trade protectionism impedes both global economic progress and environmental improvement, countries should actively advocate for environmentally friendly trade agreements. It is crucial to strike a balance between trade liberalization and environmental protection. Making meaningful progress in international cooperation and dialog on trade and the environment is essential, involving collaboration among international organizations, governments, and businesses. Strengthening cross-border environmental governance is critical, especially in collectively addressing transnational environmental challenges like climate change and biodiversity conservation.

Pollution haven hypothesis and tailored strategies

The validation of the pollution haven hypothesis underscores the differential impact of globalization across various income groups. Developed nations resort to trade protectionism to foster domestic markets and productivity. Each country should tailor its policies to meet its unique developmental needs, with a focus on promoting environmentally sustainable practices. Recognizing the disparities in economy and technology between developed and developing nations, the former adhere to stricter environmental standards and invest more significantly in environmental protection. Developing countries should actively introduce advanced technology and seek high-quality foreign investment to improve environmental quality. Simultaneously, there should be an emphasis on achieving trade sustainability by adopting green trade practices and regulating the import and export of high-pollution and high-energy-consuming products. In the era of globalization, increasing the proportion of the tertiary industry in foreign direct investment within developing countries proves to be an effective avenue for alleviating environmental pressures.

Limitations and future research

This research introduces a robust and comprehensive nonlinear model system that intricately integrates trade, economy, and the environment, making a significant contribution to existing scholarly literature. By delving into deeper layers of nonlinear relationships, it significantly enhances our understanding of the complex interplay between environmental factors and economic growth. Specifically designed for scrutinizing the impact of trade on the economy-environment relationship through panel data analysis, this model provides theoretical insights relevant to exploring threshold effects across diverse economies. Future investigations may extend variable transformations to uncover additional nonlinear relationships among a myriad of variables.

Meanwhile, this article acknowledges its limitations and outlines potential future research avenues. The current study’s geographical scope encompasses 147 countries within the time range of 1995–2018, constrained by the availability of panel data. Future investigations could mitigate these limitations by expanding the dataset, extending the research period, and augmenting the sample size. This expansion aims to yield more precise and comprehensive research outcomes. Moreover, while the present study employs an appropriate regression method, future research could benefit from the utilization of more advanced econometric techniques. These advanced methods could serve as supplementary approaches, enriching the depth and rigor of analysis within this paper. Further research opportunities lie in exploring potential alternative hypotheses or additional variables that could enhance the overall understanding of the topic. By considering these factors, future studies can provide a more nuanced and comprehensive view of the relationships between trade, economy, and the environment. Additionally, future research endeavors will emphasize a deeper examination of the substantive implications derived from the empirical exercises conducted in this study. This approach ensures a more profound understanding of the practical implications and outcomes, contributing significantly to the field’s development.