A clock time can be useful context. It cannot guarantee how you will sleep.
Caffeine can interfere with sleep. The National Heart, Lung, and Blood Institute says its effects can last up to eight hours. That is a reason to pay attention to afternoon and evening intake—not proof that caffeine stops affecting everyone at a precise deadline.
The short answer
Keep caffeine away from your planned sleep period, but do not treat a single clock time as a guarantee. The amount you consume matters as well as the gap before bed. The NHLBI notes effects can last up to eight hours; research with a 400 mg dose has found sleep disruption even six hours before bedtime.
What did the sleep studies actually test?
| Study | Design | What to take from it |
|---|---|---|
| Drake et al., 2013 | 400 mg at bedtime, three hours before, or six hours before; compared with placebo. | A substantial dose disrupted sleep at all three timings. This was not a test of every coffee size or every person. |
| Dose-and-timing crossover trial | 23 men; 100 mg or 400 mg at four, eight or twelve hours before bed. | The larger dose could affect sleep even twelve hours before bed. The 100 mg findings should not be generalized into a safe cutoff for everyone. |
The practical lesson is to record both milligrams and timing. A rule about “one coffee” hides the difference between a small serving and a large, strong drink. These studies do not identify your personal caffeine clearance rate.
Start with the sleep period, not “after lunch”
Write down when you expect to sleep and when your last caffeinated drink occurs. A fixed afternoon cutoff means different things to someone with a typical office schedule and someone working nights. NIH guidance for shift workers includes limiting caffeine to the first part of the shift.
Time arithmetic onlyIf a drink is at 3 p.m. and intended bedtime is 11 p.m., the interval is eight hours.
This describes the schedule. It does not establish a safe interval or predict sleep quality.
Record amount as well as time
“Last coffee at three” leaves out the serving and the rest of the day. Record the product, size and caffeine estimate alongside its time. Keep unknown amounts visible. Do not treat a modelled caffeine curve as a direct measurement of what is in your body.
Give the night some context
A useful note might include intended bedtime, actual bedtime, a subjective sleep check-in and an unusual event such as travel or a changed shift. Choose a few fields you can maintain rather than building a form you will avoid.
Keep observations literal: “Drink at 3 p.m.; went to bed at 11:30; rated sleep poorly.” The same note rewritten as “Coffee caused bad sleep” makes a stronger claim than your record supports.
Use the pattern to form a question
Review similar days together. Is the last drink sometimes later than you remembered? Does the serving change on long workdays? What information is missing? These questions can guide a discussion or a practical change, but a short personal log cannot isolate all the factors affecting sleep.
If sleep problems persist, speak with a healthcare professional. Moving a drink earlier is not a diagnosis or a guaranteed solution.
Put the details in one place
DeCaf’s current private iPhone beta offers free drink logging and check-ins. You can keep a record to review; the app does not promise better sleep or a medically validated personal cutoff.
A little context for your next cupGet the launch update.
DeCaf is currently in private testing. Join the waitlist for a launch notification; signing up does not grant testing access or guarantee a launch date.
Join the launch waitlist ↗Sources & context
Sources consulted October 22, 2026. Educational content, not personalized medical advice. Examples and reflection prompts are editorial illustrations.
