Purpose This study aims to examine the links between carbon emissions, electric vehicles, economic growth, energy use, and urbanisation in 15 countries from 2010 to 2020. Design/methodology/approach This study adopts seminal panel methods of moments quantile regression with fixed effects to trace the distributional aspect of the relationship. The reliability of methods is confirmed via fully modified ordinary least squares coefficients. Findings This study reveals that fossil fuel use, economic activity, and urbanisation negatively impact environmental quality, whereas renewable energy sources have a significant positive long-term effect on environmental quality in the selected panel of countries. Research limitations/implications The main limitation of this study is the generalisability of the findings, as the study is confined to a limited number of countries, and focuses on non-renewable and renewable energy sources. Practical implications Finally, this study proposes several policy recommendations for decision-makers and policymakers in the 15 nations to address climate change, boost sales of electric vehicles, and increase the use of renewable energy sources. Originality/value This study calls for a comprehensive transition towards green energy in the transportation sector, enhancing economic growth, fostering employment opportunities, and improving environmental quality.