Coffee foam is a layer of tiny gas bubbles trapped in liquid, stabilized by proteins, fats, and other compounds naturally present in coffee or milk. It shows up in several forms: the golden crema on espresso, the steamed milk microfoam on a latte, and the whipped topping of a Dalgona coffee. Each type forms through different mechanisms, but they all rely on the same basic physics: gas gets dispersed into a liquid, and surface-active molecules keep the bubbles from collapsing immediately.
How Espresso Crema Forms
Crema is the dense, reddish-brown foam that sits on top of a freshly pulled espresso shot. It forms because roasting coffee beans generates carbon dioxide, which gets trapped inside the bean’s cell structure. When hot, pressurized water forces its way through finely ground coffee during brewing, that CO2 is released rapidly into the liquid. The gas has nowhere to go but up, creating a blanket of tiny bubbles at the surface.
What keeps those bubbles intact, at least for a few minutes, is the chemistry of the liquid itself. Espresso isn’t just water with dissolved flavor compounds. It’s technically an emulsion: microscopic oil droplets (90% of them smaller than 10 micrometers) suspended in a solution of sugars, acids, caffeine, and protein-like molecules. Those proteins behave like the stabilizing proteins found in other foods, forming elastic films around each bubble that resist popping. The tiny oil droplets, cell wall fragments from the ground coffee, and brown compounds created during roasting all crowd the bubble surfaces and slow drainage.
Why Crema Varies Between Beans
Not all espresso produces the same crema. Robusta beans generate a larger volume of foam than Arabica beans, partly because Robusta contains more CO2-producing compounds and more caffeine. But that bigger crema disappears faster. Arabica beans produce a smaller, more stable layer that lasts longer in the cup.
The reason comes down to fat content. Arabica beans contain roughly twice the lipids of Robusta. While proteins and roasting byproducts stabilize foam, excess free oil on the surface actually destabilizes it, popping bubbles faster. Because Robusta has less oil overall, more of it ends up as tiny emulsified droplets rather than free-floating fat, which initially helps create volume. But Arabica’s higher lipid content, when properly emulsified during extraction, contributes to a longer-lasting crema. This is why many espresso blends mix both varieties: Robusta for volume and initial visual impact, Arabica for persistence and flavor complexity.
Freshness matters too. Beans that are weeks past roasting have already off-gassed most of their CO2, so they produce thin, pale crema regardless of variety.
Steamed Milk Foam
The velvety foam on cappuccinos and lattes works differently from crema. Here, a steam wand injects hot air and steam into cold milk. The milk’s whey proteins, particularly one called beta-lactoglobulin, unfold when heated and wrap around the air bubbles, creating a stable protein network. Milk fat adds smoothness and body to the foam but can also weaken bubble walls if there’s too much of it, which is why whole milk produces creamier but slightly less stiff foam than skim milk.
Temperature is critical. Research in the International Dairy Journal found that the optimal range for stable microfoam is 50°C to 60°C (roughly 120°F to 140°F), with maximum stability at 50°C. Above 70°C, the proteins break down too far and lose their ability to hold bubbles together, which is why overheated milk produces flat, thin foam with large, quickly popping bubbles. A well-made cappuccino should hold its microfoam for 10 to 15 minutes of typical drinking time.
Plant-Based Milks and Foaming
Plant milks vary wildly in their ability to foam, and the difference comes down to protein and fat levels. Proteins stabilize bubbles by forming a protective skin around each one, while fats add creaminess. Soy milk is the closest to dairy for frothing, with 3 to 4 grams of protein per 100 mL. Its main protein behaves similarly to dairy proteins, producing dense, durable foam.
Oat milk foams reasonably well despite having only about 1 to 1.5 grams of protein per 100 mL, because its starchy composition adds viscosity that slows bubble collapse. Almond milk, at 0.5 to 1 gram of protein, struggles without added stabilizers, which is why “barista edition” versions contain extra protein or emulsifiers. Coconut milk is high in fat (20 to 25 grams per 100 mL for full-fat versions) but has almost no protein, so it creates rich texture without real foam structure. Rice milk, with minimal protein and low fat, barely froths at all.
Whipped Coffee (Dalgona) Foam
The thick, mousse-like foam of Dalgona coffee forms when you vigorously whisk equal parts instant coffee, sugar, and hot water. This only works with instant coffee. Fresh ground coffee, even dissolved as strongly as possible, won’t produce the same effect.
The reason is that instant coffee has already been brewed and spray-dried during manufacturing. That process leaves behind high concentrations of compounds that act as natural foaming agents, especially melanoidins. These are large, nitrogen-containing molecules created during roasting that lower the surface tension between air and liquid, making it easier for bubbles to form and harder for them to pop. Unbrewed coffee grounds don’t contain these compounds in a dissolved, available form. The instant coffee particles are also engineered to dissolve instantly, putting all those stabilizers into solution the moment they hit water.
Sugar plays a structural role beyond sweetness. It thickens the liquid phase significantly, slowing the rate at which liquid drains out of bubble walls. This viscosity is what gives Dalgona its signature stiffness. Without sugar, whipped instant coffee produces a thin, short-lived froth rather than the spoonable foam the drink is known for.
What Coffee Foam Does to Flavor
Foam isn’t just visual. It changes how coffee tastes. Espresso crema concentrates oils and aromatic compounds at the surface, delivering an intense first impression of bitterness and roasted flavor when you sip. Some espresso drinkers actually skim the crema off because they find it overwhelmingly bitter compared to the liquid underneath, which tends to be sweeter and more balanced.
Milk foam serves the opposite function. It introduces air, which dilutes intensity and carries volatile aroma compounds to your nose as you drink. The fat in milk foam also binds to bitter and astringent molecules in coffee, softening them. This is why a flat white, with its thin microfoam layer, tastes more intensely of coffee than a cappuccino with its thick foam cap, even when both contain the same espresso shot and milk volume.

