United Kingdom ยท Health & Body
Caffeine Calculator
Will it keep you awake?
Count your drinks and the calculator totals the caffeine, compares it against the daily guideline, and uses the half-life to work out how much of your last cup is still in your system when you go to bed.
How much caffeine is too much?
Healthy adults are generally advised to stay under 400 mg of caffeine a day โ roughly four mugs of filter coffee. Pregnancy guidance in the UK is much lower, at 200 mg. Caffeine has a half-life of around five hours, so a 200 mg coffee at 4pm still leaves about 100 mg circulating at 9pm.
How to use this calculator
- Count drinks honestlyA mug is not a cup. The figures here assume a 250 ml mug, which is what most people actually drink from โ a 150 ml cup contains proportionally less.
- Adjust the guideline if it applies to you400 mg is the general adult figure. UK pregnancy guidance is 200 mg. If you have been advised a different limit, enter it.
- Use the sleep panel for the evening questionEnter the size of your last dose and how long before bed you had it. The half-life model shows how much is still circulating.
- Treat the numbers as rangesCaffeine content varies by a factor of two or more between brews of the same drink. These are central estimates, not measurements of your cup.
How the calculation works
The daily total is straightforward multiplication and addition. The interesting part is the elimination model.
Caffeine is cleared by first-order kinetics, meaning a constant proportion is removed per unit time rather than a constant amount. That produces exponential decay with a half-life โ the time taken for the amount in your bloodstream to halve.
In healthy adults that half-life averages about five hours. So a 200 mg coffee at 2pm leaves 100 mg at 7pm, 50 mg at midnight and 25 mg at 5am. The last figure is the one that surprises people: a lunchtime coffee is still measurably present when you wake up.
The individual variation is enormous and genuinely matters. Genetics โ particularly variants of the CYP1A2 enzyme that metabolises caffeine โ split the population into fast and slow metabolisers, with half-lives ranging from around two hours to ten. Smoking roughly halves it. Pregnancy can more than double it, reaching fifteen hours or more in the third trimester, which is a large part of why the guideline drops.
Hormonal contraceptives, some antibiotics and liver conditions all lengthen it too. If caffeine affects you noticeably more than it affects other people, that is a real physiological difference rather than a matter of tolerance.
remaining = dose ร 0.5^(hours รท half-life)Typical caffeine content
| Drink | Typical caffeine | Range |
|---|---|---|
| Filter coffee, 250 ml mug | 95 mg | 70 โ 140 mg |
| Instant coffee, 250 ml mug | 60 mg | 30 โ 90 mg |
| Espresso, single shot | 63 mg | 45 โ 75 mg |
| High street latte or flat white | 75 โ 150 mg | Depends on shots |
| Black tea, 250 ml mug | 47 mg | 30 โ 70 mg |
| Green tea, 250 ml mug | 28 mg | 20 โ 45 mg |
| Cola, 330 ml can | 32 mg | 25 โ 40 mg |
| Energy drink, 250 ml | 80 mg | 70 โ 160 mg |
| Dark chocolate, 50 g | 12 mg | 5 โ 40 mg |
| Decaf coffee, mug | 3 mg | 2 โ 15 mg |
Espresso-based drinks are the ones people misjudge most. A single-shot latte contains less caffeine than a mug of filter coffee, because the filter method extracts more in total despite the espresso being far more concentrated per millilitre. Concentration and total dose are different things, and it is the total that matters.
Worked example
Two mugs of filter coffee, one instant and two black teas: 190 + 60 + 94 = 344 mg. That is 86 per cent of the 400 mg guideline, so within it but not by much โ one more coffee would take you over.
Now the sleep question. Suppose the last of those coffees was a 95 mg mug at 4pm and you go to bed at 10pm, six hours later. Remaining = 95 ร 0.5^(6 รท 5) = 95 ร 0.435 = 41 mg.
Forty-one milligrams is roughly the caffeine in a mug of black tea, still circulating as you try to sleep. Research on caffeine and sleep consistently finds that doses well below what people consider stimulating still reduce total sleep time and slow-wave sleep, often without the person noticing any subjective effect.
Work the model backwards and the practical rule falls out: to have under 25 mg left at bedtime from a 95 mg coffee, you need about 9.6 hours. That is why the standard advice is no caffeine after early afternoon, and why people who insist coffee does not affect their sleep are frequently sleeping worse than they think.
What the guideline is and is not
The 400 mg figure is a general population guideline for healthy adults, based on evidence about cardiovascular effects, anxiety, and sleep disruption. It is not a threshold where something happens at 401 mg โ it is a level below which no consistent adverse effect has been demonstrated across the population.
Pregnancy guidance in the UK is 200 mg, and the reason is specific: caffeine crosses the placenta, the foetus cannot metabolise it, and maternal clearance slows dramatically as pregnancy progresses. That guidance is worth following precisely rather than approximately.
Adolescents are advised considerably lower again, and energy drinks are the practical concern there rather than coffee โ a large can can exceed 160 mg in a single serving, and they are marketed and consumed differently from a mug of tea.
Caffeine also produces genuine physical dependence. Regular consumption downregulates adenosine receptors, so stopping abruptly causes headache, fatigue and irritability for several days. That withdrawal is real pharmacology rather than habit, and it is why cutting down gradually works better than stopping outright.
One thing worth separating: tolerance to the alerting effect develops quickly, but tolerance to the sleep disruption does not develop nearly as completely. Someone who drinks coffee all day and sleeps badly may have full tolerance to feeling stimulated and none to the effect on their sleep architecture.
If caffeine is causing palpitations, anxiety, tremor or persistent insomnia, that is worth discussing with a GP or pharmacist rather than managing by calculator. Certain medications and heart conditions interact with caffeine in ways this tool cannot account for.
Assumptions and limitations
- Caffeine content per serving is a typical figure โ real variation is a factor of two or more
- Assumes a 250 ml mug; smaller cups contain proportionally less
- The five-hour half-life is a population average, ranging from about two to ten hours between individuals
- Does not account for pregnancy, smoking, medications or liver conditions, all of which change clearance substantially
- Models a single last dose rather than accumulation across multiple drinks
- General guidance only โ not medical advice, and not tailored to any health condition
Questions people ask about this in United Kingdom
How much caffeine is too much?
Healthy adults are generally advised to stay under 400 mg a day, which is roughly four mugs of filter coffee. UK pregnancy guidance is much lower at 200 mg, because caffeine crosses the placenta and maternal clearance slows considerably.
Adolescents are advised lower again, with energy drinks the main practical concern.
How long does caffeine stay in your system?
It has a half-life of about five hours in healthy adults, so half is gone after five hours, three quarters after ten, and so on. A 200 mg coffee at 2pm still leaves around 25 mg in your bloodstream at 5am the next morning.
When should I stop drinking coffee to sleep well?
Roughly ten hours before bed to get a 95 mg mug down below 25 mg. In practice that means no caffeine after early afternoon. Studies consistently find sleep disruption at doses people do not subjectively notice.
Does a latte have more caffeine than filter coffee?
Usually less, with a single shot. Espresso is far more concentrated per millilitre but a shot is small, so the total dose is lower than a mug of filter coffee. Concentration and total dose are different things, and the total is what matters.
Why does caffeine affect some people more than others?
Largely genetics. Variants of the CYP1A2 enzyme split people into fast and slow metabolisers, with half-lives ranging from about two hours to ten. Smoking roughly halves it; pregnancy, some contraceptives and certain antibiotics lengthen it considerably.
Is decaf caffeine-free?
No, just much lower. A mug of decaf typically contains a few milligrams against 95 in regular filter coffee. That is negligible for most people, though it is not zero if you are extremely sensitive or drinking a great deal of it.
Related United Kingdom calculators
Tools people usually open in the same sitting.
Method, source and review date
- How it is worked out
- Typical caffeine content per serving, with first-order elimination at a five-hour half-life
- Formula used
total = ฮฃ (servings ร caffeine per serving) ยท remaining = dose ร 0.5^(hours รท half-life)- Checked against
- NHS
- Rates last verified
- Confidence
- Medium
Caffeine content varies enormously with brew strength, cup size and product. The half-life of five hours is a population average โ it ranges from about two to ten hours between individuals, and is longer in pregnancy and with some medications.
Spotted a figure that has moved, or a formula you can show is wrong? Tell us โ send a correction. Fixes to rates and formulas are treated as urgent.
Disclaimer
This is a general estimate and not medical advice. It cannot account for your medical history, medication or individual circumstances. Speak to a doctor, nurse or pharmacist about anything affecting your health.