In 15 U.S. states last year, coal was used to generate electricity more than any other energy source. Twenty years earlier, in 2001, coal was the largest source of electricity generation in 32 states. The United States has shifted away from coal-fired generation since it peaked in 2007 and toward natural gas and renewables.