Skip to main content
Coffee Science August 2, 2024 14 min read

Inside the Bean: How Heat Transforms Coffee Structure

Most roasting guides describe what happens to coffee beans from the outside — the color changes from green to yellow to brown, the audible crack signals a transition, the oils appear on the surface of dark roasts. What they rarely describe is what is happening inside the bean matrix: the water migrating outward through a tightening cellulose lattice, the glass-to-rubber phase change in the bean's structural polymers, the steam pressure building toward ten atmospheres before the cell walls give way, the lipids beginning a slow migration through the bean's fracture network. This article covers the physics and chemistry inside the bean. It is aimed at roasters and serious enthusiasts who want to understand not just what roast stages look like but what they are — at the molecular level — and why those events produce the flavor outcomes they do.

Deep Dive

The Bean Matrix: Structure Before Heat Is Applied

A green coffee bean is a seed engineered by the coffee plant to survive dormancy and germination. Its interior is composed of three major structural components: the endosperm, the cell walls, and the lipid fraction. Understanding what each component does before heat is applied clarifies what must happen during roasting.

The endosperm makes up roughly 85% of the bean's mass and contains the flavor precursors: free amino acids, reducing sugars (primarily sucrose, which breaks down to glucose and fructose during early heating), chlorogenic acids (6–12% of dry weight), trigonelline, and caffeine. These compounds do not produce flavor on their own — they are the raw materials that heat will convert.

The cell walls consist primarily of cellulose and hemicellulose, organized into a rigid but porous matrix. In a green bean, this matrix is dense and moisture-laden. The cells contain vacuoles filled with water and dissolved compounds. The structural integrity of this matrix determines how the bean responds to heat: too much initial heat and the exterior cells set hard before moisture can escape from the interior, creating a scorched shell around an underdeveloped center.

The lipid fraction — roughly 15–17% of Arabica by dry weight, and about 10% in Robusta — sits primarily inside the cell walls in the green state. These oils are flavor-inactive in their stored form but become crucial during roasting: they act as carriers for volatile aromatic compounds, and their migration to the bean surface in dark roasts is both a visual indicator and a flavor driver.

Phase 1: Free Water Evaporation and the Drying Window (60–150°C)

When green beans enter a hot roasting drum, the first physical event is the evaporation of free water — the moisture sitting in the cellular vacuoles and interstices of the bean matrix. Green coffee typically contains 7–12% moisture by weight. Removing this moisture is not a simple evaporation event; it is a mass-transfer process constrained by the bean's internal structure.

Water near the bean's surface evaporates first, creating a moisture gradient between the wet interior and the drying exterior. Heat must continue penetrating inward, driven by conduction through the cellulose matrix, to reach and evaporate bound water deeper in the bean. If heat is applied too aggressively during this phase, the exterior dries and contracts before the interior has shed its moisture — a condition that produces the roast defect called "tipping," where bean tips are overexposed.

During the drying window, bean temperature climbs but the beans themselves absorb heat without releasing it (endothermic phase). The roaster must apply enough energy to keep temperature rising without overshooting the gentle drying rate the matrix requires.

Phase 2: The Glass Transition — When the Matrix Softens

This is the event most roasting guides skip entirely, and it may be the most important structural event in the roast. Between approximately 60–90°C (as measured in the wet bean at the start of roasting), the cellulose-hemicellulose matrix begins a phase transition from a glassy, rigid state to a rubbery, flexible state. This is the glass transition temperature (Tg).

In a wet bean, the Tg is relatively low because water acts as a plasticizer — it inserts itself between polymer chains and reduces the energy needed to flex them. As moisture is driven out during drying, the Tg rises. By the time the bean is nearly dry, the matrix has re-stiffened somewhat, but it is now a different material than the green bean's dense, hydrated structure. It is more porous, more responsive to heat, and more susceptible to the pressure buildup that will come in the next phase.

The practical significance: roasters who rush through the drying phase (steep rate of rise before moisture is fully expelled) are applying heat to a matrix that has not yet completed its glass transition. The result is structurally uneven beans — dense pockets that roast more slowly adjacent to areas that have already transitioned, producing inconsistent flavor development across the bean cross-section.

Phase 3: Maillard Reactions and the Flavor-Building Window (150–200°C)

At approximately 150°C, the first of the major flavor-forming reactions begins: the Maillard reaction, named for French chemist Louis-Camille Maillard who described it in 1912. This is a cascade of reactions between free amino acids and reducing sugars. The bean matrix is now flexible enough from the completed glass transition that reactants can diffuse and encounter each other.

The Maillard reaction produces over 800 identified volatile compounds in roasted coffee. The major flavor-active classes include:

  • Pyrazines: nutty, earthy, roasted notes — characteristic of medium to dark roasts
  • Furans: caramel-like sweetness — build through the Maillard and caramelization windows
  • Pyrroles: cereal, grain-like quality — most evident in medium roasts
  • Thiophenes and thiazoles: meaty, roasted sulfurous notes — more prominent in darker profiles

The Strecker degradation — a subset of Maillard chemistry — produces aldehydes from amino acid breakdown. These include acetaldehyde, which contributes green apple and fruity notes in light roasts, and furfural, a caramel-almond compound that persists into medium roasts. Strecker products are particularly volatile and dissipate quickly during dark roasting, which is part of why very dark roasts lose their fruity top notes.

Alongside Maillard chemistry, caramelization begins at roughly 170°C. Unlike the Maillard reaction, caramelization does not require amino acids — it is the thermal degradation of sugars alone. The sucrose that was the green bean's primary sugar hydrolyzes to glucose and fructose at lower temperatures and then undergoes caramelization to produce caramelans, caramelens, and caramelins — a family of brown polymers that contribute sweetness, body, and the characteristic brown pigmentation we associate with medium roasts.

Temperature (°C) Bean Internal Event Dominant Chemistry Flavor Outcome
60–90 Glass transition (wet bean) Physical phase change Structure softens for even roasting
100–150 Free water evaporation Endothermic mass transfer Bean yellows; grassy volatiles release
150–170 Maillard reaction onset Amino acid + reducing sugar Nutty, caramel precursors form
170–195 Caramelization + strong Maillard Sugar degradation Brown color develops; sweetness increases
195–205 Steam pressure to ~10 atm Physical pressure buildup Bean expands 50–100%
196–207 First crack Cell wall rupture, CO₂ release Acidity peaks; exothermic phase begins
207–225 Development phase Continued Maillard + pyrolysis Body increases; acidity declining
225–235 Second crack Further cell wall fracture; oil migration Dark roast character; surface oils appear
>235 Pyrolysis dominant Thermal decomposition Ashy, carbony notes; flavor simplification

Phase 4: Steam Pressure and First Crack — The Cell Wall Rupture Event

By the time the bean approaches 190–200°C, two things are happening simultaneously inside the matrix. First, the Maillard and caramelization reactions are producing carbon dioxide as a byproduct — CO₂ that is trapped inside the cellular structure. Second, any remaining bound water is converting to steam, a gas that occupies roughly 1,700 times the volume of liquid water at atmospheric pressure.

The bean's cell walls, now dehydrated and increasingly rigid, constrain this pressure. Internal pressure builds to an estimated 8–12 atmospheres before the cell walls fracture. This is the physical event behind first crack — the audible popping sound is the sudden release of pressurized gas through ruptured cell walls, a process analogous to the rapid decompression of a pressurized vessel.

The structural consequences are immediate and significant:

  • Volume expansion: beans increase 50–100% in size as cells decompress
  • Density decrease: from approximately 0.80–0.85 g/mL (green) to 0.55–0.65 g/mL (light roast)
  • Porosity increase: from roughly 50% to 70–80% pore volume — the bean becomes dramatically more accessible to water during brewing
  • Surface fracture network: cracks propagate through the bean matrix, creating pathways for CO₂ and volatile aromatics to escape (and for water to enter during extraction)

The transition at first crack is also thermal: the bean shifts from endothermic (absorbing heat) to exothermic (generating heat from the chemical reactions now proceeding rapidly inside the matrix). A roaster who does not reduce energy input at first crack risks an uncontrolled temperature acceleration — the bean is now adding its own heat to whatever the drum is supplying.

Phase 5: Development Phase — Porosity, Pyrolysis, and Flavor Finalization

After first crack, the bean's increased porosity accelerates the development process. Volatiles that were trapped inside the cellular structure before the fracture can now diffuse outward more rapidly. CO₂ continues to degas, a process that persists for days after roasting — which is why freshly roasted coffee needs a rest period before brewing. The gas displaces oxygen from contact with the bean's flavor compounds, acting as a self-preservative.

The development phase spans from first crack to the point the roaster drops the beans into the cooling tray. During this window, several competing processes are active:

The Maillard and caramelization reactions continue, building additional sweetness and body. But simultaneously, pyrolysis — the thermal decomposition of organic compounds without oxygen — begins at the bean surface, producing additional carbon dioxide and simplifying flavor by breaking down complex compounds into shorter-chain molecules. In light roasts, development is kept short enough that Maillard and caramelization dominate. In dark roasts, pyrolysis becomes the primary chemistry.

Development time ratio (DTR) — the fraction of total roast time that falls after first crack — is the key metric here. Most specialty roasters target 20–25% DTR. A DTR below 10% leaves the bean underdeveloped: grassy, sharp, raw-tasting. A DTR above 35–40% pushes into the territory where pyrolysis flattens flavor complexity and produces astringent or ashy notes.

Heat & Bean Structure
Green Bean — dense matrix, glass stateGreen Beandense matrix, glass stateYellow Bean — matrix softened, 60–150°CYellow Beanmatrix softened, 60–150°CLight Brown — Maillard onset, 150–170°CLight BrownMaillard onset, 150–170°CFirst Crack — 196–207°C, +50–100% volumeFirst Crack196–207°C, +50–100% volumeMedium Roast — porous, high solubilityMedium Roastporous, high solubilityDark Roast — surface oils, pyrolysisDark Roastsurface oils, pyrolysisUnderdeveloped — grassy, sharpUnderdevelopedgrassy, sharp

Phase 6: Lipid Migration in Dark Roasts

Green coffee beans store their lipids — the waxes, triglycerides, and diterpenes (cafestol and kahweol) — inside the cellular structure, primarily within the cell walls and endosperm. They are not visible on the bean surface. In light and medium roasts, the lipids remain mostly internal. They contribute to body and mouthfeel during brewing by emulsifying with water during extraction.

In dark roasts (beyond second crack, typically above 225°C), the fracture network from first and second crack has propagated extensively through the bean matrix. The cell walls have partially collapsed. Lipids, driven by the internal pressure and by capillary action through the fracture channels, begin migrating outward. The oily sheen visible on dark-roasted beans is this lipid fraction at the bean surface.

Surface lipids matter for flavor in two ways. First, they carry volatile aromatic compounds — the oily surface of a dark roast bean will smell more intensely than a dry light roast bean because the aromatics are held in the lipid film. Second, lipids exposed to oxygen at the bean surface oxidize more rapidly, producing rancid or "past-crop" notes in coffee that has been stored too long after roasting.

How Bean Structure Governs Extraction

All of these structural changes — the glass transition, the porosity increase from first crack, the fracture network, the lipid migration — have direct consequences for how the roasted bean will behave during brewing.

A light roast bean has undergone fewer structural changes. Its matrix is denser, its porosity lower, its fracture network less developed. It requires finer grinding to increase surface area for extraction, and it benefits from higher water temperatures (93–96°C) and longer contact times to fully extract the more tightly held flavor compounds. The chlorogenic acids that survived the shorter roast contribute brightness and fruity acidity.

A dark roast bean has an extensively fractured matrix, high porosity, and surface lipids. It grinds more easily — the cell walls are brittle — but releases CO₂ rapidly, which can impede extraction if the coffee is too fresh. It extracts faster at lower temperatures, and over-extraction produces bitter, carbony flavors because the simpler aromatic compounds from pyrolysis are more soluble. The body comes partly from emulsified lipids but the complexity of origin character has been largely burned away.

Roast Level Matrix State Porosity Optimal Extraction Temp Grind Recommendation
Light Dense, minimal fractures ~55–65% 93–96°C Fine to medium-fine
Medium-light Partially fractured ~65–72% 90–93°C Medium-fine
Medium Well-fractured ~72–78% 88–91°C Medium
Medium-dark Extensive fracture network ~78–82% 86–90°C Medium to medium-coarse
Dark Fragile, brittle ~82–88% 83–88°C Medium-coarse

Frequently Asked Questions

What is the glass transition and why does it matter for roasting?

The glass transition is the temperature at which the cellulose-hemicellulose matrix of the coffee bean shifts from a rigid glassy state to a rubbery flexible state. In wet beans this happens around 60–90°C. It matters because beans that haven't completed this transition don't develop evenly — heat penetrates unevenly through a still-rigid matrix, producing inconsistent flavor development across the bean cross-section.

Why do coffee beans expand so dramatically during first crack?

Steam and CO₂ build up inside the bean's cellular structure to an estimated 8–12 atmospheres of internal pressure. When this pressure exceeds the tensile strength of the cell walls, the walls rupture suddenly — releasing pressure, expanding bean volume by 50–100%, and producing the audible cracking sound.

Why are dark roasted beans oily on the surface?

Lipids that are stored inside the bean matrix in green and light-roasted coffee migrate through the fracture network that develops during first and second crack. In dark roasts, these fractures are extensive enough that lipids reach the bean surface, creating the characteristic sheen. Surface lipids are aromatic-rich but also vulnerable to oxidation.

Does faster roasting produce more or less acidity?

A faster rate of rise tends to preserve more of the chlorogenic acids and organic acids that produce brightness and perceived acidity in light to medium roasts. A slower rate of rise through the Maillard window allows more acid degradation, producing a sweeter, less bright cup. Very slow roasting (baked profile) can produce flat, unappealing acidity even in light roasts.

Conclusion

The thermal journey of a coffee bean from green to roasted is not a simple browning process. It is a sequence of interconnected physical phase changes — glass transition, free water evaporation, steam pressure buildup, cell wall rupture — followed by a cascade of chemical reactions that build, concentrate, and eventually simplify the bean's flavor potential.

The practical takeaway for roasters: every stage of the roast curve is negotiating with the bean's internal physics. Rushing the drying phase prevents glass transition completion and produces uneven development. Miscalibrating the first crack energy leaves you with an uncontrolled exothermic spike. Over-extending development degrades the very complexity that the earlier stages built. The beans tell you what they need, if you're reading the right signals.

Explore our selection of specialty roasted coffee where every roast profile has been developed around these principles — not guesswork.

← Back to journal