How does caffeine affect sleep?
From the moment you wake up, a chemical called adenosine builds up in your brain. The more of it there is, the sleepier you feel. This "sleep pressure" is what lets you fall asleep easily at night.
Caffeine works by blocking adenosine's receptors. That is exactly why it helps in the gym. But if caffeine is still circulating at bedtime, it keeps blocking that sleep pressure, so you fall asleep later, sleep more lightly and wake more often.
How long before bed should you stop caffeine?
Volunteers took 400 mg of caffeine at bedtime, 3 hours before, or 6 hours before. Even at 6 hours before bed, caffeine reduced total sleep time by more than an hour compared with placebo.
Source: Drake C et al. (2013). Journal of Clinical Sleep Medicine.That study used a large dose, more than three pieces of GRIT. Focus or several strong coffees. Smaller doses have smaller effects, but EFSA notes that even 100 mg close to bedtime can delay sleep in some adults. The safe rule: stop caffeine at least 6 hours before bed, longer if your doses are larger or you are sensitive.
Why "caffeine doesn't affect me" is often wrong
In the same study, people often did not report the sleep they had lost. Feeling like you sleep fine after an evening coffee is not the same as sleeping well. Look at the clues instead: needing an alarm to drag yourself up, feeling flat in morning sessions, and reaching for more caffeine earlier each day.
Genes also matter. People who clear caffeine slowly may feel its effects far longer than the average five-hour half-life suggests.
Caffeine is a loan against tonight's sleep. Borrow small, borrow early.
GritxLabs Editorial Team
Set your caffeine curfew
| Bedtime | Last caffeine | Notes |
|---|---|---|
| 10 p.m. | Before 2–4 p.m. | Most people training after work |
| 11 p.m. | Before 3–5 p.m. | Leave more time for big doses |
| Midnight | Before 4–6 p.m. | Late shifts and late matches |
How to handle evening training
- Go smaller. One piece of gum gives a measured 60 mg rather than a 250 mg scoop of pre-workout.
- Go earlier. Take it at the start of the session, not the end.
- Or skip it. For light or technical sessions, a good warm-up and music may be all you need.
- Wind down after. A shower, dim lights and no screens help your heart rate and brain settle.
A format you can dose precisely makes this much easier. Compare options in Gum vs Coffee vs Pre-Workout.
What this means for you
- Stop caffeine 6+ hours before bed; longer for big doses.
- Late sessions: small, early, or none.
- Judge your sleep by how you feel in the morning, not by how easily you fell asleep.
- Sleep is the priority. Read Sleep Is Your Best Recovery Tool.
Frequently asked questions
How many hours before bed should I stop caffeine?
At least 6 hours, and longer for large doses or if you are sensitive. A controlled study found a large dose 6 hours before bed still cut sleep by over an hour.
Can I take caffeine before an evening workout?
Yes, but keep it small and early in the session, or skip it for lighter sessions, so it does not cut into your sleep.
Why can I fall asleep after coffee but still feel tired?
Caffeine can make sleep lighter and shorter even if you fall asleep. Many people do not notice the lost sleep.
What is caffeine's half-life?
Around five hours on average in healthy adults, but it varies a lot with genes, pregnancy, medicines and smoking.
References
- Drake C et al. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 9(11), 1195–1200.
- EFSA Panel on Dietetic Products, Nutrition and Allergies (2015). Scientific opinion on the safety of caffeine. EFSA Journal, 13(5), 4102.
- Guest N et al. (2018). Caffeine, CYP1A2 genotype, and endurance performance in athletes. Medicine & Science in Sports & Exercise, 50(8), 1570–1578.
- Halson SL (2014). Sleep in elite athletes and nutritional interventions to enhance sleep. Sports Medicine, 44(Suppl 1), S13–S23.
This article is for general education and is not medical advice. Talk to a doctor or registered dietitian before changing your diet or supplements, especially if you are pregnant, nursing, under 18, taking medication or have a health condition.