Coffee roasting is the process of applying heat to green coffee beans to trigger chemical reactions that develop flavor, aroma, and color. Raw coffee beans are dense, grassy-smelling seeds with almost none of the taste you’d recognize as coffee. Roasting transforms them through moisture loss, sugar browning, and structural breakdown into the fragrant brown beans you grind and brew.
What Happens Inside the Bean
Green coffee beans contain sugars, amino acids, moisture, and hundreds of organic compounds locked in a rigid cellular structure. When heat is applied, these components interact in a predictable sequence. The bean loses 14 to 20 percent of its weight during roasting, mostly from water evaporating, though 5 to 8 percent of the loss in a medium roast comes from dry matter escaping as carbon dioxide and other gases. At the same time, the beans physically expand, becoming larger and more porous as internal pressure builds.
The most important chemistry driving flavor is a set of browning reactions between sugars and amino acids. These reactions produce melanoidins (the compounds responsible for the brown color), along with hundreds of volatile aromatic molecules that give coffee its characteristic smell. The rate and intensity of these reactions depend on both temperature and time, which is why roasters treat the process more like cooking than simple heating.
The Three Phases of a Roast
Professional roasters break the process into three overlapping phases, each defined by what’s visibly and audibly happening to the beans.
The drying phase runs from the start of the roast until the beans reach about 150°C (300°F) and begin changing color. Despite the name, beans actually release moisture steadily throughout the entire roast, not just during this early stage. The color shift from green to yellow marks the transition, though this “yellowing” point is somewhat subjective and varies between roasters.
The browning phase covers the time between yellowing and the onset of first crack. This is when sugar-amino acid reactions accelerate, producing the complex flavors and aromas that define the coffee. The beans deepen from yellow to tan to light brown, and the roasting facility fills with a bread-like, caramelized smell.
The development phase begins at first crack and lasts until the roaster decides the beans are done. This final window, often just one to three minutes, has an outsized impact on the finished flavor. Extending it pushes the roast darker, shifting the balance from origin character toward roast character.
First Crack and Second Crack
Two audible events serve as the roaster’s most reliable signposts. First crack is a popping sound, similar to popcorn, that occurs when beans reach roughly 395 to 405°F (201 to 208°C). The internal pressure from steam and carbon dioxide fractures the bean’s structure, causing it to expand rapidly. First crack signals that the coffee has reached the minimum level of development needed to be drinkable.
Second crack happens at around 440 to 450°F (225 to 232°C). It sounds quieter and more like a snapping or crackling. By this point, the bean structure is becoming brittle and oils are migrating to the surface. Roasting much beyond second crack risks carbonization and fire, which is why even the darkest commercial roasts rarely push far past this stage.
How Roast Level Shapes Flavor
Light roasts are pulled shortly after first crack. They preserve more of the bean’s origin character: the specific flavors tied to where it was grown, the variety of the plant, and how it was processed. Light roasts tend to have higher acidity, more complexity, and brighter, fruitier notes. They also retain the highest levels of chlorogenic acids, a group of antioxidant compounds that break down progressively with heat. Research published in Foods found that chlorogenic acids begin degrading even at light roast levels and disappear almost entirely in dark roasts.
Medium roasts strike a balance. The bean’s natural flavors blend with the caramelized sweetness produced by roasting, resulting in a more rounded cup with moderate acidity and fuller sweetness. Medium roasts typically fall in the 14 to 16 percent weight-loss range.
Dark roasts are taken well into or beyond second crack. Acidity drops significantly, body increases, and bitterness becomes more prominent. The dominant flavors come from the roasting process itself: chocolate, smoke, char, and toasted grain. Oils visible on the bean surface are a hallmark of this level. Because so much of the original flavor has been transformed, dark roasts taste more similar to each other regardless of origin than light roasts do.
Caffeine Across Roast Levels
A common belief is that dark roasts contain more caffeine, or alternatively, that light roasts do. The truth is more nuanced. Caffeine is remarkably heat-stable, so roasting doesn’t destroy it in meaningful amounts. If you measure coffee by weight (using a scale), caffeine content is essentially the same across roast levels. But if you measure by volume (scooping), light roast delivers slightly more caffeine per scoop because the beans are denser and you’re packing more mass into the same space. The difference is small enough that your brewing method and coffee-to-water ratio matter far more.
Drum Roasters vs. Air Roasters
The two most common roasting machines work on different principles. Drum roasters tumble beans inside a rotating metal cylinder heated from below or around. The drum’s rotation mechanically agitates the beans, and heat transfers through a combination of contact with the hot metal (conduction) and hot air moving through the drum (convection). This approach gives roasters precise temperature control as the beans change physically throughout the roast, which is why drum machines dominate commercial and specialty roasting.
Fluid bed (air) roasters use a powerful stream of heated air to both heat and suspend the beans, lofting them in a column so they roast while floating. Convection is the primary heat transfer method, which makes these roasters very thermally efficient. They tend to produce a cleaner, brighter flavor profile because the beans never rest against a hot surface. They’re popular for smaller batch sizes and for roasters who prioritize highlighting a bean’s origin flavors.
Why Freshly Roasted Coffee Needs Rest
Beans aren’t at their best the moment they leave the roaster. During roasting, carbon dioxide builds up inside the bean’s cellular structure, and it takes days to release. In the first 24 to 72 hours, degassing is rapid. It then slows over the next one to two weeks.
Brewing too soon creates a practical problem: the escaping gas interferes with water flow through the grounds, leading to uneven extraction and sour, underdeveloped flavors. Dark roasts degas faster because their more porous structure traps less CO2, typically reaching peak flavor in 3 to 5 days. Light roasts need longer, usually 7 to 10 days. For espresso specifically, waiting at least 5 to 7 days helps reduce excess gas that can disrupt the high-pressure extraction. For pour-over or drip, 4 to 10 days tends to be the sweet spot. Most roasted coffee hits its best window somewhere between 3 and 14 days after roasting, then gradually fades as aromatic compounds continue to escape and oxidize.

