Hewn
Free tool

Caffeine cut-off calculator

Put in your bedtime and what you drink. You get the latest time to have it, taken from a meta-analysis of caffeine and sleep, and a rough picture of how much would still be in you when you turn the light out.
Caffeine cut-off calculator
Your night and your drink

When you usually turn the light out. After midnight is fine.

Brewed, 237 mL. USDA FoodData Central: 40 mg per 100 g.

Counting this one. Used only for your daily total.

Shows how much would be left at bedtime.

Your cut-off

Enter your bedtime to see the latest time to have it.

Runs in your browser. Nothing you type is sent or saved unless you take it into your plan.

The app

Turn this into a plan

The app’s journal can track the days you have caffeine after 2 pm and, once there are enough days with and without it, compare your sleep on each. It never calls a difference a cause.

Free to start. No card needed.

What it tells you

The latest time to have your last caffeine of the day so that, on average, it does not measurably shorten your sleep. It also draws how much of that caffeine would still be in your body at bedtime, and adds up your day if you have more than one.

It is about timing, not about having more. Less caffeine, earlier in the day, is always the safe direction.

How it works

The cut-off comes from a 2023 systematic review and meta-analysis of 24 controlled studies in healthy adults aged 18 to 65 1. A meta-analysis pools the results of many studies; this one found caffeine cut total sleep time by about 45 minutes on average and sleep efficiency (the share of time in bed spent asleep) by 7%. The authors then modelled how the loss of sleep changed with the dose of the last caffeine of the day and how long before bed it was taken. The bigger the dose and the closer to bed, the more sleep was lost.

From that model they gave three worked answers. These are the only figures that come straight from the paper:

  • A cup of black tea, 47 mg: no cut-off. It did not measurably cut total sleep time even when taken at bedtime.
  • A cup of coffee, 107 mg: at least 8.8 hours before bed.
  • A standard serve of pre-workout, 217.5 mg: at least 13.2 hours before bed.

A cut-off in the paper is the first time before bed at which the model can no longer tell the predicted loss of sleep apart from zero. It is not the point where caffeine has gone, and it is not a guarantee.

Where we estimate. The paper does not publish enough of its model to rebuild it for any dose, so for other amounts we draw a straight line between the two nearest of those three answers. Above 217.5 mg we extend the line from coffee to pre-workout, and we stop at 18 hours, the longest gap between caffeine and sleep that the pooled studies allowed. Anything worked out this way is labelled as an estimate on the result. The assumption is that the cut-off rises steadily with the dose between the measured points, which matches the direction of the finding but not, necessarily, its exact shape.

The curve. Caffeine is absorbed quickly and completely 3, then cleared at a rate set by its half-life: the time the body takes to get rid of half of it. In healthy adults the half-life averages about four hours, with a range of two to eight 3. The chart shows all three, assuming the whole dose arrives at once and then halves every 2, 4 or 8 hours. It is a picture of the uncertainty, not a measurement of you, and the cut-off does not come from it.

The drinks. Coffee, espresso and black tea are from the USDA’s FoodData Central 5: brewed coffee has 40 mg per 100 g, so about 95 mg in an 8 fl oz cup. Green tea is the FDA’s typical figure for 12 fl oz 4, and the energy drink is EFSA’s figure of 320 mg per litre for the most popular brand 3. Real drinks vary a lot: the FDA puts a 12 fl oz brewed coffee anywhere from 113 to 247 mg 4. If your can, tub or cafe gives a number, use that with “Something else”.

Your day. If you have more than one serving, the total is set against the 400 mg a day the FDA cites as an amount not generally associated with negative effects for most adults 4. The cut-off is for the last serving only, as in the paper; caffeine from earlier in the day adds to what is left at night.

What it cannot know

  • How fast you clear caffeine. The half-life varies with body weight, pregnancy, medicines and liver health 3, and the paper’s authors add smoking, oral contraceptives, some antidepressants, alcohol and genes 1. Their own advice is to treat the cut-offs as a starting point and adjust to how you sleep.
  • Whether you are used to it. The studies were mostly in people with a low to moderate caffeine habit. The authors say the results may not hold for heavy users, for people who never have caffeine, for teenagers or for adults over 65 1.
  • What you notice is not the whole story. In one home study, 400 mg six hours before bed cut measured sleep by more than an hour, while the loss people wrote in their sleep diaries was smaller and not statistically clear 2. Sleeping “fine” after a late coffee is not proof it did nothing.
  • Only total sleep time. The timing finding was for total sleep time. Caffeine also delayed falling asleep and reduced deep sleep, but the paper could not tie those to dose and timing 1. And small amounts are not nothing: EFSA notes that 100 mg can affect sleep in some adults, especially close to bedtime 3.
  • Who it is for. Healthy adults. The FDA advises talking to a health professional about caffeine if you are pregnant, trying to become pregnant or breastfeeding, or if you have a condition or take a medicine that may make you more sensitive to it 4. This is not medical advice.

How to use the time

Treat the cut-off as the latest sensible time, not a target. If it falls before your training, the useful moves are a smaller dose, a caffeine-free pre-workout, or training earlier, rather than having it anyway. If you sleep badly even before the cut-off, move it earlier still.

For the evidence in more detail, including what an evening lifter can do, read When should you stop caffeine before bed?

Sources

  1. 1Gardiner, Weakley, Burke, Roach, Sargent, Maniar, Townshend and Halson, 2023. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Medicine Reviews. doi.org/10.1016/j.smrv.2023.101764
  2. 2Drake, Roehrs, Shambroom and Roth, 2013. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine. pmc.ncbi.nlm.nih.gov/articles/PMC3805807/
  3. 3European Food Safety Authority, 2015. EFSA explains risk assessment: caffeine (summary of its Scientific Opinion on the safety of caffeine). efsa.europa.eu/sites/default/files/corporate_publications/files/efsaexplainscaffeine150527.pdf
  4. 4US Food and Drug Administration. Spilling the beans: how much caffeine is too much? Consumer update. fda.gov/consumers/consumer-updates/spilling-beans-how-much-caffeine-too-much
  5. 5US Department of Agriculture, FoodData Central (SR Legacy): coffee, brewed (171890); espresso (171891); tea, black, brewed (173227). fdc.nal.usda.gov/food-details/171890/nutrients

Keep going