Caffeine & Sleep

How Long Does Caffeine Stay in Your System?

By Nora Vale · November 18, 2025 · 7 min read

Sleep-themed photo for how long does caffeine stay in your system

It’s 3:50 on a Tuesday, the afternoon has gone soft at the edges, and the coffee order feels less like a beverage than rescue. That’s the sale. I say that as a loyal customer, and I still drink it every day, before noon, always. But the thing caffeine sells you isn’t energy. “the thing it sells you isn’t energy. It’s a loan against tonight.”

If you’re asking how long does caffeine stay in your system., the honest answer is a number, a range, and a clock you can set to your own bedtime. The full loan terms live in the caffeine and sleep guide; this post is the arithmetic and the two-week experiment that turns it into your own cutoff.

Key takeaways

  • Caffeine’s half-life is about five to six hours for a typical adult, with an honest range of two to twelve, per the Sleep Foundation.
  • A 4 p.m. coffee leaves about a quarter of itself in your blood at 2 a.m., arriving at your deepest sleep hours.
  • Caffeine doesn’t give energy, it hides the receipt, and the bill gets paid at night in shallow, broken sleep.
  • The cutoff rule is bedtime minus eight hours, ten if your sleep is already thin. One decision, not a daily negotiation.
  • Tea, chocolate, cola, energy drinks, and decaf all count. The cutoff counts milligrams, not sources.

The receipt, not the gift

Here’s the mechanism in plain words, because it explains everything else. From the moment you wake up, your brain produces a chemical called adenosine, and it accumulates hour by hour the entire time you’re awake, which is why you start the day clear and end it heavy. Adenosine is the sleepiness bill. The longer the day runs, the bigger it gets.

Caffeine doesn’t shrink the bill. It blocks the receptors adenosine is trying to use, so the chemical keeps piling up in the background while the doorways it needs are occupied, and you experience the whole arrangement as alertness. The bill hasn’t been paid. It’s been slid under a coaster. So when people say caffeine gives them energy, “caffeine doesn’t give energy, it hides the receipt.” The receipt is still coming, which is why the afternoon crash lands a few hours after the cup and feels like betrayal. It isn’t betrayal. It’s the paperwork clearing.

The crash has a second act. Late in the afternoon the blocker loses its grip, all that banked adenosine comes due at once, and the reply most people reach for is another cup, which pushes the whole cycle three hours deeper into the evening. “The debt keeps moving downstream, and downstream is always night.”

And here’s the piece that keeps this problem alive for years: caffeine can lighten and fragment your sleep even on nights you fall asleep without any trouble at all, so the person lying awake at 2 a.m. never once suspects the 3 p.m. espresso. “Falling asleep fast isn’t the test. Staying down in deep, unbroken sleep is the test,” and it’s the one the afternoon cup keeps failing. The loan rolls over night after night, and by Thursday you’re not drinking coffee, you’re servicing debt.

The half-life math

For a typical adult, the half-life runs about five to six hours, meaning that’s how long your blood takes to clear half of whatever caffeine it’s holding. The Sleep Foundation notes the honest range is wide, anywhere from two hours to twelve depending on the person. The liver enzyme that clears caffeine, CYP1A2, runs fast in some people and slow in others, pregnancy roughly doubles the half-life, and smoking roughly halves it. Two colleagues splitting a 3 p.m. pot can be having completely different nights while each swears the other is exaggerating.

Run the clock on a two-hundred-milligram large coffee ordered at 4 p.m. By 9 or 10 that night, half of it is still on board while you wind down. By 2 a.m. a quarter of the original cup, about fifty milligrams, is still circulating, and fifty milligrams is a respectable cup of tea arriving at the exact hours your sleep is supposed to be at its deepest and quietest. That’s the arithmetic. It doesn’t care that you fell asleep fine.

The same clock runs all day, which is why the habit matters more than any single cup. A 3 p.m. coffee still has a quarter of itself in your blood at an eleven o’clock bedtime, an early afternoon cup is nearly finished by then, and the morning cups are long gone, which is exactly how the morning habit earned its reputation. “Early coffee behaves. Late coffee loiters.” The Sleep Foundation’s guideline follows straight from that math: no caffeine within eight hours of bedtime, and ten or more for anyone whose sleep is already poor, which puts the cutoff for a ten o’clock bedtime at around two in the afternoon.

Finding your own cutoff

Your cutoff is a personal number, and you can find it with one boring experiment. Bedtime minus eight hours is the starting line, ten hours if your sleep is already threadbare, and you hold that line every single day for two weeks while keeping the rest of the routine steady. If lights go out at 10:30, the last cup goes in before 2:30, or before 12:30 on the stricter version. One move, held still.

The first few days carry a tax, and you deserve fair warning. Withdrawal is real: a headache, some fatigue, a mood like wet cardboard, typically starting twelve to twenty-four hours after the last dose and lasting two to nine days. Taper the last few days instead of going cold, shrinking the afternoon cup by half on Tuesday and half again on Wednesday, and the headache often shrinks right along with the dose. Three rough days buys the rest of your nights. That’s a decent exchange rate.

About the afternoon slump: the cutoff doesn’t delete it. The two-to-four dip arrives on schedule whether or not a latte comes to meet it, and without caffeine you actually feel the thing, plain and unedited, for a week or two. It shrinks. Most people find the real dip was a fraction of the crash the latte cycle had been manufacturing.

Two habits make the experiment honest. Write down the time of your last caffeine every day, because memory will fudge that number by an hour in coffee’s favor, and change nothing else for the two weeks, or you’ll never know which lever did the work. Watch the hidden sources too: the FDA’s published numbers put brewed tea at 40 to 120 milligrams, cola at 30 to 40, dark chocolate at 25 to 70, energy drinks at 50 to 300, and decaf at 2 to 15 per cup. “The cutoff doesn’t count sources. It counts milligrams.” An ordinary Tuesday of tea at 4, chocolate at 9, and decaf after dinner lands 50 to 100 milligrams after your line, a second coffee you never brewed. Hidden sources of caffeine itemizes the disguises, can decaf keep you awake handles the honest carrier’s decaf cousin, and caffeine half-life explained goes deeper on the enzyme math. For the food half of the evening, the same chapter has a simpler rule, three hours between large meals and bed, which I cover in best time to stop eating before bed.

My own line settled at noon after one miserable experiment month, and it has held for years, mostly because it turned out to be the single easiest promise in this entire book to keep. I’d be lying if I said I never eye the espresso menu at 3 p.m. with real grief. I’d rather have the sleep. Both can be true.

Frequently asked questions

How long does caffeine stay in your system?

Half of a typical dose clears in about five to six hours, which is the half-life, and the Sleep Foundation notes the range runs anywhere from two to twelve hours depending on the person. That’s why a 4 p.m. coffee still has a quarter of itself circulating at 2 a.m. The liver enzyme CYP1A2 does the clearing, and it runs fast in some people and slow in others.

Does an afternoon coffee really affect sleep?

Often yes, even when you fall asleep fine. Caffeine lightens and fragments sleep rather than just delaying it, so the damage announces itself at 2 a.m. and at 6:40 when the alarm finds you pre-exhausted. Falling asleep fast isn’t the test. Staying down in deep, unbroken sleep is the test.

What’s the rule for a caffeine cutoff?

No caffeine within eight hours of bedtime, and ten or more for anyone whose sleep is already poor, per the Sleep Foundation. For a ten o’clock bedtime, the last cup goes before around two in the afternoon. Find your own number with a two-week experiment, one variable at a time, with the time of your last dose written down every day.

Do tea, chocolate, and decaf count?

Yes. Tea runs 40 to 120 milligrams, cola 30 to 40, dark chocolate 25 to 70, energy drinks 50 to 300, decaf 2 to 15, and some over-the-counter pain relievers pack 65 or more per tablet. The cutoff doesn’t count sources. It counts milligrams, and an innocent-feeling evening can carry 50 to 100 of them.

What if I cut caffeine and feel no different?

Then the experiment still paid you. Either your liver clears the stuff fast enough that even a 4 p.m. cup is mostly gone by midnight, or caffeine was never the main thief in your night. Sometimes the improvement lands in how often the night stayed unbroken, which only a log reveals. A null result is still a result, and the effort belongs to alcohol, light, or the room instead.

The decision gets made once, at the cutoff, and after that the afternoons stop being a negotiation. “The math is the math. Your bedtime coffee is being served at lunch.” The full loan terms and the two-week experiment worksheet are in the caffeine and sleep guide and in Sleep, Finally.


This guide is educational, not medical advice. If trouble sleeping three or more nights a week lasts three months or more, that pattern has a name and a treatment, and a doctor is the right door.

Keep reading

Related guides

Sleep-themed photo for hidden caffeine 9 sources you forgot to count

Aug 30, 2026 · 6 min read

Hidden Caffeine: 9 Sources You Forgot to Count

Hidden caffeine sources like tea, dark chocolate, decaf, cola, and pain relievers add up after your cutoff. Here are 9 places it hides and what the milligrams cost.