Caffeine Calculator

    Estimate daily caffeine intake from coffee, tea, energy drinks, chocolate or supplements, then model caffeine left before sleep using a half-life estimate.

    Daily reference: 399 mg · Single-dose reference: 200 mg

    Hours until target bedtime

    Total today

    63 mg

    Within reference

    % of daily reference

    16%

    of 399 mg

    Current estimate

    63 mg

    using ~5 hr half-life

    At bedtime

    21 mg

    Lower sleep-impact estimate

    Time to low 50 mg

    1 hr 40 min

    Conditional sleep estimate, not a guarantee

    FDA and EFSA references for healthy adults commonly use up to 400 mg/day and up to 200 mg as a single dose. Pregnancy and breastfeeding often use a lower 200 mg/day reference. Energy drinks are not recommended for children or teens. Half-life can change with pregnancy, medication and oral contraceptives; smoking can speed caffeine metabolism.

    Calculate caffeine intake for the day

    Caffeine calculator intent is practical: total the caffeine in drinks, foods and supplements, compare it with adult reference levels, and estimate how much may still be active near bedtime.

    Dday - total caffeine today, mgi - caffeine in one serving, ni - number of servings.

    Lday - daily reference in milligrams, W - body weight in kilograms.

    Lsingle - single-dose reference in milligrams.

    This page is a caffeine-estimate tool, not medical advice. Pregnancy, heart rhythm problems, anxiety, sleep disorders, liver disease and medications can require a lower limit.

    Caffeine half-life and sleep

    The calculator uses a simple half-life model. English search results increasingly expect a bedtime estimate, but individual caffeine clearance varies a lot.

    R - estimated remaining caffeine, mg - dose, t - hours after intake, 5 - default half-life in hours.

    ttarget - hours until a selected remaining-caffeine threshold.

    • A 50 mg target is a model threshold for a low remaining amount, not an official sleep-safety cutoff.
    • Drake et al. found sleep effects when caffeine was taken 0, 3 or 6 hours before bedtime.
    • Pregnancy, some medications and oral contraceptives can slow caffeine metabolism.
    • Smoking can speed caffeine metabolism; sensitivity can change after quitting.

    Reference levels and caveats

    SituationReference usedHow to read it
    Healthy adultUp to 400 mg/dayFDA and EFSA-aligned general reference, not a personal prescription
    Single adult doseUp to 200 mgEFSA single-dose reference for adults
    Pregnancy or breastfeedingOften 200 mg/day or lowerDiscuss an individual limit with a clinician
    Children and teensAvoid energy drinksAAP warns against energy drinks for children and adolescents
    High-concentration caffeineExtra cautionPure or highly concentrated caffeine products can cause serious harm from small measuring errors
    Chest pain, severe palpitations, seizures, confusion or collapse after caffeine need urgent medical care. Do not use an online calculator to manage suspected overdose.

    Frequently Asked Questions

    Sources and References

    Calculations are based on the listed reference sources. Links open in a new tab.

    Updated:

    Related Tools