You had coffee in the afternoon, fell asleep on time, and logged eight solid hours. Sounds like a good night's rest, right? Not necessarily. A study published this year in the journal Nutrients suggests that caffeine can alter the brain's electrical activity during sleep and reduce its depth, even when sleep duration appears completely normal.
Researchers analyzed 32 human studies that measured caffeine's impact on sleep using EEG, a test that records the brain's electrical activity. The most consistent finding was a decrease in slow-wave brain activity during NREM sleep, particularly in the waves associated with deep sleep. At the same time, researchers often observed an increase in faster activity linked to a more alert brain state.
What this means is that a person can fall asleep without difficulty, not wake during the night, and even rise feeling well-rested, yet their sleep may still be less deep and less neurologically restorative. According to Professor Dorota Korps from the Medical University in Wrocław, EEG measurements can detect subtle changes that don't show up when examining only the number of sleep hours or nighttime awakenings.
Deep sleep and the slow waves that accompany it are considered a crucial part of the body and brain's recovery processes. A reduction in this activity may explain why someone can seemingly sleep enough hours yet still wake up tired or feel they need more caffeine to function during the day.
The effect isn't identical for everyone. Age, metabolic rate, fatigue level, habitual caffeine consumption, and even genetic differences related to the adenosine system can all influence sensitivity to caffeine. The study also found that timing matters, but for some people, even caffeine consumed relatively early in the day may still affect nighttime sleep.
Caffeine works primarily by blocking receptors for adenosine, a substance that accumulates in the brain throughout the day and gradually increases the urge to sleep. Blocking this signal helps boost alertness but can also weaken the natural "sleep pressure" and leave brain activity in a more aroused state even after falling asleep.
The researchers also warn of a possible vicious cycle: caffeine helps overcome daytime fatigue, but if it impairs nighttime recovery, a person may be more tired the next day and require larger amounts of caffeine. However, they emphasize that caffeine isn't necessarily "good" or "bad", its impact depends on quantity, timing, sleep habits, and individual sensitivity.
The bottom line is that the number of sleep hours isn't the only measure of quality rest. A person may sleep through the entire night, but beneath the surface, the coffee they drank during the day is still changing how their brain sleeps.






