Energy & SleepAnswer

What time should you stop drinking caffeine to sleep?

Caffeine's half-life, not an arbitrary clock time, decides your cutoff. Here's how to calculate yours.

The short answer

Caffeine has a half-life of roughly five hours, so half of what you consume is still active in your system five hours later. To protect sleep, count back about ten hours from your bedtime — so if you sleep at 11pm, aim to stop by 1pm. Sensitivity varies, so adjust from there.

  • 1 study
  • 1 institution

Key takeaways

  1. Caffeine's half-life means a 3pm coffee can leave roughly a quarter of its caffeine active at 11pm.
  2. A ten-hour cutoff before bed is a practical starting point for most people.
  3. Sleep-sensitive people clear caffeine more slowly and may need an earlier cutoff.
  4. Smoking and higher habitual caffeine intake are linked to faster caffeine clearance2.
  5. If sleep is already poor, fix the root cause rather than relying on stimulants to mask it.
In this piece, 6 sections

Why "no coffee after 2pm" is only half the answer

The familiar rule — stop drinking coffee by early afternoon — is useful but arbitrary. It treats everyone as if they process caffeine at the same speed, which they don't. A more useful approach starts with one number: caffeine's half-life, the time it takes your body to eliminate half of what you consumed.

For most healthy adults, caffeine's half-life is around five hours. That means if you drink a coffee containing 140 mg of caffeine at 4pm, roughly 70 mg would still be circulating at 9pm, and about 35 mg at 2am, based on a five-hour half-life. Caffeine can still be active in your system at night even when you fall asleep quickly, which may affect sleep quality. Counting backwards from your bedtime gives you a cutoff that reflects your own schedule rather than someone else's clock.

What is caffeine's half-life?

A drug's half-life is the time it takes for the concentration in your blood to fall by half. Caffeine is metabolised mainly in the liver, and its half-life in healthy adults is commonly cited as three to seven hours. The US Food and Drug Administration notes that 400 mg of caffeine a day is not generally associated with negative effects in healthy adults, but it also emphasises that individual sensitivity varies widely1.

That sensitivity is not just a feeling. A comparative study of healthy volunteers found that people who reported caffeine-related sleep disturbances had significantly longer caffeine half-life values than caffeine-tolerant participants when measured over 24 hours2. In other words, if caffeine keeps you awake, part of the reason may be that your body clears it more slowly — not that you are imagining it.

How to calculate your personal caffeine cutoff

Start with your typical bedtime and count backwards ten hours. That accounts for roughly two half-lives, leaving about a quarter of the original caffeine dose still active — low enough for most people to sleep without noticeable disruption.

  • Bedtime 10pm → stop caffeine by 12pm
  • Bedtime 11pm → stop by 1pm
  • Bedtime midnight → stop by 2pm
  • Bedtime 1am → stop by 3pm

This is a starting point, not a diagnosis. If you still sleep poorly after a ten-hour cutoff, try twelve hours. If you can drink espresso after dinner and sleep soundly, your clearance is likely faster — the same study found that caffeine-tolerant participants cleared caffeine more quickly overnight, partly linked to smoking and higher habitual caffeine intake2. Neither is a reason to smoke or drink more coffee; it simply explains why one-size rules fail.

The sleep-sensitive difference

The study above is worth unpacking, because it explains a common experience: two people drink the same coffee at the same time, and one sleeps fine while the other lies awake. Researchers gave 140 mg of caffeine to two groups — one that reported caffeine-related sleep problems and one that did not — and measured plasma caffeine at intervals over 24 hours2.

The sleep-sensitive group showed significantly longer half-life values over the full 24-hour window, despite similar elimination kinetics in the first six hours. After caffeine intake, the sleep-sensitive participants also showed increased vigilance and faster EEG frequencies, meaning their brains stayed more alert for longer2. The practical lesson: if you are sensitive to caffeine, your cutoff needs to be earlier, and you should treat the standard five-hour half-life as the optimistic end of your range.

What this means for your daily rhythm

The timing question matters because caffeine's effect on sleep is not just about falling asleep. Residual caffeine may still be active in your system late at night, which is why timing matters for sleep quality. If you're using caffeine to push through an afternoon slump, you're borrowing alertness from the next day's sleep — and the loan compounds.

One awareness pattern worth naming is caffeine dependency: relying on stimulants to mask poor sleep or energy management instead of fixing root causes (from the Unleashed Awareness Bank). The fix is not necessarily giving up coffee. It is separating the pleasure of a morning coffee from the crutch of an afternoon one.

The Low-Dopamine Morning move — delaying phone, social media and caffeine for 90 minutes after waking — is another way to reduce total caffeine reliance without a hard cutoff (from the Unleashed Moves Bank). Delaying your first coffee is one way to reduce total caffeine reliance without a hard cutoff.

What to do this week

  1. Set one cutoff time. Pick your bedtime, count back ten hours, and put a reminder on your phone.
  2. Test it for five nights. Note how long it takes to fall asleep and whether you wake during the night.
  3. Adjust by two hours. If sleep is still poor, move the cutoff earlier by two hours. If sleep is fine and you miss the late coffee, move it later by two.
  4. Track the trade-off. If a late coffee is worth it occasionally, take it — but know you are choosing a worse night's sleep, not getting one for free.

If you are struggling with persistent poor sleep despite adjusting caffeine, speak to a GP. Sleep problems can have causes that no caffeine rule will fix.

Questions, answered

Does caffeine affect sleep even if you fall asleep fine?

Yes. Caffeine can still be active in your system at night even when you fall asleep quickly, which may affect sleep quality. The half-life means a late-afternoon coffee can still be active at midnight, which may affect your sleep without you realising it.

How long does caffeine stay in your system?

Caffeine has a half-life of roughly five hours in most healthy adults. That means half of what you consumed is still present after five hours, and a quarter remains after ten. Individual clearance rates vary, and sleep-sensitive people tend to clear it more slowly2.

Is 400 mg of caffeine a day safe?

The FDA states that 400 mg a day is not generally associated with negative effects in healthy adults, but sensitivity varies widely1. The total amount matters less for sleep than when you consume it, so a morning-heavy pattern is usually safer than spreading caffeine into the afternoon.

Why does caffeine keep some people awake more than others?

Sleep-sensitive people show longer caffeine half-life values and greater EEG alertness after caffeine than tolerant people2. Smoking and habitual intake affect clearance speed, which is why blanket cutoff times fail.

Should I quit caffeine completely for better sleep?

Not necessarily. A ten-hour cutoff before bed is a better first step than quitting. If sleep still suffers, move the cutoff earlier or reduce total intake. The goal is to stop caffeine from masking poor sleep, not to eliminate it if you enjoy it.

  1. 01

    U.S. Food and Drug Administration . Caffeine: How much is too much?. U.S. Food and Drug Administration.

  2. 02

    Bchir F, Dogui M, Ben Fradj R et al. (2006). Differences in pharmacokinetic and electroencephalographic responses to caffeine in sleep-sensitive and non-sensitive subjects. Comptes rendus biologies.

Educational content, not medical advice. It can't account for your circumstances; talk to a qualified professional about your own health. Researched with AI assistance and reviewed by a human editor before publication. Read our standards. Spotted an error? Write to hello@unleashed.vision.