Prescosoft
7 min read

Caffeine Half-Life: How Long Caffeine Stays in Your Body

That 2 PM coffee is still in your bloodstream at midnight — and it's quietly rewiring your sleep. Here's the math behind caffeine's half-life and how to use it.

The Math: What Half-Life Means

Time after a 95 mg coffeeCaffeine remaining% remaining
0 hours (8:00 AM)95.0 mg100%
5 hours (1:00 PM)47.5 mg50%
10 hours (6:00 PM)23.8 mg25%
15 hours (11:00 PM)11.9 mg12.5%
25 hours (9:00 AM next day)3.0 mg~3%

The shape is exponential decay: each half-life removes half of what's left, not half of the original. That's why a morning coffee lingers as a small-but-real dose at bedtime — and why multiple drinks stack.

Why Three Coffees Beat One Coffee

Caffeine levels add up. The classic day:

DrinkTimeDoseAt 2:00 PM (5h half-life)
☕ Coffee8:00 AM95 mg~41 mg
☕ Espresso11:00 AM63 mg~42 mg
🍵 Tea1:00 PM30 mg~26 mg
Total at 2:00 PM188 mg~109 mg

At 2 PM you're carrying more than your morning coffee alone — because each dose decays on its own clock and they overlap. This accumulation is why the last drink of the day matters most: it sits on top of everything still clearing.

Why "5 Hours" Is Only an Average

FactorEffect on half-life
CYP1A2 slow variant (genetics)6-8+ hours
CYP1A2 fast variant (genetics)3-4 hours
Pregnancy (esp. third trimester)~2x longer
Oral contraceptivesUp to 2x longer
Smoking~50% shorter
Age (older adults)Somewhat longer

Set the calculator to 3 hours if caffeine barely touches you, 7 hours if it lingers for most of the day, and err longer if pregnant (and discuss limits with your provider). The difference between 3h and 7h half-life is the difference between "coffee with dinner is fine" and "one coffee at noon ruins tonight."

Timing Your Last Coffee

  • The 6-8 hour rule is a floor, not a rule. For average metabolizers it's a decent start, but slow metabolizers need 10-14 hours.
  • Think in thresholds. Aim to be under ~50 mg at bedtime. Work backward from your bedtime using your own half-life — that's exactly what the calculator's "latest safe coffee" does.
  • Caffeine within 6 hours of bed can cost you an hour of sleep — even if you fall asleep fine, deep sleep and REM suffer (research consistently shows this).
  • Half-caf, decaf, and smaller cups are the real dials. Cutting 95 mg to 47 mg shortens the tail dramatically.

Model your own day with the Caffeine Half-Life Calculator — log your drinks, set your half-life, and see the decay curve plus the latest safe coffee time for your bedtime.

Frequently Asked Questions

How long does caffeine stay in your system?

Caffeine has an average half-life of about 5 hours, meaning half of what you consumed is still in your body 5 hours later. After 10 hours about a quarter remains, and it takes roughly 24-30 hours to clear almost all of it. Your personal half-life depends on genetics, age, pregnancy, smoking, and some medications — the normal range is 3 to 7 hours.

What does a 5-hour half-life actually mean?

Half-life is the time for your body to eliminate half the substance. A 95 mg coffee at 8 AM leaves about 47.5 mg at 1 PM, 23.8 mg at 6 PM, and 11.9 mg at 11 PM. That last number is why a morning coffee can still nudge your sleep: even a small amount of caffeine blocks adenosine receptors and shifts sleep architecture.

Why does coffee affect me longer than it affects my partner?

You likely have different half-lives. The enzyme CYP1A2, which breaks down caffeine, comes in fast and slow genetic variants. Slow metabolizers can have 6-8+ hour half-lives, meaning their caffeine levels stay elevated much longer. Pregnancy roughly doubles half-life, oral contraceptives slow it, and smoking speeds it up. Two people can drink the same coffee and have very different caffeine curves.

How much caffeine is in common drinks?

Standard averages: 8 oz brewed coffee ~95 mg, 1 oz espresso shot ~63 mg, 8 oz black tea ~47 mg, 8 oz green tea ~28 mg, 12 oz cola ~34 mg, 8 oz energy drink ~80 mg, and 16 oz energy drink ~160 mg. These vary with brand, bean, brew strength, and serving size — but they're good starting points for tracking.

When should I have my last coffee before bed?

A common rule is to stop caffeine 6-8 hours before bed, but the honest answer depends on your half-life and sensitivity. The practical approach: aim to be below roughly 50 mg at bedtime. For an average 5-hour metabolizer, a 95 mg coffee at 8 AM falls below that by early evening; a 2 PM coffee does not. Work backward from your bedtime with your own half-life for a real answer.

Can I speed up caffeine clearance?

Not meaningfully. Water, exercise, and vitamins do not accelerate the liver enzyme that clears caffeine — they affect symptoms at best. The only real levers are time and dose: consume less, earlier. What you can change immediately is tomorrow's timing. That's exactly what a half-life calculator is for.

Know what's in your system

Your caffeine log and decay curve — computed privately on your device. Nothing uploaded, ever.