Add a drink

FDA range 113–247 mg per 12 oz; using the midpoint.

Drink amounts are the FDA's typical figures (FDA). Real drinks vary, so change the mg if you know your drink's amount.

Your drinks today

No drinks added yet.

    Settings

    Half-life is the time your body takes to clear half of the caffeine. In healthy people it averages about 5 hours but ranges from 1.5 to 9.5 hours (National Academies). It can stretch to as long as 15 hours during pregnancy, and smoking can make it up to 50 percent shorter (StatPearls). Birth control pills, some medications and liver disease make it longer too. See how long caffeine lasts.

    Pick any level; it shows as a dashed line on the chart. The default, 100 mg, is the single dose EFSA says may affect sleep in some adults, especially close to bedtime (EFSA). The amount left in your body isn't the same as a fresh dose, so treat the line as a rough marker.

    Your estimate

    Add a drink to see your estimate.

    Your drinks and settings are saved in this browser on this device only. Nothing is sent anywhere.

    How the calculator works

    The calculator adds up each drink and estimates how much caffeine is left in your body at any time. It assumes your body clears caffeine at a steady rate, losing half of what's left every half-life. With the default 5-hour half-life, the average for healthy people (National Academies), a 200 mg coffee at noon leaves about 100 mg at 5 p.m. and 50 mg at 10 p.m. Two drinks taken hours apart overlap, so the amounts are added together.

    Caffeine doesn't reach your bloodstream all at once, so the curve rises after each drink before it falls. About 99% of a dose is absorbed within 45 minutes, and levels peak 15 to 120 minutes after you drink it (National Academies), usually within an hour (MedlinePlus). The calculator uses the standard one-compartment formula for something taken by mouth (the Bateman function), with the absorption rate set from that 45-minute figure. With the default half-life, a drink peaks about 40 minutes after you have it, at a little over 90% of its caffeine. Real absorption varies from person to person and drink to drink, so treat the timing as approximate. Times from midnight to 3:59 a.m. count as late at night, after the rest of your day.

    Your half-life is the biggest unknown. It ranges from 1.5 to 9.5 hours in healthy people, and pregnancy, birth control pills, smoking and other factors move it (National Academies). Some medications stretch it much further (StatPearls). If you know yours is longer or shorter, change it in the settings.

    The daily total

    The total is compared with 400 mg a day, the amount the FDA says is not generally linked to negative effects in most healthy adults (FDA). That's a ceiling, not a target. People vary in how sensitive they are to caffeine, and some conditions and medications make it affect you more (FDA). If you're pregnant, ACOG and EFSA use less than 200 mg a day (ACOG; EFSA). Our guide on how much caffeine is too much has the limits for children, breastfeeding and single doses.

    Bedtime

    A 2013 sleep study supports stopping substantial caffeine at least 6 hours before bed (Drake et al., 2013). A 2023 meta-analysis estimated that a coffee should be drunk at least 8.8 hours before bed, and a 217.5 mg pre-workout serving at least 13.2 hours before (Gardiner et al., 2023). Those studies were in healthy adults.

    Limits of the estimate

    This is an estimate from averages, not a measurement and not medical advice. If you're pregnant, take prescription medicines, or have a heart rhythm problem, high blood pressure, liver disease or another health condition, talk to your doctor about how much caffeine is right for you (FDA; MedlinePlus; StatPearls).

    Frequently asked questions

    How long does caffeine stay in your system?

    In healthy people, caffeine’s half-life averages about 5 hours, so about half of a dose is still in your body 5 hours later. The National Academies give a range of 1.5 to 9.5 hours. Pregnancy, birth control pills, some medications and liver disease can make it longer, and smoking makes it shorter.

    How much caffeine is in a cup of coffee?

    The FDA says 12 ounces of brewed coffee typically has 113 to 247 mg of caffeine. Using the top of that range, two 12-ounce cups come to nearly 500 mg, which is more than the 400 mg a day the FDA cites for healthy adults.

    How many hours before bed should I stop caffeine?

    A 2013 sleep study supports avoiding substantial caffeine for at least 6 hours before bed. For large doses, such as a 217.5 mg pre-workout serving or 400 mg at once, research points to 12 to 13 hours. If caffeine lasts longer in your body, for example during pregnancy, set an earlier cutoff.

    Is 400 mg of caffeine a day too much?

    For most healthy adults, the FDA says up to 400 mg a day is not generally linked to negative effects, and EFSA reached the same figure. It is a ceiling, not a target: people vary in how sensitive they are, and some conditions and medications make caffeine affect you more. During pregnancy, ACOG and EFSA use less than 200 mg a day.

    Sources

    1. Spilling the Beans: How Much Caffeine Is Too Much?, U.S. Food and Drug Administration. Accessed October 20, 2026.
    2. Pharmacology of Caffeine (Caffeine for the Sustainment of Mental Task Performance), Institute of Medicine, National Academies Press, via NCBI Bookshelf. Accessed October 20, 2026.
    3. Caffeine (StatPearls), StatPearls Publishing, via NCBI Bookshelf. Accessed October 20, 2026.
    4. Caffeine, MedlinePlus, National Library of Medicine. Accessed October 20, 2026.
    5. Moderate Caffeine Consumption During Pregnancy (Committee Opinion No. 462), American College of Obstetricians and Gynecologists. Accessed October 20, 2026.
    6. Caffeine, European Food Safety Authority (EFSA). Accessed October 20, 2026.
    7. Caffeine Effects on Sleep Taken 0, 3, or 6 Hours before Going to Bed, Journal of Clinical Sleep Medicine (via PMC). Accessed October 20, 2026.
    8. The effect of caffeine on subsequent sleep: A systematic review and meta-analysis, Sleep Medicine Reviews (via PubMed). Accessed October 20, 2026.