Skip to content
Legumes & soy Cooking & food science Myths & common questions

What is the foam that appears when cooking legumes?

Quick answer

Foam on chickpeas, beans or lentils during cooking is normal. Proteins, saponins, starch and other soluble compounds move into the water and help stabilize bubbles. It is not dirt and does not mean the legumes are spoiled.

A pale layer of foam often appears as chickpeas, beans or lentils come to a boil. It is a normal cooking effect, not dirt and not evidence that the food has spoiled.

Where the foam comes from

Legumes contain proteins, saponins, starch and other water-soluble compounds. As the beans soak and especially as they heat, some of these compounds enter the cooking water. Saponins are named for their ability to form stable, soaplike foams, while proteins can also help stabilize bubbles.

Do you need to skim it?

No. Skimming can make the cooking liquid look clearer and can help prevent a foamy pot from boiling over, but removing the foam is not required for food safety.

Why some legumes foam more

Foaming varies with species, variety, age of the dry legumes, soaking and how vigorously the pot boils. Chickpeas, peas, beans and lentils do not contain identical amounts of saponins or proteins, so the visible foam can differ.

A hard boil makes it more obvious

Vigorous boiling creates more movement and bubbles. Once the pot reaches a boil, reducing the heat to a steady simmer usually controls foam better and can also help keep delicate beans from breaking apart.

Does soaking remove the foam?

Soaking can remove some soluble compounds, but it does not guarantee a foam-free pot. Even well-soaked beans can produce a layer of foam when they first begin to boil.

Does the foam cause gas?

Not directly. Gas from legumes is associated mainly with non-digestible carbohydrates, including certain oligosaccharides, that reach the colon and are fermented by gut bacteria. A pot that foams heavily does not necessarily predict stronger digestive symptoms.

Foam during legume cooking is normal and comes from the food itself. Skim it if you want easier boil control or a clearer-looking broth, but there is no need to remove it for safety.

Foam matters more for pot management than nutrition

In an ordinary saucepan, foam is usually a visual issue and a boil-over risk rather than something that must be removed. Reducing the heat keeps the bubble layer from climbing over the rim. A generously sized pot also leaves room for beans to expand and for foam to rise without reaching the lid.

Pressure cookers require more attention because foamy, expanding foods can interfere with valves if the vessel is overfilled. Follow the manufacturer’s fill limits for beans and other foods that expand during cooking. A larger quantity of water does not compensate for exceeding the appliance’s safe capacity.

Canned beans can foam as well because their packing liquid contains dissolved starches, proteins, and other soluble material. Rinsing changes flavor, can reduce some added sodium, and removes much of that liquid, but it is not required simply because the liquid looks foamy. In dishes such as hummus or thick stews, some cooks intentionally retain part of the liquid for texture.

Digestive gas is more closely related to fermentable carbohydrates in legumes than to the visible foam on top of the pot. Soaking, rinsing, portion size, and gradual adaptation may affect tolerance, but skimming foam is not a reliable way to remove the compounds responsible. A dramatic-looking surface does not necessarily have nutritional significance.

Visible foam does not mean that all the protein is being lost at the surface. Only a fraction of soluble compounds participates in the bubble layer; most of the bean’s nutrients remain in the seed and, for water-soluble components, in the cooking liquid. Skimming for convenience is therefore unlikely to transform the nutritional value of the dish. Discarding the entire cooking liquid or changing the portion size has a much larger practical effect than removing a spoonful of foam.

If foam suddenly has an unusual color or odor because other ingredients have spoiled or the beans were stored improperly, that is a separate spoilage question. Normal pale cooking foam by itself is not such a sign.

A small amount of oil is sometimes added to bean cooking water to control foaming, but it should not be used as a substitute for appropriate pot size or pressure-cooker instructions. The behavior of foam depends on bean variety, agitation, heat, and dissolved solids, so a batch that barely foams one day may look much more active with a different legume or cooking method.

Sources