Hewn
November 24, 2026 / 6 min read

When should you stop caffeine before bed?

A standard pre-workout needs about 13 hours to stay out of your sleep. What the studies found, why feeling fine is not proof, and what to do if you train in the evening.

The short version

  • A cup of coffee: at least 8.8 hours before bed. For a 10:30 pm bedtime, that is before 1:42 pm.
  • A standard pre-workout: at least 13.2 hours before bed. For the same bedtime, before 9:18 am.
  • A cup of black tea: no measurable cut-off in the same analysis, though less late is still better.
  • “I sleep fine after coffee” is not good evidence. In a home study, caffeine six hours before bed cut measured sleep by over an hour, and people’s own sleep diaries missed much of it.
  • People differ a lot. Caffeine’s half-life runs from about two to eight hours in healthy adults.
  • If you lift in the evening, the trade is real. A smaller dose, a caffeine-free pre-workout or an earlier session all beat having it and hoping.

The caffeine cut-off calculator gives you the time for your own bedtime and drink. The rest of this post is the evidence behind it.

How long caffeine lasts

Caffeine is absorbed quickly and completely, and you start to feel it 15 to 30 minutes after you drink it 3. Then your liver clears it, at a rate described by its half-life: the time it takes your body to get rid of half of what is there. In healthy adults the half-life averages about four hours, with a range of two to eight 3.

Run the numbers on a coffee. Brewed coffee has about 40 mg of caffeine per 100 g, so roughly 95 mg in an 8 fl oz cup 5. With a four-hour half-life, a cup at 2 pm leaves about 48 mg at 6 pm and 24 mg at 10 pm. With an eight-hour half-life, about half the cup is still there at 10 pm.

That arithmetic is where most online advice stops: pick a half-life, pick a “safe” amount left at bedtime, work back. The problem is that nobody has shown what amount at bedtime is safe. A better question is the one sleep studies can answer directly: when people took caffeine at a given time, how much sleep did they lose?

Why “I sleep fine after coffee” is unreliable

In a 2013 study, twelve healthy adults who slept normally took 400 mg of caffeine, or a placebo, at bedtime, three hours before and six hours before, and slept at home with a portable sleep monitor 2. All three caffeine timings disrupted sleep. Even at six hours, measured sleep was more than an hour shorter than on placebo.

The sleep diaries told a softer story. At six hours, people recorded about 41 minutes less sleep, and that difference was not statistically clear; only the monitor picked up a significant effect at that timing 2. In other words, a good part of the loss went unnoticed.

It is one small study, with a large dose, in people with a moderate caffeine habit. But it makes the point: how you feel you slept is a poor test of whether the afternoon coffee cost you anything.

The cut-offs for coffee and pre-workout

The best single answer comes from a 2023 systematic review and meta-analysis of 24 controlled studies in healthy adults 1. Pooled, caffeine cut total sleep time by about 45 minutes, made people take 9 minutes longer to fall asleep, added 12 minutes awake during the night and reduced deep sleep.

The authors then modelled how the loss of total sleep changed with the dose of the last caffeine of the day and how long before bed it was taken. Each extra hour between caffeine and bed shrank the loss by about 2.8 minutes; each extra milligram grew it by about 0.2 minutes 1. From that model they worked out cut-offs: how long before bed a given dose had to be taken for the predicted loss to become impossible to tell apart from zero.

Caffeine cut-offs before bed from Gardiner and others, 2023
DrinkCaffeineHave it at leastFor a 10 pm bedtime
Black tea, one cup47 mgNo cut-off foundAny time
Coffee, one cup107 mg8.8 hours before bedBefore 1:12 pm
Pre-workout, one standard serve217.5 mg13.2 hours before bedBefore about 8:50 am

Those times surprise most people. They are, as the authors note, well before what you would guess from a three-to-six-hour half-life 1. A pre-workout serve at 9 am is enough, on this model, to take a measurable bite out of a 10 pm night.

The calculator uses these three answers as they are. For other doses it draws a straight line between the nearest two, and says on the result that it is an estimate. A typical 95 mg mug comes out at about 7 hours; a double espresso, 126 mg, at about 9.5.

What the cut-offs do and do not say

They are averages for healthy adults with a low to moderate caffeine habit, and they are about total sleep time only. A cut-off is where the model can no longer detect a loss, not where caffeine stops mattering. The authors also note that where caffeine was split across the day, they modelled only the last dose, which may understate the effect 1.

Why people differ

The same coffee lasts much longer in some people than others. The half-life changes with body weight, pregnancy, medicines and liver health 3. The meta-analysis authors add smoking, oral contraceptives, some antidepressants, alcohol, and genes that set how fast the liver breaks caffeine down and how sensitive the brain is to it 1.

Habit matters too, though less is known about how much 6. The pooled studies were mostly in low to moderate caffeine users, and the authors say their cut-offs may not apply to heavy users, to people who never have caffeine, to teenagers or to adults over 65 1.

Their own advice is the sensible one: treat the cut-offs as a starting point and adjust to how you sleep 1. Given the Drake result, “how you sleep” is better judged by a week of consistent bedtimes and how you feel in the mornings than by one night.

If you are pregnant, trying to become pregnant or breastfeeding, or have a condition or take a medicine that affects caffeine, the FDA advises asking a health professional how much is right for you 4. Nothing here is medical advice.

What an evening lifter can do

Caffeine works for training. The International Society of Sports Nutrition’s position stand finds it improves performance at 3 to 6 mg per kilogram of bodyweight, possibly from as little as 2 mg per kilogram, usually taken about an hour before exercise 6. Very high doses, around 9 mg per kilogram, bring frequent side effects without being needed 6.

So someone training at 6 pm with a 10:30 pm bedtime has a real choice to make. A pre-workout at 5 pm comes almost eight hours after its cut-off. Some options, roughly in order of how much sleep they protect:

  • Train earlier when you can. A lunchtime or morning session lets the same scoop fall before the cut-off.
  • Use a caffeine-free pre-workout, or none, for evening sessions. Keep caffeine for the days you train early.
  • Take a smaller dose. The minimum that helps may be around 2 mg per kilogram 6, and a smaller dose has a shorter cut-off. Half a scoop is not free, but it costs less sleep.
  • Do not stack. A coffee mid-afternoon plus a pre-workout in the evening means two doses still in you at night, and more for the day. The FDA cites 400 mg a day as an amount not generally associated with negative effects for most adults 4; a big pre-workout and two coffees can pass it.
  • Read the label. The 217.5 mg in the analysis is a typical serve; many tubs give more. The FDA puts a 12 fl oz energy drink anywhere from 41 to 246 mg 4.

For most kinds of lifting the benefit from caffeine is small to moderate 6, and the analysis above puts the cost of a late dose at a measurable loss of sleep. How you weigh the two is your call; we lean towards the sleep. To plan the night itself, the sleep calculator works out bedtimes from when you need to be up.

Where Hewn fits

The Hewn app sets each member a sleep target, with a lights-out window worked back from their wake time. Its supplements screen keeps a daily checklist of what you take and when (morning, pre-workout, with food or bedtime). When a food you log reports its caffeine, the app counts the milligrams against the FDA’s 400 mg a day figure. It does not work out a cut-off for your bedtime: for that, use the calculator.

It can help with the problem the Drake study found, that you may not notice what caffeine costs you. Hewn Core members can tick “Caffeine after 2 pm” in a daily journal. With an Apple Watch worn overnight and the iPhone app, Hewn reads each night from Apple Health and scores it, and once there are at least eight nights each way it compares nights after late caffeine with nights without, on the score and time asleep. The watch’s figures are estimates, not a sleep-lab measurement, and the comparison shows a link in your own nights, not proof of cause.

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
  6. 6Guest and others, 2021. International Society of Sports Nutrition position stand: caffeine and exercise performance. Journal of the International Society of Sports Nutrition. pubmed.ncbi.nlm.nih.gov/33388079/

More from the blog

All posts