How much caffeine is still in you?

See how much caffeine will still be in you at bedtime, before the next cup.

–mg

in you now, estimated from the drinks you've logged

Today

Settings

How fast your body clears caffeine

Some medicines, such as the antidepressant fluvoxamine, can make caffeine last many times longer. If you take one, ask your pharmacist what to expect.

Everything here is saved in this browser on this device only. Export a copy to keep it safe or move it.

Importing replaces what's here. The data it replaces is kept on this device, below.

Another drink

Not listed? The label or the brand's website usually gives the caffeine. It's remembered for next time.

Saved on this device.

How it works

Each drink adds its caffeine while you drink it. Your body then absorbs it and clears it at a steady rate: every half-life, half of what's left is gone. The curve adds up every drink from the last few days, so last night's late coffee still shows this morning. It's an estimate from what you log, not a measurement.

Absorption is modelled as a smooth curve fitted to one published figure: about 99% of caffeine is absorbed within 45 minutes (Institute of Medicine). That's an assumption about an average person; it puts the peak of a coffee roughly 40 minutes after you start drinking it, in line with the 30 to 60 minutes measured in studies.

The default half-life is 5 hours, the figure classic studies found in healthy adults (5.2 to 5.4 hours). A 2019 review puts it between 2.5 and 4.5 hours for most non-pregnant adults, and the Sleep Foundation describes a span of about 2 to 12 hours across people. Smoking shortens it, and the combined pill and late pregnancy lengthen it. Pick the preset that fits you in Settings, or enter your own.

The sleep line is 100 mg. EFSA, the European food safety authority, found that a single 100 mg dose close to bedtime may affect sleep in adults; the tool uses "100 mg still in you at bedtime" as a stand-in for that. It's a guide, not a guarantee: people differ, and this isn't medical advice.

Drink amounts are from USDA FoodData Central and the brands' own published figures. Coffee varies a lot by brew: Starbucks lists 315 to 390 mg for a Grande Pike Place, so the tool uses the middle and shows the range.

Questions people ask

How long does caffeine stay in your system?
Half of it is typically gone after about five hours, and roughly 97% after five half-lives, about a day. The Sleep Foundation describes half-lives from about 2 to 12 hours across people, depending on smoking, pregnancy, medicines and genes.
How long before bed should I stop caffeine?
Six hours is not enough for everyone: in one study, 400 mg taken six hours before bed still cut about an hour of sleep. A 2023 review of 24 studies suggests leaving about nine hours after a regular coffee.
How much caffeine is too much in a day?
Up to 400 mg a day is not generally linked to harm in healthy adults, according to the FDA and EFSA. During pregnancy the guidance is 200 mg a day (EFSA, ACOG).
Why is the sleep line 100 mg?
EFSA found that a single 100 mg dose close to bedtime may affect sleep in adults. The tool uses 100 mg still in your body at bedtime as a stand-in for that, and you can change it in settings.
Do the pill or smoking change how long caffeine lasts?
Yes. In one study the combined pill stretched the half-life from about 5.4 to 7.9 hours, and smoking roughly halves it (about 6 to 3.5 hours). Choose the matching preset in settings.

Sources

  1. FDA: Spilling the Beans, how much caffeine is too much?
  2. EFSA: Caffeine (scientific opinion, 2015)
  3. Drake et al. 2013: caffeine taken 0, 3 or 6 hours before going to bed
  4. Gardiner et al. 2023: the effect of caffeine on subsequent sleep (meta-analysis)
  5. Institute of Medicine 2001: caffeine pharmacology (absorption)
  6. Desmond et al. 1980: caffeine elimination in healthy adults
  7. Abernethy and Todd 1985: oral contraceptives and caffeine clearance
  8. Liu and Xu 2026: caffeine metabolism, genetics and smoking
  9. Qian et al. 2019: caffeine during pregnancy (half-life in adults and in pregnancy)
  10. Sleep Foundation: caffeine and sleep (half-life range across people)
  11. ACOG: moderate caffeine consumption during pregnancy
  12. USDA FoodData Central: brewed coffee
  13. USDA FoodData Central: espresso
  14. USDA FoodData Central: brewed black tea
  15. USDA FoodData Central: brewed green tea
  16. USDA FoodData Central: cola
  17. USDA FoodData Central: decaf brewed coffee
  18. Red Bull Energy Drink: ingredients and caffeine
  19. Monster Energy Original
  20. Starbucks: Pike Place Roast nutrition
  21. Mayo Clinic: caffeine content for coffee, tea, soda and more (energy shot)