Coffee is the most popular psychoactive drink on the planet, taken by billions of people who rarely think of it as chemistry. Yet every step — the bean, the roast, the grind, the pour — is a series of physical and chemical processes, and the lift it gives you is a precise piece of neuroscience. Understanding a little of the science will not just satisfy curiosity; it will make you a better brewer and a calmer reader of the endless headlines about whether coffee is good or bad for you.
This article is general information, not medical advice. If you have a heart condition, are pregnant, or are sensitive to caffeine, talk to a healthcare professional about your intake.
What coffee is
Coffee is a brewed drink made by passing hot water through roasted, ground seeds of the Coffea plant — the "beans". Those beans contain hundreds of compounds, but three groups do most of the work we notice: caffeine (the stimulant), acids and oils (much of the flavour and aroma), and melanoidins (brown compounds formed during roasting that add body and bitterness). Brewing is simply the art of pulling the right balance of these out of the grounds and into the water.
How caffeine works
The reason coffee feels alerting comes down to a single molecule: adenosine. As you go through your day, adenosine gradually builds up in the brain and binds to receptors that slow nerve activity, producing the feeling of tiredness. Caffeine is shaped just enough like adenosine to slot into the same receptors — but without activating them. By blocking adenosine's parking spaces, caffeine holds back the drowsy signal.
This is a useful thing to understand: caffeine does not give you energy, it postpones tiredness. The adenosine is still accumulating; you simply stop noticing it for a while. When the caffeine wears off, the backlog can hit at once — part of why a big afternoon coffee can wreck your sleep and leave you flat the next morning. Caffeine has a half-life of around five to six hours in most adults, meaning a 3pm coffee can still have half its caffeine working in your system at bedtime.
Brewing is extraction
Every brewing method — cafetiere, espresso machine, filter, moka pot — is doing the same fundamental thing: extraction. Hot water dissolves soluble compounds out of the coffee grounds. The trick is that different compounds dissolve at different rates. The bright, fruity acids come out first, then the sugars and balanced flavours, and finally the harsh, bitter compounds.

Three variables control the result:
- Grind size. Finer grounds have more surface area, so they extract faster. Espresso uses a fine grind and a few seconds; a cafetiere uses a coarse grind and several minutes.
- Time. Longer contact means more extraction. Too short and the coffee tastes thin and sour (under-extracted); too long and it turns bitter (over-extracted).
- Temperature. Hotter water extracts faster. The usual sweet spot is roughly 90–96C — just off the boil.
| Method | Grind | Rough brew time | Character |
|---|---|---|---|
| Espresso | Fine | 25–30 seconds | Concentrated, intense |
| Cafetiere (French press) | Coarse | About 4 minutes | Full-bodied, oily |
| Pour-over / filter | Medium | 2–4 minutes | Clean, bright |
| Moka pot | Fine–medium | A few minutes | Strong, rich |
Good coffee is balanced extraction. Sour usually means under-extracted; bitter usually means over-extracted. Adjust grind and time before you blame the beans.
A common surprise: a single espresso contains less total caffeine than a mug of filter coffee, because the serving is so much smaller. Espresso is concentrated per millilitre, but you drink far less of it. The dose you actually get depends mostly on how much coffee went in and how big the cup is.
Roasts: where flavour is made
Roasting is where green, grassy beans become the aromatic thing we recognise. As beans heat, the Maillard reaction and caramelisation create hundreds of new flavour and aroma compounds — the same browning chemistry that gives toast and seared meat their flavour.
- Light roasts are roasted for less time. They keep more of the bean's origin character: bright, acidic, sometimes fruity or floral.
- Medium roasts balance acidity and body — the everyday middle ground.
- Dark roasts are roasted longer and hotter. Origin flavours give way to bold, smoky, bitter, chocolatey notes, and oils appear on the surface of the beans.
A persistent myth is that dark roasts are "stronger" in caffeine. In fact caffeine is fairly stable through roasting, so light and dark roasts contain broadly similar amounts. The perceived strength of a dark roast is about flavour, not stimulant.
What the evidence says about health
Coffee has swung between villain and health food in the headlines for decades. The current weight of evidence, summarised by bodies such as the British Heart Foundation and reviews from institutions like the Harvard T.H. Chan School of Public Health, is reassuring for most people: moderate coffee drinking fits within a healthy diet and has been linked in observational studies to a lower risk of several conditions.
A few important caveats keep this honest:
- Most of this research is observational, which shows associations rather than proving cause and effect.
- The benefits relate to moderate intake — commonly cited as up to about 400mg of caffeine a day for healthy adults, roughly three to four cups.
- What you add matters. Coffee itself is nearly calorie-free; large amounts of sugar, syrup and cream can turn it into a calorie-heavy treat. If you are mindful of energy intake, our guide to how calories work is worth a look.
Coffee is also one of many things best understood as part of an overall pattern of eating rather than a magic bullet, the theme of our piece on what a balanced diet means.
When to go easy
Caffeine sensitivity varies a lot between people, partly for genetic reasons. Too much can cause jitters, anxiety, a racing heart, an upset stomach and disrupted sleep. The NHS advises pregnant women to limit caffeine to around 200mg a day, as high intakes are linked to risks in pregnancy. Because caffeine lingers, the simplest sleep-friendly habit is to stop drinking coffee in the early afternoon. And remember caffeine hides in tea, cola, energy drinks and chocolate too — alongside additives worth understanding, which we cover in understanding food additives.
The bottom line
Coffee is chemistry you can taste. Caffeine wakes you by blocking the sleep signal adenosine; brewing is extraction governed by grind, time and temperature; and roast level shapes flavour far more than caffeine content. For most healthy adults, a few cups a day is fine and may even carry some benefits — the cautions are individual sensitivity, late-day drinking, what you stir into the cup, and lower limits in pregnancy. Understand the science, and both your brew and your peace of mind improve.
Frequently asked questions
How does caffeine actually wake you up?
Caffeine blocks adenosine, a molecule that builds up in the brain through the day and makes you feel drowsy. By occupying adenosine's receptors, caffeine holds off that sleepy signal, which is why coffee feels alerting rather than energising in a strict sense.
Which has more caffeine, espresso or filter coffee?
A single espresso has less total caffeine than a mug of filter coffee, because the serving is much smaller. Espresso is more concentrated per millilitre, but a typical mug of filter or cafetiere coffee usually delivers more caffeine overall.
Does a dark roast have more caffeine?
Not meaningfully. Roast level mainly changes flavour. Caffeine is fairly stable during roasting, so light and dark roasts contain similar amounts - the bigger differences come from the bean, the dose and the brew method.
How much coffee is safe to drink?
For most healthy adults, up to about 400mg of caffeine a day - roughly three to four cups of coffee - is considered moderate. Pregnant women are advised to limit caffeine to around 200mg a day. Individual sensitivity varies, so listen to your own body.
Join in — free. Comments on Daily Junction are for members, so real names stay rare and bots stay out.
One field. We email you a 6-digit code — no password needed. Your comment is kept while you do it.
Under 13? You’ll need a parent’s OK first — it takes them one click.