After roasting, the bean keeps working. It releases carbon dioxide, for days, and measurably so. That explains why the bag puffs up, why the valve is no gimmick – and why very fresh coffee foams when brewed.

Anyone who opens a freshly roasted pack often hears a hiss, and after a few days the bag bulges out. Neither is a packaging fault, but a consequence of roasting: inside the bean sits a reserve of gas that escapes only slowly.

Where the gas comes from

During roasting, sugars and amino acids react with one another at high temperature. These thermally driven reactions form gases, to a large extent carbon dioxide. Some of it escapes while still in the roaster, another part remains trapped in the porous structure of the roasted bean and is slowly released again over the course of storage. When grinding and brewing, the rest then comes out all at once.

In practice this means: after roasting, the bean is not finished, but in an intermediate state. It continues to lose mass, and measurably so. That is the basis of a method presented by a research team at the Zurich University of Applied Sciences. The sample sits in a container with a capillary, and the escaping gas is recorded via the loss of weight. This makes it possible to track the release over hours and days, instead of merely assuming it.

What roast level and roasting speed change

The working group compared beans of different roast levels and different roasting speeds – whole Arabica beans as well as ground Arabica and Robusta. From the course of the release, conclusions can be drawn about the pore structure. In practice this means: a dark, quickly roasted bean behaves differently from a light, slowly roasted one. How long a batch must rest is therefore not a matter of feeling, but a material property.

What the gas does in everyday life

First in the packaging. A tightly sealed bag of freshly roasted coffee would inflate within a short time, because the gas has nowhere to go. That is why many bags have a one-way valve: it lets gas escape outwards and is meant to prevent oxygen from getting in. For roasters this is not an equipment detail, but part of shelf life – alongside the zipper, material and fill quantity, the valve is one of the features by which packaging is measured today.

Grinding, brewing, crema

When grinding, the stored gas escapes abruptly – and takes aroma compounds with it. A study by ETH Zurich measured the connection directly: the aroma loss during grinding depended on the internal gas pressure. Freshly roasted coffee lost more aroma in the process than fully degassed coffee. If, by contrast, it was wet-ground with cold water, the aroma compounds tended to remain in the ground coffee.

In everyday life the same effect can be seen in the bloom phase: if you pour hot water onto very fresh coffee, foam rises because gas escapes from the grounds. In the espresso cup, the crema forms partly because gas went into solution under pressure and precipitates again as the pressure drops. Anyone who brews espresso at nine bar is therefore always also dealing with a question of gas.

Patience changes the taste

As long as gas is pushing out of the grounds, it keeps water away from the places where it is supposed to take up soluble substances. That is why very fresh coffee often tastes restless, sometimes flat, and rounder after a few days. This is not superstition, but the flip side of the same measurement: freshness and drinkability are two different things.

The smell also benefits from this resting time. Why coffee smells better than it tastes comes down to the same volatile compounds that are lost during degassing – only more slowly than one thinks. A pack that smells strongly on opening has therefore just released aroma. Anyone who knows this stores it closed and grinds only shortly before brewing.

At the valve, the state of a pack can at least be roughly read off: if it hisses clearly on opening, there is still gas and therefore movement in the bean. If it stays silent, the batch is done. For filter coffee this is rarely a problem, for espresso often already is.

Sources

  • Smrke S., Wellinger M., Suzuki T., Balsiger F., Opitz S. E. W., Yeretzian C.: Time-Resolved Gravimetric Method To Assess Degassing of Roasted Coffee. Journal of Agricultural and Food Chemistry, 2018 — pubmed.ncbi.nlm.nih.gov
  • Baggenstoss J., Thomann D., Perren R., Escher F.: Aroma recovery from roasted coffee by wet grinding. Journal of Food Science, 2010 — pubmed.ncbi.nlm.nih.gov
  • Perfect Daily Grind: How to design exceptional coffee packaging, February 2026 — perfectdailygrind.com
  • Titelbild: Geröstete Kaffeebohnen in Nahaufnahme – Popo le Chien / CC BY-SA 4.0