How late is too late for caffeine before bed?
There is no universal coffee cutoff. Compare caffeine amount with your actual bedtime, and understand why feeling sleepy does not rule out disrupted sleep.

Research explained · Studies: 2013 & 2024–2025
A 2 pm coffee rule sounds easy until your bedtime changes, your coffee gets bigger or a pre-workout joins the day. Start with the drink you actually have and the night you actually plan.
Same coffee time, different bedtime
Illustrative clock arithmetic, not a recommended caffeine window.
| Last serving | Planned bedtime | Time between them |
|---|---|---|
| 3 pm | 10 pm | 7 hours |
| 3 pm | 1 am | 10 hours |
Neither gap establishes safety. Add the caffeine amount if known; “one cup” alone leaves an important part of the question unanswered.
So when should I have my last coffee?
If you are trying to understand poor sleep, moving the final serving earlier gives you a more useful question than arguing about a universal afternoon hour. Keep the drink and its size visible too. Moving a much larger coffee earlier changes two things at once, making your own observations harder to interpret.
A diary can be simple: drink or product, serving, time, planned bedtime and how the night went. It is a description of a routine, not a home experiment that diagnoses the cause of insomnia. Do not let recording become another obstacle to resting.
What did the clearest recent experiment find?
In the Australian crossover trial, 30 men were randomised and 23 were analysed after withdrawals and exclusions. Each tried placebo and 100 mg or 400 mg at different times before bed, while maintaining a standardised habitual morning intake.
The 400 mg condition four hours before bed reduced measured sleep by about 51 minutes on average versus placebo. Some other sleep measures changed even at twelve hours. The 100 mg conditions showed no statistically clear average sleep effect; that does not establish a personal safe limit. The study tested single extra doses, not every pattern of cups spread through a day.
Does falling asleep easily settle it?
No. Falling asleep, staying asleep and time spent in different sleep stages are different outcomes. The experiment also found that people did not always notice disruption shown in recordings. That is a reason to avoid using “I felt fine” as the only test—not a reason to distrust every normal night or chase perfect sleep scores.
What about tea, chai and energy drinks?
Use the same questions: what product, how much and when? A mug, café size and supplement scoop describe containers, not a standard dose. Use a product’s declared amount where available and mark unknown amounts honestly. Guessing a precise number adds confidence without adding information.
For example, a diary saying “coffee at work” cannot distinguish a small serving from a larger refill. A useful next entry describes what changed. It does not need to calculate the caffeine left in your bloodstream.
Which coffee question are you asking?
The morning-coffee guide addresses a different question: an association between existing habits and later mortality. It cannot prove that changing your coffee time prolongs life. Likewise, this short sleep experiment cannot explain a long-term mortality association.
If sleep stays difficult, caffeine is only one part of the discussion. Work schedules, symptoms and medicines belong in that conversation too. Pregnancy, medical conditions and individual intake advice are outside this small trial’s answer.
Source check: the Australian paper’s disclosure statement says “None”; no separate funding statement was identified in the main text. Its small, healthy male sample limits generalisation. The previously cited 2013 experiment remains further reading; its full text was not freshly retrieved in this update.
A caffeine cutoff has three moving parts
The amount matters as well as the cup size.
Count backwards from your bedtime, not a universal afternoon hour.
Falling asleep easily does not measure all aspects of sleep.
Sources & further reading
Explanation updated 17 October 2026. Published 16 October 2026 · Sources checked 17 October 2026. Suggest a correction.