Ages

Now you know how caffeine works!

What next?

Try it yourself ↓

How does caffeine work?

▶ 4:11 video · Watch on YouTube

  1. 0:00 Start
  2. 0:32 The sleepy jar
  3. 1:07 A key that doesn't turn
  4. 1:44 When it wears off
  5. 2:31 Where caffeine comes from
  6. 3:04 Why coffee can make you sleepy

Your turn

Play with sleep pressure and caffeine

Each lab is one idea from the video. These are simple toy models, not medical tools.

1

The sleepy jar

Stay awake longer and watch adenosine fill the jar. Then sleep it away.

2

Keys and locks

Blue adenosine keys turn the locks. Coral caffeine keys sit in them and don't turn.

3

The bedtime check

How much of a grown-up's coffee is still in the body at bedtime?

How does caffeine work? The short answer

Caffeine doesn't give your body energy. It works by blocking a sleepy signal in the brain. While you are awake, a chemical called adenosine slowly builds up in the brain, and the more there is, the sleepier you feel.34 Caffeine has almost the same shape as adenosine, so it sits on adenosine's landing spots, called receptors, without switching them on. The tired message is blocked, and you feel more alert.14

What is adenosine, and why does it make you sleepy?

Your brain cells use energy all day. As they work, a substance called adenosine is left over.4 Scientists have measured that adenosine rises in parts of the brain the longer an animal stays awake and falls again during sleep.3 This growing need for sleep is called sleep pressure. In the video we draw it as a jar that fills during the day and empties at night. That's a picture, not a real jar: adenosine isn't stored in one place.

How does caffeine block adenosine? (the lock and key)

  1. Receptors are the locks. Brain cells have adenosine receptors on their surface. There are four kinds, and caffeine blocks all of them.1
  2. Adenosine is the key. When adenosine binds, it calms down cells that help keep you awake.3
  3. Caffeine is a look-alike key. Caffeine is very close in structure to adenosine, so it attaches to the same receptors but doesn't trigger the sleepy signal.4
  4. The result. With caffeine in the way, adenosine can't land, so you feel less tired. Scientists call a blocker like this an antagonist.12

Caffeine dissolves in both water and fat, which helps it pass easily from the blood into the brain.1

How long does caffeine last?

Caffeine is taken up quickly: nearly all of it is absorbed within about 45 minutes, and blood levels peak somewhere between 15 minutes and 2 hours after a drink.2 The liver then breaks it down and the kidneys clear it out.2

In an average adult, about half the caffeine is gone after roughly 5 hours. That time, the half-life, varies a lot, from about 1.5 to 9.5 hours, depending on things like smoking, pregnancy and other factors.12 So a cup at 8 a.m. is about half gone by 1 p.m., and about a quarter is still there at 6 p.m.

Time after one grown-up's cupCaffeine left (average adult)
0 hours100%
5 hoursabout 50%
10 hoursabout 25%
15 hoursabout 12%

Why does coffee make me sleepy?

Coffee is meant to wake people up, so feeling sleepy afterwards is a puzzle. There are a few likely reasons:7

  • The crash. Caffeine blocks adenosine, but it doesn't remove it. Adenosine keeps building up in the background, so when the caffeine wears off, the tiredness can arrive all at once.7
  • Not enough sleep. Caffeine can hide tiredness for a while, but it doesn't replace sleep. If you're short on sleep, the sleepiness comes back.7
  • Caffeine late in the day. In a review of 24 studies, caffeine cut total sleep by about 45 minutes and reduced deep sleep.8 Even a large dose 6 hours before bed disturbed sleep.9 A worse night means a sleepier next day.
  • Tolerance. Regular, heavy caffeine use can make the brain add more adenosine receptors, so the same amount works less well, and people feel tired or get headaches without it.2

Where does caffeine come from?

Caffeine is made by plants. It's found in coffee, tea, guarana, maté, kola nuts and cacao.4 In total, more than 60 kinds of plants make it, in their leaves, seeds or fruit.6 Coffee beans are the seeds of the coffee plant's red fruit, often called coffee cherries.4

Why would a plant make caffeine? Caffeine tastes bitter,4 and in 1984 a Harvard scientist reported in the journal Science that caffeine can act as a natural pesticide: it harms insects that feed on the plant.11

Is caffeine bad for kids?

Kids' bodies are smaller, so the same amount of caffeine has a bigger effect. Children's doctors advise against energy drinks for children and teens because of their sugar and caffeine,5 and they suggest skipping coffee too: caffeine raises heart rate and blood pressure in teens.10 The U.S. Dietary Guidelines say water and plain milk should be the main drinks for children and teens.5 Kids' health experts say kids under 12 should probably skip caffeine altogether.12 For most healthy adults, the U.S. Food and Drug Administration cites 400 mg a day (about two to three 12-ounce cups of coffee) as an amount not generally linked to harmful effects, but people's sensitivity varies a lot.5 If you have questions about caffeine and your family, ask your doctor.

How much caffeine is in drinks and food?

Drink or foodCaffeine (about)
Coffee, 8 fl oz95 mg6
Decaf coffee, 8 fl oz2 to 15 mg5
Tea, one cupabout 40 mg on average (varies a lot)4
Cola, 12 fl ozabout 40 mg4
Hot cocoa, chocolatea little12

Misconceptions

"Caffeine gives you energy." It doesn't add energy. It blocks the brain's tired signal for a while.47
"Coffee dehydrates you." Caffeine makes you pee a bit more, but in normal amounts the water in the drink balances that out.13
"Decaf has no caffeine." Decaf still has a little: about 2 to 15 mg in a cup.5
"Caffeine replaces sleep." It only hides tiredness. Adenosine clears away during sleep.37

Keep exploring

Curious what happens while you sleep? See how dreams work. And where does chocolate come from? How chocolate is made. ← More explainers

FAQ

How does caffeine work, in simple words?

While you are awake, a substance called adenosine builds up in your brain and makes you feel sleepy. Caffeine has almost the same shape, so it sits on adenosine's landing spots (receptors) without switching them on. The sleepy signal is blocked, so you feel more alert.

Why does coffee make me sleepy?

Caffeine blocks adenosine but doesn't remove it. Adenosine keeps building up, so when the caffeine wears off, the tiredness can arrive all at once. Poor sleep from caffeine late in the day and tolerance from drinking a lot every day can also leave people feeling tired.

How long does caffeine last?

In an average adult, about half of the caffeine is gone after roughly 5 hours, but this ranges from about 1.5 to 9.5 hours from person to person. A morning cup can still be partly in the body by evening, which is why caffeine late in the day can make it harder to fall asleep.

Where does caffeine come from?

Caffeine is made by plants, including coffee, tea, cacao, guarana, maté and kola nuts. More than 60 kinds of plants make it. It tastes bitter and can harm insects that eat the plant, so scientists think it works like a natural pesticide.

Is caffeine bad for kids?

Children's doctors advise against energy drinks for children and teens, and suggest skipping coffee too, because caffeine can raise heart rate and blood pressure and disturb sleep. Water and plain milk are the best everyday drinks for kids. Kids' health experts say kids under 12 should probably skip caffeine altogether.

Does decaf coffee have caffeine?

Yes, a little. The U.S. Food and Drug Administration says decaf coffee typically has 2 to 15 milligrams of caffeine in an 8-ounce cup. For comparison, the U.S. Department of Agriculture lists about 95 milligrams for an 8-ounce cup of regular coffee.

Does chocolate have caffeine?

Yes, a small amount, because chocolate is made from cacao beans, which contain caffeine. Hot cocoa has a little too. Both have much less caffeine than a cup of coffee.

Does coffee dehydrate you?

Not in normal amounts. Caffeine makes the body make a bit more urine, but the water in the drink balances that out. Water is still the best drink for staying hydrated.

Did this help it click?

Sources

  1. NIH StatPearls (NCBI Bookshelf), Caffeine
  2. NIH StatPearls (NCBI Bookshelf), Caffeine Withdrawal
  3. Porkka-Heiskanen et al., Adenosine in sleep and wakefulness (PubMed)
  4. Encyclopaedia Britannica, Caffeine
  5. U.S. Food and Drug Administration, Spilling the Beans: How Much Caffeine is Too Much?
  6. USDA Agricultural Research Service, Caffeine-Containing Botanicals (AgResearch, 2009)
  7. Sleep Foundation, Why Does Coffee Make Me Sleepy? (sleep-faqs/why-does-coffee-make-me-tired)
  8. Gardiner et al. (2023), The effect of caffeine on subsequent sleep: a systematic review and meta-analysis (PubMed)
  9. Drake et al. (2013), Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed (PubMed)
  10. HealthyChildren.org (American Academy of Pediatrics), Breakfast for Learning
  11. The Harvard Crimson (1984), Caffeine Kills Insects, Scientist Says (on Nathanson, Science 226:184)
  12. Nemours KidsHealth, Caffeine (for kids)
  13. Mayo Clinic, Caffeine: Is it dehydrating or not?