How Long Before Bed Should You Stop Drinking Coffee? Caffeine Half-Life and Sleep
Author: Ukrainian Psychological Hub · Published: September 28, 2026 · Editorial Policy
For most adults who want a practical starting point, stop regular caffeinated coffee about 8–9 hours before your usual bedtime. That range is a useful starting rule, not a universal biological cutoff. A 2023 systematic review and meta-analysis modeled that a 250 mL coffee containing 107 mg of caffeine should be consumed at least 8.8 hours before bedtime to avoid a detectable reduction in total sleep time across the pooled evidence. The same analysis found that caffeine, overall, shortened total sleep time, reduced sleep efficiency, delayed sleep onset, increased wake time after sleep onset, and reduced deep sleep. Gardiner et al., 2023
Dose changes the answer substantially. A randomized crossover trial published in 2025 found no significant objective or subjective sleep effect from 100 mg of caffeine when it was taken 4, 8, or 12 hours before bedtime in a small sample of 23 young men with moderate habitual caffeine intake. In the same study, a single 400 mg dose disrupted objective sleep when taken as early as 12 hours before bed, with stronger disruption as caffeine moved closer to bedtime. Gardiner et al., 2025
The practical implication is simple: the question is not only “How many hours before bed?” It is “How much caffeine, how sensitive are you, and what sleep outcome are you trying to protect?” An 8–9 hour cutoff is a sensible conservative starting point for ordinary caffeinated coffee. A small dose may be tolerated later by some people. A large dose may require a much earlier cutoff.
The Short Answer: When Should You Stop Drinking Coffee Before Bed?
If you want one usable rule, start here:
• For a regular caffeinated coffee around the 100 mg range, use about 8–9 hours before bedtime as your first cutoff.
• If you are very caffeine-sensitive, have fragile sleep, are trying to improve sleep quality, or notice that afternoon coffee affects you, move the cutoff earlier.
• If you consume a high single caffeine dose around 400 mg, a 6-hour cutoff is not conservative enough. Controlled evidence has found sleep disruption at 6 hours, and newer evidence found objective effects as far as 12 hours before bedtime. Drake et al., 2013 Gardiner et al., 2025
• If you consume only a small amount, the necessary cutoff may be later. The 2025 trial found no significant sleep effect from 100 mg at 4 hours before bed in its specific small sample, but that result does not prove that 4 hours is safe for every sleeper.
• If you work nights or sleep during the day, calculate backward from your intended sleep time rather than from a conventional clock time.
The cutoff should therefore be treated as a personal boundary built from evidence, dose, and your own repeatable sleep pattern.
For the broader question of how caffeine changes sleep quality, sleep latency, deep sleep, and sleep architecture, see Coffee and Sleep: How Caffeine Timing, Dose, and Sensitivity Affect Rest.
Why 8–9 Hours Is a Useful Starting Point
The strongest direct quantitative estimate comes from the 2023 meta-analysis by Gardiner and colleagues. Across 24 included studies, caffeine reduced total sleep time by about 45 minutes, reduced sleep efficiency by 7 percentage points, increased sleep-onset latency by about 9 minutes, increased wake after sleep onset by about 12 minutes, and reduced deep sleep duration. Their modeling estimated that a coffee containing 107 mg of caffeine per 250 mL should be consumed at least 8.8 hours before bedtime to avoid a reduction in total sleep time. Gardiner et al., 2023
Eight-point-eight hours means 8 hours and 48 minutes. If you applied that model literally, the approximate cutoff would be:
• 9:00 p.m. bedtime → about 12:12 p.m.
• 10:00 p.m. bedtime → about 1:12 p.m.
• 11:00 p.m. bedtime → about 2:12 p.m.
• 12:00 a.m. bedtime → about 3:12 p.m.
• 1:00 a.m. bedtime → about 4:12 p.m.
Those times look unusually precise because they come from a statistical model. They are not personal biological deadlines. It is more honest to translate the result into a practical starting range of roughly 8–9 hours and then adjust according to dose and observed sleep.
This also explains why the popular “no coffee after 2 p.m.” rule sometimes works and sometimes makes little sense. A 2 p.m. cutoff is about nine hours before an 11 p.m. bedtime, but only seven hours before a 9 p.m. bedtime and eleven hours before a 1 a.m. bedtime. The clock time is secondary. The interval before intended sleep is what matters.
Why the 6-Hour Rule Is Too Simple
A widely repeated recommendation is to stop caffeine six hours before bed. That rule has a real evidence base, but it should not be treated as a universal threshold.
In a 2013 randomized study, 400 mg of caffeine was administered at bedtime, 3 hours before bedtime, or 6 hours before bedtime. The 400 mg dose significantly disrupted sleep even when taken 6 hours before bed. The authors concluded that substantial caffeine consumption at least six hours before bedtime can reduce sleep. Drake et al., 2013
The critical detail is dose. Four hundred milligrams is a high single dose. Coffee servings vary widely in caffeine content; the U.S. Food and Drug Administration lists 113–247 mg as a typical range for 12 fluid ounces of regular brewed non-specialty coffee and emphasizes that actual amounts vary by product and serving. U.S. Food and Drug Administration
So “six hours before bed” should not be read as “all coffee is harmless if you finish it six hours before sleep.” It means that a high caffeine dose can still matter six hours later.
The newer 2025 crossover trial pushes this further: 400 mg altered objective sleep when consumed within 12 hours of bedtime. That does not mean every person must stop every caffeinated drink 12 hours before sleep. It means that a large dose can remain physiologically relevant much longer than many people expect. Gardiner et al., 2025
What the 2025 100 mg vs 400 mg Study Changes
The 2025 Gardiner trial is especially useful because it directly compared a more typical caffeine dose with a high dose at several distances from bedtime.
Twenty-three men, average age about 25 years, with moderate habitual caffeine intake completed seven conditions in a double-blind randomized crossover design: placebo, 100 mg of caffeine at 12, 8, or 4 hours before bed, and 400 mg at the same time points. Gardiner et al., 2025
The results were strikingly dose-dependent:
• 100 mg did not produce a statistically significant change in the measured objective or subjective sleep outcomes at 4, 8, or 12 hours before bedtime.
• 400 mg delayed sleep initiation and altered sleep architecture when taken within 12 hours of bedtime.
• 400 mg increased sleep fragmentation when taken within 8 hours.
• At 4 hours before bedtime, 400 mg reduced total sleep time by about 51 minutes, reduced sleep efficiency by about 9.5 percentage points, increased sleep-onset latency by about 14 minutes, and increased wake after sleep onset by about 26 minutes.
• Participants did not always accurately perceive the objective sleep disruption caused by caffeine.
The study does not establish a universal “100 mg is fine four hours before bed” rule. Its sample was small, male, relatively young, and moderately habituated to caffeine. It does show why a single timing rule without dose is scientifically weak.
The 2023 meta-analysis and the 2025 trial should be read together. The meta-analysis provides a broad pooled estimate and an 8.8-hour modeled cutoff for a 107 mg coffee. The 2025 trial provides direct experimental evidence that 100 mg may have little measurable effect four hours before bed in one specific population while 400 mg can remain disruptive much earlier in the day. The apparent tension is useful: it tells us that timing guidance is probabilistic and individual rather than a clockwork law.
Caffeine Half-Life: What It Actually Means
Caffeine half-life is the time required for the amount of caffeine in the body to fall by half.
A commonly cited average plasma half-life in healthy adults is about five hours, but reported values vary substantially. An Institute of Medicine review gives a range of roughly 1.5 to 9.5 hours and notes that pregnancy, oral contraceptive use, smoking, altitude, and other physiological or environmental factors can alter clearance. Institute of Medicine / NCBI Bookshelf
A modern systematic analysis of 141 publications likewise found substantial interindividual variability in caffeine pharmacokinetics and identified smoking, oral contraceptive use, drug interactions, and disease as relevant sources of variation. Caffeine is metabolized mainly in the liver through the cytochrome P450 system, particularly CYP1A2. Grzegorzewski et al., 2022
Using a five-hour half-life only as an illustration:
• If you consume 100 mg, about 50 mg would remain after 5 hours.
• About 25 mg would remain after 10 hours.
• About 12.5 mg would remain after 15 hours.
• About 6.25 mg would remain after 20 hours.
This is a simplified exponential-decay example. Your actual caffeine concentration does not follow a personal clock that can be inferred from one cup and one assumed half-life.
Why “One Half-Life Before Bed” Is Not a Sleep Rule
A common mistake is to say, “Caffeine has a five-hour half-life, so five hours before bed is enough.”
Half-life is a pharmacokinetic quantity. Sleep disruption is a physiological and behavioral outcome. They are related, but they are not the same thing.
If a person consumes 200 mg of caffeine and has a five-hour half-life, approximately 100 mg remains after five hours. If another person consumes 60 mg, the same half-life leaves about 30 mg. Equal timing can therefore produce very different remaining caffeine loads.
The relationship becomes even more variable because people differ in adenosine signaling, caffeine metabolism, habitual exposure, sleep pressure, circadian phase, age, and sensitivity. A systematic review of coffee, caffeine, and sleep found pronounced individual differences and noted that genetic variation affecting adenosine neurotransmission and metabolism contributes to differences in sleep sensitivity. Clark & Landolt, 2017
A half-life estimate is therefore useful for understanding persistence, not for declaring a universal bedtime cutoff.
A Better Way to Think About the Cutoff
Think of your caffeine cutoff as the intersection of four variables:
1. Dose
The more caffeine you consume, the more can remain later even if the percentage eliminated is the same.
A strong-tasting coffee is not automatically a high-caffeine coffee, and a mild-tasting drink is not automatically low in caffeine. Flavor intensity, roast character, concentration, serving size, and total caffeine are different properties.
If you need to estimate the amount you are actually consuming, use How Much Caffeine Is in Coffee? Bean, Roast, Brew, Serving Size, and Why Effects Vary.
2. Time before sleep
A late dose leaves less time for elimination before the sleep episode begins. This is the variable people usually notice first, but it cannot be interpreted without dose.
3. Individual clearance
Caffeine metabolism differs between people. Physiological state, smoking, oral contraceptive use, certain medications, liver function, and other factors can shift clearance. Grzegorzewski et al., 2022
This is not a reason to manipulate those factors to change caffeine clearance. It is a reason not to assume that another person's coffee schedule will transfer perfectly to you.
4. Individual sleep sensitivity
Some people experience obvious difficulty falling asleep after caffeine. Others fall asleep quickly but still show changes in sleep duration, fragmentation, or architecture.
That distinction matters because “I can sleep after coffee” is not the same as “coffee does not affect my sleep.”
Why You Can Fall Asleep After Coffee and Still Sleep Worse
Subjective sleep and objective sleep are not identical.
In the 2025 randomized trial, the high 400 mg dose produced objective sleep disruption at time points where participants did not always report a matching subjective deterioration. The researchers explicitly highlighted the discrepancy between objective and subjective sleep quality. Gardiner et al., 2025
This creates a practical psychological trap. People often use sleep onset as their only test:
“I drank coffee at 5 p.m. and fell asleep at 11 p.m., so caffeine does not affect me.”
That observation tells you something, but not everything. You may still sleep for less total time, wake more often, spend less time in deep sleep, or wake feeling less restored.
A 2025 meta-analysis of 22 controlled crossover trials involving 956 participants found that caffeine reduced total sleep time by about 35 minutes, reduced sleep efficiency, increased sleep-onset latency, and reduced the proportion of slow-wave sleep. The pooled effect on REM-sleep proportion was not significant. Chang et al., 2025
This is why a personal cutoff should be judged using more than “Did I fall asleep?”
What Caffeine Is Doing to Sleep Pressure
Caffeine is a psychoactive stimulant. Its most important wake-promoting mechanism at ordinary dietary doses is antagonism of adenosine receptors.
Adenosine signaling is part of the homeostatic sleep-pressure system: sleep pressure tends to build across waking time. By blocking adenosine receptors, caffeine can reduce the subjective and physiological expression of sleepiness even while the body's need for sleep continues to accumulate. Clark & Landolt, 2017
That helps explain the classic coffee paradox: a person can feel temporarily more alert without having “repaid” sleep debt.
The timing effect is not limited to immediate alertness. In a small laboratory study with five participants, caffeine equivalent to a double espresso taken three hours before habitual bedtime delayed the circadian melatonin rhythm by roughly 40 minutes. Because the human sample was extremely small, this finding should be treated as mechanistic evidence rather than a universal estimate of what evening coffee does to everyone's body clock. Burke et al., 2015
How to Calculate Your First Coffee Cutoff
Use this as a practical starting method.
Step 1: Choose the sleep time you actually want to protect
Use your intended sleep time, not the socially conventional idea of “night.”
If you want to sleep at 11:00 p.m., that is your reference point.
If you are a shift worker who plans to sleep at 9:00 a.m., 9:00 a.m. is your reference point.
Step 2: Subtract 8–9 hours
For an 11:00 p.m. bedtime, your first experimental cutoff becomes roughly 2:00–3:00 p.m.
For a midnight bedtime, it becomes roughly 3:00–4:00 p.m.
This is a starting range derived from the 8.8-hour pooled model for a roughly 107 mg coffee, not a medical prescription. Gardiner et al., 2023
Step 3: Count caffeine, not just cups
“Two coffees” is not a dose. Serving size, brew method, beans, recipe, and commercial formulation can change total caffeine.
The FDA's current consumer guidance lists a broad typical range of 113–247 mg for a 12-fluid-ounce regular brewed non-specialty coffee. U.S. Food and Drug Administration
If your afternoon drink is unusually large or high in caffeine, move the cutoff earlier rather than assuming it behaves like a 100 mg reference coffee.
Step 4: Keep the experiment stable
For several comparable days, keep your wake time, approximate morning caffeine, and intended bedtime reasonably stable.
Track:
• time of last caffeine;
• estimated caffeine dose;
• time you went to bed;
• approximate time needed to fall asleep;
• obvious nighttime awakenings;
• wake time;
• how restored you feel on waking;
• unusual stress, alcohol, illness, or schedule disruption.
You do not need laboratory equipment. The goal is to detect a repeatable pattern rather than to turn ordinary sleep into a surveillance project.
Step 5: Move the cutoff earlier if sleep remains poor
If you repeatedly struggle to fall asleep, wake frequently, or feel that sleep improves on caffeine-free afternoons, move the cutoff earlier by about 60–90 minutes and repeat the observation.
If sleep is stable, you can decide whether the earlier boundary is worth keeping.
This process respects both population evidence and individual variability.
Is 4 p.m. Too Late for Coffee?
It depends on your bedtime, dose, and sensitivity.
If you go to bed at 11 p.m., 4 p.m. is only seven hours before bed. That is later than the 8.8-hour modeled cutoff from the 2023 meta-analysis for a 107 mg coffee. Gardiner et al., 2023
For some people, a small coffee at 4 p.m. will not produce a meaningful sleep problem. The 2025 crossover trial found no significant sleep effect from 100 mg taken four hours before bed in its 23 young male participants. Gardiner et al., 2025
For others, especially people who are sensitive, consume a larger dose, metabolize caffeine slowly, or already have unstable sleep, 4 p.m. may be too late.
The useful answer is therefore not “4 p.m. is always safe” or “4 p.m. is always too late.” It is that 4 p.m. falls inside the range where dose and personal sensitivity matter considerably for a conventional nighttime sleeper.
Can You Drink Coffee 6 Hours Before Bed?
You can, but six hours is not a guarantee that sleep will be unaffected.
The strongest classic evidence against treating six hours as a safety boundary comes from the Drake study: 400 mg of caffeine significantly disrupted sleep even when consumed six hours before bedtime. Drake et al., 2013
For a smaller dose, the effect can be less. The 2025 trial found no significant sleep effect from 100 mg at four hours in its specific sample. Gardiner et al., 2025
So the correct translation of the evidence is:
• six hours may be enough for some people after a modest dose;
• six hours may be too short after a large dose;
• your ability to fall asleep does not fully measure sleep quality.
Can Coffee Affect Sleep 8–12 Hours Later?
Yes, especially at higher doses or in slower metabolizers.
The 2025 crossover trial found that a 400 mg dose altered objective sleep when taken within 12 hours of bedtime. Gardiner et al., 2025
The pharmacokinetic reason is easy to understand. With a five-hour illustrative half-life, caffeine does not vanish after five hours. It falls by half. A second half-life is needed to halve the remaining amount again.
For example, under that simplified assumption, a 400 mg dose would leave roughly 76 mg after 12 hours. A person with a longer half-life could retain more.
This is why a large morning or early-afternoon dose can matter at night in some people.
Does Morning Coffee Affect Sleep at Night?
Usually, early-day coffee is less likely to interfere with nighttime sleep than late-day coffee because the body has more time to eliminate caffeine. But “morning” is not automatically sleep-neutral.
Three conditions make morning caffeine more relevant:
• the dose is very large;
• caffeine accumulates across multiple servings through the day;
• the person clears caffeine unusually slowly.
For a person with a conventional nighttime schedule and moderate dose, a morning coffee often leaves a long interval before sleep. For a person who sleeps in the afternoon, “morning coffee” may actually be close to the intended sleep episode.
Timing should therefore be expressed relative to sleep, not by a universal clock hour.
How Coffee Dose Changes the Bedtime Rule
Coffee is a beverage. Caffeine is the pharmacologically active stimulant driving most of the sleep-timing problem.
That distinction matters because coffee caffeine content varies. A large café drink can contain far more caffeine than a small home-brewed serving. Espresso may have a high caffeine concentration per milliliter while a larger brewed coffee may deliver more total caffeine per serving. Roast darkness and bitter taste do not reliably tell you how much caffeine is in the cup.
For timing purposes, total caffeine per serving is more useful than perceived “strength.”
The FDA emphasizes substantial product-to-product variation and lists 113–247 mg as a typical caffeine range for 12 fluid ounces of regular brewed non-specialty coffee. U.S. Food and Drug Administration
For a deeper breakdown, see How Much Caffeine Is in Coffee? Bean, Roast, Brew, Serving Size, and Why Effects Vary.
Safety Limits Are Not Sleep-Neutrality Limits
The FDA states that 400 mg of caffeine per day is an amount not generally associated with negative effects for most adults, while also emphasizing wide individual variation. U.S. Food and Drug Administration
The European Food Safety Authority similarly states that single doses up to 200 mg and total intakes up to 400 mg per day generally do not raise safety concerns for healthy adults, while noting that a 100 mg dose may affect sleep duration and patterns in some adults, particularly when consumed close to bedtime. European Food Safety Authority
These are different questions:
• Safety question: Is this daily intake generally considered safe for most healthy adults?
• Sleep question: Could this dose at this time reduce sleep quality or duration tonight?
A dose can fall within population safety guidance and still be poorly timed for sleep.
Pregnancy, Medications, and Other Reasons the Cutoff May Shift
Generic adult timing rules are less useful when caffeine pharmacokinetics are altered.
Pregnancy can substantially slow caffeine elimination, especially later in pregnancy. Oral contraceptive use and some drug interactions can also alter caffeine clearance, while smoking is associated with faster clearance. A systematic analysis of caffeine pharmacokinetics documents these sources of variability. Grzegorzewski et al., 2022
The EFSA sets a separate pregnancy intake benchmark of up to 200 mg per day as not raising safety concerns for the fetus, and the FDA advises people who are pregnant, trying to become pregnant, breastfeeding, taking medications, or concerned about a medical condition to discuss caffeine intake with a health professional. European Food Safety Authority U.S. Food and Drug Administration
Those safety benchmarks still do not define an individual sleep cutoff. If clearance is slower, caffeine can persist longer, so the generic 8–9 hour starting rule may need to move earlier.
What About Decaf Before Bed?
Decaf is much lower in caffeine than regular coffee, but “decaf” does not mean caffeine-free.
The FDA reports that decaffeinated coffee typically contains about 2–15 mg of caffeine in an 8-fluid-ounce cup. U.S. Food and Drug Administration
For most people, that is a very different exposure from regular caffeinated coffee. But someone who is highly caffeine-sensitive, drinks several decaf servings, or is carefully testing a sleep problem may still want to include decaf in their caffeine accounting.
The ritual itself can also remain psychologically activating for some people if coffee is strongly associated with work, studying, or alertness. That is a learned-context possibility, not evidence that decaf produces the same pharmacological effect as regular coffee.
Does Caffeine Tolerance Mean You Can Drink Coffee Later?
Habitual users often report that coffee “doesn't affect” them. That can reflect tolerance to some subjective effects, learned expectations, or simply reduced awareness of the disruption.
But subjective tolerance should not be treated as proof of sleep neutrality. The 2025 trial is useful here because objective sleep changes after the high dose were not always mirrored by participants' own perception of sleep quality. Gardiner et al., 2025
The safest interpretation is modest: how stimulated you feel is informative, but it is not a complete measure of how caffeine affects sleep.
When the Coffee–Sleep Cycle Becomes Self-Reinforcing
Caffeine can create a practical loop:
1. Sleep is shortened or fragmented.
2. The person feels sleepier the next day.
3. More caffeine is used to restore alertness.
4. Caffeine is consumed later or in larger amounts.
5. The next sleep period is again vulnerable.
This does not mean coffee automatically creates a disorder or dependence. It describes a behavioral feedback loop that can occur when caffeine is used as compensation for insufficient sleep.
The psychological value of a cutoff is that it creates a stable boundary before sleep quality deteriorates enough to demand more compensation the next day.
For broader timing across the entire day, see Best Time to Drink Coffee: Alertness, Sleep, Habit, and Your Daily Rhythm.
How to Test Whether Your Cutoff Is Working
A useful cutoff should improve sleep without demanding impossible precision.
Give your chosen boundary enough time to produce a pattern. One isolated night can be distorted by stress, alcohol, illness, noise, exercise timing, travel, or an unusual schedule.
A practical two-week observation can work like this:
Days 1–5: Observe
Keep your normal routine and record last caffeine time, estimated dose, bedtime, sleep onset, awakenings, and morning restoration.
Days 6–10: Move caffeine earlier
Use an 8–9 hour pre-bed cutoff and keep other variables as stable as reasonably possible.
Days 11–14: Refine
If sleep improved, keep the cutoff. If sleep is still fragile and late caffeine remains plausible, move the boundary another 60–90 minutes earlier.
You are looking for repeatability, not a perfect one-night experiment.
If persistent insomnia, excessive daytime sleepiness, or another sleep problem continues even after caffeine timing is cleaned up, caffeine may be only one part of the picture. A reaction to coffee does not diagnose a sleep disorder.
Common Myths About Coffee Cutoff Times
Myth: Caffeine is gone after five hours
Five hours is a commonly cited average half-life, not an elimination deadline. About half may remain after one half-life under a simplified model. Institute of Medicine / NCBI Bookshelf
Myth: If I can fall asleep, coffee did not affect me
Sleep onset is only one outcome. Total sleep time, efficiency, awakenings, and deep sleep can change even when you do fall asleep. Chang et al., 2025
Myth: Six hours is always enough
A 400 mg dose disrupted sleep at six hours in a controlled study. Drake et al., 2013
Myth: Everyone should stop coffee at 2 p.m.
A clock time ignores bedtime. Two p.m. may be nine hours before one person's bedtime and twelve hours before another's.
Myth: Dark roast is “stronger,” so it must keep you awake longer
Taste intensity is not the same as total caffeine dose. For sleep timing, total caffeine per serving matters more than how strong the coffee tastes.
Myth: 400 mg per day means 400 mg is fine at any time
Population safety guidance is not a sleep-timing recommendation. A 400 mg single dose can disrupt sleep many hours later even if total daily intake remains within a commonly cited adult safety benchmark. Gardiner et al., 2025 U.S. Food and Drug Administration
A Practical Decision Guide
Use the following logic rather than searching for one magical cutoff.
If you drink about 100 mg of caffeine
Start with an 8–9 hour cutoff if protecting sleep is the priority. Some people may tolerate that dose later; a small 2025 trial found no significant effect at four hours in young men, but the broader pooled evidence supports an earlier conservative boundary. Gardiner et al., 2023 Gardiner et al., 2025
If you drink around 200 mg in one sitting
Treat the standard 8–9 hour rule as a minimum starting point rather than a guarantee. Larger doses leave more caffeine in circulation at the same time point.
If you drink around 400 mg in one sitting
Plan much earlier. Controlled evidence supports the possibility of objective sleep disruption as far as 12 hours before bedtime. Gardiner et al., 2025
If you are caffeine-sensitive
Move the cutoff earlier regardless of what a friend or generic calculator says.
If you are unsure how much caffeine is in your coffee
Estimate the drink's total caffeine before you estimate the cutoff. Use product information when available and remember that café serving sizes can be much larger than reference cups.
If you sleep at unusual hours
Count backward from the intended sleep episode. “No coffee after 2 p.m.” is irrelevant if your bedtime is 9 a.m.
FAQ
How long before bed should I stop drinking coffee?
For most adults who want a conservative starting point, about 8–9 hours before habitual bedtime is reasonable for a regular caffeinated coffee around the 100 mg range. The 2023 meta-analysis modeled 8.8 hours for a 107 mg coffee. Dose and individual sensitivity can move the cutoff earlier or later. Gardiner et al., 2023
Is 6 hours before bed enough for coffee?
Not always. A 400 mg caffeine dose disrupted sleep even when taken six hours before bedtime in a controlled study. Smaller doses may be tolerated later by some people. Drake et al., 2013
Can I drink coffee 4 hours before bed?
Some people can without measurable disruption, especially at a modest dose. In a small 2025 trial, 100 mg four hours before bed did not significantly affect measured sleep outcomes, but 400 mg did. The result should not be generalized into a universal four-hour rule. Gardiner et al., 2025
Is 4 p.m. too late for coffee?
For an 11 p.m. bedtime, 4 p.m. is seven hours before sleep, which is later than the 8.8-hour modeled cutoff for a 107 mg coffee. Whether it actually disturbs your sleep depends on dose, metabolism, and sensitivity.
How long is caffeine's half-life?
About five hours is a commonly cited average in healthy adults, but reported values range roughly from 1.5 to 9.5 hours. Institute of Medicine / NCBI Bookshelf
Does caffeine stay in your body for 12 hours?
It can. Half-life means caffeine declines gradually rather than disappearing at a fixed hour. A high dose can leave a physiologically meaningful amount many hours later, and a 2025 trial found that 400 mg could alter objective sleep when taken within 12 hours of bedtime. Gardiner et al., 2025
Can coffee eight hours before bed still affect sleep?
Yes. The 2023 pooled model estimated about 8.8 hours for a 107 mg coffee to avoid a reduction in total sleep time, and individual clearance can be slower than average. Gardiner et al., 2023
Can I sleep after coffee and still have worse sleep quality?
Yes. Falling asleep does not rule out reduced total sleep, lower sleep efficiency, more awakenings, or less slow-wave sleep. Objective and subjective sleep effects can also diverge. Chang et al., 2025 Gardiner et al., 2025
Does decaf coffee affect sleep?
Decaf contains much less caffeine but is not necessarily caffeine-free. The FDA reports about 2–15 mg per 8-fluid-ounce cup. For most people that is a small dose, but highly sensitive individuals may still want to count it. U.S. Food and Drug Administration
Does coffee reduce deep sleep?
Caffeine can reduce slow-wave sleep. Both the 2023 meta-analysis and the 2025 controlled-trial meta-analysis found reductions in deep or slow-wave sleep measures. Gardiner et al., 2023 Chang et al., 2025
Does caffeine affect REM sleep?
Evidence is less consistent. The 2025 meta-analysis did not find a significant pooled effect on REM-sleep proportion. Chang et al., 2025
What is the best way to find my personal caffeine cutoff?
Start with about 8–9 hours before your intended bedtime, estimate total caffeine dose, observe sleep across several comparable days, and move the cutoff earlier if sleep remains fragile. Treat your own repeated pattern as a refinement of population evidence rather than as a substitute for it.
Bottom Line
There is no single scientifically correct coffee cutoff for every person.
The most useful evidence-based starting rule is about 8–9 hours before bedtime for a regular caffeinated coffee around the 100 mg range. That recommendation is anchored in a 2023 meta-analysis that modeled 8.8 hours for a 107 mg coffee. Gardiner et al., 2023
But dose can move the boundary dramatically. A small 2025 crossover trial found no significant sleep effect from 100 mg at four hours before bed in young men, while a 400 mg single dose altered objective sleep as far as 12 hours before bedtime. Gardiner et al., 2025
Use the evidence as a starting map:
• smaller dose → possibly later cutoff;
• larger dose → earlier cutoff;
• slower clearance or higher sensitivity → earlier cutoff;
• unusual sleep schedule → calculate backward from intended sleep;
• ability to fall asleep → not a complete test of sleep quality.
The question is therefore not “What universal clock time should everyone stop coffee?” It is “What dose and cutoff protect my intended sleep reliably?”
Related Articles
References
Burke, T. M., Markwald, R. R., McHill, A. W., Chinoy, E. D., Snider, J. A., Bessman, S. C., Jung, C. M., O'Neill, J. S., & Wright, K. P. Jr. (2015). Effects of caffeine on the human circadian clock in vivo and in vitro. Science Translational Medicine, 7(305), 305ra146. https://doi.org/10.1126/scitranslmed.aac5125
Chang, Y.-H., Cheng, Y.-C., & Cheng, W.-J. (2025). Age- and dose-specific effects of caffeine on sleep: A meta-analysis of controlled crossover trials. Sleep Medicine, 136, 106874. https://doi.org/10.1016/j.sleep.2025.106874
Clark, I., & Landolt, H. P. (2017). Coffee, caffeine, and sleep: A systematic review of epidemiological studies and randomized controlled trials. Sleep Medicine Reviews, 31, 70–78. https://doi.org/10.1016/j.smrv.2016.01.006
Drake, C., Roehrs, T., Shambroom, J., & Roth, T. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 9(11), 1195–1200. https://doi.org/10.5664/jcsm.3170
European Food Safety Authority. (n.d.). Caffeine. https://www.efsa.europa.eu/en/topics/topic/caffeine
Gardiner, C., Weakley, J., Burke, L. M., Roach, G. D., Sargent, C., Maniar, N., Townshend, A., & Halson, S. L. (2023). The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews, 69, 101764. https://doi.org/10.1016/j.smrv.2023.101764
Gardiner, C. L., Weakley, J., Burke, L. M., Fernandez, F., Johnston, R. D., Leota, J., Russell, S., Munteanu, G., Townshend, A., & Halson, S. L. (2025). Dose and timing effects of caffeine on subsequent sleep: A randomized clinical crossover trial. Sleep, 48(4), zsae230. https://doi.org/10.1093/sleep/zsae230
Grzegorzewski, J., Bartsch, F., Köller, A., & König, M. (2022). Pharmacokinetics of caffeine: A systematic analysis of reported data for application in metabolic phenotyping and liver function testing. Frontiers in Pharmacology, 12, 752826. https://doi.org/10.3389/fphar.2021.752826
Institute of Medicine. (2001). Pharmacology of caffeine. In Caffeine for the Sustainment of Mental Task Performance: Formulations for Military Operations. National Academies Press. https://www.ncbi.nlm.nih.gov/books/NBK223808/
U.S. Food and Drug Administration. (2024). Spilling the Beans: How Much Caffeine is Too Much? https://www.fda.gov/consumers/consumer-updates/spilling-beans-how-much-caffeine-too-much
