How long does caffeine stay in your system? One cup, hour by hour

Published

9 sources, checked October 5, 2026

The caffeine cut-off calculator adds up more than one drink and gives the latest time for the next.

One coffee, four times of day

One cup at 3:00 PM leaves about 36 to 42 mg at a 10:00 PM bedtime. The same cup at 7:00 AM leaves 12 to 17 mg. The chart and the hour-by-hour table cover the rest of the day.

The table takes one 8 fl oz cup of brewed coffee, about 95 mg of caffeine in its USDA record, and works out what is still active at 10:00 PM. Drunk at 7:00 AM, it leaves about 12 to 17 mg. At 3:00 PM that rises to 36 to 42 mg, and a 5:00 PM cup still holds 48 to 53 mg, about half of it.

One cup of brewed coffee: caffeine still active at a 10:00 PM bedtime

Coffee at5-hour half-life6-hour half-life
7:00 AM12 mg17 mg
12:00 PM24 mg30 mg
3:00 PM36 mg42 mg
5:00 PM48 mg53 mg
Four curves, one for each cup in the first table at the 5-hour half-life: each jumps to about 95 mg when it is drunk and halves every 5 hours. At the 10:00 PM line the 7 AM cup is lowest and the 5 PM cup highest, just under the dashed 50 mg line.50 mg95 mgbed6 AM12 PM6 PM
Each curve is one cup of brewed coffee from the first table, at the 5-hour half-life. The vertical line is bedtime, and the dashed one is the calculator's starting figure for caffeine at bedtime.
An espresso in a white cup, with a square of chocolate on the saucer
The hour you drink it decides most of what is left at bedtime. Photo: Balise42, CC BY-SA 4.0, via Wikimedia Commons; cropped and darkened, shared under the same license

Why it fades slowly: the half-life

Caffeine leaves the body by halves: every half-life, half of what is left is gone. A NIOSH training page for nurses says caffeine “has a half-life of 5 to 6 hours but can remain in your system much longer” (source). So the cup's 95 mg falls to about 48 mg after one half-life, 24 mg after two and 12 mg after three. At 5 hours a half-life, three of them take 15 hours, which is why a breakfast coffee is mostly gone by bedtime and an afternoon one isn't.

The two columns are the two ends of the NIOSH range. People differ, as the quote above warns, so read the right-hand column as the cautious one.

Hour by hour, for a 10:00 PM or 11:00 PM bedtime

Find the time of your last coffee. At the 5-hour half-life and a 10:00 PM bedtime, a coffee at 6:00 PM or later leaves more than 50 mg. At the cautious 6-hour half-life, a 5:00 PM cup already does (53 mg). With bed an hour later, the first time over is 7:00 PM. For one cup and a 10:00 PM bedtime the cut-off calculator is stricter and says 4:00 PM, its 6-hour mark, explained further down.

Hour by hour: one coffee, and what is left at 10:00 PM or 11:00 PM (5-hour half-life)

Coffee atBed at 10:00 PMBed at 11:00 PM
6:00 AM10 mg9 mg
7:00 AM12 mg10 mg
8:00 AM14 mg12 mg
9:00 AM16 mg14 mg
10:00 AM18 mg16 mg
11:00 AM21 mg18 mg
12:00 PM24 mg21 mg
1:00 PM27 mg24 mg
2:00 PM31 mg27 mg
3:00 PM36 mg31 mg
4:00 PM41 mg36 mg
5:00 PM48 mg41 mg
6:00 PM55 mg (over)48 mg
7:00 PM63 mg (over)55 mg (over)
8:00 PM72 mg (over)63 mg (over)
9:00 PM83 mg (over)72 mg (over)

“Over” means more than 50 mg at bedtime, the caffeine cut-off calculator's starting figure (you can change it there). Tap a time to open the calculator with that coffee and a 10:00 PM bedtime.

Coffee, espresso, tea, energy drinks and cola

Drunk at 3:00 PM, a cup of black tea leaves about half of what a cup of coffee does by 10:00 PM, and a can of cola less again. An espresso shot starts lower than a full cup of brewed coffee, so it leaves less too.

One drink at 3:00 PM: caffeine still active at 10:00 PM

DrinkCaffeine in itLeft at 10:00 PM
Brewed coffee, 1 cup (8 fl oz)95 mg36 to 42 mg
Espresso, 1 fl oz shot63 mg24 to 28 mg
Black tea, 1 cup (8 fl oz)47 mg18 to 21 mg
Energy drink, 8.4 fl oz can75 mg28 to 33 mg
Cola, 12 fl oz can33 mg13 to 15 mg

Caffeine amounts are USDA FoodData Central records, and each range runs from the 5- to the 6-hour half-life. Brands vary, and the FDA puts energy drinks anywhere from 54 to 328 mg of caffeine per 16 fl oz, which is about 28 to 172 mg in an 8.4 fl oz can like the one in the table.

An empty white cup with a gold rim on its saucer, on a wooden tray in low light
Tea, coffee or cola, caffeine fades on the same clock. What differs is how much was in the cup. Photo: Ashish Bhatnagar, public domain, via Wikimedia Commons

Where the cut-off calculator draws the line

No health body gives an amount of caffeine that is fine at bedtime. Our caffeine cut-off calculator starts at 50 mg, a studio rule you can change, and never shows a cut-off later than 6 hours before bed. That mark comes from a sleep lab study: Drake and colleagues found “caffeine taken 6 hours before bedtime has important disruptive effects on sleep” (source). The amount they tested was 400 mg, about 4 cups of brewed coffee at once, so it is a cautious mark for a single cup. Some advice is stricter, and NIOSH's own line is that caffeine “can remain in your system much longer” than its half-life suggests, so if you sleep lightly, lower the bedtime figure in the calculator.

In the FDA's words, “For most adults, the FDA has cited 400 milligrams a day” (source), an amount not generally associated with negative effects. It is a daily total. For sleep, what matters is how late the caffeine came, as the tables show.

Coffee timed, alarm set? The Lull app turns your wake-up time into bedtimes and plays a sound that goes quiet a minute before your phone's alarm.

What the tables leave out

The tables apply the two ends of the NIOSH half-life range to everyone and the USDA's caffeine figure to each drink. Your cup, your body and the medicines you take can change either one. They show the caffeine still in your body, which is a different thing from how it affects your sleep. Some people sleep after an evening espresso, and others feel a lunchtime one.

See a doctor if you regularly take more than 30 minutes to fall asleep or feel you need caffeine to get through every day. This guide is general information, not medical advice: read our disclaimer.

Frequently asked questions

How long does caffeine stay in your system?

Its half-life is 5 to 6 hours (NIOSH): half is gone after that time, half the rest after the same again. A cup at 5:00 PM still has 48 to 53 mg left at 10:00 PM.

Is a 3 PM coffee too late?

Not for a 10:00 PM bedtime, by our calculator's rules. A 3:00 PM cup leaves about 36 to 42 mg then, under its starting figure of 50 mg, and it comes more than 6 hours before bed. An earlier bedtime or a lower limit can change that.

Does tea keep you awake as long as coffee?

Tea caffeine fades at the same rate as coffee's, but a cup of black tea starts with less: about 47 mg against 95 mg in brewed coffee (USDA). So it leaves about half as much at bedtime.

How do I work out my own cut-off?

Enter your bedtime and each drink so far in the caffeine cut-off calculator. It shows how late your next one can be.

Sources

  1. CDC/NIOSH — Training for Nurses, Module 6: Sleep Aids and Stimulants, Caffeine2020 · read on
  2. USDA FoodData Central — Beverages, coffee, brewed, prepared with tap water (SR Legacy 171890)2019 · read on
  3. USDA FoodData Central — Beverages, coffee, brewed, espresso, restaurant-prepared (SR Legacy 171891)2019 · read on
  4. USDA FoodData Central — Beverages, tea, black, brewed, prepared with tap water (SR Legacy 173227)2019 · read on
  5. USDA FoodData Central — Beverages, Energy drink, RED BULL (SR Legacy 173210)2019 · read on
  6. USDA FoodData Central — Beverages, carbonated, cola, regular (SR Legacy 174852)2019 · read on
  7. US FDA — Spilling the Beans: How Much Caffeine Is Too Much?2024 · read on
  8. Drake et al., J Clin Sleep Med — Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed (abstract, PubMed)2013 · read on
  9. CDC/NIOSH — Training for Nurses, Module 6: Do You Have Symptoms of a Sleep Disorder?2020 · read on