Recovery

Caffeine Half-Life Calculator

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.

Last updated

Your caffeine
mg
hrs
hrs
Caffeine remaining
After 8 hours66mg
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

Track it with Bodly

Bodly tracks your sleep score and recovery metrics, so you can see how late-day caffeine affects how well you actually sleep.

Download App
Download

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.

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

What is the half-life of caffeine?

About 5 hours in a typical healthy adult, ranging from roughly 3 to 7 hours. After one half-life, half the caffeine you consumed remains in your bloodstream.

How long does caffeine stay in your system?

Caffeine is mostly cleared within about 10 hours, but traces remain longer. With a 5-hour half-life, a 200 mg dose leaves around 50 mg after 10 hours and 25 mg after 15 hours.

When should I stop drinking coffee before bed?

A good rule is to stop caffeine at least 8–10 hours before bed. Research shows caffeine taken even 6 hours before sleep can reduce sleep quality. The calculator shows how much will remain at bedtime.

How much caffeine is in a cup of coffee?

A standard 8 oz (240 ml) brewed coffee contains roughly 95 mg of caffeine, though it varies by bean, roast and brewing method. An espresso shot has about 63 mg.

Does caffeine affect sleep even if I fall asleep fine?

Yes. Caffeine can reduce deep sleep and total sleep time even when you don't notice trouble falling asleep, which is why timing your last dose matters for recovery.

Can I clear caffeine from my body faster?

Not significantly — your liver clears it at its own pace. Staying hydrated and waiting are the main options. The best strategy is to limit late-day intake in the first place.

How much caffeine is safe per day?

Most healthy adults can safely consume up to about 400 mg per day (around four cups of coffee). Pregnant people are generally advised to stay below 200 mg, and sensitive individuals may need less.

Does caffeine help workouts?

Yes. Caffeine is a well-researched performance aid that can improve endurance, strength and perceived effort when taken about 30–60 minutes before exercise. Just keep late-day pre-workouts in mind for sleep.

Sources & references

Related tools