Hale / Caffeine calculator

When should your last coffee be?

Enter your bedtime and your usual drink. The calculator works out a sensible cut-off and estimates how much caffeine is still active when you go to bed.

How the calculator works

Caffeine leaves your body gradually. Its half-life — the time for the amount in your blood to halve — averages about five to six hours in healthy adults. So if you have a 95 mg coffee at 3pm, roughly half is still active at 8:30pm and around a third at 11pm.

The calculator takes your drink, applies that decay up to your bedtime, and suggests the latest time that would leave under about 20 mg active when you go to bed — a level most people don’t notice.

Why it varies so much

Half-life ranges from roughly two hours to ten or more. It tends to be longer in pregnancy, with some medicines (including some oral contraceptives) and with liver conditions, and shorter in smokers. Genetics matter too — which is why one person sleeps soundly after an evening espresso and another is awake at two.

A better way to find your own cut-off

A formula can only guess. Your own nights can tell you. In Hale you log a coffee in one tap; after a couple of weeks it compares the nights after late caffeine with the nights after early caffeine — your sleep, your numbers. Try Hale free for 14 days.

This is a general estimate, not medical advice. UK guidance suggests up to 400 mg of caffeine a day is unlikely to cause problems for most adults, and no more than 200 mg a day in pregnancy.