Overview

Caffeine fades slowly, so an afternoon coffee may still be in your system at bedtime. This estimates how much remains at 11 PM and gives a rough score for how much it may affect sleep.

Enter how much caffeine you had, when you had it (in 24-hour time), your weight, your half-life and a sensitivity multiplier. Use 1 for average sensitivity, and higher if caffeine affects you strongly.

Worked examples

InputsResult
Caffeine Consumed (mg)300Consumption Time (24h hour)15Body Weight (lb)180Half Life (hours)5Sensitivity Multiplier1Estimated caffeine at 11:00 PM: 98.96 mgResidual load: 1.21 mg/kgSleep quality penalty: 21.57/100Low sleep disruption risk
Show 2 more examples
Caffeine Consumed (mg)95Consumption Time (24h hour)8Body Weight (lb)150Half Life (hours)5Sensitivity Multiplier1Estimated caffeine at 11:00 PM: 11.88 mgResidual load: 0.17 mg/kgSleep quality penalty: 2.82/100Low sleep disruption risk
Caffeine Consumed (mg)200Consumption Time (24h hour)17Body Weight (lb)200Half Life (hours)6Sensitivity Multiplier1.5Estimated caffeine at 11:00 PM: 100 mgResidual load: 1.1 mg/kgSleep quality penalty: 26.82/100Moderate sleep disruption risk

How it works

Half of the caffeine in your body clears every half-life, around 5 hours for many adults, so the amount falls exponentially until 11 PM. The penalty score is a simple rule of thumb built on the amount left, your body weight and your sensitivity. It is not a medical measure or sleep study result.

The formula

Remaining = dose × 0.5^(hours ÷ half-life)
half-lifeTime for the amount in your body to halve, about 5 hours on average

Practical tips

  • 300 mg at 3 PM with a 5-hour half-life leaves about 99 mg at 11 PM.
  • A typical brewed coffee has around 95 mg, and energy drinks often have 80 to 300 mg. Check the label.
  • One well-known study found that 400 mg even 6 hours before bed cut sleep by over an hour.

Frequently asked questions

What affects caffeine's half-life?

Smoking can shorten it, while pregnancy and some medicines, including certain oral contraceptives, can lengthen it a lot.

When should I stop drinking coffee?

Many sleep experts suggest stopping at least 6 to 8 hours before bed. If you are sensitive, try earlier.

How much caffeine is safe?

The FDA cites up to 400 mg a day for most healthy adults. The advice is lower during pregnancy, so check with your doctor.