Water utilities are huge energy hogs. That shouldn’t be surprising: Producing and transporting clean water require enormous amounts of energy, as does processing wastewater. In fact in most cities, water agencies are electric companies’ No. 1 customers.

That’s true in Gresham, Ore., and Washington, D.C. That status, though, is about to change: Both cities have embarked on major projects at their wastewater treatment plants that will produce on site just about all the energy consumed at these facilities. It’s a sign of the times. Between severe droughts in much of the country and strained operating budgets, more and more utilities are recognizing the need to conserve.

For the city of Gresham, the impetus was its mayor’s energy management program. Mayor Shane Bemis believed the fastest way to reach the city’s energy reduction goals was to target its top energy users. So the Gresham Wastewater Treatment Plant, a 20-million-gallon-per-day facility that serves 108,000 customers, set an ambitious goal: It would produce 100 percent of its electricity needs from on-site renewable power by the end of 2014.

Gresham is well on its way to meeting its target. Through a combination of cogeneration and solar power, the wastewater treatment plant is currently producing about 60 percent of the energy it uses. Its cogeneration engine works by capturing the methane gas produced from the plant’s digesters -- where the waste is processed -- and turning it into electrical power and heat. This has reduced the city’s annual electricity costs by $260,000. The cogenerator produces 50 percent of the plant’s energy, and its solar arrays, one of the largest land-based installations in the Northwest, produce 7 percent. That, along with about 18 percent of renewable energy purchased from the electric company, makes the plant about 75 percent sustainable. To reach its 100 percent goal, the city wants to double its cogeneration capacity and is currently implementing a program to generate energy from grease waste. All of these efforts are part of a seven-year, $21 million contract with the firm Veolia Water.

Similarly, D.C. Water is set to produce 13 megawatts of power -- about one-third of the energy the facility consumes -- through a process called thermal hydrolysis. It’s a technique that is already in use in Europe but is about to be employed in North America for the first time. As in Gresham, the goal is to use the methane produced to generate electric power. Here’s how it works: Waste flows into stainless steel vessels called Cambis, named for the Norwegian company that builds them. The waste, or “enriched water,” as D.C. Water General Manager George Hawkins calls it, is heated to more than 320 degrees under more than 130 pounds of pressure. It is eventually moved to four large anaerobic digesters,

where the methane gas is produced. Once the more than $400-million system is in full service -- D.C. Water begins testing this month -- it will be the largest clean energy source in the Mid-Atlantic at a treatment facility, says Hawkins. It will cut D.C. Water’s electricity bill by about $10 million a year.

Both projects were motivated, according to Bemis and Hawkins, as much by cost savings as the growing need to be energy efficient. “It could be a game changer for energy,” Hawkins told The Washington Post. “If we turn every enriched-water facility in the United States into a power plant, it would become one of the largest sectors of clean energy that, at the moment, is relatively untapped.”