The laundry-soap business has a problem—it is shrinking—thanks to premeasured pod detergents from Procter & Gamble Co. and others that keep consumers from overdosing.

For years, consumer-product makers could count on extra sales from shoppers who poured in too much detergent with every load. The phenomenon became more pronounced when manufacturers rolled out increasingly concentrated detergent.

But...