PoshanSense
Caffeine & sleep · 4 min read

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.

A coffee cup beside a clock and a dusk-lit window, with complete uncropped objects.
Original editorial illustration; a visual introduction, not a depiction of the study participants or a medical result.

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 servingPlanned bedtimeTime between them
3 pm10 pm7 hours
3 pm1 am10 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.

Original explanatory infographic

A caffeine cutoff has three moving parts

01Dose

The amount matters as well as the cup size.

02Time

Count backwards from your bedtime, not a universal afternoon hour.

03Response

Falling asleep easily does not measure all aspects of sleep.

An explanatory guide to the evidence, not a personal treatment plan.

Sources & further reading

  1. Caffeine dose and timing before sleep
  2. 2013 experiment: caffeine at bedtime, three hours or six hours beforehand

How we use sources, disclose limits and handle corrections.

Explanation updated 17 October 2026. Published 16 October 2026 · Sources checked 17 October 2026. Suggest a correction.

Cookie choices

Essential cookies save this choice. Allow all cookies to enable optional Google Analytics on eligible PoshanSense pages. Advertising stays off and its privacy choice is separate; image and signature tools never load Analytics.

Privacy details.