What's left at bedtime
No, use the half-life slider
Oral contraceptives (7.9 h in a 1985 study)
Ciprofloxacin (8.2 h in a 1989 study)
Pregnant (8.3 h average in a 1981 study)
I smoke (3.5 h in a 2025 review)

Caffeine remaining (mg) over time
Show as a table
TimeCaffeine left

How the calculator works

After you drink it, caffeine reaches its peak level in the blood within 30 to 120 minutes and is then cleared at a steady proportional rate (clinical toxicology review). Every half-life, half of what is left is gone, so the amount remaining is the dose × 0.5 raised to the hours elapsed divided by the half-life. The calculator treats the drink as absorbed at once, which overstates the level for the first hour or so; after the peak, the curve follows the same decay.

A worked example: 200 mg at 3 pm on a 5-hour half-life. By 11 pm, 8 hours or 1.6 half-lives have passed, and about 66 mg remains. It takes until 1 am, two full half-lives, to reach 50 mg.

The default is 5 hours. The same review puts the average half-life in healthy adults at roughly 3 to 6 hours, and individual measurements from 2.3 to 9.9 hours. The slider covers the middle of that range; if you know caffeine stays with you for a long time, or wears off fast, move it.

What changes your half-life

  • Oral contraceptives. Women on low-dose oestrogen pills averaged 7.9 hours against 5.4 in matched controls (Abernethy and Todd, 1985), about one and a half times as long.
  • Ciprofloxacin. The antibiotic raised the half-life from 5.2 to 8.2 hours (Healy et al., 1989). Fluvoxamine and cimetidine also slow clearance (review).
  • Pregnancy. Pregnant women averaged 8.3 hours, ranging from 3 to 16, against 3.4 hours in men and non-pregnant women (Knutti et al., 1981).
  • Smoking. Clearance runs about 40 to 65% faster in smokers, and the half-life falls from 6.0 to 3.5 hours (2025 review).
  • Liver disease reduces clearance too (review), with no single figure to plug in; ask your doctor.

Choosing one of these replaces the slider with the study's average. Individuals vary widely around every one of those averages.

Where the cut-off time comes from

Two findings set it. In a 2013 study by Drake and colleagues, 400 mg taken six hours before bedtime still disrupted sleep, and the authors recommend avoiding substantial caffeine for at least six hours before bed. EFSA adds that a single dose of 100 mg, about 1.4 mg per kg of body weight, may affect sleep in some adults when taken close to bedtime.

The calculator gives the earlier of the two: six hours before bed, or the time your drink needs to fall below that EFSA level, which for a large coffee can be much longer. A drink that starts below the level gets no cut-off, though light sleepers may still want one. It works one drink at a time; to add up a whole day against your limit, use the main caffeine calculator, and see caffeine in drinks for every figure and its source.

Common questions

How long does caffeine stay in your system?

Caffeine clears at a steady proportional rate: every half-life, half of what is left is gone. The average half-life in healthy adults is roughly 3 to 6 hours, and individuals have been measured from about 2 to 10 hours. On a 5-hour half-life, a 200 mg coffee at 3 pm leaves about 66 mg at 11 pm and 50 mg at 1 am. After five half-lives, about 25 hours on that setting, 3% of the dose remains.

When should I stop drinking caffeine before bed?

At least six hours before, going by a 2013 study by Drake and colleagues in which 400 mg taken six hours before bedtime still disrupted sleep. For a strong drink, earlier still: the calculator also works out when the dose falls below 100 mg, about 1.4 mg per kg of body weight, which EFSA says may affect sleep in some adults when taken close to bedtime, and uses whichever cut-off comes first.

Does birth control make caffeine last longer?

Yes. In a 1985 study, women taking low-dose oestrogen oral contraceptives had an average caffeine half-life of 7.9 hours, against 5.4 hours in matched women not taking them: about one and a half times as long. Choose oral contraceptives in the calculator to use that figure.

How long does caffeine last in pregnancy?

Much longer than usual. A 1981 study measured an average half-life of 8.3 hours in pregnant women, ranging from 3 to 16 hours, against 3.4 hours in men and non-pregnant women; values mostly returned to normal within a month of delivery. The 200 mg daily limit ACOG uses in pregnancy is about the total, and this calculator shows how long each drink lingers.

Does smoking change how long caffeine lasts?

It shortens it. A 2025 review reports caffeine clearance about 40 to 65% higher in smokers than in non-smokers, with the half-life falling from 6.0 to 3.5 hours. Choose smoking in the calculator to use that figure.