How Long Does a Cup of Coffee Keep You Awake?
Whether you are facing an unavoidable late night or simply wondering why you cannot fall asleep after an afternoon latte, understanding how caffeine actually works in your body makes a real difference. Here is the science, plainly explained.
Dr. Peter Chang
Triple Board-Certified Cardiologist & Vascular Specialist

How Does Caffeine Keep You Awake?
How Long Does Coffee Actually Last?
Caffeine Content Across Common Drinks
- Brewed coffee (250 ml): approximately 96 mg caffeine
- Black tea (240 ml): up to 45 mg caffeine
- Soft drinks (240 ml): up to 22 mg caffeine
- Energy drinks like Red Bull (248 ml): 70–80 mg caffeine — with added sugar
The Bottom Line for Sleep
Frequently Asked Questions
Common Questions About How Long Does a Cup of Coffee Keep You Awake?
What time should I stop drinking coffee to sleep well?
For most people, stopping caffeine by 2 pm is a safe cut-off. Given the 5–6 hour half-life, a 2 pm coffee still leaves a meaningful level of caffeine in your system at 8–9 pm. Those who are more sensitive to caffeine, or who go to bed early, should stop by midday.
Does decaf coffee have any caffeine?
Yes — decaffeinated coffee still contains small amounts of caffeine, typically 2–15 mg per cup depending on the brand and brewing method. For most people this is negligible, but those highly sensitive to caffeine or with anxiety disorders may notice effects.
Can caffeine affect your heart?
For healthy individuals, moderate caffeine consumption (up to 400 mg per day) does not increase cardiovascular risk. In some people, caffeine can trigger palpitations or worsen existing arrhythmias — if you notice a racing heart or irregular beats after coffee, discuss this with a cardiologist.