The Molecular Lab · Vol. 02

The Chemistry
of Coffee

Coffea arabica · Coffea canephora · 1,000+ aroma compounds · 9 bar · 93°C

You drink it every day without thinking about it. But from the moment a green bean enters a roaster to the second it hits your tongue, coffee is one of the most chemically complex things humans consume. This is what's actually happening.

Begin
01 — The Bean

Not all coffee
is coffee

Genetic variety, altitude, and processing method define your cup before roasting begins.

Most commercial coffee comes from two species. Coffea arabica makes up roughly 60–70% of global production; Coffea canephora (Robusta) accounts for most of the rest. They are chemically distinct plants with profoundly different cup profiles — and different pest vulnerabilities, which matters more than you think.

Arabica

Coffea arabica
Caffeine1.2–1.5%
Chlorogenic acids5.5–8%
Sucrose6–9%
Lipids15–17%

Grows at 600–2,000m altitude. Lower temperatures slow maturation, allowing greater sugar and acid complexity to develop. Self-pollinating. More susceptible to disease.

Robusta

Coffea canephora
Caffeine2.7–4%
Chlorogenic acids7–10%
Sucrose3–7%
Lipids8–12%

Grows at low altitudes (0–800m), heat-tolerant. Higher caffeine functions as a natural insecticide. Used heavily in espresso blends for crema. Often cheaper and more disease-resistant.

The high caffeine content in Robusta isn't incidental — caffeine is the plant's natural pesticide, toxic to insects and fungi. Arabica's lower altitude, gentler climate, and lower caffeine make it more susceptible to Hypothenemus hampei, the coffee berry borer beetle, which we'll return to later.

Processing Methods

Before roasting: how
the cherry becomes a bean

01

Natural (Dry) Process

Whole cherries are laid on raised beds and sun-dried for 3–6 weeks. The fruit pulp surrounds the seed throughout drying, allowing sugars to ferment and diffuse through the parchment into the bean. Result: fruity, wine-like, complex. Molecular mechanism: enzymatic breakdown of pectin and sugars produces ethyl esters and alcohols that permeate the bean wall. Higher risk of inconsistency and defects.

02

Washed (Wet) Process

Pulp is mechanically removed, beans are fermented in water tanks for 24–72 hours to degrade the mucilage layer enzymatically, then washed clean and dried. Result: clean, bright, high clarity, pronounced acidity. The fermentation step is enzymatic: polygalacturonase breaks down pectin; acetic and lactic acid bacteria produce organic acids that define the "clean" profile. Most specialty Arabica uses this method.

03

Honey Process

Pulp removed but varying amounts of mucilage left on. "Yellow honey" (less mucilage) through "black honey" (most). A deliberate middle ground: body and sweetness of natural with some clarity of washed. Named for the sticky, honey-like surface of beans during drying — not for flavour or ingredient.

02 — The Roast

A green seed becomes
1,000+ aroma compounds

Roasting is controlled destruction. What you smell in your cup didn't exist in the raw bean.

A green coffee bean is barely recognisable. It smells faintly grassy. It contains sugars, amino acids, chlorogenic acids, trigonelline, lipids — but none of the aromatic volatiles we associate with coffee. Those are all created by heat. Roasting is one of the most chemically generative processes in food science.

Key Reaction

Maillard Reaction — amino acids react with reducing sugars at temperatures above ~150°C, producing hundreds of melanoidins, furans, pyrazines, pyrroles, and thiophenes. Different temperatures and durations produce different compound sets. The result is responsible for virtually all of the roasted, nutty, caramel, and chocolate notes in your cup.

Roast Profile Explorer

Green Bean Light Medium Dark French
Temp
18°C
CO₂
Low
Profile
Green

Raw green bean. Contains chlorogenic acids, sucrose, trigonelline, and lipids. No roast character yet. Grassy aroma from hexanal and other aldehydes from lipid oxidation.

2-Furfurylthiol
C₅H₆OS
The primary "roasted coffee" aroma compound. Detectable by humans at concentrations as low as 0.01 ppb. Forms from the Maillard reaction between cysteine and furanose sugars.
Chlorogenic Acids
C₁₆H₁₈O₉
Major antioxidants in green coffee. Degrade during roasting into quinic acid (bitter) and caffeic acid. Lighter roasts preserve more; dark roasts destroy most. Controls perceived bitterness.
Trigonelline
C₇H₇NO₂
Vitamin B₃ precursor. Degrades during roasting to produce pyridines — the source of earthy, nutty notes. Also produces nicotinic acid (niacin), meaning roasted coffee is a dietary niacin source.
Melanoidins
High-MW polymer
Brown, high-molecular-weight polymers formed throughout roasting via Maillard. Responsible for colour, body, and act as antioxidants. Give dark roasts their thick mouthfeel and dark colour.
Cafestol & Kahweol
Diterpenes
Lipid compounds in coffee oils. Clinically raise LDL cholesterol by suppressing bile acid synthesis. Retained in French press; largely removed by paper filters. More present in dark roasts.
Guaiacol
C₇H₈O₂
Phenolic compound derived from ferulic acid degradation during roasting. Responsible for smoky, spicy notes in darker roasts. Also found in whisky, wood smoke, and medicinal antiseptics.
03 — CO₂ & Degassing

Why fresh doesn't always
mean better

Carbon dioxide is simultaneously what makes coffee fresh and what prevents it from brewing well.

During roasting, carbohydrate breakdown and Maillard reactions generate enormous amounts of CO₂ — far more than the bean can hold. Some escapes during roasting through the first and second crack events (audible cell wall rupture). But a significant quantity remains trapped in the bean's porous cellular matrix. Immediately after roasting, freshly roasted beans off-gas CO₂ at high rates — which is why specialty roasters put one-way valve bags on whole beans.

CO₂ Release Rate Over Time: Whole Bean vs. Ground

Whole bean Ground coffee Stale threshold

Here's the paradox: too much CO₂ causes problems. When water contacts over-gassed coffee, the CO₂ forms a physical barrier — bubbles that resist water penetration and cause uneven extraction. Espresso is especially sensitive, because the short contact time means CO₂ interference is proportionally larger. This is why experienced baristas "rest" freshly roasted espresso beans for 7–14 days before pulling shots, depending on roast level.

The Bloom

That foamy bubble phase in pour-over brewing when you first add water? That's CO₂ escaping rapidly. Letting coffee bloom for 30–45 seconds allows the gas to vent before full extraction begins, resulting in more even, flavourful extraction. Skipping the bloom means CO₂ pockets create channelling — water finds the path of least resistance and extracts unevenly.

Once CO₂ is gone, oxidation begins in earnest. The same lipid-rich oils that carry aromatic compounds react with atmospheric oxygen, producing rancid, stale, cardboard-like notes. Grinding catastrophically accelerates this: the surface area exposed to oxygen increases by orders of magnitude in seconds. What takes whole beans 2–4 weeks to lose, ground coffee loses in hours.

04 — The Grind

The most underrated
variable in your cup

Particle size determines contact time, extraction rate, and ultimately, flavour.

A single coffee bean has a surface area of roughly 5–10 cm². Grinding it to espresso fineness increases that to several thousand cm² — exposing more soluble compounds to water, faster. Grind size is essentially a dial for extraction rate: coarser grinds extract more slowly and require longer contact time; finer grinds extract rapidly under pressure.

Extra Fine / Turkish
~100–200 μm
Finest possible. Used for Turkish/ibrik brewing where grounds are boiled directly. Not used in espresso — too fine causes channelling and over-extraction at pressure.
Espresso
~200–400 μm
Fine but not powder. Requires burr grinder for consistent particle size. Wide distribution (fines + boulders) causes uneven extraction. High-end grinders minimise distribution variance.
Filter / Pour-Over
~500–800 μm
Medium-fine to medium. Gravity-fed water has longer contact time. Grind affects flow rate through the filter bed. Consistent particle distribution is critical for pour-over methods.
French Press
~900–1200 μm
Coarse grind for immersion brewing. Brew time 4 minutes. Paper filters are absent so all oils pass into the cup — including diterpenes. Results in heavier body than filter methods.
Blade Grinders

Blade grinders don't grind — they chop. The result is a bimodal distribution of large chunks and powdered fines. When brewed, the fines over-extract (bitter, harsh) while the large pieces under-extract (sour, thin) simultaneously. You taste both at once. A burr grinder — even a cheap hand burr — produces orders of magnitude more consistent particle sizes and will improve every cup you make.

05 — Extraction

What is water actually
pulling out of coffee?

Extraction is chemistry: solubility, temperature, pressure, and time.

Coffee solubles dissolve in a specific order. Fruity acids and salts dissolve first, at any temperature, quickly. Maillard-derived caramels and sugars dissolve next, giving sweetness and body. Bitter compounds — quinic acid, melanoidins — require more time and higher temperature to dissolve, and are the last to enter solution. This ordering means extraction percentage directly controls your flavour profile.

Extraction Simulator

ESPRESSO — IDEAL EXTRACTION
Extraction ~20%. First acids and sugars dissolve; bitters follow in balance. At 9 bar and 93°C, water is forced through a 400μm puck in 25–30 seconds — the pressure gradient accelerates solubility beyond what temperature alone achieves. Ideal TDS: 8–12% in cup.

How Crema Forms

Crema is a colloidal emulsion of CO₂ gas, coffee oils (lipids), and melanoidins. The 9-bar pressure forces CO₂ into supersaturated solution. As pressure drops in the cup, CO₂ nucleates on oil droplets, creating the stable foam. Fresh beans with adequate CO₂ produce reddish-brown, persistent crema. Stale beans produce pale, thin, quickly-collapsing foam. Crema is not a quality indicator on its own — Robusta produces abundant crema due to higher protein content, but doesn't taste better.

06 — Brewing Methods

Same bean. Different
physics.

Each method is a unique extraction architecture with different chemical results.

Espresso
Pressure: 9 bar
Temp: 90–96°C
Time: 25–30 sec
Ratio: 1:2 coffee:water
🫗
Pour-Over
Pressure: 1 bar (gravity)
Temp: 88–96°C
Time: 2.5–4 min
Ratio: 1:15–1:17
🧃
French Press
Pressure: Immersion
Temp: 93–96°C
Time: 4 min
Ratio: 1:12–1:15
🔩
AeroPress
Pressure: ~0.5 bar
Temp: 75–95°C
Time: 1–4 min
Ratio: 1:6–1:18
🫙
Moka Pot
Pressure: 1.5–2 bar
Temp: ~90°C
Time: 3–5 min
Ratio: 1:6
📦
Instant
Pressure: Industrial
Temp: Spray-dry
Time: 0 sec
Ratio: Pre-extracted
Espresso — The highest-pressure extraction in common use. 9 bars of pressure forces water through a compacted puck of finely ground coffee in under 30 seconds. Pressure dramatically increases solubility beyond temperature alone: compounds that would take minutes to dissolve at atmospheric pressure dissolve almost instantly. This is why espresso is concentrated — not just because of the ratio, but because pressure-assisted extraction pulls different compounds than gravity-fed methods. The crema contains emulsified oils that are largely absent in filtered preparations. Espresso also has the highest TDS (total dissolved solids) of any common brew method.
07 — Pre-Ground

What you're actually
buying in that tin

Pre-ground coffee is an engineered product — and a compromised one.

When you grind a coffee bean, you increase its surface area by a factor of several thousand. Every new surface is exposed to oxygen, humidity, and light. The volatile aromatics that carry floral, fruity, and complex flavour notes begin escaping immediately — they are, by definition, volatile. The lipids begin oxidising. The CO₂ that preserved freshness exits within hours. Within 15–30 minutes of grinding, measurable flavour degradation has already occurred.

Flavour Compound Decay After Grinding

RELATIVE CONCENTRATION OVER TIME · GROUND AT T=0
CO₂ (freshness signal) Volatile aromatics Oxidation (staleness)

Commercial pre-ground coffee has typically been ground weeks to months before purchase, then packaged under nitrogen or vacuum to slow (not stop) degradation. Nitrogen flushing removes oxygen but cannot restore CO₂ or halt all oxidative pathways. The result is a product with most of its volatile aromatics already lost and oxidation well underway at the point of purchase.

Industrial Scale Compounds

Large-scale commercial blends often use Robusta as a filler — cheaper, higher-yield, easier to grow at scale. The robustness of Robusta also means it survives the industrial grinding and packaging process with marginally more intact character than delicate Arabica. This is not disclosed on most standard supermarket packaging. The "premium" labelling you see refers to marketing categories, not coffee grading standards — there is no regulatory definition of "premium" for coffee.

08 — The Contamination Question

Insect fragments,
the FDA, and your allergy

The viral cockroach claim is partly real, partly exaggerated — and the truth is more interesting.

In 2009, biologist Douglas Emlen gave an interview in which he described a colleague — entomologist George Ichorph — who had developed a severe cockroach allergy after years of lab handling. Ichorph noticed that pre-ground coffee triggered the exact same allergic response. The reason, he concluded: cockroaches can infest coffee warehouses, attracted by the strong aroma, and industrial grinders that process tonnes of beans without deep-cleaning between batches may incorporate insect fragments into the final product.

Accuracy Check

Snopes investigated this claim and rated it as plausible but not documented beyond anecdote. There is no published, peer-reviewed study confirming cockroach contamination is widespread in commercial coffee. The FDA does acknowledge insect fragments as a natural and unavoidable contaminant in coffee — but the primary pest affecting coffee is Hypothenemus hampei, the coffee berry borer beetle, not cockroaches. Cockroaches are not listed in the FDA's Defect Action Level guidelines for coffee. Presenting this claim as a proven, documented fact would be inaccurate.

What is documented is the regulatory framework. The FDA's Defect Action Levels (DALs) establish maximum allowable concentrations of "natural or unavoidable defects" in food products that present no health hazard at those levels. For coffee:

Defect Type Action Level Method
Insect filth / insect fragments Average 10% by count — insects in 10% of sub-samples AOAC 981.21
Mold Average 10% by count — moldy beans in 10% of sub-samples AOAC 981.21
Foreign matter Average 10mg per pound AOAC 981.21

The "10%" figure has been widely misrepresented online as meaning coffee is "10% cockroach." It refers to sub-sample frequency thresholds in a testing protocol — not concentration in the cup. The actual insect-fragment content at allowable levels would be minute. The standard exists not to permit contamination but to define enforcement action when contamination exceeds unavoidable background levels.

The Allergy Science

Why the allergen
story is biologically real

Even if cockroach contamination isn't widespread, the immunological mechanism Ichorph described is scientifically sound. Cockroach allergens — primarily proteins designated Bla g 1 through Bla g 9 — are robust. They survive industrial roasting temperatures. They are classified as cross-reactive with shellfish allergens via the protein tropomyosin, which is conserved across arthropods (cockroaches, shrimp, crab, mites are all arthropods).

This means: if you have a documented shellfish allergy, you may also react to cockroach proteins — and theoretically to pre-ground coffee if contamination exists at allergenic levels. This cross-reactivity is medically documented and is why entomologists who handle cockroaches routinely develop respiratory and dermal allergies over time. The Ichorph story is biologically coherent.

The Practical Takeaway

For the vast majority of people: no health concern. Insect fragments in coffee at regulatory levels are harmless. For people with cockroach or shellfish allergies: this is a plausible concern worth discussing with an allergist. The most evidence-based mitigation is the same as the flavour-quality recommendation anyway — whole bean coffee ground immediately before brewing. The intact bean is a harder environment for insect fragments to accumulate in, and industrial grinding machinery is the primary vector for any such contamination.

And the most significant real contamination concern in commercial coffee has nothing to do with insects. Ochratoxin A — a nephrotoxic mycotoxin produced by Aspergillus and Penicillium mould species — is a documented contaminant in improperly processed and stored green coffee beans, particularly from humid tropical regions. The EU has established maximum allowable limits (10 μg/kg in roasted coffee); the US has no specific limit. It's degraded substantially by roasting but not eliminated. Specialty coffee's rigorous processing and traceability controls also happen to be the best mitigation against this risk.

09 — Caffeine

The most widely consumed
psychoactive substance on Earth

A plant-made insecticide that reorganised human civilisation.

Caffeine — 1,3,7-trimethylxanthine — is an alkaloid synthesised by coffee plants as a natural pesticide. At concentrations found in leaves and seeds, it's toxic to insects, fungi, and competing seedlings via allelopathy. When humans consume it, caffeine functions as an adenosine receptor antagonist. Adenosine is a neuromodulator that accumulates during waking hours and promotes sleep pressure. Caffeine's molecular structure mimics adenosine closely enough to occupy adenosine receptors (A1 and A2A) without activating them — blocking the sleep signal while leaving the underlying adenosine accumulation intact.

Why the crash

When caffeine clears your system (half-life ~5–6 hours), all the adenosine that accumulated while the receptors were blocked floods back in simultaneously — binding to now-clear receptors all at once. This is the physiological mechanism of the afternoon caffeine crash. The fatigue isn't caffeine withdrawal; it's deferred adenosine signal delivery. Drinking more coffee simply delays it again.

Caffeine content varies dramatically by method. A single espresso shot (~30ml) contains ~60–75mg caffeine. A 240ml drip coffee: 95–165mg. The common assumption that espresso is "stronger" refers to concentration (mg/ml), not total dose. If you drink two espresso shots, you've consumed roughly the same caffeine as a single large drip coffee — at roughly 1/8 the volume.


The Molecular Lab

You've never thought about
coffee the same way twice.

From the altitude a cherry grew at to the 7-day rest of a freshly roasted bag, to the physics of 9 bars of pressure forcing water through a compacted puck in under 30 seconds — your morning cup is one of the most chemically complex things you'll consume all day.