How late is too late for caffeine?

A 2023 meta-analysis suggests having your last coffee about 8.8 hours before bed. What caffeine does to sleep, why timing varies, and how to set your cut-off.

We're a paid partner of Titan Recovery, and their ads appear on this page. Details

A person on a laptop in the kitchen at night

In short

  • A 2023 meta-analysis of 24 studies found caffeine cut total sleep time by 45 minutes and sleep efficiency by 7%.
  • To avoid losing sleep, the same review suggested a cup of coffee (107 mg) at least 8.8 hours before bed, and a pre-workout supplement (217.5 mg) at least 13.2 hours before.
  • In a small study, 400 mg of caffeine taken 6 hours before bed reduced sleep by more than an hour, even though people didn't notice it in their sleep diaries.
  • How long caffeine lasts varies a lot between people. Sleep Foundation gives its half-life as anywhere between 2 and 12 hours.

For a regular cup of coffee, the best current estimate is to stop at least 8.8 hours before bed. That figure comes from a 2023 meta-analysis of 24 studies. Stronger drinks and supplements need an even earlier cut-off, and some people are more sensitive than others.

What does caffeine do to your sleep?

Research: strong (what this means)

Caffeine keeps you alert by blocking adenosine, a compound that builds up while you're awake and makes you feel sleepy. Sleep Foundation describes it as working on the brain's adenosine receptors. That's useful at 9am and less useful at 10pm.

The largest review on the question was published in Sleep Medicine Reviews in 2023. Researchers pooled 24 studies and found that caffeine reduced total sleep time by 45 minutes and sleep efficiency by 7%. It took people 9 minutes longer to fall asleep, and they spent 12 more minutes awake after first falling asleep.

It also changed the kind of sleep people got. Light sleep increased with caffeine, and deep sleep went down by about 11 minutes.

How many hours before bed should you stop?

The same 2023 review set out to find a cut-off time. Its answer depended on the dose:

  • A cup of coffee, which the authors put at 107 mg per 250 mL, should be had at least 8.8 hours before bed to avoid losing sleep.
  • A standard serve of pre-workout supplement, at 217.5 mg, should be taken at least 13.2 hours before bed.

Sleep Foundation's general advice is similar. It says the commonly recommended cut-off is a minimum of eight hours before bedtime.

To put that in practice, if you go to bed at 11pm, 8.8 hours earlier is a little after 2pm. An afternoon pre-workout drink would need to be taken before about 10am to clear the 13.2 hour mark.

Can caffeine disrupt sleep without you noticing?

Caffeine can disrupt your sleep without you noticing, and this is the part most people underestimate. In a 2013 study in the Journal of Clinical Sleep Medicine, 12 healthy sleepers took a 400 mg caffeine pill at bedtime, 3 hours before bed or 6 hours before bed, with a placebo on a fourth night. Their sleep was measured at home with a validated sleep monitor, and they also kept sleep diaries.

All three caffeine doses disrupted sleep compared with placebo. Taken 6 hours before bed, caffeine still cut measured sleep by more than an hour. But the sleep diaries only picked up the effect at bedtime and 3 hours before. At 6 hours, the monitor showed the loss and the participants didn't report it.

So feeling like you "sleep fine" after an afternoon coffee doesn't necessarily mean caffeine isn't affecting you. The authors concluded that their results support avoiding substantial caffeine for at least 6 hours before bed. Note that 400 mg is a large single dose, more than most people get from one cup.

Why does caffeine affect some people more?

Caffeine leaves the body at very different speeds in different people. Sleep Foundation gives caffeine's half-life as anywhere between 2 and 12 hours. The FDA also notes wide variation in how sensitive people are to caffeine and how fast they clear it.

Sleep Foundation lists several reasons for the difference:

  • Your genes affect how long caffeine keeps you alert.
  • During pregnancy, caffeine's half-life is about twice as long as usual.
  • Smoking can shorten caffeine's half-life by up to 50%.
  • How often you have caffeine changes how sensitive you are to it.

If you're on the slow end, a 2pm cut-off may still be too late.

How much caffeine is in common drinks?

The FDA gives these ranges for a 12-ounce serving:

  • Regular brewed coffee: 113 to 247 mg.
  • Energy drinks: 41 to 246 mg.
  • Black tea: 71 mg.
  • Green tea: 37 mg.
  • Caffeinated soft drinks: 23 to 83 mg.

The FDA cites 400 mg a day as an amount not generally associated with negative effects for healthy adults, and lists insomnia and sleep disruption among the effects of having too much. That daily limit is a separate question from timing. You can stay well under 400 mg and still lose sleep if your last drink is late.

At the other extreme, the FDA estimates that toxic effects such as seizures can appear with rapid intake of around 1,200 mg, and it urges caution with pure or highly concentrated caffeine products, which it says can have serious health consequences.

Is decaf caffeine-free?

Decaf isn't caffeine-free. The FDA says decaffeinated coffee and tea have less caffeine than regular versions but still contain some. Decaf coffee typically has 2 to 15 mg in an 8-ounce cup. For most people that's small enough not to matter, but if you react strongly to caffeine, the FDA suggests you may want to avoid decaf too.

Where else does caffeine hide?

Coffee and tea are the obvious sources, but the FDA lists others you might not expect, including energy and protein bars, ice cream, chewing gum, dietary supplements and some over-the-counter medicines. A few labeling rules are worth knowing:

  • Packaged foods must list caffeine in the ingredients when it is added on its own.
  • When an ingredient such as chocolate naturally contains caffeine, caffeine itself won't appear on the list, though the chocolate will.
  • Restaurants and coffee shops aren't required to tell you how much caffeine is in what they serve, so the FDA encourages you to ask.

So if you've stopped coffee after lunch and still sleep badly, check the pre-workout drink, the afternoon chocolate bar and any cold or headache tablets you take.

Why do some people feel tired after coffee?

Sleep Foundation describes a cycle that's easy to fall into. Caffeine late in the day cuts into your sleep, the lost sleep makes you sleepier the next day, and you reach for more caffeine to cope. Eventually, it says, sleep loss can cause daytime sleepiness that even caffeine can't fix.

Tolerance and withdrawal add to it. Sleep Foundation notes that daily use can blunt caffeine's alerting effect for some people, and that sleepiness can be a withdrawal symptom, which is why regular users may feel groggy in the morning until they've had their first cup.

It also points out a twist for people with insomnia. Caffeine's effects on insomnia symptoms can be more severe in people who only use it occasionally than in people who use it every day.

How do you cut back without feeling awful?

The best way to cut back on caffeine is to taper rather than stop suddenly. The FDA says that if you're used to caffeine every day and want to cut back, it's best to do it gradually, and that withdrawal isn't considered dangerous but can be unpleasant. Sleep Foundation suggests tapering down to reduce withdrawal effects like headache, anxiety and poor mood.

A simple way to do it is to move your cut-off time earlier first, then reduce the amount. Sleep Foundation also suggests other ways to feel more awake without caffeine: getting bright or natural light in the morning, keeping a regular sleep schedule, and taking a short nap of up to 20 minutes if you need one. It's clear that a nap doesn't replace good nighttime sleep.

How do you find your own cut-off?

To find your own caffeine cut-off, start with the 8.8 hour guide for coffee and adjust from there. If you have trouble falling asleep or wake up more in the night, try moving your last caffeinated drink earlier by an hour or two for a week or so and see whether your sleep changes. Remember that tea, soft drinks, energy drinks and pre-workout supplements count too.

Sleep Foundation suggests keeping track of when you have caffeine and how you sleep that night, and notes that some people sleep better with a gap of 10 hours or more. The American Academy of Sleep Medicine's healthy sleep habits list puts it simply: avoid caffeine in the afternoon or evening.

When is tiredness a sign of something else?

If you feel very sleepy during the day and caffeine isn't helping, Sleep Foundation says that could be a symptom of a sleep disorder or another medical problem, and is worth raising with a doctor. The American Academy of Sleep Medicine lists daytime sleepiness as a warning sign of sleep apnea, along with snoring that comes with choking, gasping or silent pauses in breathing. We explain the difference in snoring vs. sleep apnea. That needs a doctor, not more coffee.

If you're trying to work out whether you're getting enough sleep in the first place, our guide to how much sleep adults need explains what you're aiming for.

If you want to try mouth tape and nasal strips together, our pick is the Titan Sleep System, which pairs TitanAir Nasal Strips with Titan Mouth Tape.

Common questions

Is coffee at 3pm too late?

It depends on your bedtime. The 2023 meta-analysis suggests a standard coffee at least 8.8 hours before bed, so if you go to bed at 11pm, that puts your cut-off a little after 2pm. People who are sensitive to caffeine may need an earlier cut-off.

Can caffeine affect my sleep even if I fall asleep fine?

Yes. In a 2013 study, caffeine taken 6 hours before bed reduced measured sleep by more than an hour, but participants' own sleep diaries didn't pick up the difference. Caffeine also reduced deep sleep in the 2023 meta-analysis.

How much caffeine is too much in a day?

The FDA cites 400 milligrams a day, about two to three 12-ounce cups of coffee, as an amount not generally associated with negative effects for healthy adults. It recommends talking to a healthcare provider about caffeine if you're pregnant, trying to become pregnant or breastfeeding.

Is decaf OK in the evening?

Decaf has much less caffeine but not none. The FDA says decaf coffee typically has 2 to 15 mg in an 8-ounce cup, so if you're very sensitive to caffeine you may want to skip it late in the day too.

Why does coffee make me tired instead of alert?

Sleep Foundation describes a cycle where caffeine cuts into sleep, the lost sleep makes you sleepier the next day, and you drink more caffeine to cope. Tolerance and withdrawal can play a part too, since regular users may feel sleepy until they have their first dose.

How do I cut back on caffeine without headaches?

Go gradually. The FDA says caffeine withdrawal isn't considered dangerous but can be unpleasant, and Sleep Foundation suggests tapering down to reduce withdrawal effects like headache, anxiety and low mood.

Sources

  1. The effect of caffeine on subsequent sleep: a systematic review and meta-analysisSleep Medicine Reviews, 2023
  2. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bedJournal of Clinical Sleep Medicine, 2013
  3. Spilling the beans: how much caffeine is too much?U.S. Food and Drug Administration, 2024
  4. Caffeine and sleepSleep Foundation, 2025
  5. Healthy sleep habitsAmerican Academy of Sleep Medicine (Sleep Education)
  6. Is it more than a snore? Recognizing sleep apnea warning signsAmerican Academy of Sleep Medicine

About this article

Research
6 published sources, listed above.
Evidence
Strong. How we rate it
Last checked
October 3, 2026
Funding
Paid partner of Titan Recovery. Their ads are labeled.
Found an error?
Tell us. We log fixes on the corrections page.

* This content is for informational and educational purposes only and is not medical advice. It is not intended to diagnose, treat, cure or prevent any disease or health condition. Talk to a qualified healthcare provider about your health.

Our guides are researched and drafted with the help of AI tools. Before anything is published, every source is opened and checked against the claim it supports, and anything we can't verify is cut. We fix mistakes in public on our corrections page.