Frequently Asked Questions
Why does the cutoff show 8:45 AM rather than the exact minute?
The engine subtracts the clearance time, 14.24 hours for 180 mg at a 5 hour half-life, from your bedtime and then rounds down to the nearest quarter hour. Rounding down always moves the cutoff earlier, so the displayed time errs on the cautious side. Drinking at the displayed time leaves you a little under 25 mg at bedtime, not exactly on it.
How do I enter a bedtime of midnight or 1 AM?
Type it as you would on a 24 hour clock. Values from 0 to 4 are treated as after midnight, so 0 means midnight and 1 means 1 AM. You can also use 24 and 25, which give identical results. With the default drink, a midnight bedtime leaves 45 mg and a 1 AM bedtime leaves 39.17 mg.
Why does the cutoff stay the same when I change when I drank?
The cutoff only depends on the dose, the half-life and your bedtime. It answers the question of how early you would need to drink this dose to be under 25 mg at bed. The consumption time only changes the headline. At 17:00 the default dose leaves 78.35 mg at bedtime, but the cutoff still reads 8:45 AM.
What does a cutoff marked the day before mean?
It means the dose takes so long to fall below 25 mg that you would have had to drink it before the start of your bedtime's day. With 270 mg and a 10 hour half-life, clearance takes 34.33 hours and the cutoff reads 12:30 PM the day before. For that dose and half-life, no time on the same day works.
How should I add up several drinks in one day?
Run each drink on its own with its own dose and time, then add the bedtime figures together. The model treats every dose the same way, so the total is what it would give for the whole day. Entering the day's total at the time of your last drink is quicker and overstates what remains, which is the cautious direction.
What half-life should I use if I do not know mine?
Start with the 5 hour adult mean suggested on the page, then try a longer value such as 7 or 8 hours. The gap between the two answers shows how uncertain the estimate is. At 7 hours the default bedtime figure is 73.83 mg instead of 51.69 mg. Entries outside 1.5 to 12 hours produce an error message.
Is the 25 mg target a medical safe level?
No. It is the reference point the page uses for its cutoff and for the edge of its Low band. It helps you compare one plan with another, but it is not a clinical limit and it cannot tell you how you will sleep. If caffeine is a medical concern for you, a doctor or pharmacist is the right person to ask.
Can I enter a drink time such as 2:30 PM?
Yes, as 14.5. The fields take decimal hours, and the summary converts them back to clock time, so 14.5 is shown as 2:30 PM. With the default dose and an 11 PM bedtime, that drink leaves 55.4 mg. A quarter past the hour is .25 and a quarter to is .75.
Why does doubling the dose not double the waiting time?
Clearance follows halving steps. Each doubling of the dose adds exactly one half-life to the time needed to reach 25 mg. That is why 108 mg needs 10.56 hours and 270 mg needs 17.16 hours, much less than two and a half times longer. The bedtime figure, by contrast, does scale in a straight line with the dose.
Does the chart show the same decline as the headline?
Yes. The chart plots the same dose at two hour steps from the moment you drink it, using the same half-life. It does not depend on your bedtime, so it is useful for seeing how fast the curve flattens. With the default 5 hour half-life, the dose is halved at about the fifth hour and quartered by the tenth.
Why is the risk label High at 51.69 mg but Moderate at 45 mg?
The label uses fixed bands: above 50 mg is High, 25 to 50 mg is Moderate and under 25 mg is Low. The default 51.69 mg is only just over the line, and moving bedtime to midnight brings it to 45 mg. A small change can flip the word, so compare the milligram figure between plans rather than relying on the label alone.
180 mg at 2 PM, bed at 11 PM: why 51.69 mg is still active
The default scenario is a fairly strong afternoon coffee. You take 180 mg of caffeine at 14:00 and plan to sleep at 23:00, with a half-life of 5 hours. The headline says 51.69 mg is still active at bedtime. That is a little under a third of what you drank.
The arithmetic is short. Nine hours pass between the drink and bed. Nine divided by a 5 hour half-life is 1.8 half-lives. Halving 1.8 times leaves 0.5 to the power 1.8, about 0.29 of the dose, and 0.29 of 180 mg is the 51.69 mg on screen.
Below the headline are three more lines. The safe cutoff time is 8:45 AM. The hours needed to fall below 25 mg are 14.24. The sleep disruption risk label reads High, because the bedtime figure is above 50 mg. The rest of this guide explains each of those lines, where they can mislead, and how to read them for your own day.
This page models one dose, a fixed half-life and a smooth exponential decline. It is a way to think about timing, not a measurement of what is in your blood.
Reading the 8:45 AM cutoff and the 14.24 hour clearance line
The cutoff line answers a different question from the headline. It asks: if you drank this same dose, what is the latest time you could drink it and still be under 25 mg by bedtime?
To find that, the engine works out how long the dose takes to fall to 25 mg. That is the half-life times the base 2 logarithm of the dose divided by 25. For 180 mg it is 5 times about 2.85, which is the 14.24 hours shown. Bedtime minus 14.24 hours lands just after a quarter to nine in the morning.
The display rounds that time down to the nearest quarter hour, giving 8:45 AM. Rounding down always moves the cutoff earlier, never later, so it errs on the cautious side. With 95 mg the true cutoff falls a little after 1:15 PM and the page shows 1:15 PM. Run the same 95 mg at 1:30 PM and the bedtime figure is 25.45 mg, just over the threshold, which shows why the line is worth respecting.
Notice that the cutoff does not depend on when you actually drank your coffee. Change the consumption hour from 14 to 17 and the cutoff still reads 8:45 AM, while the bedtime figure rises to 78.35 mg. The cutoff is a property of the dose, the half-life and your bedtime alone.
How dose size changes the numbers: 108 mg, 180 mg and 270 mg
The bedtime figure scales in a straight line with the dose. Every result is the same fraction of what you drank, about 0.29 with the default timing. So 108 mg leaves 31.01 mg, 180 mg leaves 51.69 mg and 270 mg leaves 77.54 mg. Each of those is roughly 29% of its dose.
The cutoff behaves differently, because clearing time depends on the logarithm of the dose. Going from 108 mg to 180 mg pushes the clearance time from 10.56 hours to 14.24 hours, and the cutoff from 12:15 PM to 8:45 AM. Going on to 270 mg adds about three more hours, to 17.16, and the cutoff moves to 5:45 AM.
Put simply, each doubling of the dose adds one half-life to the time needed to clear it. With a 5 hour half-life, that is five more hours of waiting for every doubling.
Use the dose field for the total caffeine in the drink, in milligrams. The field note suggests 95 mg for a coffee, 150 mg for a double espresso and 200 mg for an energy drink. Real drinks vary a lot, so the label on the can or the café's published figure is better than a guess. Doses below 10 mg are rejected with a prompt to enter a real amount.
The half-life field matters more than the dose
The half-life is the time it takes your body to clear half of the caffeine. The field note gives an adult mean of 5.0 hours. The engine accepts values from 1.5 to 12 hours and shows an error outside that range rather than quietly changing your entry. It varies a lot from person to person, and this one field swings the answer more than any other.
Keep the default dose and timing but change only the half-life. At 3 hours, the bedtime figure drops to 22.5 mg and the risk label reads Low. At 7 hours, it rises to 73.83 mg. At 8 hours, it is 82.53 mg, and the hours needed to clear below 25 mg reach 22.78, which puts the cutoff at 12:00 AM, the very start of the day.
You probably do not know your own half-life. A reasonable approach is to run the page twice, once at 5 hours and once at something longer, and treat the gap as your uncertainty. If you notice that an afternoon coffee keeps you up while friends sleep fine, a longer half-life is the more honest setting for you.
If you are pregnant, take regular medication or have a health condition, ask a doctor or pharmacist how caffeine affects you rather than picking a half-life from this page.
Entering midnight, late bedtimes and half hours
The bedtime field is a 24 hour clock that accepts 0 to 28. Bedtimes from 0 to 4 are read as after midnight, so you can type the usual clock value. Midnight can go in as 0 or 24, and 1 AM as 1 or 25. Both give the same answer, and the summary prints the time as 12:00 AM or 1:00 AM.
A later bedtime helps. Moving bed from 23 to midnight drops the default figure from 51.69 mg to 45 mg and the risk label from High to Moderate. A 1 AM bedtime gives 39.17 mg, and the cutoff moves to 10:45 AM.
Times do not have to be whole hours. The fields take decimals, so 2:30 PM is 14.5 and a quarter past one is 13.25. The summary converts them back to clock time. The default 180 mg taken at 14.5 instead of 14 gives 55.4 mg at bedtime, and the summary reads 2:30 PM.
The consumption field takes 0 up to just under 24. If the drink time is later than the bedtime on the clock, the engine assumes bedtime is the next day. That is what you want for an evening coffee before a 1 AM bedtime, but check the hours-later figure in the summary if you are entering an unusual pair.
The 25 mg and 50 mg risk bands
The last supporting line puts the bedtime figure into one of three bands. Under 25 mg is labelled Low. From 25 to 50 mg is Moderate. Above 50 mg is High. The default 51.69 mg sits just over the line into High, while the 108 mg example, at 31.01 mg, is Moderate.
These are the calculator's own reference points, and the 25 mg mark is also the target used by the cutoff line. They are useful for comparing one plan with another. They are not a medical threshold, and they do not predict how you personally will sleep.
Because the bands are hard cut-offs, a small change can flip the label. Drinking the default 180 mg half an hour later takes the bedtime figure from 51.69 mg to 55.4 mg, still High. Drinking it an hour earlier, at 13:00, takes it to 45 mg and the label drops to Moderate. Look at the number, not only the word.
Several cups a day and cutoffs that land the day before
The page takes one dose at one time. Real days often have a morning coffee, a lunchtime tea and an afternoon cola. The engine cannot add those together on its own.
You can still get a useful picture. Run each drink separately with its own dose and time, then add the bedtime figures. Because the decay is the same for every dose, that sum is exactly what the model would give for the combined day. A quicker but cruder method is to enter the total for the day at the time of your last drink, which overstates what is left and so errs on the cautious side.
With slow clearance the cutoff can fall before the start of your bedtime's day, and the page now says so. With 270 mg and a 10 hour half-life, clearance takes 34.33 hours and the cutoff reads 12:30 PM the day before. Read any cutoff marked the day before as a sign that no time earlier on the same day is enough for that dose. The practical answer is a smaller dose, not an earlier one.
Using the result to plan tomorrow's last coffee
The most practical use of this page is to set your own afternoon limit. Enter your usual bedtime, choose an honest half-life, then try your normal drink at different times and watch the bedtime figure.
With the defaults, the 180 mg drink would need to be finished by 8:45 AM to be under 25 mg at 11 PM. A standard 95 mg coffee gives you until 1:15 PM. A smaller dose or a later bedtime moves that limit later, and a longer half-life moves it earlier.
Treat the outcome as a planning guide. If you sleep well on figures the page calls High, or badly on figures it calls Low, your own experience is the better guide. Keep a short note of what you drank and how you slept for a week, compare it with the page, and adjust the half-life until the two agree.