Where CO2 Comes From
Every roasted coffee bean is saturated with carbon dioxide. The CO₂ originates from the chemical reactions of roasting — primarily the Maillard reaction and caramelisation — which break down sugars and amino acids while releasing significant quantities of gas. At roasting temperatures of 180–230°C, the CO₂ is generated under pressure inside the bean’s cellular structure and becomes dissolved in the lipid phase and trapped within the microporous matrix.
A medium-roasted bean contains approximately 6–10 mL of CO₂ per gram of coffee at the time it exits the roaster. Dark roasts contain less — the extended heat exposure drives out more gas during roasting — but fresh dark-roasted coffee still carries a substantial CO₂ load. Light roasts tend to retain the most CO₂ because the shorter time at high temperature leaves more gas trapped in the still-intact cellular structure.
This CO₂ is not flavour-neutral. It forms carbonic acid in solution, contributing a slight sharp note to very fresh coffee. More importantly, it physically occupies space within and around the coffee particle that water needs to enter for extraction to begin.
The Degassing Curve: Fast Then Slow
CO₂ escapes from roasted coffee in a characteristic two-phase pattern. In the first 24–72 hours after roasting, degassing is rapid. The internal CO₂ pressure is highest immediately after roasting, and the concentration gradient between the bean’s interior and ambient air is steepest. Gas escapes quickly through cracks, open cell walls, and the bean’s surface.
After this initial burst, the degassing rate drops sharply. The remaining CO₂ is more deeply embedded — dissolved in lipids, lodged in microscopic pores, or trapped in intact cells far from the surface. This residual CO₂ escapes gradually over weeks to months, following a rough exponential decay. A bean that has lost 70% of its initial CO₂ in the first three days may take another three weeks to lose the next 20%.
Roast level affects both the initial CO₂ content and the degassing rate. Darker roasts have more physically open, brittle cellular structure — the roasting process literally cracks the cells — which allows faster CO₂ release. A dark roast may be ready for espresso in 3–5 days; a light roast from the same origin may require 10–14 days because its denser cellular structure releases CO₂ more slowly, keeping internal pressure high for longer.
Why Too Much CO2 Causes Uneven Extraction
CO₂ in solution creates gas bubbles at the particle surface when coffee contacts hot water. These bubbles form a physical barrier — a sheath of gas around each particle — that prevents water from wetting and penetrating the coffee matrix. Water is polar and CO₂ is not, so the gas layer actively repels the water before it can dissolve the soluble compounds inside.
In a pour-over, this manifests as the bloom: a dome of bubbling, rising coffee grounds that indicates rapid CO₂ degassing. If you skip the bloom phase and pour all your water immediately onto very fresh coffee, a substantial fraction of the bed remains CO₂-shielded. Water channels around the gassing particles rather than through them, creating wildly uneven extraction — some grounds over-extract in water-saturated zones while CO₂-protected grounds remain almost completely unextracted.
In espresso, the same problem appears differently. Excessive CO₂ creates compressible gas pockets within the puck. Under 9 bar of pressure, these gas pockets compress non-uniformly, creating localised low-resistance channels. The shot channels through these compressed zones, giving the characteristic “gushing” flow of an espresso made from coffee that is too fresh.
The Pour-Over Bloom
The bloom phase — typically a 30–45 second pre-infusion with approximately twice the coffee’s weight in water — is a CO₂ management strategy. By saturating the grounds with a small quantity of water and waiting, you allow the bulk of the easily-released CO₂ to escape before the main pour begins.
The visual indicator (the dome rising and then subsiding) tracks the degassing rate. A high bloom indicates very fresh coffee with high CO₂ content. A flat, barely-bubbling bloom indicates older coffee. Coffee roasted 3–5 days ago may produce an aggressively blooming dome 3–4 cm high; coffee roasted 3 weeks ago might barely puff.
Bloom duration matters. Too short — under 20 seconds — and significant CO₂ remains to disrupt the main infusion. Too long — over 90 seconds — and extraction has already begun non-uniformly in the wet grounds before fresh water arrives. The 30–45 second window is a practical sweet spot for most filter roasts.
Why Espresso Needs a Rest
Espresso’s resting window — typically 5–14 days post-roast depending on roast level — exists because the machine amplifies the CO₂ problem. At 9 bar, any CO₂ remaining in the puck becomes highly soluble in the pressurised water. This dissolved CO₂ carries through to the cup, contributing sharpness and instability to the crema. More importantly, the gas pockets in the puck create channelling that destabilises the entire shot.
The practical test: pull a shot from beans roasted yesterday versus beans rested 10 days. The fresh shot will flow unevenly, channel, and produce bitter, under-extracted notes alongside sharp CO₂ bite. The rested shot will flow in a steady stream, with a more controlled extraction and noticeably sweeter flavour.
Some commercial roasters use pressurised storage after roasting to artificially accelerate degassing by maintaining high CO₂ partial pressure, then venting. This forces the equilibrium faster but cannot replicate the gradual chemical settling that also occurs during natural rest.
Degassing Rate and Roast Level: A Practical Reference
Light roasts: Rest 10–21 days for espresso, 5–10 days for filter. The intact cellular structure slows CO₂ release; patience is rewarded with dramatically more balanced, sweet extraction.
Medium roasts: Rest 5–10 days for espresso, 3–7 days for filter. Faster degassing due to more open cell structure from higher development time.
Dark roasts: Rest 3–5 days for espresso, 2–4 days for filter. CO₂ content is lower to begin with, and the brittle structure releases it quickly. However, very dark roasts degas so fast that a small window of optimal freshness exists — and they stale quickly thereafter.
Grinding resets the clock in both directions. Fresh-ground coffee degasses its remaining CO₂ in minutes due to the massive surface area increase. Grinding just before brewing effectively eliminates the CO₂ barrier — but also starts the oxidation clock. The bloom on filter coffee is most dramatic immediately after grinding; the same grounds left in a hopper for two hours may barely bloom at all.
The Balance Point
CO₂ is simultaneously coffee’s natural preservative and its extraction enemy at high concentrations. Fresh beans need their CO₂ to protect against oxidation; brewed coffee needs most of that CO₂ gone for clean, even extraction. The rest window navigates this tension — waiting long enough for CO₂ to fall to brew-friendly levels without waiting so long that oxidation degrades the aromatics CO₂ was protecting.
Related Topics
Coffee Altitude & Terroir: How Elevation Shapes Flavor
Altitude is the single most reliable predictor of coffee quality. Learn how elevation shapes bean density, acidity, sugar development, and why terroir matters in the cup.
scienceThe Physics of Coffee Extraction
How mass transfer, pressure, diffusion, and temperature work together to pull flavour from ground coffee into your cup.
scienceWater Chemistry and Coffee
Why TDS, magnesium, calcium, and alkalinity determine whether your coffee tastes brilliant or flat — and how to fix your tap water.
scienceExtraction Yield: The Science Behind a Perfect Cup
What extraction yield actually means, why 18–22% is the target, how TDS and brew ratio fit together, and how to diagnose and fix over- and under-extraction.