Caffeine lasts for hours, and sensitivity varies between people.

Caffeine can remain active for several hours. If you have trouble falling asleep, limit coffee, strong tea and energy drinks from the afternoon onwards. Palpitations, anxiety or insomnia suggest that you should reduce your intake.
Medical principle
Sleep is an active biological process supporting memory, mood, immunity, metabolism and heart health. Duration is not the only factor: regular timing, uninterrupted sleep and daytime functioning should be considered together.
Practical steps that may help
- Keep bedtime and waking time as consistent as possible, including on days off.
- Morning light, daily activity and reducing light and caffeine late in the day help regulate the body clock.
- For two weeks, record sleep, waking, naps, caffeine intake and daytime sleepiness.
When should you seek medical care?
Medical assessment is worthwhile if sleep problems occur more than three nights a week for over three months, or involve loud snoring, breathing pauses, sleepiness while driving, reduced functioning or a significant mood change.
View a trusted medical source ↗