Calculators / How long does caffeine stay in your system?

How long does caffeine stay in your system?

Put in what you drank and when. See how much is still in your body at bedtime — and how long until it is effectively gone.

Last updated Based on 2 official sources

What you enter

  • What you drank: Caffeine (mg); Time you finished it
  • Your half-life: Half-life (hours); Your bedtime

How this is calculated

Caffeine leaves the body at a roughly fixed proportion per hour, which is what a half-life means: every half-life, half of what is left is gone. So the amount remaining is

  1. remaining = amount × 0.5(hours ÷ half-life)

This is an estimate of average behaviour. Real clearance depends on your liver enzymes, smoking, pregnancy, some medicines and your genes, which is why the half-life runs from 3 to 7 hours. Set the slider to your own figure if you know it.

Caffeine starts working in about 30 minutes (range 15–45), so the peak is earlier than the table above suggests.

Your inputs never leave this page. Nothing is sent to a server, saved to an account, or written to a cookie.

Official sources — every figure used above.

Last checked: .

This is a general calculation, not medical advice. If caffeine is stopping you sleeping, or you have a heart condition or are pregnant, talk to a doctor.

All calculators · Sleep Arithmetic