Caffeine calculator

Pick a drink, the time you had it and your bedtime: the calculator shows how much caffeine is still in you when you go to sleep, and whether that is likely to affect your sleep.

Try it

50 mgBed 11 pm: 33 mg6am9am12pm3pm6pm9pm12am3am

Had at 3 pm, about 33 mg is still in you at an 11 pm bedtime. That should not affect most people’s sleep.

Bedtime

Add this to my day

Your whole day, every drink, in the free CaffeineIQ check. The iPhone app is coming soon.

How the calculator works

Caffeine does not hit you all at once and it does not vanish at a fixed time. After a drink it is absorbed over roughly the first hour, so the amount in your blood climbs to a peak. From then on your liver clears it at a steady proportional rate: for an average adult, half of whatever is left is gone about every 5 hours. That is the caffeine half-life.

The calculator runs that model for the drink you choose, minute by minute across the day, and draws it as the dot chart above. The number that matters for sleep is the one at your bedtime, and the shaded band is the night you spend asleep. Columns turn amber while you are asleep and still above the 50 mg line most people sleep fine under.

It is an estimate. Your own half-life can be anywhere from about 3 to 7 hours, and longer in pregnancy or with some medicines. The accuracy questions on the main tool adjust it for you.

One cup of coffee at different times

An 8 fl oz cup of brewed coffee has 95 mg of caffeine. Here is what is left at three common bedtimes depending on when you drink it.

Had at10 pm bed11 pm bedMidnight bed
7 am13 mg11 mg9.6 mg
9 am17 mg15 mg13 mg
11 am22 mg19 mg17 mg
1 pm29 mg25 mg22 mg
3 pm38 mg33 mg29 mg
5 pm51 mg44 mg38 mg
7 pm67 mg58 mg51 mg

The rule of thumb that falls out of it: finish your last full cup of coffee about 8 to 10 hours before bed if you want to be under 50 mg, and earlier if you are sensitive. Bigger drinks need more time; see when to stop drinking coffee.

Check your whole day

Most people have more than one drink. The free check on the CaffeineIQ home page takes every drink and the time you had it, shows the total on the same chart, and tells you the latest time for one more. It runs in your browser and keeps nothing on a server.

FAQ

How does the caffeine calculator work?

It adds up caffeine as your body absorbs it over the first hour and removes it at a steady rate, so that half is gone about every 5 hours. The result is the amount still in you at the bedtime you pick.

How much caffeine at bedtime is too much?

Most people sleep fine with less than about 50 mg in their system at bedtime. Very sensitive people may notice 25 mg; others are not bothered until about 100 mg.

Can I add more than one drink?

Yes. The free check on the CaffeineIQ home page takes your whole day, every drink and time, and shows the total at bedtime.

Look up a drink

Estimates, not medical advice. How it works.