EVERYONE’S SAYING IT: The future of driving is electric.

The big-name car companies have plans to start giving Tesla some tough competition. Jaguar’s I-Pace electric SUV will be on sale soon, and Porsche is teasing a new concept Mission E Cross Turismo, which looks like an SUV’d Panamera (in a good way). And normal cars for regular people are going the same way. Combined, Ford and GM plan to offer 34 full electric models in the next five years.

Add to that cities or even whole countries talking about banning sales of cars powered by internal combustion engines: Norway (by 2025), India (by 2030), France and the UK (2040). China, the world’s largest car market, has considered the idea, and in the meantime has imposed some of the planet’s most stringent environmental standards.

gas_Automobile_exhaust_Wiki

All this change comes in the name of environmental protection, eliminating the pollutants that make cities gross and unhealthy and the CO2 that contributes to global climate change. Instead, have the people drive battery-powered electric cars, the sort without exhaust pipes and that run emissions free. But the electricity to charge the things has to come from somewhere. And if that place starts with burning coal, for example, then how green is your electric car, really?

The Union of Concerned Scientists has just crunched the latest numbers to find the answer. The results depend on where in the US you live and drive, but in general battery boosters can breathe easy.

“For the US overall, an electric vehicle is much cleaner than a gasoline vehicle, even when you take into account the emissions from natural gas, coal, or however else you’re generating the electricity,” says Dave Reichmuth, a senior engineer in the nonprofit’s clean vehicles program. And as the electric grid moves away from dirty fuel sources, the gap is widening.

Read more: Wired