Skip to content
Selfmademan

Caffeine Calculator: When Your Last Cup Won’t Hurt Your Sleep

Enter your caffeinated drinks and your bedtime, and the calculator suggests what time to stop. A research-based guide, not a personal limit.

Calculator Runs in your browser · nothing is sent anywhere
Drinks with caffeine on a usual day

    Caffeine content is approximate (EFSA) and depends on the beans, brewing and cup size: correct the milligrams if you know yours. Decaf has almost none.

    If any of this is about you
    Last cup of coffee — before —

      Reminder about the last cup
      To Google Calendar

      A daily event at the cutoff time. Check it on yourself: a week without coffee after lunch, then compare how you fall asleep.

      A guide from averaged data, not medical advice or a personal norm: sensitivity to caffeine differs a lot. Cutoffs: Gardiner et al. meta-analysis, 2023 (caffeine cut sleep by 45 minutes on average). Doses and drinks: EFSA. Even 100 mg close to bedtime lengthens falling asleep in some adults. Data stays in this browser.

      How to use it

      1. Add your drinks for the day. Coffee, tea, energy drinks, with roughly when you have them.
      2. Enter your bedtime. Your usual one, not your ideal one.
      3. Look at the cutoff. Cups after it are flagged: those are the ones to move to the first half of the day.
      4. Test it on yourself. Skip coffee after lunch for a week and compare how you fall asleep.

      Questions

      How many hours before bed should I stop drinking coffee?

      There’s no exact rule for everyone. In a 2023 meta-analysis (24 studies), caffeine cut sleep by 45 minutes on average, and by the authors’ estimate, a cup of coffee is best had no later than 8.8 hours before bed. That’s an averaged estimate, not a personal limit.

      Is coffee 6 hours before bed too late?

      It might be. In Christopher Drake’s experiment, a large dose of caffeine disrupted sleep even when taken 6 hours before bedtime.

      Is this medical advice?

      No, it’s a guide based on averaged data. If you’re pregnant, have heart disease or take medication, caffeine is a question for your doctor.

      One letter when there’s something worth saying

      New articles, free tools and printable templates. No spam, no courses for sale.

      The address is used only for the letter. To have it deleted, email hello@selfmademan.io. Privacy policy