Skip to main content
Who Makes The
BEST COFFEE
COFFEE BASICS

What causes the crema on top of espresso?

Quick answer

Espresso is a golden foam formed when pressurized water emulsifies coffee oils and CO2 trapped within the beans. During extraction, the high pressure of an espresso machine forces this dissolved gas out of the grounds, creating tiny bubbles stabilized by oils. Freshness, , and proper grind size are essential for achieving high-quality espresso .

Source transparency4 sources listedPage updated Oct 8, 2026

Sources show where the underlying information came from. They do not automatically make a claim correct, so disputed history, evolving science and uncertain claims should be labeled as such in the explanation itself.

The real story

is often misunderstood as a definitive marker of espresso quality, but it is more accurately described as a physical byproduct of the espresso brewing process. At its core, is a complex emulsion consisting of tiny carbon dioxide (CO2) bubbles, emulsified coffee oils, and suspended solids. This foam layer only forms under the specific conditions of espresso brewing, where water is forced through a tightly packed bed of finely ground coffee at approximately nine bars of pressure.

The journey of begins during the roasting process. As coffee beans are heated, chemical reactions—most notably the —produce CO2, which becomes trapped within the cellular structure of the bean. When you grind these beans and subject them to the intense pressure of an espresso machine, the water dissolves this trapped gas. As the liquid exits the portafilter and returns to atmospheric pressure, the gas rapidly expands, creating the microbubbles that form the characteristic golden-brown froth.

Several variables influence the appearance and stability of your . Freshness is the most critical factor; beans that are two to three weeks post-roast typically contain the optimal amount of CO2. If beans are too fresh, the excess gas can lead to an unstable, bubbly foam; if they are too old, the gas has already dissipated, resulting in thin or nonexistent . also plays a significant role, as darker roasts generally produce more CO2 and thus more than lighter roasts.

In practice, home baristas should be wary of equipment that promises "perfect" through artificial means. Many entry-level machines include a pressurized basket, which uses a mechanical valve to force foam regardless of the coffee's freshness or grind quality. While this creates a visually appealing layer, it often masks poor extraction and lacks the true flavor profile of a well-pulled shot. For the best results, use a standard, non-pressurized basket and focus on dialing in your grind size to achieve a balanced extraction.

Ultimately, while a thick, persistent is a sign of fresh coffee and proper technique, it should not be the sole metric for success. A shot with beautiful can still be poorly extracted, and a lighter roast may naturally produce less foam while offering superior flavor clarity. Use as a diagnostic tool to check your freshness and grind, but let your palate be the final judge of quality.

Sources we lean on