When to stop drinking coffee and tea before bed
Caffeine keeps you alert by blocking a sleepiness signal in the brain. It takes many hours to wear off, and some people clear it much more slowly than others.
See your own times in SleepDim
The 6-hour finding
In a study in the Journal of Clinical Sleep Medicine, a large dose of caffeine taken 6 hours before bed still cut total sleep by more than an hour, even though the participants did not notice it.3
How SleepDim sets your limit
SleepDim sets your last coffee or tea 8 hours before your usual bedtime, a little more than those 6 hours. If you go to bed at 23:00, that’s 15:00. Change your times and the limit moves with them.
Where caffeine hides
Coffee and espresso, black and green tea, yerba mate, energy drinks, and many sodas, including cola, contain caffeine; chocolate has smaller amounts. Decaffeinated coffee has very little, and herbal teas have none.
If you sleep poorly
Moving your last cup earlier is one of the easiest changes to try. A regular wake time, daylight in the morning, and a calm last hour before bed help too.1,11
Sources: The science behind SleepDim
SleepDim shares common sleep advice and calm sounds. It is not a treatment for sleep problems and does not promise better sleep. For poor sleep lasting 3 months or more, ask your doctor about CBT for insomnia (CBT-I), the recommended first treatment. The science behind SleepDim
Read more
Last reviewed: 24 November 2026