Caffeine and Sleep: When to Stop
Caffeine blocks the signal that makes you sleepy, and it lasts longer than most people expect.
How long caffeine lasts
Caffeine's half-life is often around 5 to 6 hours. That means half of an afternoon coffee may still be in your body at bedtime. A study found caffeine taken six hours before bed reduced sleep time measurably.
A practical cutoff
Try stopping caffeine 8 hours before bedtime. If you sleep at 11 pm, that is 3 pm. Adjust if you are sensitive.
Hidden sources
- Tea, energy drinks and cola.
- Dark chocolate.
- Pre-workout supplements.
- Some pain relievers.
Cut back slowly
If you drink a lot, reduce by a little each few days to avoid headaches.
Alternatives
Water, a short walk, or daylight exposure in the morning can lift alertness.
How caffeine works
Caffeine blocks adenosine, a chemical that builds up during the day and makes you feel sleepy. You still accumulate adenosine, so when the caffeine wears off you can crash. Genes, medications and pregnancy change how fast your body clears caffeine, so two people can respond very differently to the same cup.
How much caffeine is in common drinks
- Brewed coffee, 8 oz: roughly 80 to 100 mg, varies a lot.
- Espresso, 1 oz: about 60 to 65 mg.
- Black tea, 8 oz: about 40 to 50 mg.
- Green tea, 8 oz: about 25 to 30 mg.
- Cola, 12 oz: about 30 to 40 mg.
- Energy drinks: often 80 to 300 mg per can, so read the label.
Spotting caffeine's effect on you
Try a two-week experiment. Cut caffeine after noon and keep a note of how long it takes to fall asleep, how many times you wake and how you feel in the morning. If you sleep better, move your cutoff earlier or lower your amount. Pay attention to jitters, a racing heart, anxiety and stomach upset, which are signs you may be taking too much.
Cutting back without the headache
Reduce by about 25 percent every few days. Swap one coffee for half-caffeinated or decaf, and drink water. Expect mild fatigue and headaches for a few days. Keep a regular sleep schedule and get daylight and movement to boost natural alertness.
Special situations
Pregnant people are often advised to limit caffeine, with many guidelines suggesting under 200 mg a day, so ask a healthcare provider. People with anxiety, panic attacks, reflux or heart rhythm problems may need to cut down. Teens should be careful with energy drinks. Always check with a doctor if you have health conditions or take medication.
Common mistakes
Using caffeine to cover for short sleep, drinking energy drinks late, and forgetting hidden sources like pre-workout supplements are typical. Another mistake is quitting suddenly and then going back because of headaches.
Quick checklist
- Set a cutoff eight hours before bed.
- Know the caffeine in your usual drinks.
- Track sleep after changes.
- Taper slowly.
- Check with a doctor if pregnant or on medication.
Myths about caffeine
- "Coffee dehydrates you." In normal amounts it counts toward your fluid intake.
- "Energy drinks give real energy." They give a stimulant boost, not fuel.
- "Caffeine does not affect me." You may fall asleep but have lighter, less restful sleep.
- "Decaf has none." It has a small amount.
Smart ways to use caffeine
Wait 60 to 90 minutes after waking, since cortisol is already high. Use caffeine before a task that needs focus, not all day. Pair it with water and food. A short nap followed by caffeine can work well in the early afternoon. Keep your total under about 400 mg a day unless your doctor says otherwise.
Real-life scenarios
Afternoon slump: try a 10-minute walk in daylight and a glass of water before reaching for a coffee. Early shift: have caffeine near the start of your shift, not at the end. Night shift: use caffeine in the first half of the shift and stop several hours before you go to bed. Long drive: pull over for a short nap, since caffeine only masks drowsiness. Exam week: keep your sleep schedule steady, since sleep improves memory more than another cup.
Caffeine and your daily rhythm
Your body makes its own alertness signals. Cortisol peaks soon after waking, which is why a coffee right away adds less than later in the morning. Energy dips in the early afternoon for most people, regardless of lunch. Light, movement and a short walk can help that dip. Plan your caffeine around these natural highs and lows, and keep your last cup well before the time your body starts winding down.
Frequently asked questions
Is a morning coffee OK?
For most people yes.
Does decaf have caffeine?
A small amount, typically far less than regular.
How much is too much?
The FDA says up to 400 mg a day is generally safe for most healthy adults, about four cups of brewed coffee.
More free tools
How Much Sleep Do You Need
Sleep needs by age, and how to tell if you get enough.
Bedtime Routine
A 45-minute wind-down that signals your body to sleep.
Bedroom Setup
Dark, quiet, cool. How to set up your bedroom.
Can't Sleep
What to do at 3 am and when to see a doctor.
Last updated 2026-11-27. Not medical advice. If you snore loudly, stop breathing at night, or have long-lasting insomnia, see a doctor.