💪
💪 Health & fitness

Caffeine Dose & Sleep Cut-off Calculator

Results update as you type.

Your numbers

Understanding the caffeine dose and sleep cut-off calculator — concept and principle

Caffeine wakes you up because it lasts for hours, and that same persistence can spoil your sleep. This calculator estimates how much of a dose is still in your body at bedtime, gives the dose range used to improve sports performance and shows the generally accepted daily limit for healthy adults.

Caffeine left in the body over time200 mg of caffeine with a 5-hour half-life drops to 100 mg after 5 hours and about 66 mg at bedtime 8 hours later.Caffeine halves every 5 hours200 mg100 mg66 mg50 mg0 h5 h8 h10 h200 × 0.5^(8 ÷ 5) = 66 mg at bedtime3–6 mg/kg225–450 mgadult daily limit400 mg
A morning-sized cup still leaves about a third of its caffeine at bedtime.

How it is calculated

The half-life is the time it takes for the body to clear half of the caffeine; the default of 5 hours is a typical adult value.

The principle

Caffeine is absorbed almost completely within about an hour and is then broken down by the liver, mainly by the enzyme CYP1A2. Elimination follows first-order kinetics: in each half-life the amount falls by half, whatever amount you started with. After one half-life 50% remains, after two 25%, and so on, which is why the formula raises 0.5 to the number of half-lives elapsed. The half-life varies widely between people, commonly about 3 to 7 hours. Smoking shortens it, while pregnancy, oral contraceptives and liver disease lengthen it.

Worked example

  1. Default inputs: 75 kg, 200 mg caffeine, half-life 5 h, 8 h until bed.
  2. Half-lives elapsed = 8 ÷ 5 = 1.6.
  3. Remaining = 200 × 0.5^1.6 = 200 × 0.330 ≈ 65.98, shown as 66 mg.
  4. Performance dose = 75 × 3 to 75 × 6 = 225 – 450 mg.

The calculator shows 66 mg left at bedtime, 225 – 450 mg as the performance range and 400 mg as the daily limit.

How Left at bedtime (mg) changes with Hours until bedtimeHow Left at bedtime changes with Hours u…0501001502002468101216Example: 66Hours until bedtime
Each point is the calculator re-run with only “Hours until bedtime” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Hours until bedtimeLeft at bedtime (mg)
2152
4115
687
866
1050
1238
1622

How to read the result

66 mg at bedtime is roughly the caffeine of a small cup of coffee still in your system, enough to make sleep lighter or shorter for many people. If sleep matters, move the last dose earlier or take less. With a 3-hour half-life the same dose would leave about 31 mg; with 7 hours, about 91 mg. For sport, 3–6 mg/kg taken about an hour before exercise is the range shown to improve endurance and power; higher doses add side effects rather than benefit.

Common mistakes

Keep in mind: This is general information, not a diagnosis. People with heart rhythm problems, anxiety disorders, high blood pressure or who take interacting medicines should ask a doctor about caffeine.

Frequently asked questions

How much caffeine is in a cup of coffee?

It varies widely with the bean and brewing method; a typical cup of brewed coffee often contains roughly 80–120 mg.

Does decaf contain caffeine?

A little, usually only a few milligrams per cup.

Sources: EFSA Panel on Dietetic Products, Nutrition and Allergies. Scientific Opinion on the safety of caffeine. EFSA Journal, 2015. · Guest NS et al. International Society of Sports Nutrition position stand: caffeine and exercise performance. J Int Soc Sports Nutr. 2021.

Checked 8 Nov 2026. EFSA (2015) Scientific opinion on caffeine; ISSN position stand 2021.

💪 All health & fitness tools →🌍 Calculators by country →