Independent investing research and personal finance for IrelandUnderstand. Decide. Compound.

COMPOUND HEALTH / SLEEP & RECOVERY

Caffeine calculator: how much is left at bedtime?

See how coffee, tea and energy drinks can add up throughout your day. Move each drink on the interactive chart, change your bedtime and watch the estimated caffeine level change.

Free interactive chartRuns in your browserFive-hour model half-life

EXPLORE YOUR DAY

Caffeine across 24 hours

INTERACTIVE

Drag a drink to change its time, tap an empty spot to add one, or drag the bedtime marker. Select a drink below the chart to change its type and size.

How to read it: the dotted curve is an estimate, not a measurement. The 50 mg bedtime marker is a visual guide chosen by the chart author, not a proven sleep-safe threshold. Keyboard users can focus the chart and use arrow keys to move a selected drink.

How much caffeine is still in your system?

The chart above estimates how much caffeine remains in the body over time after the drinks you enter. Start with the example day, drag a drink earlier or later, add another drink or move the bedtime marker. The dotted curve rises as caffeine is absorbed, then falls as it is eliminated. You can select coffee, espresso, cold brew, black tea, green tea, cola and energy drinks, with adjustable serving sizes.

It is a model of caffeine remaining in milligrams, not a caffeine blood test or a prediction of exactly when you will fall asleep. The chart uses typical caffeine amounts for each drink; a particular café coffee, tea bag or energy drink may contain considerably more or less.

How long does caffeine stay in your body?

This calculator assumes a five-hour elimination half-life. In simple terms, once caffeine has been absorbed, approximately half of a dose is still present five hours later, and about a quarter ten hours later. The chart accounts for an absorption phase, rather than assuming every milligram instantly enters your body.

Five hours is an illustrative average, not a personal measurement. Caffeine clearance varies from person to person. Pregnancy, some medicines, smoking and other factors can change the time taken to metabolise it.

For example, one 95 mg filter coffee does not mean precisely 95 mg is immediately circulating after the last sip. The chart gradually adds absorbed caffeine and then models its decline.

How much caffeine is in common drinks?

Drink Example serving Caffeine estimate
Brewed coffee 240 ml 95 mg
Espresso 30 ml 63 mg
Cold brew 473 ml 205 mg
Black tea 240 ml 47 mg
Green tea 240 ml 28 mg
Cola 355 ml 34 mg
Energy drink 250 ml 80 mg

These are the chart’s default assumptions, drawn from typical Mayo Clinic and USDA values in the original Caffeine Day project. Actual caffeine content varies by brand, brewing method, beans, strength and portion size. The chart scales the assumed caffeine content with the volume you select.

When should you stop drinking coffee before bed?

Ireland’s HSE advises avoiding caffeine at least four hours before bedtime if you have difficulty sleeping, and trying a longer gap if you seem sensitive to it. That is a practical sleep-hygiene recommendation, not a guarantee that caffeine from earlier in the day cannot affect you.

The chart’s 50 mg bedtime line is only an illustrative visual reference. It is not an established sleep-safe amount or a medical threshold. People can experience disrupted sleep at different caffeine exposures; the European Food Safety Authority (EFSA) notes that a single 100 mg dose can affect sleep in some adults, particularly close to bedtime.

If you want a useful experiment, move your usual afternoon coffee two hours earlier and watch how the estimated bedtime amount changes. Then compare that illustration with how you actually sleep over several days.

How much caffeine per day is considered safe?

EFSA’s assessment says that up to 400 mg daily, spread across the day, does not raise safety concerns for the general healthy adult population, excluding pregnant women. Single doses up to 200 mg also do not raise safety concerns for that population. These are population-level safety assessments, not recommended daily targets, and people with particular conditions or taking certain medicines may need different advice.

During pregnancy, EFSA identifies 200 mg per day from all sources as an amount that does not raise safety concerns for the fetus. The interactive model does not adjust its half-life for pregnancy, so do not use its bedtime estimate to judge pregnancy safety. Speak to your maternity team or clinician for individual guidance.

Caffeine can also come from chocolate, supplements and some medicines, which this chart does not automatically add. Do not treat the displayed amount at bedtime as a substitute for checking your total daily intake.

Caffeine and sleep: frequently asked questions

Does decaf coffee contain caffeine?

Yes, decaffeinated coffee and tea can still contain some caffeine. The HSE specifically notes this. The chart has no separate decaf preset, so its existing drinks should not be treated as decaf measurements.

Why might I feel awake even when the curve is low?

The display is a simplified pharmacokinetic estimate. Alertness and sleep depend on your sensitivity, baseline sleep, body clock, other stimulants and health. A low estimated amount does not guarantee good sleep; a high estimate does not diagnose a sleep disorder.

Does a larger coffee always mean more caffeine?

Not necessarily. The tool scales a reference drink by volume for convenience, but real caffeine depends on how it was prepared. An espresso and a filter coffee of the same size can differ significantly.

Can I share my caffeine chart?

Yes. After you interact with the chart, the drink timings and bedtime are encoded in the page URL fragment so that you can copy and share the scenario. The chart works in your browser and does not submit drink choices to Compound. Anyone with the shared URL can see the scenario encoded in that link.

How the calculator works and its limitations

Caffeine Day uses a one-compartment model with first-order absorption and elimination, summing the contribution of each drink. The default absorption half-life is 15 minutes and the elimination half-life is five hours. The model assumes the same kinetics for everyone, even though real caffeine processing differs widely.

It does not calculate serum concentration, personalise for body weight or medicines, model interactions or diagnose sleep problems. In particular, do not use the chart’s bedtime line to decide whether caffeine is safe for a child, for pregnancy, or alongside a medical condition.

Sources and credits (checked 17 November 2026):

For broader context, read how much sleep adults need or explore other Compound health tools.

YOUR PRIVACY

Help us understand what gets read.

With your permission, anonymous Google Analytics measurements tell us which articles are useful. We do not send calculator entries or form values. You can decline and still read everything.