Caffeine costs you sleep, and it does so even when you feel nothing. If you want a practical rule, here it is: count six hours back from the time you go to bed and treat that moment as your last chance for a coffee, a black tea or a caffeinated soft drink. The NHS lists caffeine among the most common causes of insomnia and advises not drinking coffee, tea or alcohol in the six hours before sleep. This is not a lifestyle suggestion. It is the minimum the evidence supports with confidence.
If you wake in the middle of the night or take a long time to fall asleep and you drink coffee in the early afternoon, the NHS advises not drinking coffee for at least 6 hours before going to bed.
Caffeine takes your sleep whether or not you still feel it
The most common mistake is trusting the sensation. People say the five o'clock coffee does nothing to them, and it is true that they feel nothing — but feeling awake and sleeping well are different things.
A placebo-controlled trial gave 400 mg of caffeine to volunteers at zero, three and six hours before their usual bedtime. At all three points there was disturbed sleep compared with placebo. The authors concluded that caffeine taken six hours before sleep has important effects on sleep. Notice what this means: you do not need to drink coffee at night. Drinking it in the late afternoon is enough.
A recent systematic review, pooling 24 studies, put a number on the cost. Caffeine reduced total sleep time by 45 minutes and sleep efficiency by 7%. It increased the time needed to fall asleep by 9 minutes and the time awake after falling asleep by 12 minutes. And it cut 11.4 minutes of deep sleep. Forty-five minutes. Per night.
You can fall asleep without difficulty and still sleep worse. Time to fall asleep is only one measure of sleep — and caffeine affects others too.
So what time should I stop drinking coffee?
Here the honest answer has two layers. The first is the NHS rule: six hours before bed, no coffee, tea or alcohol. If you go to bed at 23:00, your last coffee is at 17:00. The second comes from the same 2023 review, which estimated from the pooled studies that to avoid a reduction in total sleep time coffee should be consumed at least 8.8 hours before bedtime. That was based on a reference concentration of 107 mg of caffeine per 250 mL.
Eight point eight hours is a lot. If you go to bed at 23:00, that pushes your last coffee to 14:00. And here we need to be careful: it is a group-level estimate, calculated from studies of different people, not a promise about your case. Individual sensitivity varies widely, and so does the speed at which each person clears caffeine. Some people drink a coffee at five in the afternoon and sleep well. Some drink one at lunch and notice the difference.
What should you do with that uncertainty? Start with six hours, because that is the minimum the health guidance supports. If after two or three weeks you are still waking at night, move to eight or nine hours and see what changes. You are the only study you have on yourself.
How the studies measured caffeine's effect on sleep
In the trial on caffeine taken at different times, sleep was assessed at home, by self-report and with a validated portable sleep monitor 1. At each of the three time points, the effect on sleep disturbance was significant compared with placebo (p < 0.05 in all) 1.
The 2023 systematic review with meta-analysis included 24 studies and set out to identify the time after which caffeine should not be consumed before going to bed 2. Beyond total sleep time and efficiency, caffeine increased light sleep (N1) by 6.1 minutes (+1.7%) and reduced deep sleep (N3 and N4) by 11.4 minutes (-1.4%) 2.
The review's estimate is not limited to coffee: to avoid reductions in total sleep time, a standard pre-workout supplement dose (217.5 mg of caffeine) should be consumed at least 13.2 hours before bedtime 2. These estimates depend on the reference dose used in the meta-analysis.
Alongside the 6-hour window for coffee, tea and alcohol, the NHS advises not exercising for at least 4 hours before bed and not eating a large meal late at night 3.
Coffee is not the only source, and that is where the sums go wrong
When people talk about caffeine and sleep, everyone thinks of coffee. But caffeine is not only in coffee: the NHS lists alcohol, caffeine and nicotine among the most common causes of insomnia. The reference concentration used in the 8.8-hour estimate was 107 mg per 250 mL of coffee.
So the right question is not "what time can I drink coffee until". It is "what time do I consume caffeine, all of it added up". A coffee at four and an energy drink at seven are two exposures, not one. And the daily total matters too: 400 mg a day is, for most adults, an amount the US FDA does not associate with negative effects — but that is a general safety limit, not a target to hit, and it tells you nothing about how you sleep.
It is not possible, from here, to tell you how many milligrams are in your coffee. Check the label when there is one; when there is not, reduce the dose and observe.
Caffeine amounts in the studies and on the label
The table compares the caffeine amounts used or estimated in the studies with the amount declared on the label of Energy Gummies with Guarana. Study doses are not dosing instructions.
| Caffeine source | Caffeine amount | Context |
|---|---|---|
| Placebo-controlled trial 1 | 400 mg in a single dose | Fixed dose, given 0, 3 and 6 hours before the usual bedtime |
| 2023 meta-analysis, coffee 2 | 107 mg per 250 mL | Reference concentration behind the estimate of at least 8.8 hours before bedtime |
| 2023 meta-analysis, pre-workout 2 | 217.5 mg in a standard dose | Estimate of at least 13.2 hours before bedtime |
| Energy Gummies with Guarana (label) | 44 mg per serving of 2 gummies, from 200 mg of guarana extract | Chew 2 gummies a day, preferably after a meal |
The caffeine in one serving of gummies (44 mg) is about one ninth of the trial dose (400 mg) and corresponds to about 41% of the 107 mg reference concentration for coffee. The studies cited tested specific doses and times, so the table is there to compare amounts, not to predict the effect of 44 mg.
To compare guarana with other caffeine sources, see the comparison of coffee, green tea and guarana.
What to do when the afternoon coffee is untouchable
There are people for whom "give up coffee" is useless advice. The afternoon coffee is not about caffeine — it is about the break, the habit, getting away from the desk. If that is you, do not fight the habit. Change what is in the cup.
- Swap the last dose of the day for decaf. It keeps the gesture and removes the exposure.
- Push caffeinated coffee into the morning and early afternoon, and treat the following hours as caffeine-free territory.
- Count tea, cola, chocolate and supplements too, not just coffee.
- If you slip one day, do not try to compensate. Go back to the rule the next day, without trying to "catch up" on lost sleep.
What the evidence does not support: drinking more water to "dilute" caffeine, or switching coffee for green tea, which also contains caffeine. The available evidence does not allow us to say that this swap reduces the caffeine consumed.
10% off to get you started ✨
Subscribe to our newsletter and receive your welcome code straight away. Get updates, tips and exclusive offers.
By subscribing, you agree to receive marketing communications from Tutti Bear. You can unsubscribe at any time. Please see our Privacy Policy and Terms and Conditions .
You're all set! Get 10% off ❤️
WELLCOME10
Use the code on your first order!
The mistakes that wreck the sum, and the ones that matter less
The mistake that wrecks everything is the average. People think about the coffee they usually drink and forget the extra: the espresso after Sunday lunch, the energy drink on a trip, the pre-workout supplement. It is that extra, often, that falls inside the six-hour window.
The second mistake is treating bedtime as fixed when it is not. If one night you go to bed an hour earlier, your caffeine-free window shortens — the five o'clock coffee that was acceptable for a night at 23:00 is now five hours away from a night at 22:00.
What matters less than it seems: the type of coffee. What matters more than it seems: the time. That is the variable you control.
When you have already adjusted caffeine and still sleep badly
Give it two to three weeks. Sleep changes are rarely assessed in two days, and caffeine is not the only thing to adjust. If after that time you are still waking at night, if you take a very long time to fall asleep, or if tiredness starts to affect your day, the next step is not another coffee adjustment. The NHS advises seeing a doctor if changing your sleep habits has not helped, if you have had difficulty sleeping for months, or if poor sleep makes it hard to cope with day-to-day life.
It is also worth speaking to a healthcare professional before changing your caffeine intake if you take medication or have a health condition. The FDA notes that certain conditions and some medicines make people more sensitive to caffeine, and recommends speaking to a professional if you are pregnant, trying to conceive or breastfeeding. This is not a footnote formality — it is worth having that conversation with your healthcare professional.
And a supplement? Where does that fit
It fits very little, and it is better to say so clearly. Nothing described here is solved by a gummy. The problem is the time at which you consume caffeine, and the solution is to change that time — not to add something else.
There is, however, one situation where the question makes sense: you have already adjusted your timings, you still need energy during the day, and you want to know what you are taking. Energy Gummies with Guarana contain, per serving of two gummies, 44 mg of caffeine from 200 mg of guarana extract, plus L-theanine, L-tyrosine, vitamin B6, B12 and C. They are for adults, you chew two a day, preferably after a meal, and you should not exceed the recommended daily dose.
Notice what that implies for this conversation: the gummies contain caffeine. If you take them in the late afternoon, they enter the same six-hour sum. They are not an alternative to caffeine, they are a source of it — and the packaging warns you: contains caffeine, not recommended for children, pregnant or breastfeeding women, contains polyols and excessive consumption may have laxative effects. If you have an illness or take medication, speak to a healthcare professional before consuming.
We will not tell you that these gummies improve your sleep. They do not. They can be a practical way to take caffeine at a controlled time, and that is all we can say.
The next thing to do is simple and costs nothing: look at the clock, count six hours back from tonight, and see what you drank after that line. Then count the next two weeks. That is where the answer about your sleep starts to appear.
Caffeine and extract on the gummies label
On a guarana label, the amount of extract and the amount of caffeine are two different numbers. In Energy Gummies with Guarana, dividing the 44 mg of caffeine per serving by the 2 gummies gives 22 mg of caffeine per gummy.
Each serving also contains 200 mg of L-theanine, 100 mg of L-tyrosine, 1.4 mg of vitamin B6 (100% of the nutrient reference value), 10 µg of vitamin B12 (400%) and 40 mg of vitamin C (50%). The nutrient reference values are 1.4 mg for vitamin B6, 2.5 µg for vitamin B12 and 80 mg for vitamin C 4. Regulation (EU) No 432/2012 authorises the claim "Vitamin C contributes to the normal function of the immune system" for foods that are at least a source of vitamin C 5. It is a claim about the nutrient, not about the effect of the gummies on sleep.
To go deeper into how guarana is dosed, there are two articles: guarana daily dose and reading the label and guarana in gummy or tablet form.
Frequently asked questions
What caffeine dose was tested in the trial on caffeine and sleep?
The trial tested a fixed dose of 400 mg, taken 0, 3 or 6 hours before the usual bedtime, and compared it with placebo. Each of the three time points had significant effects on sleep disturbance compared with placebo. Energy Gummies with Guarana contain 44 mg of caffeine per serving of 2 gummies, about one ninth of that dose.
Does caffeine change sleep stages?
In the 2023 meta-analysis of 24 studies, caffeine increased light sleep (N1) by 6.1 minutes (+1.7%) and reduced deep sleep (N3 and N4) by 11.4 minutes (-1.4%). These figures come from a meta-analysis and are not a prediction for any one person.
What time should I stop taking a pre-workout supplement with caffeine?
The 2023 meta-analysis estimated that a standard pre-workout supplement dose of 217.5 mg of caffeine should be consumed at least 13.2 hours before bedtime to avoid reductions in total sleep time. It is an estimate for that reference dose.
Do Energy Gummies with Guarana contain caffeine?
Yes. The label states 44 mg of caffeine per serving of 2 gummies, from 200 mg of guarana extract, and the stated intake is 2 gummies a day. The caffeine in the gummies counts towards your total caffeine for the day.
What else does the NHS advise avoiding before bed?
The NHS advises not smoking and not drinking alcohol, tea or coffee for at least 6 hours before bed. It also advises not eating a large meal late at night, not exercising for at least 4 hours before bed, and not watching television or using devices such as smartphones just before bed.
Sources and references
An informative summary of published research. The results relate to the forms and the people studied; they are not promises about the effect of any product.
- Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013;9(11):1195-200. pubmed.ncbi.nlm.nih.gov · PMID 24235903 · DOI 10.5664/jcsm.3170
- Gardiner C, Weakley J, Burke LM, Roach GD, Sargent C, Maniar N, et al. The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Med Rev. 2023;69:101764. pubmed.ncbi.nlm.nih.gov · PMID 36870101 · DOI 10.1016/j.smrv.2023.101764
- NHS. Insomnia. nhs.uk. Página revista em 19 de março de 2024. nhs.uk
- Regulamento (UE) n.º 1169/2011 do Parlamento Europeu e do Conselho, de 25 de outubro de 2011, relativo à prestação de informação sobre os géneros alimentícios aos consumidores. JO L 304 de 22.11.2011. eur-lex.europa.eu
- Regulamento (UE) n.º 432/2012 da Comissão, de 16 de maio de 2012, que estabelece uma lista de alegações de saúde permitidas relativas a alimentos que não referem a redução de risco de doença nem o desenvolvimento e a saúde das crianças. JO L 136 de 25.5.2012. eur-lex.europa.eu
Keep exploring
Caffeine, guarana and timing
Explore the topic
Explore the topic
Related reads
Related reads
Cramps and magnesium: what helps and what doesn't
Leg cramps are common, usually harmless and short-lived — anywhere from a few seconds to ten minutes. They can strike at any time, but most people get them at…
So tired but can't sleep: what's happening
If you feel very sleepy and still cannot get to sleep, the NHS lists the most common causes of difficulty sleeping as stress, anxiety or depression, noise, a…
Valerian tea: what to expect and how to prepare it
If you are looking for valerian tea to sleep better, the honest answer is this: research on valerian is inconsistent and does not allow us to say it helps with…
Sleep tea: what helps and what is a myth
A warm cup before bed can be part of a decent evening routine, but it is not the tea that solves the problem. Chamomile is the herb with the most research…
How to lower cortisol: what helps and what does not
If you are looking for ways to lower cortisol, the short answer is that the most effective changes are boring ones: a consistent sleep window, less caffeine…
How to sleep better: habits that count and what to ignore
Sleeping better depends mostly on consistency: stable times, correct exposure to light and a routine that lowers the intensity before bed. There is no single…
Consequences of sleep deprivation: what changes in your body
Sleep deprivation is more than one bad night. The NHLBI defines sleep deprivation as not getting enough sleep, and sleep deficiency as a broader concept:…
High cortisol: what it is and when to see a doctor
High cortisol — the medical condition known as Cushing's syndrome — is rare, according to the NHS, and is usually caused either by taking steroid medicines at…
