Caffeine Half-Life Calculator

Enter your caffeine intake and consumption time to see how much is left in your system and when you can sleep.

Caffeine Inputs

Espresso (1 shot) ~63 mg Drip coffee (8 oz) ~95 mg Energy drink ~80–160 mg Black tea (8 oz) ~40–70 mg Green tea (8 oz) ~25–45 mg Cola (12 oz) ~35 mg
3 h (smokers) 5.7 h (average) 9 h (slow)

Pregnancy / hormonal contraceptives: ~10 h (slide to max as approximation).

Caffeine below this level is unlikely to disrupt sleep for most people.

Caffeine right now

Safe to sleep

24-hour decay curve

Alert (>100 mg) Moderate (50–100 mg) Sleep-safe (<50 mg)

Formula

Remaining caffeine: C(t) = C0 × 0.5^(t / t_half)

Time to sleep threshold: t = t_half × log2(C0 / threshold)

Summary

Enter your caffeine intake and consumption time to see how much is left in your system and when you can sleep.

How it works

  1. Enter the amount of caffeine in milligrams (use the reference table for common drinks).
  2. Set the time you consumed the caffeine using the clock input.
  3. Adjust the half-life slider if you have personal factors (smokers metabolize faster; pregnancy and hormonal contraceptives slow it down).
  4. Set the sleep threshold — caffeine below this level is unlikely to disrupt sleep for most people.
  5. The chart and summary update instantly, showing current caffeine level and when it drops below your threshold.

Use cases

  • Plan your last coffee of the day so it does not interfere with sleep.
  • Understand why an afternoon energy drink keeps you awake at midnight.
  • Gauge how long a large pre-workout dose will stay active.
  • Compare sleep readiness between a light tea and a double espresso.

Frequently Asked Questions

Last updated: 2026-07-23 · Reviewed by Nham Vu