Caffeine Half-Life Calculator

See how long caffeine stays in your system and when it's safe to sleep. Based on the scientifically studied 5.7-hour half-life.

mg of caffeine
bedtime

Your Caffeine Levels

How Caffeine Affects Your Sleep

Caffeine is the world's most widely consumed psychoactive substance. While it provides welcome alertness during the day, its long half-life means it can seriously undermine your sleep quality — even when you don't feel "wired" anymore.

The Half-Life Explained

Caffeine has a half-life of approximately 5.7 hours (based on a meta-analysis of pharmacokinetic studies; individual variation ranges from 3–7 hours). "Half-life" means that every 5.7 hours, your body eliminates half of the remaining caffeine. The process looks like this:

This means that 200mg of caffeine consumed at 2:00 PM still leaves about 100mg in your system at 7:57 PM, and 50mg at 1:54 AM. For reference, 50mg is roughly the amount in a half cup of coffee — enough to measurably reduce deep sleep.

Caffeine and Sleep Architecture

Caffeine doesn't just make it harder to fall asleep — it fundamentally changes the quality of your sleep. Research published in the Journal of Clinical Sleep Medicine found that consuming 400mg of caffeine even 6 hours before bedtime reduced total sleep time by more than 1 hour and significantly decreased deep (N3) sleep. The participants often didn't even notice the disruption, yet objective measurements showed clear deterioration in sleep quality.

Specifically, caffeine suppresses:
Deep sleep (N3): The physically restorative stage is reduced, meaning you wake up less refreshed even if you slept the same number of hours.
REM sleep: The dreaming stage that processes emotions and consolidates memories is shortened, affecting learning and mood.
Sleep onset: It takes longer to fall asleep, cutting into total sleep time.

Individual Variation

Not everyone metabolizes caffeine at the same rate. The primary enzyme responsible for caffeine metabolism is CYP1A2 in the liver. Genetic variations in this enzyme create three categories of metabolizers:

Factors that slow caffeine metabolism include: oral contraceptives, pregnancy, liver disease, and certain medications. Smoking speeds up caffeine metabolism (which is why heavy smokers often consume more caffeine). If you're a slow metabolizer, consider moving your caffeine cutoff even earlier — perhaps before noon.

Practical rule: For most people, the safe cutoff is no caffeine after 2:00 PM for a typical 11:00 PM bedtime. This gives approximately 9 hours for caffeine to drop below disruptive levels. If you're sensitive to caffeine, move this to noon or earlier.

Caffeine Content in Common Drinks

DrinkServing SizeCaffeine (mg)
Brewed coffee8 oz (240ml)95
Espresso1 oz (30ml)63
Cold brew coffee8 oz (240ml)100–200
Starbucks Pike Place (Grande)16 oz (470ml)310
Black tea8 oz (240ml)47
Green tea8 oz (240ml)28
Energy drink (Red Bull)8.4 oz (250ml)80
Energy drink (Monster)16 oz (470ml)160
Cola (Coca-Cola)12 oz (355ml)34
Decaf coffee8 oz (240ml)2–5
Hot chocolate8 oz (240ml)5

Frequently Asked Questions

Caffeine has a half-life of approximately 5.7 hours (ranging from 3–7 hours depending on the individual). This means that 5.7 hours after consuming caffeine, half of it is still in your system. After 11.4 hours, 25% remains. After 17.1 hours, 12.5% remains. For most people, it takes about 24–36 hours for caffeine to be fully eliminated.
The general recommendation is to stop consuming caffeine at least 8 hours before bedtime. Since caffeine has a half-life of about 5.7 hours, consuming 200mg at 2 PM means about 100mg is still in your system at 7:57 PM, and 50mg remains at 1:54 AM. Even 50mg of caffeine can disrupt sleep architecture, particularly deep sleep and REM.
Common caffeine amounts: Brewed coffee (8 oz) = 95mg, Espresso (1 oz) = 63mg, Black tea (8 oz) = 47mg, Energy drink (8 oz) = 80mg, Cola (12 oz) = 34mg, Green tea (8 oz) = 28mg, Decaf coffee (8 oz) = 2–5mg. Amounts vary by brand and preparation method.
No. Caffeine metabolism varies significantly based on genetics, liver enzyme activity (specifically CYP1A2), age, pregnancy, and medication use. Fast metabolizers clear caffeine in 3–4 hours, while slow metabolizers may take 8–10 hours. Smoking speeds up caffeine metabolism, while oral contraceptives slow it down. This calculator uses the average half-life of 5.7 hours.
Yes. Research shows that even when people don't subjectively feel the effects of caffeine, it still disrupts sleep architecture. A study in the Journal of Clinical Sleep Medicine found that consuming 400mg of caffeine at bedtime, 3 hours before bed, or even 6 hours before bed all significantly reduced sleep quality. Caffeine consumed 6 hours before bed reduced total sleep time by more than 1 hour.

More Sleep Tools