A growing number of Iowa communities — of all sizes and from every corner of the state — are working with local farmers to improve the quality of their drinking water sources.

That collaboration, according to municipal and state regulatory officials, is helping communities meet federal standards for nitrogen, phosphorus and other nutrients, hold down costs and build stronger and lasting relationships with farmers in their areas.

“Most of our...