Pillar

Caffeine, explained

Sourced explainer · By Jeffrey Dietrich, PhD · ~5 min read

Caffeine is the most-used drug on the planet, and almost nobody can tell you what it actually does. Here is the honest version: what it is, how it works, how long it lingers, and why the same cup can leave one person sharp and another shaking.

In this guide

What caffeine actually is

Caffeine is a small molecule in a family called the methylxanthines. Plants make it as a built-in defense — it is toxic to many insects and slows the growth of competing seedlings — which is why it shows up in coffee beans, tea leaves, cacao pods, kola nuts, guarana, and yerba mate.1 When you brew, steep, or eat any of those, you are extracting that same compound. In the body it behaves as a central-nervous-system stimulant, and it is a psychoactive drug that most people consume legally, daily, and without a second thought.

Where it comes from — and how much you are getting

The dose hides in plain sight, and it varies more than most people assume. A standard 8-oz cup of brewed coffee carries roughly 95 mg; a shot of espresso about 65 mg in a much smaller volume; black tea 40–50 mg; green tea 25–30 mg; a cola around 30–40 mg; and dark chocolate a modest 20 mg or so per ounce.2 Brew strength, bean variety, and steep time swing those numbers, but the ranking holds: coffee is the heavyweight, tea the middleweight, chocolate a featherweight. The top end is where it gets sneaky: a 16-oz coffee-shop brew can run well past 200 mg, and a 20-oz Starbucks venti can clear 400 mg — the FDA's suggested daily ceiling for healthy adults — in a single cup.2 Knowing your daily total is the whole game — see caffeine half-life for why timing matters as much as amount.

How it works: adenosine antagonism

Across your waking hours, a molecule called adenosine accumulates in the brain and binds to its receptors, dialing down neural activity and building the pressure to sleep. Caffeine is shaped just enough like adenosine to slip into those same receptors without activating them — it blocks the lock instead of turning it.3 The tiredness signal goes quiet, downstream dopamine and norepinephrine (AKA noradrenaline) rise, and you feel alert. Crucially, caffeine does not add energy. It mutes the message that says you are tired. The full mechanism is in what caffeine does to your body.

What it does — alertness, and the bill that follows

The upside is real: faster reaction time, sharper attention, better mood, and a measurable endurance boost for physical work.3 But every benefit has a matching cost. The same receptor-blocking that wakes you up can tip into a racing heart and a wired, anxious edge in sensitive people — covered in caffeine and anxiety. And because the adenosine you blocked never actually went away, it floods back once the caffeine clears, which is the afternoon crash. The most reliable cost is sleep: even caffeine taken six hours before bed measurably cuts total sleep time.4 See caffeine and sleep.

Half-life: why the noon cup is still with you at 5pm

Caffeine clears on a curve, not a cliff. Its average half-life is about 5 hours, so half of a noon coffee is still circulating at 5pm and a quarter at 10pm.4 That lingering tail is why a late mid-afternoon cup can quietly cut into your sleep. The half-life itself is a moving target — pregnancy can stretch it past 15 hours, while smoking roughly halves it — which is the bridge to the question everyone really asks.

Who feels it hardest

Identical doses produce wildly different experiences, and the explanation is largely genetic. A gene called CYP1A2 sets how fast your liver breaks caffeine down: fast metabolizers shrug off an espresso after dinner, slow metabolizers lie awake at 2am.5 A separate adenosine-receptor gene shapes how intensely you feel the stimulation in the first place. Layer on body size, tolerance, pregnancy, and medications, and you get the full spread — read caffeine sensitivity if a single cup hits you like three.

Start here

This is the hub for the caffeine cluster. If you are not sure where to begin: start with what caffeine does to your body for the mechanism, then half-life for timing and sleep for the cost most people underrate. The deeper pattern across all of it: the lift and the downsides come from the same molecule. The interesting question is whether you can keep one without the other — which is exactly where paraxanthine (Px) comes in, since it is the compound your body makes when it metabolizes caffeine.

Common questions

What exactly is caffeine?

Caffeine is a plant compound — a methylxanthine — found naturally in coffee beans, tea leaves, cacao, and a few dozen other plants, where it acts as a natural pesticide. In people it is the most widely used stimulant in the world, working mainly by blocking adenosine, the molecule that builds up to make you feel sleepy.

How much caffeine is in coffee versus tea?

A typical 8-oz cup of brewed coffee has about 95 mg of caffeine. Black tea runs roughly 40–50 mg, green tea about 25–30 mg, and a can of cola around 30–40 mg. Espresso is concentrated — about 65 mg per 1-oz shot — but you usually drink a smaller volume.

How long does caffeine stay in your system?

The average half-life is about 5 hours, meaning half the caffeine from a noon coffee is still circulating around 5pm. Half-life varies widely — from roughly 2 hours to 8 or more — depending on genetics, smoking, pregnancy, and certain medications.

How much caffeine is safe in a day?

For most healthy adults, up to about 400 mg per day — roughly four cups of coffee — is generally considered moderate. Pregnant people are usually advised to stay under about 200 mg, and individual tolerance varies a great deal.

Why does caffeine affect some people so much more?

A lot of it is genetic. Variants in the CYP1A2 gene control how fast your liver clears caffeine, and variants in the adenosine-receptor gene shape how strongly you feel it. Slow metabolizers and the highly sensitive get more jitters, anxiety, and disrupted sleep from the same dose.

* These statements have not been evaluated by the Food and Drug Administration. This product is not intended to diagnose, treat, cure, or prevent any disease. Content on this page is informational and not a substitute for medical advice; talk to a clinician about caffeine and your health.

References
  1. Ashihara H, Crozier A. "Caffeine: a well known but little mentioned compound in plant science." Trends in Plant Science, 2001.
  2. U.S. Food & Drug Administration. "Spilling the Beans: How Much Caffeine is Too Much," 2024 update (400 mg/day guidance for healthy adults). Per-beverage amounts, incl. large coffee-shop drinks: Center for Science in the Public Interest, Caffeine Chart.
  3. Nehlig A, Daval JL, Debry G. "Caffeine and the central nervous system: mechanisms of action, biochemical, metabolic and psychostimulant effects." Brain Research Reviews, 1992.
  4. Drake C, Roehrs T, Shambroom J, Roth T. "Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed." Journal of Clinical Sleep Medicine, 2013.
  5. Cornelis MC, El-Sohemy A, Kabagambe EK, Campos H. "Coffee, CYP1A2 genotype, and risk of myocardial infarction." JAMA, 2006.