Coffee and Sleep: What You Need to Know
By Merey Tleugazin Published April 2, 2026 Updated August 2, 2026 8 min read
A 240 ml cold brew contains 200 mg of caffeine and — because the population-average half-life is ~5.7 hours — will leave about 96 mg in your body after 6 hours.
- 240 ml cold brew = 200 mg caffeine; 6 hours later ≈ 96 mg remains.
- Typical drip coffee (240 ml) = 96 mg; late-afternoon drip still leaves ≈ 46 mg after 6 hours.
- FDA guideline for healthy adults: limit ≈ 400 mg/day; pregnancy guidance ≈ 200 mg/day.
- Caffeine half-life ≈ 5.7 hours (population average): expect ~48% remaining after 6 hours.
Coffee's impact on sleep patterns
Caffeine blocks adenosine receptors, delaying sleep onset and reducing sleepiness. Even moderate doses (60–200 mg) raise alertness for hours, fragmenting slow-wave sleep and REM when taken close to bedtime. The size and brew method determine how long significant stimulant levels persist: use the tables below to compare common drinks and how much remains over time.
Caffeine content: common drinks (exact measured values)
Pick drinks by the dataset below when you plan timing. These are dataset values and match common serving sizes used in nutrition databases.
| Drink (serving) | Volume | Caffeine (mg) |
|---|---|---|
| Cold brew | 240 ml | 200 mg |
| Drip coffee | 240 ml | 96 mg |
| Pour over | 240 ml | 145 mg |
| Espresso (double) | 60 ml | 126 mg |
| Americano | 240 ml | 126 mg |
| Latte (240 ml) | 240 ml | 68 mg |
| Starbucks Pike Place Brewed (Grande) | 473 ml | 310 mg |
| Starbucks Blonde Espresso (shot) | 30 ml | 85 mg |
| Decaf coffee | 240 ml | 3 mg |
| Black tea | 240 ml | 47 mg |
| Bang energy | 473 ml | 300 mg |
Caffeine decay and practical timing
Use the population-average half-life (≈5.7 hours) as a planning tool: roughly 69% remains after 3 hours, 48% after 6 hours, 33% after 9 hours, and 23% after 12 hours. That explains why an evening coffee can still disrupt morning sleep cycles.
| Starting dose (mg) | 0 h | 3 h (~69%) | 6 h (~48%) | 9 h (~33%) | 12 h (~23%) |
|---|---|---|---|---|---|
| Cold brew — 200 mg | 200 mg | 138 mg | 96 mg | 66 mg | 46 mg |
| Drip coffee — 96 mg | 96 mg | 66 mg | 46 mg | 32 mg | 22 mg |
| Americano/double espresso — 126 mg | 126 mg | 87 mg | 60 mg | 42 mg | 29 mg |
What affects how long caffeine keeps you awake
Beyond dose and half-life, factors include genetics (CYP1A2 variants), smoking (accelerates clearance), oral contraceptives and pregnancy (slow clearance), liver function, and age. Brewing variables matter: pour over and Starbucks Pike Place deliver higher mg per 240–473 ml than instant or decaf. The USDA FoodData Central and manufacturer labels are good cross-checks.
Best times to consume coffee to protect sleep
Work backwards from bedtime using the decay table: to have <23% or less remaining at wake, avoid large doses within 12 hours of sleep. For a 10:00 pm bedtime, skip cold brew (200 mg) after 10:00 am if you want minimal carryover; smaller drinks like a 240 ml latte (68 mg) are usually safer later in the day for many people. Adjust for personal sensitivity.
Strategies for staying awake without harming sleep
Timing and microdosing
Prefer small doses (40–100 mg) earlier in the afternoon rather than single large doses. Caffeine gum or a single espresso shot (63 mg) gives fast alerting effects with a smaller total dose than a large cold brew.
Non-caffeine approaches
Bright light, brief exercise, hydration, and scheduled naps (10–20 minutes) often improve alertness without adding evening caffeine. If you track caffeine and sleep together, use an app like CoffeeLog to see patterns and adjust timing.
Health, safety and special populations
FDA guidance for healthy adults is about 400 mg/day; for pregnancy many authorities (including EFSA summaries and clinical guidance) suggest limiting to about 200 mg/day. The American Academy of Pediatrics discourages caffeine for adolescents. For anxiety, arrhythmias or liver disease, clearance and tolerance change; consult a clinician. This page is informational, not medical advice.
Quick practical checklist
- Check exact mg on the drink label or a trusted database (USDA FoodData Central) before planning sleep timing.
- Use the decay table to estimate residual caffeine at bedtime; expect ~48% remaining after 6 hours.
- If sleep quality matters, stop large doses 8–12 hours before bed and prefer low-dose options later in the day.
- Track intake and sleep (for example with CoffeeLog) to find your personal cutoff time.
Sources and further reading
Values above come from standardized beverage measures and manufacturer entries; cross-check with USDA FoodData Central for home-brew variability. For safety limits see FDA and EFSA guidance; for clinical effects and pregnancy guidance see Mayo Clinic and American Academy of Pediatrics resources.
If I split a 200 mg cold brew into two 100 mg drinks four hours apart, how much caffeine will be in my body six hours after the second drink?
Six hours after the second 100 mg dose you will have about 48 mg from the second dose and about 30 mg from the first dose, for a total near 78 mg remaining in your body; the arithmetic is shown below. This calculation uses the population-average elimination model with half-life = 5.7 hours (TrackCaffeine decay model).
Sequential dosing is the process of taking the same stimulant in separate smaller portions rather than one large dose.
Step-by-step math: remaining mg = dose × 0.5^(hours / 5.7) (TrackCaffeine decay model). For the first 100 mg taken 10 hours before the measurement (4 h gap + 6 h after second dose): 100 × 0.5^(10 / 5.7) = 100 × 0.2966 ≈ 29.7 mg (TrackCaffeine dataset and decay model). For the second 100 mg taken 6 hours before the measurement: 100 × 0.5^(6 / 5.7) = 100 × 0.4839 ≈ 48.4 mg (TrackCaffeine dataset and decay model). Total ≈ 29.7 + 48.4 = 78.1 mg remaining (TrackCaffeine dataset and decay model). If you want to evaluate different splits, use our caffeine half-life calculator for instant math (TrackCaffeine tools). You can also compare the starting mg of the original drink in our cold brew guide (TrackCaffeine dataset).
Can a single caffeine gum or pill late at night keep me alert without ruining my sleep the next morning?
Yes—small, late microdoses can give transient alerting with little next-morning carryover if you use low amounts like a 40 mg caffeine gum or a 100 mg pill; measured carryover falls below about 12 mg after ~10 hours for a 40 mg gum and about 37 mg after 8 hours for a 100 mg pill. Those figures use the 5.7-hour half-life (TrackCaffeine decay model) and dataset mg values.
Microdose is a single small caffeine dose, typically 10–50 mg, intended for short-term alerting.
Example calculations: one caffeine gum (40 mg, TrackCaffeine dataset) taken 2 hours before bedtime and slept for 8 hours results in total hours after dose = 10, so remaining = 40 × 0.5^(10 / 5.7) ≈ 40 × 0.2966 ≈ 11.9 mg at wake (TrackCaffeine dataset and decay model). A 100 mg pill (TrackCaffeine dataset) taken 4 hours before bedtime with 8 hours of sleep (12 hours after dose) leaves 100 × 0.5^(12 / 5.7) ≈ 100 × 0.2304 ≈ 23.0 mg on waking (TrackCaffeine dataset and decay model). For context on safe single doses, EFSA's 2015 opinion sets a 200 mg single-dose consideration and 200 mg/day in pregnancy (European Food Safety Authority, 2015) and the FDA recommends about 400 mg/day for healthy adults (FDA and EFSA).
How should I use a caffeine nap to boost afternoon alertness without adding excessive nighttime residue?
A caffeine nap—chewing or swallowing caffeine immediately before a short nap—can sharpen alertness on waking while still leaving relatively modest residue at bedtime if total daytime dose is kept moderate. The practice works because caffeine starts blocking adenosine receptors shortly after ingestion while a brief nap reduces accumulated sleep pressure.
Caffeine nap is a short nap taken right after a small caffeine dose to combine pharmacologic alerting with brief sleep benefits.
Practical example using dataset values and a typical schedule: take a 100 mg caffeine pill at 15:00, nap 10–20 minutes, be awake and alert at 15:20–15:30, and go to bed at 23:00. At bedtime (8 hours after dosing) remaining = 100 × 0.5^(8 / 5.7) ≈ 100 × 0.373 ≈ 37.3 mg (TrackCaffeine dataset and decay model). By comparison, a 200 mg cold brew consumed at 11:00 produces 200 × 0.5^(12 / 5.7) ≈ 200 × 0.2304 ≈ 46.1 mg at 23:00 (TrackCaffeine dataset and decay model); the caffeine-nap route gives a larger near-term alerting bump but similar or lower bedtime residue if you keep the dose ≤100 mg. For practical dosing guidance across common drinks and supplements, see our Caffeine Dosage Guide and the side-by-side drink comparison (TrackCaffeine tools).
If I drink late at midnight, how much caffeine from common drinks will still be in my system at 6:00 AM?
If you drink at 00:00 and measure 6 hours later at 06:00, expect roughly 48% of the starting mg to remain because ~48% remains after 6 hours using the 5.7-hour half-life (TrackCaffeine decay model). The examples below show the arithmetic for several dataset drinks.
Six-hour residual is the proportion of an initial caffeine dose remaining 6 hours later under first-order elimination.
Using the dataset starting mg and the 6-hour factor 0.4839 (0.5^(6/5.7) = 0.4839, TrackCaffeine decay model): a Starbucks Cold Brew (Grande) 205 mg → 205 × 0.4839 ≈ 99.2 mg at 06:00 (TrackCaffeine dataset and decay model). A Bang (473 ml, 300 mg) → 300 × 0.4839 ≈ 145.2 mg at 06:00 (TrackCaffeine dataset and decay model). A Red Bull (250 ml, 80 mg) → 80 × 0.4839 ≈ 38.7 mg at 06:00 (TrackCaffeine dataset and decay model). A Monster (473 ml, 160 mg) → 160 × 0.4839 ≈ 77.4 mg at 06:00 (TrackCaffeine dataset and decay model). If you want to test your own drink or portion size, use the caffeine half-life calculator or check specific brand guides such as our Bang Energy and Starbucks Cold Brew pages (TrackCaffeine dataset and guides).
Bottom line
The population-average elimination model used on TrackCaffeine gives a half-life of 5.7 hours (TrackCaffeine decay model): expect roughly 69% remaining after 3 hours, 48% after 6 hours, 33% after 9 hours and 23% after 12 hours (TrackCaffeine decay model). Use the formula remaining mg = starting mg × 0.5^(hours/5.7) and plug in the dataset values on this site to get precise numbers for your drinks (TrackCaffeine dataset and tools).
Concrete examples you can quote: a 240 ml cold brew (200 mg, TrackCaffeine dataset) leaves about 96 mg after 6 hours because 200 × 0.4839 ≈ 96 mg (TrackCaffeine dataset and decay model); a 240 ml drip coffee (96 mg, TrackCaffeine dataset) leaves about 46 mg after 6 hours because 96 × 0.4839 ≈ 46 mg (TrackCaffeine dataset and decay model). For safety limits, the FDA puts the recommended limit for healthy adults at about 400 mg/day (U.S. Food and Drug Administration) and EFSA's 2015 opinion sets 200 mg/day as the guidance for pregnancy and discusses single-dose considerations (European Food Safety Authority, 2015) (FDA, EFSA).
- To plan: pick the exact mg from our dataset, use the decay formula above or our calculator, and work backwards from your bedtime with the 5.7-hour half-life (TrackCaffeine dataset and tools).
- If you need late alerting, prefer single microdoses (caffeine gum 40 mg or ≤100 mg pills, TrackCaffeine dataset) or a caffeine nap to boost wakefulness with less bedtime residue; verify with the last-cup-before-bed tool (TrackCaffeine tools).
- If you are pregnant or have a medical condition, follow the pregnancy limits and clinical guidance cited by EFSA and the FDA and consult a clinician (European Food Safety Authority, 2015; U.S. Food and Drug Administration).
Frequently asked questions
Is it okay to drink coffee while fasting?
Plain black coffee during a fast is usually fine for most fasting protocols and contains caffeine (e.g., drip 240 ml = 96 mg). If you add milk or sugar you break many fasts; monitor how caffeine affects hunger and sleep.
How long before bed should I stop drinking coffee?
Because caffeine halves in ≈5.7 hours, stop large doses 8–12 hours before bedtime. For a 200 mg cold brew, expect ~96 mg remaining after 6 hours and ~46 mg after 12 hours.
How much caffeine is safe per day?
The FDA cites about 400 mg/day as a common upper limit for healthy adults; pregnancy guidance is about 200 mg/day and the AAP discourages caffeine for adolescents.
Does decaf keep you awake?
Decaf (240 ml) contains about 3 mg of caffeine — far below typical stimulant doses — so it’s unlikely to disrupt sleep for most people, though sensitivity varies.
Which coffee types disrupt sleep the most?
High-dose beverages (e.g., 240 ml cold brew = 200 mg or Starbucks Pike Place 473 ml = 310 mg) carry the largest risk of nighttime sleep disruption when consumed late.
Can tracking help improve sleep while still drinking coffee?
Yes. Tracking exact mg, timing and sleep quality (for example with CoffeeLog) reveals patterns so you can move your cutoff earlier or reduce dose to protect sleep.
How long until caffeine concentration falls by half?
On average caffeine concentration falls by half in about 5.7 hours (TrackCaffeine decay model); use the formula remaining = starting mg × 0.5^(hours/5.7) to calculate specific timings.