All posts

The Chemistry Behind Espresso Crema: How Pressure, CO₂, and Proteins Create That Golden Layer

June 29, 2026

What Crema Actually Is

Crema is not just a visual flourish or a sign of freshness, though it does indicate both. It is a physically complex emulsion of gas bubbles stabilized by a matrix of surfactant molecules, suspended oils, and denatured proteins. The reddish-brown foam that forms on the surface of a well-pulled espresso shot is the result of several simultaneous physical and chemical processes that only occur under the specific conditions espresso brewing creates: high pressure, high temperature, and an extremely fine grind. Understanding what crema actually is made of helps explain why it behaves the way it does, why it collapses over time, and why some shots produce more of it than others.

The primary driver of crema formation is dissolved carbon dioxide. During roasting, CO₂ is produced as a byproduct of the Maillard reaction and the pyrolysis of carbohydrates, and it becomes trapped within the cellular structure of the coffee bean. Finely ground coffee has an enormous surface area, and when water at 9 bars of pressure and around 200°F (93°C) passes through the puck, it dissolves CO₂ at concentrations far higher than would be possible at atmospheric pressure. When that pressurized liquid exits the portafilter and reaches the ambient pressure of the cup, the CO₂ rapidly comes out of solution, nucleating on surfaces and forming tiny bubbles. This is the same basic physics as opening a carbonated drink, just happening continuously over 25 to 35 seconds of extraction.

The Role of Pressure in Bubble Stabilization

Nine bars of pressure is not an arbitrary standard. It was arrived at empirically by Italian espresso pioneers and later validated by researchers who found it sits at a useful threshold: high enough to dissolve significant CO₂ and force water through a fine grind in a reasonable time window, but not so high that the shot channels chaotically or the emulsion becomes unstable. At 9 bars, water can dissolve roughly 5 times more CO₂ than it can at atmospheric pressure, following Henry's Law, which states that the amount of gas dissolved in a liquid is proportional to the partial pressure of that gas above the liquid. When pressure drops to 1 bar at the cup, the CO₂ supersaturation drives bubble nucleation throughout the liquid, and those bubbles rise to the surface to form the crema layer.

The bubbles themselves would collapse almost instantly if CO₂ alone were responsible for the foam. What gives crema its characteristic persistence is the stabilizing role of surfactants. Surfactants are molecules with one water-attractive (hydrophilic) end and one water-repelling (hydrophobic) end. They migrate to the interface between the gas bubble and the surrounding liquid, reducing surface tension and forming a thin molecular shell around each bubble. In espresso, the primary surfactants are melanoidins (large polymer molecules formed during roasting), proteins, and emulsified coffee oils. Without this surfactant network, crema would flash and disappear within a few seconds rather than persisting for several minutes.

Proteins and Melanoidins: The Structural Framework

Green coffee contains meaningful quantities of protein, roughly 10 to 13 percent by dry weight, though much of this is degraded or transformed during roasting. What survives, and what matters for crema, are partially denatured protein fragments and the large brown melanoidin polymers that form when amino acids react with reducing sugars via the Maillard reaction. These melanoidins are not passive bystanders. Research has shown they are amphiphilic, meaning they have both hydrophilic and hydrophobic regions, which makes them effective foam stabilizers. They adsorb to the air-water interface of CO₂ bubbles and form a viscoelastic film that resists drainage and bubble coalescence.

This is why roast level has such a direct impact on crema quality. Lighter roasts retain more protein in its native state, but they also produce fewer and smaller melanoidin molecules because the Maillard cascade has not run as far. Medium to medium-dark roasts tend to produce the most visually persistent crema because they strike a reasonable balance between melanoidin development and CO₂ retention. Very dark roasts degrade the cellular structure of the bean significantly, which means more CO₂ has already off-gassed by the time you brew, and the remaining surfactant compounds are often over-polymerized into structures that are less effective at stabilizing bubbles. This partially explains why extremely dark roasts often produce a thin, fast-collapsing crema despite looking impressively dark in the cup.

Coffee oils also contribute meaningfully to crema stability. Lipids are not true surfactants, but they interact with the other surface-active compounds and contribute to the physical viscosity of the bubble walls. The oils extracted under espresso conditions are emulsified into tiny droplets by the turbulence of the brew process, and these droplets populate the crema alongside the gas bubbles. This is why espresso prepared through a metal mesh filter, which passes oils freely, has more crema body than filter coffee prepared through paper, which strips most of the lipids from the brew.

Freshness, Degassing, and the CO₂ Timing Problem

Roast date matters more to crema formation than almost any other variable outside of pressure. Freshly roasted coffee, within the first 24 to 48 hours off roast, contains so much CO₂ that it can actually interfere with even extraction. The gas forms a barrier between the water and the coffee grounds, causing channeling and inconsistent extraction. This is why most roasters recommend resting espresso beans for at least 5 to 10 days post-roast, with many specialty roasters suggesting 10 to 21 days depending on the roast level and origin. During this rest period, CO₂ slowly diffuses out of the bean through a process called degassing. Light roasts degas more slowly than dark roasts because the denser cell structure and lower internal porosity of a lighter roast retains gas more effectively.

By the time a bean is 4 to 6 weeks off roast, CO₂ levels have dropped to the point where crema becomes noticeably thinner and less persistent. The surfactant compounds are still present, but there is simply not enough dissolved gas at extraction pressure to generate a thick foam. This is the practical ceiling of espresso bean freshness for crema purposes, and it's one of the reasons specialty shops tend to turn through their bean inventory quickly.

What Good Crema Tells You and What It Doesn't

A persistent, reddish-brown crema with a fine bubble structure generally indicates a reasonably fresh bean, adequate pressure, and a grind fine enough to create meaningful resistance through the puck. The reddish tones come from the melanoidins themselves, which absorb blue and green light preferentially. A pale yellow or white crema often suggests either stale coffee, under-extraction, or both. A very dark, almost black crema ring around the edges is sometimes called "tiger striping" and can indicate channeling or over-extraction.

What crema does not tell you is whether the shot tastes good. Crema formation is primarily a function of freshness and CO₂ content, not extraction quality. It is entirely possible to pull a shot with beautiful crema that is sour, bitter, or unbalanced because the grind, temperature, or ratio was off. Crema is a useful diagnostic signal, not a verdict on the shot. Treating it as a quality shortcut leads to the fairly common mistake of chasing visual crema at the expense of dialing in the actual extraction parameters. At grindset.cafe, the shot logging and ratio tracking tools exist specifically to help you build a record of what actually tastes good rather than what simply looks the part.

The chemistry behind crema is genuinely intricate, involving thermodynamics, colloid physics, and the complex biochemistry of Maillard products, and understanding these mechanisms gives you much better instincts about why a shot behaves a certain way. When your crema collapses in 30 seconds, you're watching melanoidin films fail to hold bubble walls together. When a fresh bean produces a gushing, unstable extraction, you're watching CO₂ outgassing faster than the water can organize it into foam. The physics is always happening. Knowing what it means just makes you better at adjusting it.

Pull better shots with Grindset

Log your espresso, track what works, and dial in faster.

Try free
The Chemistry Behind Espresso Crema: How Pressure, CO₂, and Proteins Create That Golden Layer | Grindset | Grindset