Foamy poop can indicate issues like malabsorption or excess mucus in the stool. Eating excessive amounts of fat and certain gastrointestinal conditions can cause your poop to have foam.