Pasta water foams because starch and other surface-active material released from the pasta stabilize bubbles at the top of the pot. As boiling water produces steam bubbles, those bubbles travel through a liquid that is becoming progressively starchier. Instead of bursting immediately, some survive long enough to build a thick cap of foam. If the pot is small, the boil is very vigorous or the water level is high, that foam can climb over the rim even though the liquid below is not unusually “hotter” than ordinary boiling water.
Starch makes boiling bubbles harder to break
Dry pasta sheds starch from its surface as it hydrates and moves around the pot. Some starch granules and molecules thicken the surrounding water, while proteins and tiny particles from the pasta can also alter surface behavior. A bubble rising through plain water normally bursts quickly once it reaches the surface. In starchy pasta water, the thin films around neighboring bubbles last longer, so bubbles pile into foam. Bronze-cut or floury pasta can release more surface starch than very smooth pasta, and fresh pasta dusted heavily with flour can create an especially lively foam.
A rolling boil plus too little headspace creates the classic boil-over
Foam needs room. A pot filled almost to the top has no buffer when the foam suddenly expands, and a hard rolling boil keeps generating new bubbles faster than they can collapse. This is why the problem often appears a minute or two after the pasta goes in: the water is boiling vigorously at exactly the moment starch release is increasing. Lowering the heat slightly once the boil is re-established usually solves the problem without stopping the pasta from cooking. Pasta does not need water to be erupting violently; it needs water hot enough to stay near the boil and enough movement to prevent clumping.
Stirring and a larger pot control foam better than adding oil
A larger pot gives bubbles space to collapse before they reach the rim. Stirring during the first minutes breaks up patches of concentrated starch and prevents pieces of pasta from sticking together. If foam begins to rise, lifting the pot briefly or reducing the burner immediately is more effective than hoping it will settle on its own. Adding oil to the water is not a reliable anti-foam strategy and can leave oil on the pasta surface after draining, which may make sauce cling less effectively. A wooden spoon laid across the pot may interrupt some bubbles, but it is not a substitute for heat control and headspace.
Starchy water is useful once it is under control
The same starch responsible for foam is one reason cooks reserve pasta water for sauces. A small amount can help loosen a sauce while contributing starch that supports emulsification and helps fat and water stay combined around the noodles. The useful water is cloudy, not necessarily thick like glue. If the pot has become extremely concentrated because very little water was used, add reserved liquid cautiously because salt and starch will both be stronger. The goal is not to eliminate starch from the pot; it is to keep the boiling system manageable.
The lid is another factor. A covered pot traps steam, so pressure from rising vapor and foam reaches the lid and rim much sooner. Covering is useful for bringing plain water to a boil quickly, but once pasta is added, cooking uncovered or with the lid clearly ajar gives foam an escape route and makes the surface easier to monitor. Salt does not create the foam problem either; it changes seasoning and boiling behavior only modestly at normal culinary amounts. The dominant driver is still starch-rich water plus vigorous bubbling.
So a foamy pot is usually not a problem with the pasta. It is the normal result of boiling bubbles meeting starch-rich water. Give the foam space, stir early, and lower the heat enough to prevent overflow while maintaining a steady boil.
Sources
- Cereal Chemistry — The effect of continuous cooking on the properties of spaghetti and its cooking water — Research on solids leached from pasta and the formation and stability of foam in pasta cooking water.
- Harvard T.H. Chan — Carbohydrates and starch — General background on starch as a carbohydrate polymer that hydrates and changes in hot water.