Lifestyle

Caffeine and Sleep: How Late Is Too Late?

Choose a caffeine cutoff around your bedtime, serving sizes and sensitivity. What the six-hour study means, and how to review coffee, tea and energy drinks.

A glass cup of black coffee on a dark wooden table
Editorial photograph: Muhammad Fawdy / Pexels.

There is no single latest coffee time that protects everyone's sleep. Start with your usual bedtime, then consider the amount and timing of all your caffeine. NHLBI notes that its effects can last up to eight hours. A late-afternoon cup may therefore matter even when it no longer feels stimulating. [1]

For example, eight hours before a 23:00 bedtime is 15:00. That is a way to put the guidance on your calendar, not a personalised safe cutoff. If evenings are unpredictable, the first useful step is recording them, not searching for a supposedly perfect clock time.

What the six-hour finding actually means

In Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed, a 400 mg dose disrupted sleep even six hours before bedtime. This finding does not establish a safe threshold for every dose or person. [2]

NHS insomnia advice recommends avoiding tea or coffee for at least six hours before bed. [3] Read that alongside the longer effect window above, not as a contradiction to solve with a stopwatch. Neither source can tell you that your particular drink at a particular hour will leave sleep untouched.

Look beyond the word “coffee”

Coffee, tea and energy drinks all count. Amounts differ between products and serving sizes; decaffeinated drinks can still contain caffeine. Sensitivity and clearance vary, and medicines or health conditions may change the picture. [4]

Make a short drinks record using information you can actually obtain:

Entry A useful detail
Morning coffee The size you buy, including refills.
Afternoon tea or coffee Time of the last serving, not the first.
Energy drink Container size and caffeine stated on its label.
Other products Check the ingredients of supplements or medicines; ask a pharmacist if unclear.

If no amount is available, write “unknown”. Do not replace it with an average and treat the calculation as exact. A photograph of the label can be more useful than remembering the colour of a can.

Change the routine without making it a test of endurance

Choose a later drink you would be comfortable changing. Move it earlier or substitute a drink whose ingredients you have checked. If you are reducing a regular caffeine habit, tapering can help avoid unpleasant withdrawal. [4] MedlinePlus lists headache and drowsiness among withdrawal symptoms. [5]

Keep notes on bedtime, awakenings and how you felt the next day. Avoid changing everything at once: a week containing travel, late work and several new habits will not tell you much about one coffee. This is an observation exercise, not a home clinical trial.

Cleveland Clinic describes how individual caffeine sensitivity can change the response to evening coffee. If sleep is troublesome, moving that drink earlier or leaving it out is worth considering. [6]

Coffee cannot answer every sleep question

If you still struggle with sleep, discuss the pattern with a clinician instead of progressively replacing meals or rest with stimulants. MedlinePlus identifies sleep problems and several health conditions as reasons to consider limiting caffeine, and advises asking a clinician about medicine interactions. [5]

Use the sleep-schedule plan for a drifting routine. If a long night still leaves you depleted, read the guide to tiredness after eight hours. For a less rushed start, plan the morning itself. Find the related guides in Sleep & Energy.

Sources

  1. NHLBI, NIH. Sleep Deprivation and Deficiency — Healthy Sleep Habits. Publication date not provided. Accessed: 2026-09-23.
  2. Journal of Clinical Sleep Medicine / PubMed. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Published/updated: 2013-11-15. Accessed: 2026-09-23.
  3. NHS. Insomnia. Publication date not provided. Accessed: 2026-09-23.
  4. FDA. Spilling the Beans: How Much Caffeine is Too Much?. Publication date not provided. Accessed: 2026-09-23.
  5. MedlinePlus, NLM. Caffeine in the diet. Publication date not provided. Accessed: 2026-09-23.
  6. Cleveland Clinic. Is It Bad To Drink Coffee Late at Night?. Publication date not provided. Accessed: 2026-09-23.
Spotted something that needs attention? Contact the editorial team →