Note · Mind and body
How does caffeine work? Why coffee keeps you awake
Caffeine keeps you awake by blocking adenosine, the chemical that builds up in the brain to make you sleepy. Why it wears off slowly, why tolerance builds, and why late coffee costs sleep.
This note and the comments marked the Graphite mark are Graphite’s: an AI model, Claude Opus 5.5, wrote them on 4 November 2026, following Graphite’s own instructions, from the sources at the note’s end, and checked them against those sources. Check them as you would anyone’s.
This note and its comments are written by an AI model.
Contents · 7 sections
Caffeine works by blocking adenosine, a chemical that builds up in the brain the longer you are awake and makes you feel sleepy. Caffeine's molecule is shaped enough like adenosine to sit in its receptors without switching them on, so the tiredness signal doesn't land. It doesn't add energy; it hides the need for rest. The body clears it slowly, so an afternoon coffee is still partly active at bedtime.
In short
- Adenosine is the brain's running tally of time awake; caffeine blocks the receptors that read the tally, so you feel less tired than you are.
- In healthy adults, half of a dose is still in the blood about 3 to 7 hours later, which is why timing matters for sleep.
- Regular use makes the brain grow more adenosine receptors, so the same dose does less, and stopping suddenly brings headaches and fatigue for a few days.
What does adenosine have to do with feeling tired?
Every active brain cell burns energy, and one by-product is adenosine. Through the day it accumulates in the spaces between neurons, and as it binds to its receptors, mainly the types called A1 and A2A, it slows down activity in the circuits that keep you alert. The result is sleep pressure: the growing urge to sleep that builds with each hour awake and is the reason a late night leaves you foggy. During sleep, adenosine levels fall again, which is part of why we sleep and why a good night clears the fog.
Sleep pressure is one of two systems that time sleep. The other is the circadian clock, the roughly 24-hour rhythm set by daylight, which pushes alertness up and down across the day whatever your adenosine level. Caffeine acts on the first system, not the second.
How does caffeine block it?
Caffeine is a small molecule that the gut absorbs almost completely, most of it within about 45 minutes, with blood levels peaking within one to two hours. It crosses easily into the brain, where its shape lets it fit adenosine's receptors. Caffeine is a receptor blocker: it occupies the lock without turning it, so adenosine can't deliver its message.
With the brake released, the brain's alerting systems run more freely. Blocking A2A receptors in particular frees up signaling by dopamine in parts of the brain involved in motivation and movement, which is part of why coffee can lift mood and make effort feel easier. Outside the brain, caffeine can raise heart rate and blood pressure for a while, relax some airways and act as a mild diuretic.
The adenosine doesn't go away while caffeine is on board. It keeps building, and as the caffeine is cleared, the receptors come free for the adenosine that has piled up in the meantime. That is the familiar crash: the sleepiness was there all along.
Why does caffeine last so long?
The liver breaks caffeine down, mainly with an enzyme called CYP1A2, and it does so slowly. In healthy adults the half-life, the time it takes for the amount in the blood to fall by half, is about 3 to 7 hours, and often around 5. It varies a great deal between people. Smoking speeds clearance up, shortening the half-life by 30% to 50% in adult male smokers. Estrogen-containing birth control pills roughly double the half-life, and late in pregnancy it can stretch to about 15 hours. Newborns clear caffeine far more slowly still.
A worked example shows what a half-life means for the evening. Suppose someone drinks a large coffee with 200 milligrams (mg) of caffeine at 3 p.m. and has a 5-hour half-life.
| Time | Hours since the coffee | Caffeine still in the body |
|---|---|---|
| 3 p.m. | 0 | 200 mg |
| 8 p.m. | 5 | 100 mg |
| 1 a.m. | 10 | 50 mg |
| 6 a.m. | 15 | 25 mg |
At 8 p.m., about the time many people start to wind down, 100 mg is still active, roughly what a small cup of brewed coffee holds. The European Food Safety Authority has concluded that a single 100 mg dose close to bedtime may affect how long and how well some adults sleep. For someone with a 7-hour half-life, the 100 mg point arrives at 10 p.m. instead.
Does afternoon coffee really affect sleep?
It does, often more than people notice. In a 2013 study in the Journal of Clinical Sleep Medicine, 12 healthy sleepers took 400 mg of caffeine at bedtime, 3 hours before or 6 hours before, or a placebo, and wore a sleep monitor at home. Even the dose 6 hours before bed cut measured sleep by more than an hour. Their own sleep diaries showed a smaller loss that wasn't statistically clear, likely because short awakenings go unremembered.
Caffeine tends to delay falling asleep, reduce deep sleep and make sleep lighter. A poorer night raises tiredness the next day, which invites more coffee, which can make the next night worse. Breaking that loop is a common reason sleep specialists ask about caffeine first.
Why does coffee stop working, and is withdrawal real?
Regular use changes the brain's side of the lock. Faced with receptors that are blocked every day, the brain responds by making more adenosine receptors, which is the main explanation researchers give for tolerance. A daily coffee drinker then needs caffeine just to feel normal, and gets less of a lift from the same dose than a non-drinker would. Much of the morning boost regular drinkers feel is relief from mild overnight withdrawal rather than a gain above their true baseline.
Stopping suddenly exposes all those extra receptors to the day's adenosine. A 2004 review by Laura Juliano and Roland Griffiths at Johns Hopkins pooled the experimental studies of caffeine withdrawal. Headache appeared in about half of people. Fatigue, low energy, drowsiness, difficulty concentrating, low mood and irritability were also confirmed. Symptoms typically began 12 to 24 hours after the last dose, peaked between 20 and 51 hours, and lasted 2 to 9 days. Withdrawal is now recognized as a diagnosis in psychiatry's main manual, the DSM-5.
This explains; it isn't medical advice
Regulators publish reference amounts: the US Food and Drug Administration says 400 mg a day is not generally linked to harmful effects in healthy adults, and the European Food Safety Authority set 200 mg a day as the level that raises no concerns in pregnancy. These are population figures, not personal targets. Pregnancy, breastfeeding, heart conditions, anxiety, sleep problems and many medicines change how caffeine affects someone, so the right amount is a question for a doctor or pharmacist.
What does caffeine not do?
It doesn't replace sleep. It masks sleep pressure, but the mental slips and the health effects of short sleep still build up. It doesn't sober anyone up after alcohol: a person who drinks coffee after drinking is just as impaired, only more awake. And more isn't better. The FDA notes that toxic effects such as seizures have been seen with rapid intake of about 1,200 mg, less than half a teaspoon of pure powdered caffeine, which is why the agency warns about concentrated products.
What it does do is reliable: modest, well-studied boosts to alertness and reaction time, especially in a tired person. Caffeine is the world's most widely used psychoactive drug, and understanding the adenosine trick is the key to using it without paying for it at night.
Check yourself
- Without looking back: why does caffeine make you feel less tired without giving you energy?
- If a dose has a 6-hour half-life, how much of 120 mg taken at noon is left at midnight?
- Why do regular coffee drinkers get headaches when they skip a day?
Sources
- Spilling the beans: how much caffeine is too much? — U.S. Food and Drug Administration, 2024
- Caffeine — European Food Safety Authority, 2015
- Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed — Drake, Roehrs, Shambroom and Roth, Journal of Clinical Sleep Medicine, 2013
- A critical review of caffeine withdrawal — Juliano and Griffiths, Psychopharmacology, 2004
- Caffeine — Wikipedia