Slumber Drift / Calculator
Sleep window and caffeine calculator
Two rough guides for a calmer evening: when to get into bed so you wake near the end of a sleep cycle rather than in the middle of one, and how much of the day’s caffeine may still be with you at bedtime.
When should I go to bed?
Or: I’m going to bed now
Caffeine at bedtime
Add today’s drinks and when you had them:
Where the numbers come from
- Sleep cycles. Sleep runs in cycles of light, deep and REM sleep, often described as lasting about 90 minutes. Real cycles vary, so the times above are a rough guide, not a rule.
- Caffeine in drinks. Estimated amounts are from the NHS: 100 mg in a cup of instant coffee, 75 mg in a cup of tea, 40 mg in a can of cola, 80 mg in a 250 ml energy drink. Filter and coffee-shop coffee can contain more.
- Half-life. The time for your body to clear half the caffeine differs a lot between people (pregnancy, some medicines and smoking all change it), so pick the option that seems closest and treat the result as a rough estimate.
- The 6-hour finding. Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 2013;9(11):1195–1200.
Not medical advice. This is a rough guide for ordinary evenings, not a diagnosis or a treatment for insomnia or any sleep condition. If poor sleep goes on for weeks or affects your day, speak to a GP or pharmacist. Your times stay in your browser. Last reviewed .