You may fall asleep after coffee and still experience changes in your sleep. The useful questions are how much caffeine you had, when you had it and what happens across the whole night.
Someone declines an after-dinner coffee because they would be awake for hours. Someone else orders one and says they will sleep perfectly well. It is a familiar disagreement, usually settled with the same sentence: “I know my own body.”
Personal experience matters. But what, exactly, does “I sleep fine” mean? Falling asleep quickly, staying asleep and feeling rested the next day are different observations. A useful explanation needs room for all of them.
A small study with an important distinction
A randomized, placebo-controlled crossover trial tested 23 healthy men, averaging about 25 years old. Each completed conditions involving placebo or 100 mg or 400 mg of caffeine, taken 12, 8 or 4 hours before bed. Sleep was assessed with home measurements and diaries. The paper appeared online in October 2024 and in the April 2025 issue of SLEEP. [1]
| Dose | What researchers found |
|---|---|
| 100 mg | No statistically significant sleep changes versus placebo at the tested times. |
| 400 mg | Changes in sleep onset and architecture within 12 hours of bedtime; more fragmentation within 8 hours. |
Participants did not always perceive the changes detected by measurement. This helps explain why “I felt fine” may leave part of the story out.
The limits matter: this was a small trial in younger men, not a rule for every adult. It did not test drinking coffee immediately before bed. A nonsignificant result also does not prove an absence of effect. [1]
One trial does not replace the bigger picture
A 2023 systematic review and meta-analysis reported that caffeine reduced total sleep time by an average of about 45 minutes across the included studies. It also found longer time to fall asleep, more waking after sleep onset and less deep sleep. [2]
That average is not a prediction that your next coffee will cost exactly 45 minutes. Studies differ in dose, timing and participants. The review supports a general concern about caffeine and sleep; the smaller trial asks a more specific question about particular doses and times.
These findings do not need to compete for a winning headline. We can take the overall pattern seriously while recognizing that effects are not identical under every condition.
“A cup of coffee” is not a standard dose
The FDA lists roughly 113–247 mg of caffeine for a typical 12-fluid-ounce brewed coffee. Size and product vary, so counting cups can hide substantial differences. The FDA also notes variation in caffeine sensitivity and how quickly people eliminate it; medications and health conditions can matter. [3]
Its often-quoted 400 mg daily figure describes an amount not generally associated with negative effects for most adults. It is not a target, a bedtime allowance or a guarantee of undisturbed sleep. A daily total is also different from the single 400 mg dose used in the trial.
If you are pregnant, trying to become pregnant, breastfeeding, or concerned about a condition or medication, the FDA advises discussing caffeine with your healthcare provider. If you choose to reduce habitual intake, gradual reduction can make withdrawal less unpleasant. [3]
Start with observation, not a caffeine challenge
The NHLBI recommends avoiding caffeine as part of healthy sleep habits and notes that its effects can last for hours. It also emphasizes allowing time for sleep, consistent sleep schedules and a quiet, cool, dark bedroom. Coffee is one part of a wider routine. [4]
Its sleep diary records sleep, daytime sleepiness, caffeinated drinks and other relevant habits. You can use it to organize observations and discuss them with a healthcare professional. [5]
- Record what actually happens. Note drink size, estimated caffeine if known, the time of your last caffeinated drink, bedtime, awakenings and how rested you feel. Mark estimates as estimates.
- Include context. A late work shift, unusual stress or a disrupted night deserves a note. Otherwise it is easy to blame whichever habit you happen to be investigating.
- Keep the question small. If you choose to move your last coffee earlier, avoid changing several other routines at the same time. Do not add late caffeine just to test your tolerance.
- Be cautious with the conclusion. A better night is encouraging, but a short, unblinded personal experiment cannot isolate cause and effect. Expectations and ordinary night-to-night variation still count.
This observation sequence is our editorial suggestion, not a validated diagnostic test. Persistent sleep difficulties deserve professional advice rather than endless self-testing.
A place to notice your patterns.
Our free seven-day workbook includes a daily record and space for your next question. It is a starting point, not a sleep assessment.
Get the free habits workbookA better way to finish the conversation
“I can drink coffee and fall asleep” is a useful observation. The next question is whether that tells you everything you want to know about your night.
You do not have to dismiss your experience to take the evidence seriously. You can be curious about both.
Read the sources
- Gardiner et al. · Dose and timing effects of caffeine · SLEEP · Online 2024; issue 2025
- Gardiner et al. · Systematic review and meta-analysis · Sleep Medicine Reviews · 2023
- FDA · Spilling the Beans: How Much Caffeine is Too Much?
- NHLBI · Healthy sleep habits
- NHLBI · Sleep diary
This article explains selected evidence. It is not a systematic review or individual medical advice.
