Bodyvault

Research explained

How long does caffeine last? Caffeine and sleep, explained

Caffeine lasts longer than many people expect. Its half-life averages about 5 hours: the time your body takes to clear half of it. In a 2023 review of 24 studies, caffeine cut sleep by 45 minutes on average. A cup of coffee needed 8.8 hours before bed.

By the Bodyvault team · · 12 min read

Cover: how long caffeine lasts, with a curve of caffeine leaving the body over a day.

The short answer

  • −45min

    Less sleep with caffeine, on average, across 24 studies

  • 8.8h

    How long before bed to have your last cup of coffee (107 mg)

  • 13.2h

    How long before bed to have one serving of pre-workout (217.5 mg)

  • ≈5h

    Average half-life of caffeine. It ranges from about 1.5 to 9.5 hours.

Key findingBoth the dose and the timing matter. A cup of black tea made no clear difference at any time. For a 10 p.m. bedtime, finish a cup of coffee by about 1 p.m. A single 400 mg dose disturbed sleep even 12 hours before bed.

What caffeine does to a night’s sleep

While you are awake, a chemical called adenosine slowly builds up in your brain and makes you feel sleepy. Caffeine blocks it, so you feel more alert. But caffeine can still be blocking it when you go to bed.

A 2023 review combined 24 careful studies of healthy adults aged 18–65. In most, each person slept some nights after caffeine and some without, so the nights could be fairly compared. Caffeine shortened sleep and made it take longer to fall asleep. It also added time awake in the night and cut deep sleep.

How caffeine changed a night’s sleep, in minutes

  • Total sleep−45.3 (−61.5 to −29.0)
  • Deep sleep−11.4 (−18.5 to −4.3)
  • Time to fall asleep+9.1 (3.8 to 14.4)
  • Time awake in the night+11.8 (2.5 to 21.0)
  • Light sleep+6.1 (2.3 to 9.9)
Caffeine compared with no caffeine. Lines and brackets show the likely range. Source: Gardiner et al. (2023). The share of time in bed spent asleep fell by 7 points (likely range 4–10). REM (dreaming) sleep showed no clear change.

A newer 2025 review combined 22 trials with 956 healthy adults, using full overnight sleep tests. It found a similar picture: about 35 minutes less sleep, 8 more minutes to fall asleep and less deep sleep. Sleep got shorter in both younger and middle-aged adults.

Lost sleep can become a loop. After a poor night, people often reach for more caffeine, which can disturb the next night too.

How long before bed should you stop?

The 2023 review used dose and timing to find a cut-off for common drinks. The cut-off is the point where the review could no longer be sure that caffeine cut your sleep.

How long before bed to stop, by drink

Hours before bedtime

  • Black tea, 250 ml47 mg of caffeineno cut-off
  • Coffee, 250 ml107 mg8.8 h
  • Pre-workout, one serving217.5 mg13.2 h
Source: Gardiner et al. (2023). Black tea caused no clear loss of sleep at any time. The model still predicts a small loss at each cut-off, so treat it as a minimum gap.
Caffeine cut-offs from the 2023 review (Gardiner et al.)
Drink (typical caffeine)Stop this long before bedLatest time for a 10 p.m. bedtime
Black tea, 250 ml (47 mg)No cut-off foundAny time
Coffee, 250 ml (107 mg)8.8 hours1:12 p.m.
Pre-workout, one serving (217.5 mg)13.2 hours8:50 a.m.

The same review put numbers on smaller choices. A cup of coffee was predicted to cost about 9 minutes more sleep than a cup of black tea. With a 10 p.m. bedtime, a dose at 3 p.m. would cost about 16 minutes more than at 9 a.m.

A 2025 review combined 10 small studies of 128 athletes who took caffeine before evening training. They took 3–6 mg per kg of body weight, about 210–420 mg for a 70 kg person (our calculation), between 4 p.m. and 7:45 p.m. In four trials, sleep was about 32 minutes shorter on average. But the likely range ran from 70 minutes shorter to 5 minutes longer, so the result isn’t clear. In four of six studies that asked, athletes said they slept worse.

What a 2025 trial added

The same team then tested two doses directly. Twenty-three healthy young men took 100 mg or 400 mg of caffeine 12, 8 or 4 hours before bed. On one day they took only dummy capsules. Each man tried all seven options, in an order picked by chance. He also had his usual caffeine each morning. A forehead sensor measured sleep at home. 100 mg is about one cup of coffee, and 400 mg is about four.

100 mg, about one cup of coffee

  • No clear change in any sleep measure
  • Not even when taken 4 hours before bed
  • Authors: 100 mg can be taken up to 4 hours before bed

400 mg, about four cups at once

  • 4 hours before bed: 50.6 minutes less sleep
  • 8 hours before: 29.1 more minutes awake in the night
  • 12 hours before: 20.6 minutes less deep sleep

Deep sleep lost after 400 mg of caffeine

Minutes of deep sleep lost, compared with a dummy capsule

  • 12 hours before bed−20.6 min
  • 8 hours before bed−15.3 min
  • 4 hours before bed−29.7 min
Source: Gardiner et al. (2025), 23 healthy young men. 100 mg caused no clear change at any time. The men rated their sleep quality as worse only after the 4-hour dose.

The trial and the 2023 review don’t fully agree. In the trial, 100 mg made no clear difference even 4 hours before bed. The review predicts some lost sleep from a 107 mg coffee taken within 8.8 hours of bed. Both rest on small groups of young, healthy people. So treat 8.8 hours as a careful starting point, and adjust it to your own sleep.

How long does caffeine last?

Your body takes in almost all the caffeine you swallow: 99% within 45 minutes. The level in your blood peaks 15 to 120 minutes after you drink it. Then your body clears it slowly. The half-life is the time it takes to clear half. In healthy adults it is about 5 hours on average, but it can be anywhere from 1.5 to 9.5 hours. In one small study of 10 healthy young men, it ranged from 2.7 to 9.9 hours.

Estimated caffeine left after one dose

  • 5-hour half-life (average)
  • 3-hour half-life (faster)
  • 7-hour half-life (slower)
Estimated caffeine left after one doseWith a 5-hour half-life, 57% of a dose is left after 4 hours, 33% after 8, 25% after 10 and 19% after 12. With a 7-hour half-life, 30% is left after 12 hours. 0%25%50%75%100% 04812162024 Hours after drinking Share of the dose still in your body half 25% Estimated caffeine left after one doseWith a 5-hour half-life, 57% of a dose is left after 4 hours, 33% after 8, 25% after 10 and 19% after 12. With a 7-hour half-life, 30% is left after 12 hours. 0%25%50%75%100% 06121824 Hours after drinking Share left half 25%
Our calculation: amount left = dose × 0.5^(hours ÷ half-life). It ignores the time caffeine takes to be absorbed. Your own half-life may be shorter or longer.
Caffeine left with a 5-hour half-life, and the range for 3–7 hours (our calculation)
Hours after drinking100 mg (about one coffee)200 mg
4 hours57 mg (40–67)115 mg (79–135)
8 hours33 mg (16–45)66 mg (31–91)
12 hours19 mg (6–31)38 mg (13–61)

So with an average half-life, about a quarter of a noon coffee is still in your body at 10 p.m. (our calculation).

Several things change your half-life. Birth control pills tend to double it. Smoking about doubles how fast you clear caffeine. In pregnancy, the half-life is on average 8.3 hours longer. Genes matter too. One liver enzyme, CYP1A2, breaks down 95% of caffeine, and common differences in it make clearance vary a lot between people. If you are pregnant, take regular medicines or have a liver condition, ask your doctor about caffeine. Try different doses and half-lives in the caffeine calculator.

You may not notice it

In a well-known 2013 study, 12 healthy sleepers took 400 mg of caffeine at bedtime, 3 hours before or 6 hours before. All three timings disturbed their sleep. Even at 6 hours, a sleep monitor showed more than an hour less sleep. Yet at 6 hours, their sleep diaries showed no clear change. The 2025 trial found something similar: the men rated their sleep quality as worse only after the 4-hour dose. So when you test your caffeine habits, check measured sleep, not only how rested you feel.

Safety limits are not sleep limits

Europe’s food safety agency, EFSA, says healthy adults can have up to 400 mg a day, spread out, without safety concerns. The same goes for single doses up to 200 mg. In pregnancy and breastfeeding, the level is 200 mg a day. EFSA also says a single 100 mg dose may affect sleep in some adults, especially near bedtime. So 400 mg a day is a safety limit. It is not a dose that leaves your sleep alone.

Claims and evidence

  • ClaimIf I can fall asleep after coffee, it isn’t affecting my sleep.

    EvidenceCaffeine also added time awake in the night and cut deep sleep. People often didn’t notice.

  • ClaimCaffeine wears off in a few hours, so a mid-afternoon coffee is fine.

    EvidenceThe average half-life is about 5 hours and can reach 9.5. The cut-off for one coffee was 8.8 hours before bed.

  • ClaimA strong dose in the morning can’t affect tonight’s sleep.

    Evidence400 mg taken 12 hours before bed still cut deep sleep by 20.6 minutes. A 217.5 mg pre-workout needed 13.2 hours.

  • ClaimAny caffeine in the evening is a problem, even tea.

    EvidenceDose matters. A cup of black tea (47 mg) had no cut-off. In the trial, 100 mg taken 4 hours before bed made no clear difference.

  • ClaimWait 90 minutes after waking for your first coffee, or you’ll crash in the afternoon.

    EvidenceA 2024 review of common caffeine questions found no evidence for this. A later first coffee could also push your last one later, which could hurt your sleep.

What this means for you

What this means for you

  • For a 10 p.m. bedtime, have your last coffee by about 1 p.m. Shift that with your own bedtime.
  • Keep strong doses, such as a pre-workout, for the morning, at least 13 hours before bed. If you train in the evening, try it without caffeine.
  • Tea and small doses later in the day seem to matter much less.
  • If your sleep seems worse, check your caffeine timing. Measured sleep can show what you don’t feel.
  • Pregnant, taking medicines or managing a health condition? Ask your doctor or pharmacist about caffeine.

What the research can’t tell you yet

  • Everyone’s response. Most people studied were young, healthy adults with low or moderate caffeine habits. Heavy coffee drinkers, older adults, teenagers and women on the pill may respond differently.
  • Several cups a day. The 2023 review used only the last dose of the day, so it may miss the effect of several cups.
  • Your own cut-off. Cut-offs mark where lost sleep stopped being clear, not where it disappears. Your half-life may also differ a lot from the average.
  • Evening training. Only a few small studies, mostly of young men, tested caffeine before evening exercise. Whether evening exercise itself harms sleep is in working out before bed.

How Bodyvault uses this research

Bodyvault adds up the caffeine in the food and drinks you log, and in supplements such as pre-workouts. If you turn on reminders, it times a caffeine cut-off from your biggest serving of the day, using the cut-offs in this research. A cup of tea (50 mg or less) needs none. A coffee means about 9 hours before bed, and a strong pre-workout about 13. You can set a longer gap of your own, up to 14 hours. Over time, it also compares days with caffeine after 2 p.m., from food or supplements, with days without. It tells you only when the difference in your Sleep score or Readiness is clear. Try the caffeine calculator and the sleep calculator, or see how a sleep score works.

Share or cite this explainer

Bodyvault (2026). How long does caffeine last? Caffeine and sleep, explained. https://bodyvault.app/blog/caffeine-and-sleep

The charts on this page may be reused with a link back to it. The underlying data belong to the studies cited below.

Questions

How long does caffeine last?

Caffeine’s half-life is about 5 hours on average in healthy adults, but it can be anywhere from about 1.5 to 9.5 hours. With an average half-life, about a quarter of a dose is still in your body 10 hours later (our calculation).

What is the half-life of caffeine?

It is the time your body takes to clear half of the caffeine: about 5 hours on average. Birth control pills tend to double it, and smoking makes your body clear it faster.

When should I stop drinking caffeine before bed?

A 2023 review put the cut-off at 8.8 hours before bed for a cup of coffee (107 mg). For a pre-workout (217.5 mg), it was 13.2 hours. Black tea had no cut-off.

Is it OK to drink tea in the evening?

A cup of black tea (about 47 mg of caffeine) caused no clear loss of sleep at any time in the 2023 review. People clear caffeine at different speeds, though.

How long does a pre-workout keep you awake?

For a serving with 217.5 mg of caffeine, the 2023 review’s cut-off was 13.2 hours before bed. Athletes who took caffeine before evening training often said they slept worse.

Sources

  1. Gardiner C et al. (2023). The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev 69:101764.
  2. Gardiner CL et al. (2025). Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial. Sleep 48(4):zsae230.
  3. Chang YH, Cheng YC, Cheng WJ (2025). Age- and dose-specific effects of caffeine on sleep: a meta-analysis of controlled crossover trials. Sleep Med 136:106874.
  4. Kocak A et al. (2025). The effect of consuming caffeine before late afternoon/evening training or competition on sleep: a systematic review with meta-analysis. Sports (Basel) 13(9):317.
  5. Drake C et al. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med 9(11):1195–1200.
  6. EFSA Panel on Dietetic Products, Nutrition and Allergies (2015). Scientific opinion on the safety of caffeine. EFSA J 13(5):4102.
  7. Antonio J et al. (2024). Common questions and misconceptions about caffeine supplementation: what does the scientific evidence really show? J Int Soc Sports Nutr 21(1):2323919.
  8. Temple JL et al. (2017). The safety of ingested caffeine: a comprehensive review. Front Psychiatry 8:80.
  9. Blanchard J, Sawers SJ (1983). The absolute bioavailability of caffeine in man. Eur J Clin Pharmacol 24(1):93–98.
  10. Nehlig A (2018). Interindividual differences in caffeine metabolism and factors driving caffeine consumption. Pharmacol Rev 70(2):384–411.

General information about fitness and nutrition, not medical advice. If you have a health condition, are pregnant or take medication, talk to your doctor before changing your diet or training.