Caffeine Half-Life Calculator

See how much caffeine is left in your system over time and when to stop drinking coffee for better sleep.

Caffeine has a half-life of around five hours, meaning half of what you drink is still in your bloodstream five hours later. This caffeine half-life calculator shows how a dose decays over time, so you can time your coffee to stay alert during the day without wrecking your sleep at night.

For example, a 200 mg coffee at 3 pm still leaves about 100 mg in your system at 8 pm and 50 mg by 1 am. Enter your dose and timing above to see your own caffeine curve.

Your caffeine
mg
hrs
hrs
Caffeine remaining
After 8 hours66.0mg
Starting dose200 mg
Half-life used5 hrs

The average caffeine half-life is about 5 hours, but it ranges from 3 to 7 hours depending on genetics, medications and other factors.

Caffeine decay over time
When consumed200 mg
After 2 hours151.6 mg
After 4 hours114.9 mg
After 6 hours87.1 mg
After 8 hours66 mg
After 10 hours50 mg
After 12 hours37.9 mg

What is caffeine's half-life?

A substance's half-life is the time it takes for half of it to be eliminated from your body. For caffeine, that's roughly 5 hours in a typical healthy adult, though it ranges from about 3 to 7 hours depending on the person. So if you consume 200 mg, around 100 mg remains after 5 hours, 50 mg after 10 hours, and 25 mg after 15 hours.

How this calculator works

The calculator models caffeine clearance as exponential decay. Starting from your dose, it halves the amount remaining for every half-life that passes, using the formula below.

Remaining caffeine = dose × 0.5 ^ (hours elapsed ÷ half-life). Worked example: 200 mg with a 5-hour half-life, 8 hours later = 200 × 0.5^(8 ÷ 5) ≈ 66 mg still circulating.

Caffeine content of common drinks

To use the calculator, you'll need your caffeine dose. The table below lists typical amounts in popular drinks - actual content varies by brand and serving size.

Approximate caffeine content of common drinks
DrinkServingCaffeine
Brewed coffee240 ml (8 oz)~95 mg
Espresso30 ml (1 shot)~63 mg
Energy drink240 ml (8 oz)~80 mg
Black tea240 ml (8 oz)~47 mg
Cola355 ml (12 oz)~35 mg
Green tea240 ml (8 oz)~28 mg

Caffeine and sleep: when to stop drinking coffee

Because caffeine lingers for hours, an afternoon coffee can still be active at bedtime. Research has found that consuming caffeine even 6 hours before bed can measurably reduce total sleep time. A common rule of thumb is to stop caffeine at least 8–10 hours before you plan to sleep - for an 11 pm bedtime, that means cutting off around 1–3 pm. Use the calculator to see how much will still be in your system at lights-out.

Your caffeine cutoff time, by bedtime

The table assumes a five-hour half-life and aims to leave you under about 50 mg at lights-out, which is roughly the point where most people stop seeing measurable effects on sleep depth. One brewed coffee is about 95 mg; a large shop coffee or a strong pre-workout is closer to 200 mg.

If you are a slow metaboliser, pregnant, taking oral contraceptives, or on certain medications, clearance can take up to twice as long. Push each cutoff earlier by two to three hours.

Latest sensible caffeine, assuming a 5-hour half-life
BedtimeLast 95 mg coffeeLast 200 mg dose
22:0016:3012:00
22:3017:0012:30
23:0017:3013:00
23:3018:0013:30
00:0018:3014:00

What affects how fast you clear caffeine?

Caffeine metabolism varies a lot between people. Genetics (variations in the CYP1A2 liver enzyme), pregnancy, liver health, certain medications and oral contraceptives can all lengthen caffeine's half-life, while smoking shortens it. If caffeine keeps you awake even when consumed early, you may be a 'slow metaboliser' and should cut off earlier in the day.

Safe daily caffeine limits

For most healthy adults, up to 400 mg of caffeine per day - roughly four cups of brewed coffee - is considered safe by health authorities such as the US FDA. Going much higher can cause jitteriness, a racing heart, anxiety and disrupted sleep. Pregnant people are usually advised to stay under 200 mg per day, and individual tolerance varies widely.

Remember that caffeine adds up across coffee, tea, energy drinks, cola, pre-workout supplements and even chocolate. If you're sensitive, get your caffeine in early in the day so the dose has time to clear before bed - which is exactly what this calculator helps you plan.

Further reading

Frequently asked questions

Sources & references

Related tools