On a Pennsylvania dairy farm, manure that once sat in storage ponds releasing planet-warming gas into the atmosphere now flows into a gleaming metal drum where it transforms into something valuable: clean energy. The technology making this possible is called an anaerobic digester, and researchers say it could reshape how American farms work — for their wallets and the planet.

Anaerobic digesters are machines that break down animal waste without oxygen, producing biogas that can power farms or be sold to energy companies. The process also creates a nutrient-rich fertilizer that can replace chemical products, and it dramatically reduces the volume of waste farmers need to manage. Christine Costello, an associate professor of agricultural and biological engineering at Penn State University, studies how this technology affects the environment and the economy.

"While frequently viewed simply as a waste management tactic, it can play a positive role in energy, agriculture and environmental outcomes," Costello said.

Right now, only about 400 anaerobic digesters operate on large livestock farms across the United States, according to the U.S. Department of Agriculture. Most of those — roughly 86 percent — sit on dairy farms, with California, Wisconsin, and Pennsylvania leading the way. But the potential is far larger. The U.S. Environmental Protection Agency estimates that biogas recovery systems could work at more than 8,000 large dairy and hog operations nationwide.

The benefits go beyond just managing waste. Digesters can shrink the physical bulk of organic material by up to 60 percent, killing harmful bacteria and weed seeds in the process. The remaining liquid and solid matter, called digestate, keeps all the nutrients from the original manure and works as an organic fertilizer. Farmers can use it as animal bedding or apply it to fields, replacing expensive chemical fertilizers.

Some farms are even accepting food waste from nearby towns and factories, mixing it with manure in a practice called co-digestion. This arrangement brings in extra income through "tipping fees" — payments that food companies make to dispose of their waste responsibly. The additional organic material also produces more biogas, which farms can sell to local utilities.

"As municipalities and governments seek to keep food waste out of landfills, anaerobic digestion is a primary candidate for alternative treatment because it can recover value in the form of energy and nutrients that are otherwise lost in landfills," Costello explained.

Costello's team is now working on a project called Grass2Gas, exploring whether grasses grown on marginal land — including winter cover crops and buffer strips used to prevent soil erosion — could feed digesters and produce even more renewable energy. These grasses would also provide wildlife habitat and help maintain soil health.

For farms that have adopted the technology, the results have been promising. When well-managed, anaerobic digestion can significantly cut greenhouse gas emissions while creating new revenue streams. As demand grows for both renewable energy and better waste management, more farms may find that turning manure into money is not just good for the environment — it's good for business.