Back to calculatorEvening caffeine

Coffee Before Bed: How Late Is Too Late to Drink Coffee?

What a late coffee actually leaves in your system at bedtime, why fixed cutoff hours mislead, and how dose, timing, and bedtime decide the answer.

Last updated: September 24, 2026

Why coffee before bed is a timing problem, not a willpower one

Asking whether coffee before bed is a good idea is really asking how much of an earlier dose is still working when the lights go off. Caffeine does not expire in the evening; it decays on a predictable curve. A 95 mg cup finished at 18:00 is not "worn off" by 23:00 under a five-hour half-life model. About 48 mg, half the dose, is still present at bedtime.

That is the core of the evening-caffeine problem: the dose keeps working through the exact hours you want protection from it. The question is not whether you can fall asleep, but how much caffeine you are choosing to carry into the night.

What is left at bedtime, hour by hour

The table below follows a single 95 mg cup of brewed coffee through a 23:00 bedtime using a five-hour half-life. Notice how little of the evening window actually clears the dose.

Coffee finished atHours before bedEstimated caffeine left at 23:00
12:0011 h21 mg
14:009 h27 mg
15:008 h31 mg
16:007 h36 mg
17:006 h41 mg
18:005 h48 mg
19:004 h55 mg
20:003 h63 mg
21:002 h72 mg

Rows are rounded. Each cup decays independently, so a second drink in the evening adds its own remainder on top of the first one. The half-life guide explains the curve behind these numbers.

How late is too late for coffee, then?

Fixed advice like "no coffee after 14:00" is popular because it is easy to remember, but it ignores three things that actually decide the answer:

  • How big the drink is. A single espresso at 17:00 leaves less at bedtime than a large pre-workout serving at 15:00. The caffeine content chart shows how wide that range is.
  • What you drank earlier. Morning coffee is still competing for the same bedtime. Two cups before noon can matter more than one cup late in the afternoon.
  • When you actually sleep. A 23:00 bedtime and a 01:00 bedtime give the same evening drink very different amounts of time to clear.

That is why this site derives a cutoff time from your own day instead of publishing a universal hour. Someone who sleeps late can tolerate a later cup; someone who already had three coffees cannot, regardless of what the clock says.

"I can sleep fine after coffee" - what that does and does not mean

Many regular caffeine drinkers fall asleep quickly after an evening coffee, and that experience is real. What tolerance mostly buys is easier sleep onset. The remaining caffeine can still change what happens after lights out: lighter sleep, more night awakenings, and less time in deep sleep are all ways caffeine shows up at night without ever feeling like insomnia.

A useful test is comparative rather than absolute: compare how you feel after a week with evening caffeine against a week without it. The calculator can make the comparison concrete by putting a milligram number on what the late drink actually added.

Practical swaps for the late-afternoon slot

  • Shrink the dose. A single espresso instead of a full mug leaves less to clear by bedtime.
  • Move the drink earlier. The same coffee at 15:00 instead of 18:00 roughly halves what reaches a 23:00 bedtime.
  • Switch to decaf. Decaf keeps only a trace of caffeine, so it barely moves the bedtime estimate.
  • Log it and see. Add the drink to the calculator with your real bedtime and read the number before deciding, instead of guessing.

Common questions

How late is too late to drink coffee before bed?

It depends on the dose, your bedtime, and what you drank earlier in the day, so there is no single hour that fits everyone. Under a five-hour half-life, roughly half of a late coffee is still in your system five hours later, which is why many people do better finishing coffee in the early afternoon rather than the evening.

Can I fall asleep after drinking coffee in the evening?

Possibly, and that is what makes evening caffeine tricky. Falling asleep does not mean the caffeine is gone. It can still lighten sleep, increase night wake-ups, and reduce deep sleep even when sleep onset feels normal.

Does decaf coffee before bed keep you awake?

Usually not. A decaf serving keeps only a small fraction of the caffeine of regular coffee, so its contribution to a bedtime estimate is typically well under a milligram to a few milligrams.

Is a nap better than coffee late in the day?

If the goal is alertness in the evening without pushing caffeine into bedtime, a short nap adds no caffeine to clear, so it does not move the bedtime estimate at all. A late coffee raises both the evening number and the amount carried toward sleep.

Related reading

Run your own numbers

The CaffCutoff calculator turns these ideas into an estimate for your own day: add each drink, set a target bedtime, and read the remaining caffeine, the cutoff estimate, and the decay timeline.