Caffeine Half-Life Calculator
Log the coffee, tea and energy drinks you have had today and see how much caffeine is still in your body, how much will be left at bedtime, and when it drops to a sleep-friendly level.
Today's drinks
Add each coffee, tea or energy drink you have had today, or plan to have.
About this calculator
What is caffeine's half-life?
Caffeine's half-life is the time your body takes to clear half of it. In healthy adults it averages about 5 hours, so half the caffeine from a 3 p.m. coffee is still in your system at 8 p.m., and a quarter at 1 a.m.
The rate depends on the liver enzyme CYP1A2 and varies a lot between people: smoking roughly halves the half-life, while oral contraceptives roughly double it and late pregnancy can stretch it to 15 hours or more.
Caffeine remaining = dose × 0.5^(hours since drink ÷ half-life)
How this tracker works
Add each drink with the time you had it — or plan to have it. The tracker adds up the caffeine still in your body from every drink, shows how much there is now and at your bedtime, and when it will drop below your sleep-friendly level. Your log is saved only in this browser.
Caffeine is absorbed over 30–60 minutes; the calculation treats it as instant, which overstates the level only during the first hour after a drink.
Caffeine and sleep
Caffeine blocks adenosine, the chemical that builds sleep pressure during the day. In a 2013 study, 400 mg taken even 6 hours before bed cut total sleep by more than an hour. A practical rule is to stop caffeine 8 hours before bedtime and keep the bedtime level low; the 50 mg default is a conservative choice you can change.
Reference tables & standards
Caffeine in common drinks
Source: USDA FoodData Central and manufacturer labels (typical values)| Drink | Serving | Caffeine |
|---|---|---|
| Brewed coffee | 240 ml (8 oz) | ≈ 95 mg |
| Espresso | 30 ml single shot | ≈ 63 mg |
| Instant coffee | 240 ml (8 oz) | ≈ 62 mg |
| Black tea | 240 ml (8 oz) | ≈ 47 mg |
| Green tea | 240 ml (8 oz) | ≈ 28 mg |
| Cola | 355 ml (12 oz) can | ≈ 34 mg |
| Energy drink | 250 ml (8.4 oz) | ≈ 80 mg |
Coffee varies widely with bean, roast and brewing; check labels for energy drinks and supplements.
Safe caffeine intake
Source: U.S. FDA; European Food Safety Authority (EFSA)| Group | Guidance |
|---|---|
| Healthy adults | Up to 400 mg a day |
| Single dose (adults) | Up to 200 mg at a time (EFSA) |
| Pregnant or breastfeeding | Up to 200 mg a day (EFSA) |
Frequently asked questions
- How long does caffeine stay in your system?
- With a typical 5-hour half-life, about half is left after 5 hours, a quarter after 10 hours and an eighth after 15 hours. It takes roughly a day to clear almost completely, longer if your half-life is longer.
- When should I stop drinking coffee before bed?
- Many sleep experts advise at least 8 hours before bedtime. Use the tracker with your bedtime to see how much caffeine will still be in your body; the lower it is at lights-out, the less it affects falling asleep and deep sleep.
- How much caffeine is too much?
- Up to 400 mg a day — about four cups of brewed coffee — is not linked to harm in most healthy adults, according to the FDA and EFSA. Pregnant women are advised to stay under 200 mg a day. Sensitivity varies, and some people feel jittery or anxious at much lower doses.
- Why do some people clear caffeine faster than others?
- Genetics affect the CYP1A2 enzyme that breaks caffeine down. Smoking speeds it up, while oral contraceptives, pregnancy, liver disease and some medicines slow it down. Choose the half-life preset that fits you best.
- Does decaf contain caffeine?
- A little — usually about 2–15 mg per cup, compared with around 95 mg in regular brewed coffee. Several cups of decaf in the evening can add up for very sensitive people.
These calculators provide estimates for educational purposes only. They are not a substitute for professional medical advice, diagnosis, or treatment.