Free Tool

Your caffeine cutoff.

Caffeine leaves the body slowly - about half is gone every five hours. Enter your bedtime and last drink, and we estimate the latest you should stop so most of it has cleared before you sleep.

Free access to the Caffeine Clock.

Enter your email once to unlock all Venasolla tools. No password, no credit card, no spam.

You'll join the Venasolla list. Unsubscribe anytime. By continuing you agree to our Privacy Policy.

Method & sources

Caffeine clears by first-order decay: the amount left is dose × ½^(hours ÷ half-life). Using an average ~5-hour half-life (adjustable for smoking, oral contraceptives, or pregnancy, which are known to change it), we find the latest time for your last dose so that under ~50 mg remains by bedtime - a level low enough to be rest-friendly for most people. Controlled studies show even moderate caffeine taken 6 hours before bed can measurably disrupt sleep.

  1. Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013;9(11):1195–1200.
  2. Gardiner C, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev. 2023;69:101764.
  3. Institute of Medicine. Pharmacology of Caffeine (half-life ~5 h, range ~1.5–9.5 h; metabolism factors).
  4. FDA. Spilling the Beans: How Much Caffeine is Too Much? (~400 mg/day for healthy adults).
  5. ACOG. Moderate caffeine consumption during pregnancy (≤200 mg/day).

How caffeine actually works.

Caffeine has a "half-life" of roughly five hours in most adults - the time it takes for half of a dose to clear. So a 200 mg coffee at 3 pm leaves about 100 mg in your system at 8 pm, 50 mg at 1 am, and 25 mg at 6 am. The cutoff time here is simply when the amount left by bedtime should be low enough not to get in the way of sleep.

Why the five hours is only an average

Real half-life ranges from roughly 1.5 to 9.5 hours depending on the person. A few things move it a lot:

  • Genetics - the CYP1A2 liver enzyme does most of the work, and there are common fast and slow versions.
  • Smoking - speeds clearance, roughly halving the half-life.
  • Oral contraceptives / estrogen - can roughly double it.
  • Pregnancy - slows it dramatically, up to ~15 hours in late pregnancy.
  • Age and liver health - clearance slows gradually with both.

Why afternoon caffeine hurts sleep

Even when you fall asleep on time, leftover caffeine can reduce deep (slow-wave) sleep - you may log the same hours but wake less rested. In a controlled study, 400 mg taken six hours before bed still measurably worsened objective sleep. As a rough rule, the bigger the dose, the earlier the cutoff.

What this tool isn't

The cutoff is a reasonable estimate, not a prescription, and it can't measure your actual caffeine levels. If you're sensitive, you may need to stop earlier than the number suggests. Persistent sleep problems are worth discussing with a doctor - no calculator replaces a sleep specialist.

More free tools

Cortisol Curve
See your estimated daily cortisol pattern by wake time.
Try it
Wellness Quiz
Five minutes, personalized insights about your routine.
Try it
Reorder Calculator
Estimate when your bottle runs out and when to reorder.
Try it
Label Decoder
Paste a supplement label - spot proprietary blends and hidden doses.
Try it
Cost per Serving
What a supplement really costs per serving, day, and month.
Try it
Timing Planner
A simple daily schedule for the supplements you take.
Try it
Form Decoder
Glycinate vs oxide and more - compare ingredient forms.
Try it
Unit Converter & %DV
Convert IU/mcg/mg and check % Daily Value (FDA reference).
Try it
Elemental Mineral
How much actual mineral a compound weight really gives you.
Try it
Sleep Cycle Calculator
The best bedtimes (or wake times) using 90-minute sleep cycles.
Try it
Chronotype Quiz
Lark or night owl? Find your natural daily rhythm.
Try it
Hydration Calculator
How much water you actually need for your size and activity.
Try it
Heart Rate Zones
Your five training zones in bpm from age and resting HR.
Try it
Caffeine in Drinks
Tally a day of coffee, tea, and energy drinks vs the daily reference.
Try it
Protein Calculator
A general daily protein range from your weight and goal.
Try it
Jet Lag Planner
How long jet lag may last and when to seek or avoid light.
Try it
Waist-to-Height
A simpler alternative to BMI: keep your waist under half your height.
Try it
Macro Split
Turn a calorie target into protein, carb, and fat grams.
Try it
One-Rep Max
Estimate your max from any set, plus a training-percentage table.
Try it
Cycle Phase
Estimate which phase of your cycle you are in (awareness only).
Try it