Cattle feeders and hog farmers face mounting losses as high input costs squeeze their bottom line.

While U.S. cow-calf producers continue to benefit from the smallest national cattle herd since the 1950s, Iowa cattle feeders and hog farmers are suddenly facing projected losses.

The shift in livestock margins marks a change for Iowa’s...