For most adults, the last caffeine of the day should come at least eight hours before bedtime. If you go to bed at 10 p.m., that means your final coffee lands by 2 p.m. The number moves with your dose, your body and your training schedule, and this guide shows you how to set a cutoff that fits your own day, including the coffee you drink before a workout.
TL;DR
- Start with an 8-hour cutoff before bedtime. A 10 p.m. bedtime means no caffeine after 2 p.m.
- Dose matters as much as timing. A 2023 meta-analysis put a standard cup of coffee at about 8.8 hours before bed and a typical pre-workout at about 13.2 hours.
- Caffeine’s half-life ranges from 2 to 10 hours between healthy adults, so test your own cutoff rather than trusting a rule.
- Train early when you can. If you train late, use a small dose or skip caffeine, and watch your sleep.
- You may not feel the damage. Sleep can worsen on measurements even when you feel fine.
Table of Contents
- The short answer: 8 hours before bed
- What caffeine does to your sleep
- Dose changes the answer
- Why your cutoff may differ from the rule
- Caffeine before a workout, without paying for it at night
- Our perspective: treat caffeine as one input in a rhythm
- Find your own cutoff in two weeks
- How we help at humn.
- FAQ
- Sources
The short answer: 8 hours before bed
The Sleep Foundation gives the generally recommended cutoff as a minimum of eight hours before bedtime, and ACSM experts give the same figure to protect deep sleep. Here is what that looks like on a clock:
| Usual bedtime | Last caffeine (8-hour rule) | Stricter cutoff (10 hours) |
|---|---|---|
| 9:30 p.m. | 1:30 p.m. | 11:30 a.m. |
| 10:00 p.m. | 2:00 p.m. | 12:00 p.m. |
| 11:00 p.m. | 3:00 p.m. | 1:00 p.m. |
| 12:00 a.m. | 4:00 p.m. | 2:00 p.m. |
The stricter column is for people who are light sleepers, drink larger doses, or wake up tired no matter how long they stay in bed.
A common question is whether 4 p.m. is too late. If you sleep at 10 p.m., it is six hours before bed, which falls inside the window where caffeine can still interfere with sleep, according to the Sleep Foundation’s guidance. If you sleep at midnight, 4 p.m. fits the 8-hour rule exactly.
The tidy 2 p.m. rule is a starting point, not a law. Read on to see why it shifts.
What caffeine does to your sleep
Caffeine does not give you energy. It blocks the signals that tell your brain it is time to wind down, so the tiredness is still building while you feel alert. That is why an afternoon coffee can feel harmless at 3 p.m. and still show up at midnight.
A 2023 systematic review and meta-analysis pooled the trials and found that caffeine reduced total sleep time by 45 minutes and sleep efficiency by 7%. It also added 9 minutes to the time needed to fall asleep, 12 minutes of waking after sleep onset, and cut the share of deep sleep by 1.4%.

Those are averages across many people, and none of them sounds dramatic alone. Put together, they describe a night where you fall asleep a little later, wake a little more and get less of the sleep that repairs muscle and steadies mood. Over weeks, that shows up as flat workouts, cravings and a mid-afternoon slump that sends you back to the coffee machine.
The FDA lists insomnia and sleep disruption among the common signs of too much caffeine, alongside a faster heart rate, jitters, high blood pressure, anxiety and nausea.
You may not feel it
A 2024 crossover trial pointed to a gap between objective and subjective sleep. People may not accurately perceive how caffeine is degrading their sleep architecture. “I drink coffee at 4 p.m. and sleep fine” can be true as a feeling and still not true on a sleep tracker or in how you perform the next morning. This is why a simple test, covered below, beats trusting your gut.
Dose changes the answer
The cutoff is not one number because the amount of caffeine changes how long it takes to clear. The same 2024 trial in the journal Sleep tested doses at different distances from bedtime. Its findings:
- A 100 mg dose taken up to 4 hours before bed did not significantly affect objective or subjective sleep.
- A 400 mg dose taken within 12 hours of bed significantly delayed sleep onset and changed sleep architecture.
- The harm from 400 mg grew the closer it was to bedtime, with significantly more sleep fragmentation inside 8 hours.
So a small cup of tea at 5 p.m. and a large pre-workout at 5 p.m. are very different decisions.
The 2023 meta-analysis translated this into practical cutoffs. To avoid a meaningful loss in total sleep time, a standard cup of coffee (107 mg) should be finished at least 8.8 hours before bed. A standard serving of pre-workout supplement (217.5 mg) needs at least 13.2 hours.
Here is that applied to a 10 p.m. bedtime:
| What you drink | Caffeine in the review | Latest time for a 10 p.m. bedtime |
|---|---|---|
| Standard cup of coffee | 107 mg | About 1:10 p.m. |
| Standard pre-workout serving | 217.5 mg | About 8:50 a.m. |
Notice that the pre-workout number puts it in the morning. Many people take a scoop at 5:30 p.m. after work. For a 10 p.m. sleeper, that is roughly four and a half hours before bed, far inside the range where the evidence shows a loss of sleep.
The FDA cites 400 mg a day, about two to three 12-ounce cups of coffee, as an amount not generally associated with negative health effects for most healthy adults. That is a daily ceiling for health, not a guarantee of good sleep. You can stay under 400 mg and still wreck your night by drinking it late.
A related point from ACSM: caffeine late in the day can delay sleep onset and lower sleep quality, particularly above 2 mg/kg within six hours of bedtime. For a 75 kg (165 lb) adult, that is 150 mg, roughly a large cup of coffee.

Why your cutoff may differ from the rule
Half-life is the time your body takes to clear half of a dose. The U.S. Army puts it at 5 to 6 hours, which is why an afternoon cup is still partly in your system at bedtime. The meta-analysis authors note that across healthy adults the half-life ranges from two to 10 hours, which makes picking one stop time for everyone difficult.
The FDA says sensitivity depends on body weight, medications, medical conditions and how quickly you eliminate caffeine. Two coworkers can drink the same latte and have very different nights.
This is also where individual differences in caffeine response matter beyond sleep. If you take medication, are pregnant, have a heart condition or have been told to limit caffeine, ask your doctor or pharmacist what limit applies to you before you use any general rule.
Signs that you are a slow clearer and need an earlier cutoff:
- You lie awake for 30 minutes or more even when you are tired.
- You wake between 2 and 4 a.m. and cannot settle.
- You feel wired from a single cup.
- You need caffeine to function in the morning even after a full night in bed.
Signs you may be able to push later: you fall asleep within 15 minutes, sleep through, and wake without an alarm on days you choose a later last cup. Even then, take the objective warning above seriously.
Caffeine before a workout, without paying for it at night
This is where the two goals collide. Caffeine helps performance, and the sleep you lose can undo the benefit. The two main research reviews agree on the compromise.
The International Society of Sports Nutrition position stand says caffeine can improve vigilance and reaction time when you are sleep deprived, but athletes should use it earlier in the day when possible to avoid sleep problems. ACSM experts advise that for evening sessions you use small, individualized doses and monitor your sleep. If your sleep suffers, skip caffeine for night workouts entirely.
A practical way to apply that:
- Morning training (before 10 a.m.). Caffeine fits easily. Many athletes take it about an hour before the session, so the peak lands in the hardest part of the workout. Your cutoff is no issue.
- Midday training. You still have room. Keep the dose modest and have no more caffeine afterward.
- After-work training (5 to 7 p.m.). This is the tough slot. Skip caffeine, or use a small dose and run the test below. A full-strength pre-workout is the likeliest item on your list to cost you sleep.
- Late training. Skip it. Let the workout itself and a proper wind-down do the job.
One more trick: habituation. According to a review of timing and dose, regular caffeine intake leads most, though not all, users to habituate, and a few days off before an important event may restore the performance effect. If you need three coffees to feel anything, a short reset can cut both your dose and your sleep cost.
We go deeper on dosing, body weight and the athlete’s side in our caffeine protocol for workouts. If you are deciding when to train at all, our guide to morning versus evening workouts helps you weigh the trade-offs, and the piece on your circadian rhythm and workout time shows how to test a switch before you commit.
Our perspective: treat caffeine as one input in a rhythm
At humn., we do not think of a caffeine cutoff as a rule to follow. We think of it as one lever in a daily rhythm that also includes when you train, when you eat, how you wind down and how you recover. People come to us asking about a stop time, and what we usually find is that the coffee is covering for something else: a short night, a stressful afternoon, a skipped lunch, a 6 a.m. alarm after a late meeting.
So we start with the habit, not the mug. We ask what the afternoon looks like, what the evening looks like and what sleep looks like, then change the smallest thing first. Often it is moving the last coffee 90 minutes earlier and replacing it with a walk or water. Small changes you keep beat strict rules you drop after a week.
We also treat sleep as part of training. Sleep and muscle recovery are tightly linked, which is why our coaching covers sleep, stress and nutrition alongside strength work. In our experience, members who protect the night find the afternoon coffee easier to drop, and the reverse is rarely true.
One caution we give everyone: do not chase a perfect number. Pick an 8-hour cutoff, hold it for two weeks, and let your own results tell you whether to move it.
— Josh
Find your own cutoff in two weeks
The research gives you a range. Your body gives you the answer. Here is a simple self-test that takes two weeks and no equipment beyond a notes app.
- Log the baseline (days 1 to 4). Drink as usual. Write down each caffeine item with its time, plus your bedtime, how long it took to fall asleep, any wake-ups and how you felt on waking.
- Set the 8-hour cutoff (days 5 to 9). Take your usual bedtime, subtract eight hours and stop caffeine at that time. Keep everything else the same.
- Compare. Look at time to fall asleep, wake-ups and morning energy. If a wearable is part of your routine, use its trend, not a single night.
- Move one step (days 10 to 14). If you improved, hold the cutoff or test an extra hour earlier. If nothing changed, try moving later by 30 minutes and see if the results hold.
- Lock in the rule. Write it as a time, not a feeling: “Last coffee at 1:30 p.m.”
Tips that make the cutoff stick:
- Switch your last drink of the day to decaf or half-caf. Decaf still contains a little caffeine, so account for it if you are very sensitive.
- Drink water with the 2 p.m. slump, then take a ten-minute walk in daylight.
- Keep the caffeine total modest. Staying under the FDA’s 400 mg daily figure helps, but the timing still decides your night.
- Watch hidden sources: energy drinks, pre-workouts, some teas, chocolate and certain pain relievers.
- Pair the new cutoff with an evening anchor, such as dimmer lights and a fixed wind-down time. If you use heat in the evening, sauna timing for sleep is worth reading.
People who train hard also tend to underrate the rest of the recovery picture. Our 24-hour workout recovery plan shows where sleep fits among food, hydration and downtime, and these practical recovery recommendations are a good companion if you train for a sport.
Busy schedules are the main reason cutoffs fail. If your afternoons are packed, these strategies for fitting in fitness can free up a morning slot where caffeine is no problem.
How we help at humn.
If you live or work around Gaithersburg and you want someone to build these habits with you, that is what our coaches do. At humn., membership combines small-group personal training with coaching on sleep, stress, nutrition and routines, so caffeine timing gets sorted alongside your training schedule. If food is the part you keep putting off, 1:1 nutrition coaching is built around your habits, and our recovery services include sauna, compression, red light therapy and acupuncture. Pricing is set per member, so start on the membership page and we will take it from there.
FAQ
How long before bed should I stop drinking caffeine?
At least eight hours is the standard guidance from the Sleep Foundation and ACSM experts. For a 10 p.m. bedtime, that is 2 p.m. If you are sensitive or drink large doses, stretch it to 10 hours or more.
Can I still sleep after 100 mg of caffeine?
Often yes. In a 2024 randomized trial, a 100 mg dose taken up to 4 hours before bed did not significantly change objective or subjective sleep. A 400 mg dose within 12 hours of bedtime did, so the dose is what counts. Individual sensitivity still varies, so check your own results.
When should I drink coffee before a workout?
Morning is easiest, because the cutoff is not in play. Many athletes take it around an hour before training. For evening workouts, use a small dose or none, and monitor your sleep. Our caffeine protocol for athletes covers dosing by body weight.
Is 4 p.m. too late for caffeine?
It is too late if you go to bed around 10 p.m., since that leaves six hours and the guidance asks for eight. It works for someone who sleeps around midnight. Count back from your own bedtime.
Sources
- Caffeine and Sleep Problems, Sleep Foundation
- Industry Presented Webinar Q&A: The Hidden Cost of Sleep Loss, ACSM
- The effect of caffeine on subsequent sleep: a systematic review and meta-analysis
- Dose and timing effects of caffeine on subsequent sleep, Sleep (2024)
- Spilling the Beans: How Much Caffeine is Too Much?, FDA
- Nutrition Tips: the relationship between caffeine and sleep, U.S. Army
- GSSI Webinar Q&A: An Update on Caffeine and Exercise, ACSM
- International Society of Sports Nutrition position stand on caffeine and exercise performance
- Timing, optimal dose and intake duration of dietary supplements with evidence-based use in sports nutrition


No Comments.