CaffeineTime

Energy & tiredness

The best time to drink coffee for energy (without hurting sleep)

Updated 2026-10-03 · Checked against the sources below by Oleksii Y. · 8 min read

The best time to drink coffee is about 15 to 30 minutes before you need to be alert, and early enough that most of it has cleared by bedtime. Caffeine’s effects may begin 15 to 30 minutes after you drink it, and blood levels peak within about an hour. For sleep, a 2023 meta-analysis suggests having a standard coffee (107 mg) at least 8.8 hours before bed. We found no study that identifies one best clock time for everyone.

Plan a whole day of caffeine

Add when you need to be alert and when you go to bed, and see what every drink leaves behind at bedtime.

Open the timing calculator →

Key takeaways

  • Time coffee to the task, not the clock: effects may begin within 15 to 30 minutes and are usually felt for four to six hours.
  • Daily drinkers can wake in mild withdrawal, so a first cup fairly soon after waking makes sense for them; we found no evidence for waiting 90 minutes.
  • A small coffee before a short nap is the best-studied answer to the afternoon dip.
  • Your bedtime sets your latest coffee: about 8.8 hours before bed for a standard 107 mg cup, longer for bigger doses.
  • Morning coffee has the lowest sleep cost, but a 200 mg morning dose still affected sleep in one small study, so keep doses moderate.

Time your coffee to the task, not to the clock

Caffeine does its job on a predictable schedule. EFSA says its stimulating effects may begin 15 to 30 minutes after you take it, MedlinePlus says blood levels peak within about an hour, and you may keep feeling the effects for four to six hours. So the best time to drink coffee for energy is shortly before the thing you need energy for: a commute, a meeting, a study block or a long drive.

What you get from it is fairly specific. A 2016 review of caffeine and performance found that low to moderate doses, about 40 to 300 mg, sharpen alertness, vigilance, attention and reaction time, while the benefits for memory, judgment and decision-making are less consistent. Another review notes the alerting effect matters most when alertness is low, such as when working at night.

That is why “best time” claims tied to a clock, such as a late-morning window, miss the point. We found no trial that compared clock times of coffee for energy. The time that matters is yours: when you need to be sharp, and when you go to bed. The planner above builds a day around both.

Best time to drink coffee in the morning: daily drinkers vs occasional ones

If you drink coffee every day, your first cup does a different job. Caffeine withdrawal, which includes drowsiness, fatigue and difficulty concentrating, typically starts 12 to 24 hours after the last dose, so you may wake already in it. In a trial of 379 people, regular users who had gone 16 hours without caffeine were less alert, and caffeine only brought them back to their usual level. For daily drinkers, a first cup fairly soon after waking is reasonable.

If you rarely drink coffee, you are not waking in withdrawal. In a study of 102 light users, coffee-level doses raised feelings of arousal and improved attention, although the 379-person trial found no alertness gain in non- or low users. On balance, an occasional drinker’s coffee is likely to be more useful saved for a moment you need it than drunk by habit on waking.

You may have heard that you should wait 90 minutes after waking. No study we found tested that rule; we break down its claims in the 90-minute coffee rule.

Coffee for the afternoon dip: timing a cup or a coffee nap

Many people’s second coffee targets the mid-afternoon slump. That slump is real for many people: a review describes a mid-afternoon dip in performance, rooted in biology, that can occur even without lunch and is made worse by a high-carbohydrate meal.

The best-studied way to use coffee here is a coffee nap. In a small study of 10 young adults, 200 mg of caffeine taken just before a 20-minute early-afternoon nap reduced sleepiness and improved performance more than the nap alone, through the hour measured. In a driving-simulator study of 12 people, 200 mg plus a nap of under 15 minutes cut driving incidents more than caffeine alone. These are small lab studies, so treat them as promising rather than proven. See our coffee nap guide.

Whatever you choose, an afternoon cup is where sleep costs start. Keep it moderate and check it against your bedtime.

How your bedtime sets the latest good time for coffee

The end of the coffee day is the best-researched part of timing. A 2023 meta-analysis of 24 studies found caffeine cut total sleep by about 45 minutes on average. Its model suggests having a standard coffee of 107 mg at least 8.8 hours before bed, and a 217.5 mg pre-workout serving at least 13.2 hours before bed, to avoid losing sleep time.

A 2025 randomized trial in 23 healthy young men adds detail: 100 mg taken 12, 8 or 4 hours before bed had no significant effect on sleep, while 400 mg reduced deep sleep even 12 hours before bed. EFSA notes that even 100 mg may affect sleep in some adults when taken close to bedtime.

So the latest good time depends on how much you drink and when you sleep. For a personal answer, use the caffeine cutoff calculator; for how caffeine changes sleep stages, see caffeine and sleep.

Is it better to drink coffee in the morning or the afternoon?

For sleep, morning wins, because the caffeine has the most time to clear. EFSA puts the average half-life in healthy adults at about four hours, with a range of two to eight, and the FDA notes wide variation in how fast people eliminate caffeine. A slow clearer still carries a good share of an afternoon coffee at bedtime.

Morning is not free for everyone, though. In a lab study of 9 healthy men, 200 mg taken at about 7 a.m. still reduced total sleep and sleep efficiency that night. Older adults’ sleep may also be more sensitive to caffeine than younger adults’ sleep. If you sleep lightly, a smaller morning dose may help more than moving it earlier.

For energy, neither is better in general. The afternoon cup is useful if you have a real afternoon dip or demanding work, provided it fits your cutoff.

Coffee timing for common daily schedules

These examples apply the evidence above to typical days. Times assume a standard 107 mg coffee; larger drinks need more time before bed.

Example coffee timing by schedule (bedtime cutoffs use the 8.8-hour figure for a 107 mg coffee)
Your dayCoffee timing that fits the evidenceWhy
Daily drinker, wake 7 a.m., bed 11 p.m.First cup soon after waking; last cup by about 2 p.m.Reverses overnight withdrawal; 8.8 hours before 11 p.m. is 2:12 p.m.
Occasional drinker with a 10 a.m. exam or meetingOne cup about 15–30 minutes before it startsEffects may begin 15 to 30 minutes after drinking
Office worker with a strong 2–3 p.m. slump, bed 10 p.m.A small cup by about 1 p.m., or a coffee napPost-lunch dip; 8.8 hours before 10 p.m. is 1:12 p.m.
Night-shift workerCaffeine early in the shift, none in the last hours before daytime sleepCaffeine may improve shift workers’ performance; sleep after the shift still needs protecting
Light sleeper or older adultOne moderate cup in the morningEven a 7 a.m. dose affected sleep in a small study; older adults may be more sensitive

Spacing coffee through the day: how much at once and in total

Timing works best with sensible amounts. EFSA concluded that single doses up to 200 mg, and up to 400 mg a day spread over the day, raise no safety concerns for healthy adults other than pregnant women. The FDA cites 400 mg a day as an amount not generally associated with negative effects for most adults.

Coffee varies a lot: FDA figures for a 12-oz brewed coffee run from 113 to 247 mg, so check your usual drink on our brewed coffee and espresso pages. In pregnancy, the NHS advises no more than 200 mg a day. If you take regular medicines, ask your doctor or pharmacist about caffeine. If coffee brings on a racing heart, chest pain or feeling faint, get medical help rather than adjusting the timing.

Common questions

Is it better to drink coffee before or after breakfast?

We found no good evidence either way for energy. The fastest measured caffeine peak, about 30 minutes, came from a lab study of young men drinking caffeine dissolved in water, and we found no study measuring how much breakfast delays it. Choose whichever your stomach tolerates.

What is the best time to drink coffee before studying or work?

About 15 to 30 minutes before you start, since that is when effects may begin, with a moderate dose of roughly 40 to 300 mg. It helps most with alertness, attention and reaction time, less with memory. Do not trade the night’s sleep for it.

Does the best time to drink coffee change if I drink it every day?

Yes. Daily drinkers can wake in mild withdrawal, so a first cup fairly soon after waking mainly restores normal alertness. Occasional drinkers may get a real boost above normal, though studies disagree, so they probably benefit most by saving coffee for the moment they need it.

What is the best time for night-shift workers to drink coffee?

Early in the shift, when it can support performance; a Cochrane review found caffeine may improve shift workers’ performance. Stop well before your daytime sleep, and never rely on coffee to drive home when you are too sleepy to do it safely.

General information, not medical advice

If you feel unwell after caffeine — for example chest pain, a fast or irregular heartbeat that does not settle, fainting, confusion or trouble breathing — get urgent medical help. If you are pregnant or breastfeeding, under 18, take medication, or have a heart, liver or anxiety condition, high blood pressure or a sleep disorder, ask a doctor or pharmacist what amount is right for you.

Sources

  1. European Food Safety Authority (2015). EFSA explains risk assessment: Caffeine. European Food Safety Authority (doi:10.2805/618813). efsa.europa.eu (PDF) ↗
  2. MedlinePlus (U.S. National Library of Medicine) (2021). Caffeine: MedlinePlus. MedlinePlus, U.S. National Library of Medicine. medlineplus.gov ↗
  3. McLellan TM, Caldwell JA, Lieberman HR. (2016). A review of caffeine's effects on cognitive, physical and occupational performance. Neuroscience & Biobehavioral Reviews, 71, 294–312. PMID 27612937 ↗
  4. Smith A. (2002). Effects of caffeine on human behavior. Food and Chemical Toxicology, 40(9), 1243–1255. PMID 12204388 ↗
  5. Juliano LM, Griffiths RR. (2004). A critical review of caffeine withdrawal: empirical validation of symptoms and signs, incidence, severity, and associated features. Psychopharmacology, 176(1), 1–29. PMID 15448977 ↗
  6. Rogers PJ, Hohoff C, Heatherley SV, et al. (2010). Association of the anxiogenic and alerting effects of caffeine with ADORA2A and ADORA1 polymorphisms and habitual level of caffeine consumption. Neuropsychopharmacology, 35(9), 1973–1983. PMID 20520601 ↗
  7. Childs E, de Wit H. (2006). Subjective, behavioral, and physiological effects of acute caffeine in light, nondependent caffeine users. Psychopharmacology, 185(4), 514–523. PMID 16541243 ↗
  8. Monk TH. (2005). The post-lunch dip in performance. Clinics in Sports Medicine, 24(2), e15–e23. PMID 15892914 ↗
  9. Hayashi M, Masuda A, Hori T. (2003). The alerting effects of caffeine, bright light and face washing after a short daytime nap. Clinical Neurophysiology, 114(12), 2268–2278. PMID 14652086 ↗
  10. Reyner LA, Horne JA. (1997). Suppression of sleepiness in drivers: combination of caffeine with a short nap. Psychophysiology, 34(6), 721–725. PMID 9401427 ↗
  11. Gardiner C, Weakley J, Burke LM, et al. (2023). The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews, 69, 101764. doi:10.1016/j.smrv.2023.101764 ↗
  12. Gardiner CL, Weakley J, Burke LM, et al. (2025). Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial. Sleep, 48(4), zsae230. doi:10.1093/sleep/zsae230 ↗
  13. Landolt HP, Werth E, Borbély AA, et al. (1995). Caffeine intake (200 mg) in the morning affects human sleep and EEG power spectra at night. Brain Research, 675(1–2), 67–74. PMID 7796154 ↗
  14. Clark I, Landolt HP. (2017). Coffee, caffeine, and sleep: A systematic review of epidemiological studies and randomized controlled trials. Sleep Medicine Reviews, 31, 70–78. PMID 26899133 ↗
  15. U.S. Food and Drug Administration (2024). Spilling the Beans: How Much Caffeine is Too Much? FDA Consumer Updates. fda.gov ↗
  16. Ker K, Edwards PJ, Felix LM, et al. (2010). Caffeine for the prevention of injuries and errors in shift workers. Cochrane Database of Systematic Reviews, 2010(5), CD008508. PMID 20464765 ↗
  17. NHS. Foods to avoid in pregnancy. NHS. nhs.uk ↗
  18. Blanchard J, Sawers SJ. (1983). The absolute bioavailability of caffeine in man. European Journal of Clinical Pharmacology, 24(1), 93–98. PMID 6832208 ↗

An app for better sleep is on the way

We’re working on a mobile app to help you sleep better. It isn’t out yet. Leave your email and we’ll let you know when it launches.