Casas decimais: 0; Ao mais próximo; empates para o dígito par
Below your level from
21:15
Time after the last dose
7 h 14 min
Total caffeine taken
221mg
At 22:00 about 45 mg of the 221 mg you had is still in your body. With a 5-hour half-life it drops below 50 mg at 21:15, 7 h 14 min after the last dose.
Caffeine in your body
Como é calculado S
Each dose halves every half-life
C(22:00)=150⋅0.514/5+71⋅0.58/5=45.0mg
Times are hours after the first dose at 08:00; doses after the check time are left out.
Level right after the last dose
Clast=136.3mg
Time to fall to 50 mg
t=5×log250136.3=7.23h⇒21:15
Rounded up to the next whole minute.
Sobre Caffeine half-life calculator
Each dose is assumed to enter the body at once and then halve every half-life: the amount left from a dose is dose × 0.5^(hours since the dose ÷ half-life), and the calculator adds up to three doses. It also works out when the total falls below a level you choose, using time = half-life × log2(level after the last dose ÷ chosen level).
People use it to decide when to stop drinking coffee before bed. With the defaults, 150 mg at 08:00 and a 71 mg black tea at 14:00 leave about 45 mg at 22:00, and the level has been below 50 mg since 21:15.
The default half-life of 5 hours is the average for healthy adults, but it ranges from about 1.5 to 9.5 hours and changes with pregnancy, oral contraceptives and smoking. Blood levels actually peak 15 to 120 minutes after drinking, so the curve overstates the level in the first hour or two after each dose.
Exemplos resolvidos
200 mg at 08:00, checked at 18:00 (two half-lives)
Dose 1
200 mg
Time of dose 1
08:00
Dose 2
0 mg
Dose 3
0 mg
Check the level at
18:00
Level to wait for
50 mg
Meia-vida
5 h
Caffeine left at the check time
50 mg
Below your level from
18:00
Time after the last dose
10 h
Fonte de verificação: Python 3.8 decimal: 200 × 0.5^(10/5) = 50; threshold reached at 5 × log2(200/50) = 10 h
95 mg at 08:00 and 64 mg at 13:00, checked at 22:00
Dose 1
95 mg
Time of dose 1
08:00
Dose 2
64 mg
Time of dose 2
13:00
Dose 3
0 mg
Check the level at
22:00
Level to wait for
50 mg
Meia-vida
5 h
Caffeine left at the check time
32 mg
Below your level from
18:48
Time after the last dose
5 h 47 min 6 s
Total caffeine taken
159 mg
Fonte de verificação: Python 3.8 decimal: 95·0.5^(14/5) + 64·0.5^(9/5) = 32.01997; 13:00 + 5·log2(111.5/50) h = 18:47:08, rounded up to 18:48
Evening dose checked after midnight
Dose 1
150 mg
Time of dose 1
20:00
Dose 2
0 mg
Dose 3
0 mg
Check the level at
02:00
Level to wait for
50 mg
Meia-vida
5 h
Caffeine left at the check time
65 mg
Below your level from
03:56 (+1 day)
Time after the last dose
7 h 55 min 29 s
Fonte de verificação: Python 3.8 decimal: 150 × 0.5^(6/5) = 65.2913; 5·log2(3) = 7.9248 h after 20:00 = 03:55:25, rounded up
Edge: already below the level at the last dose
Dose 1
40 mg
Time of dose 1
09:00
Dose 2
0 mg
Dose 3
0 mg
Check the level at
12:00
Level to wait for
50 mg
Meia-vida
5 h
Caffeine left at the check time
26 mg
Below your level from
09:00
Time after the last dose
0 s
Fonte de verificação: Python 3.8 decimal: 40 × 0.5^(3/5) = 26.3902; 40 mg ≤ 50 mg from the start
Perguntas
How long does caffeine stay in your system?
With the average 5-hour half-life, half of a dose is still in your body after 5 hours, a quarter after 10 and about 3% after 25, so 200 mg of coffee at 08:00 leaves 50 mg at 18:00. Half-lives in healthy adults range from about 1.5 to 9.5 hours (Antonio et al., Journal of the International Society of Sports Nutrition, 2024), so the same cup can last several times longer in one person than in another.
How much caffeine is too much in a day?
For most healthy adults the FDA cites 400 mg a day, about two to three 12 fl oz cups of brewed coffee, as an amount not generally associated with negative effects. The FDA estimates that toxic effects such as seizures can appear after rapidly consuming about 1,200 mg. The calculator warns when the doses you enter add up to more than 400 mg.
How long before bed should you stop drinking caffeine?
At least 8.8 hours for a 107 mg cup of coffee and 13.2 hours for a 217.5 mg pre-workout drink, according to a 2023 meta-analysis of 24 studies in Sleep Medicine Reviews (Gardiner et al.). Across those studies caffeine cut total sleep by 45 minutes and added 9 minutes to the time taken to fall asleep. In an earlier trial, 400 mg taken 6 hours before bed still disrupted sleep (Drake et al., 2013).
How much caffeine is in coffee and tea?
The FDA gives 113 to 247 mg for 12 fl oz of brewed coffee, 71 mg for black tea, 37 mg for green tea, 23 to 83 mg for soft drinks and 41 to 246 mg for energy drinks of the same size; 8 fl oz of decaf has 2 to 15 mg. Brewing method and cup size change the dose, so use the label figure where there is one.
How much caffeine is safe during pregnancy?
Less than 200 mg a day. The American College of Obstetricians and Gynecologists' Committee Opinion 462 states that intake below 200 mg a day does not appear to be a major contributing factor in miscarriage or preterm birth. Caffeine is also cleared more slowly: one study measured a mean half-life of 8.3 hours in pregnant women against 3.4 hours in other adults (Knutti et al., 1981), so a longer half-life gives a more realistic curve.
Qual é a precisão de “Caffeine half-life calculator”?
A precisão depende dos dados inseridos e das hipóteses do método. O cálculo decimal usa 50 algarismos significativos, mas estimativas, métodos numéricos e dados de origem podem ter menor precisão; o arredondamento exibido não elimina essas limitações. Exemplos resolvidos verificados com fontes independentes: 5. Por exemplo, “200 mg at 08:00, checked at 18:00 (two half-lives)” é verificado com Python 3.8 decimal: 200 × 0.5^(10/5) = 50; threshold reached at 5 × log2(200/50) = 10 h.
De onde vem o método?
Institute of Medicine (US) Committee on Military Nutrition Research. Caffeine for the Sustainment of Mental Task Performance (2001) — pharmacology of caffeine; FDA — Spilling the beans: how much caffeine is too much?; Antonio J et al. Common questions and misconceptions about caffeine supplementation. J Int Soc Sports Nutr 2024;21:2323919 (mean half-life about 5 h, range 1.5–9.5 h); Gardiner C et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev 2023;69:101764.
Apenas informação, não orientação médica. Estas fórmulas descrevem populações, não a sua situação individual; consulte um profissional de saúde antes de agir com base em um resultado.
Verificado com as referências
Esta calculadora inclui 5 exemplos resolvidos com respostas de fontes independentes. Eles fazem parte do conjunto de testes e você também pode executá-los aqui.