top of page

When Should You Have Your Last Cup of Coffee?

Kaffe

Coffee is one of the world’s most popular beverages — loved for its taste, social culture, and energizing effects.

But caffeine has a downside: it can interfere with sleep, disrupt circadian rhythm, and affect your body’s natural recovery.

The timing of your last cup plays a major role in how well you sleep. So — when is it actually too late for coffee?


What Is Caffeine and How Does It Work?

Caffeine is a central nervous system stimulant naturally found in coffee, tea, cocoa, and energy drinks.

It works by blocking adenosine receptors in the brain.Adenosine is a chemical that builds up throughout the day and promotes tiredness.When caffeine blocks it, sleep pressure decreases — and you feel more awake¹.

Caffeine also increases levels of dopamine and adrenaline, raising alertness, heart rate, and physical performance.


Benefits of Caffeine (in Moderation)

  • Enhances concentration and reaction time

  • Improves physical endurance

  • Reduces fatigue and mental exhaustion

  • May lower risk of Parkinson’s disease and type 2 diabetes²


Drawbacks and Side Effects

Too much caffeine — or consuming it too late — can lead to:

  • Difficulty falling asleep

  • Restlessness and anxiety

  • Increased heart rate and blood pressure

  • Dependence and withdrawal symptoms when stopping³


When Should You Stop Drinking Coffee for Good Sleep?

A general rule of thumb: avoid caffeine at least 6–8 hours before bedtime.

Caffeine has a half-life of about 5–7 hours, meaning your body takes that long to eliminate half of it⁴.So if you drink coffee at 5:00 p.m., caffeine can still be active in your system close to midnight.

Bedtime

Latest Caffeine Intake

10:00 p.m.

2:00–4:00 p.m.

11:00 p.m.

3:00–5:00 p.m.

12:00 a.m.

4:00–6:00 p.m.


What Affects How Long Caffeine Lasts?

Genetics

People metabolize caffeine differently.Those with certain liver enzyme variants (CYP1A2 gene) break it down slower⁵ — making caffeine’s effects last longer.


Age and Hormones

Caffeine metabolism slows with age, and hormonal changes (such as birth control or pregnancy) can prolong its presence in the body.


Sleep Quality and Pressure

The less you’ve slept, the stronger caffeine feels — but also the more it disrupts your next night’s sleep.


Tolerance

Regular coffee drinkers may build tolerance, but sleep quality still declines, even if you no longer “feel” the alertness⁶.


How Late Coffee Affects Sleep

Even one cup in the evening can:

  • Delay sleep onset

  • Shorten total sleep time

  • Reduce deep slow-wave sleep (N3)

  • Lower perceived sleep quality

Studies show caffeine taken 3–6 hours before bed still significantly reduces sleep duration and depth⁷.


Healthier Evening Alternatives

  • Decaffeinated coffee: Similar taste, minimal caffeine impact

  • Herbal tea: Chamomile, lemon balm, or rooibos promote relaxation

  • Warm milk or oat milk: Naturally rich in tryptophan, a sleep-promoting amino acid

  • Water with herbs or citrus: Refreshing and caffeine-free


Summary

Caffeine stays active in your system for hours — often longer than you think.

For optimal sleep, avoid coffee 6–8 hours before bedtime.Adjust your timing based on your usual sleep schedule, metabolism, and caffeine sensitivity.

Good sleep often starts with smart choices earlier in the day — including what’s in your cup.


Sources

  • Fredholm BB, et al. (1999). Actions of caffeine in the brain with special reference to factors that contribute to its widespread use. Pharmacol Rev, 51(1):83–133.

  • van Dam RM, Hu FB. (2005). Coffee consumption and risk of type 2 diabetes: a systematic review. JAMA, 294(1):97–104.

  • Juliano LM, Griffiths RR. (2004). A critical review of caffeine withdrawal. Psychopharmacology, 176(1):1–29.

  • Institute of Medicine. (2001). Caffeine for the Sustainment of Mental Task Performance. National Academies Press.

  • Sachse C, et al. (1999). Functional significance of a polymorphism in the CYP1A2 gene tested with caffeine. Br J Clin Pharmacol, 47(4):445–449.

  • 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.

  • Clark I, Landolt HP. (2017). Coffee, caffeine, and sleep: A systematic review of epidemiological studies and randomized controlled trials. Sleep Med Rev, 31:70–78.

Tip: Use Ctrl + F to search on the page.

Help us keep PhysioDock free

All content on PhysioDock is free – but it costs to keep it running.

PhysioDock is built to be an open and accessible platform for physiotherapists, students, and patients alike. Here you’ll find articles, measurement tools, exercise libraries, diagnostic resources, and professional materials – all completely free.

Behind the scenes, however, there are hundreds of hours of work: research, writing, development, design, maintenance, testing, and updates. We do this because we believe in open knowledge and better health information.

If you’d like to support our work and help us continue developing and improving PhysioDock, we truly appreciate everyone who:
– subscribes to a PhysioDock+ membership
– uses and recommends PhysioDock in their work or studies
– shares PhysioDock with others

Every contribution makes a difference – and helps us keep the platform open to everyone.
Thank you for supporting PhysioDock!

Best value

PhysioDock+

NOK 199

199

Every month

PhysioDock+ gives you exclusive benefits such as discounts, AI tools, and professional resources. The membership helps you work more efficiently, stay updated, and save time and money in your daily practice.

Valid until canceled

Access to Fysio-Open

Physionews+

Quizzes

10% discount on all purchases

5% discount on "Website for Your Clinic"

50% discount on shipping

Access to PhysioDock-AI (Under development)

Partner discounts

Exclusive product discounts

Contact us

Is something incorrect?

Something missing?
Something you’d like to see added?
More recent literature?

Feel free to get in touch and let us know which article it concerns and what could be improved.
We truly appreciate your feedback!

  • Facebook
  • Twitter
  • LinkedIn
  • Instagram

Thanks for contributing!

bottom of page