A glass of beer is a dense field of microscopic gas explosions running on carbon dioxide. Each bubble nucleates on tiny surface defects, rises, then bursts, flinging volatile aroma compounds into the air and scattering bitter iso alpha acids across the surface.
The foam itself is a transient foam film built from proteins and surfactants that stabilize the gas liquid interface. More foam traps more aroma molecules and slows their evaporation, so the nose can pick up stronger hop and malt notes even before the first sip. At the same time, the foam layer acts as a diffusion barrier that moderates carbon dioxide loss, changing perceived carbonation and mouthfeel.
Flavor balance shifts with foam thickness. Dense, persistent foam can increase perceived bitterness by holding iso alpha acids at the interface, while softer, quickly collapsing foam can make the same beer feel smoother and less sharp. Sensory scientists describe this as a change in retronasal olfaction and tactile perception, not an intrinsic upgrade in beer quality.
The result is that foam functions as a delivery system for dissolved gas and aroma rather than a simple quality score. The best pour is not the one with the largest head, but the one whose foam profile matches the intended balance of aroma intensity, bitterness and texture.