Coffee Roasting Chemistry: The Maillard Reaction, Pyrolysis and What Each Phase Does
Understand the chemistry of coffee roasting: the Maillard reaction, caramelisation, pyrolysis, and how each phase contributes to flavour.
Roasting transforms green coffee — a pale, grassy, hard seed with no more flavour complexity than a raw peanut — into the dark, fragrant, complex product most people recognise as coffee. The transformation involves dozens of chemical reactions happening simultaneously across a temperature range from roughly 150 °C to over 200 °C, in a process that lasts anywhere from 6 to 20 minutes depending on the roast profile. Understanding what is happening chemically during roasting is not required to brew good coffee, but it explains why different roast levels produce such dramatically different flavours, and why "medium roast" is a meaningless shorthand unless you know what is happening in that specific roast.
The primary processes in coffee roasting are the Maillard reaction, caramelisation, pyrolysis and a phase change called first crack. Each produces different compounds and contributes different flavour characteristics to the finished cup.
The principle behind coffee roasting chemistry
Coffee roasting is the application of controlled heat to drive a sequence of chemical reactions that transform the green bean's simple carbohydrate and protein structure into hundreds of flavour-active compounds. The roast level — light, medium or dark — determines which reactions dominate and which compounds are created or destroyed. The roast profile — the specific rate of temperature increase and the time at each phase — determines the balance of those compounds.
An origin name is a starting point, not a flavour guarantee. Variety, altitude, how the cherry was processed, how far it was roasted and how you brew it all move the cup further than the country on the bag does. Treat regional character as a tendency worth knowing rather than a promise the producer made.
What most changes the result
The Maillard reaction (150–180 °C)
This reaction between amino acids and reducing sugars is the most important flavour-forming process in coffee roasting. It produces melanoidins (brown pigments), hundreds of volatile aroma compounds, and much of the characteristic roasted flavour. The Maillard reaction begins before first crack and continues throughout the roast. Its products include pyrazines (nutty, earthy notes), aldehydes (fruity, floral notes), and heterocyclic compounds that contribute meaty, umami-like flavours.
Caramelisation (160–200 °C)
The thermal breakdown of sugars independent of amino acids produces caramelan, caramelin and other brown compounds. Caramelisation contributes sweet, toffee, honey and butterscotch notes to the cup. It is most pronounced in medium roasts, where sufficient sugar remains for caramelisation to proceed without being consumed by the Maillard reaction. Light roasts have too much intact sugar; dark roasts have caramelised most of the available sugar already.
Pyrolysis (200 °C and above)
Above approximately 200 °C, thermal decomposition of organic compounds accelerates dramatically. This is where the darker, more bitter, more smoky compounds form: polycyclic aromatic hydrocarbons (PAHs), which are produced in small amounts in all roasting but increase with darker roasts and higher temperatures. Carbon dioxide and water vapour are released, contributing to first crack and the expansion of the bean.
First crack
At approximately 196 °C, the rapid expansion of CO₂ and water vapour within the bean creates an audible crack — similar to popcorn popping. First crack marks the point at which the bean has expanded and the internal structure has opened, making it more permeable to water in brewing. Light roasts are typically ended shortly after first crack.
Second crack
At approximately 224 °C, the bean structure begins to fracture again as oils migrate to the surface and the cellular structure breaks down further. Dark roasts are typically ended at or shortly after second crack. Second crack marks the threshold beyond which most of the bean's original origin character has been destroyed and the roast character dominates.
A repeatable starting method
- Roast green coffee using a small home roaster or a popcorn popper modified for airflow control, tracking the rate of temperature rise and the time of first crack.
- Stop a roast at three different points — shortly after first crack (light), a few minutes after first crack (medium), and during second crack (dark) — and cup them side by side to understand how roast level changes the same green coffee.
- Note the difference in aroma between the different roast levels: lighter roasts retain more green, floral and fruit notes from the original bean; darker roasts develop more roast-forward notes of chocolate, caramel and smoke.
- Grind the three roasts to the same setting and brew with the same parameters. Notice how the darker roast extracts more quickly and produces a more bitter, less acidic cup.
- Store the three roasts separately and taste them again after one week, two weeks and three weeks to understand how staling interacts with roast level.
Keep the bag in front of you while you taste: producer, region, process, roast date. Origin character is only legible once you can tell it apart from roast level and freshness, and that means recording all three.
Common mistakes
- Over-simplifying roast levels. "Medium roast" encompasses a wide range of temperatures and times, and two medium-roasted coffees can taste very different depending on their profile shape.
- Assuming darker roasts are stronger. Darker roasts have less caffeine per bean than lighter roasts (the caffeine is not destroyed by heat), but the perceived intensity is higher because the roast compounds are more bitter.
- Ignoring the roast profile, not just the roast level. A fast roast to the same end temperature as a slow roast will produce a different flavour profile because the time spent in each chemical reaction phase is different.
- Treating coffee origin character as something that survives any roast level. Above second crack, most origin character is gone. If you want to taste the terroir of a specific coffee, use a light roast.
How to choose your next adjustment
Understand roasting chemistry to make better choices about roast level and to evaluate whether a particular roast suits a particular coffee. The Maillard reaction and caramelisation produce the most desirable compounds; pyrolysis produces the least desirable. A well-executed roast keeps the process in the Maillard and caramelisation phases long enough to develop complexity without pushing into excessive pyrolysis.
One caveat on caffeine: it varies with species, dose and serving size rather than with origin or roast colour. A dark roast is not a stronger cup, and a famous region is not a stronger one either.
Related on CupCura
Frequently asked questions
What should I change first with coffee roasting chemistry?
The Maillard reaction (150–180 °C). This reaction between amino acids and reducing sugars is the most important flavour-forming process in coffee roasting. It produces melanoidins (brown pigments), hundreds of volatile aroma compounds, and much of the characteristic roasted flavour. The Maillard reaction begins before first crack and continues throughout the roast. Its products include pyrazines (nutty, earthy notes), aldehydes (fruity, floral notes), and heterocyclic compounds that contribute meaty, umami-like flavours.
What is the most common mistake?
Over-simplifying roast levels. "Medium roast" encompasses a wide range of temperatures and times, and two medium-roasted coffees can taste very different depending on their profile shape. It is worth ruling that out before changing anything else, because it makes every other adjustment harder to read.
Does second crack matter?
At approximately 224 °C, the bean structure begins to fracture again as oils migrate to the surface and the cellular structure breaks down further. Dark roasts are typically ended at or shortly after second crack. Second crack marks the threshold beyond which most of the bean's original origin character has been destroyed and the roast character dominates.
Can I trust the region printed on the bag?
As a tendency, yes; as a guarantee, no. Two lots from the same region can differ more than two lots from different continents once processing and roast are taken into account.
Sources
- Folmer B. The Craft and Science of Coffee. Academic Press, 2017 — comprehensive roasting chemistry; Illy A, Viani R. Espresso Coffee: The Chemistry of Quality. Academic Press, 2005 — espresso extraction and roast chemistry.
More from CupCura
- Science & MetabolismThe Ultimate Caffeine Guide: Espresso vs. Matcha vs. Cold Brew vs. Yerba Maté9 min read
- Gastrointestinal HealthLow-Acid Coffee Guide for GERD & Acid Reflux: Temperature vs. Degradation7 min read
- Cardiovascular HealthPaper Filter vs. Metal Mesh: The Lipid Cafestol Impact on Cholesterol7 min read
We use cookies for analytics and advertising. CupCura uses Google Analytics to see which guides are useful, and Google AdSense to fund the site. In the UK, EU and Switzerland nothing is stored until you accept. Elsewhere these are on by default — decline and we switch them off. Read our for the full detail.