Anthony Ofori | Medical Graduate in General Medicine | Founder, WellNest Central
Last updated: October 9, 2026
This article provides general health education for adults and does not replace individual medical advice.
The afternoon coffee feels helpful at 3 p.m. At 11 p.m., you are tired but still awake. Could the two be connected?
If you are wondering when to stop drinking coffee before bed, start by looking several hours earlier than dinner. The National Heart, Lung, and Blood Institute notes that caffeine’s effects can last up to eight hours. An earlier cutoff may help, but there is no single clock time that guarantees good sleep for everyone.
Count backward from your intended bedtime
For someone planning to sleep at 11 p.m., eight hours earlier is 3 p.m. That makes an afternoon cutoff a reasonable starting point to review, not a promise that caffeine will have cleared by bedtime. Your sensitivity, the amount consumed, and how quickly your body removes caffeine all matter.
If your sleep remains unsettled, consider moving caffeine earlier or reducing the amount. A “no coffee after lunch” rule may suit one person’s schedule and be awkward for another.
WellNest Central support
Build a routine that supports your rest
Explore educational guidance around everyday nutrition, energy habits, and practical lifestyle goals.
The size of your coffee matters too
The FDA cites 400 mg per day as an amount not generally associated with negative effects for most adults. This is not a recommended intake target or a guarantee that your sleep will be unaffected.
Caffeine content varies considerably by drink and serving size. Count milligrams where information is available, rather than relying on “two cups” as a precise measure. Check the label or the retailer’s information for the drink you actually buy.
For example, two drinks containing 150 mg each add up to 300 mg. That calculation says nothing about whether a late serving suits your sleep.
Look beyond coffee
Tea, cola, energy drinks, chocolate, and some medicines also contain caffeine. Include these when reviewing your day. A late cup of tea may matter even if you stopped coffee at noon.
Decaf can help reduce intake, but it is not necessarily caffeine-free. The FDA gives a typical range of 2–15 mg per 8-fluid-ounce cup of decaf coffee.
Try a simple caffeine-and-sleep record
For the next week, write down four things:
- The time and size of each caffeinated drink.
- The caffeine amount, if known; mark it unknown rather than guessing.
- When you went to bed and roughly how long you stayed awake.
- How rested you felt the next morning.
Then choose one manageable adjustment, such as replacing the latest drink with water or gradually making it smaller. Keep a note of other changes, including unusually late work or naps, so you do not attribute every better or worse night to coffee.
This is a way to notice patterns. It does not diagnose insomnia or establish exactly what caused a sleep problem.
Cut back gradually if caffeine is a daily habit
Stopping abruptly can bring withdrawal symptoms such as headaches, sleepiness, irritability, nausea, and trouble concentrating. A gradual reduction is often easier to manage.
You could start with a smaller late-day serving or replace part of a regular coffee with decaf. Choose an approach you can repeat rather than setting a rule you abandon after one uncomfortable day.
What if you work nights?
Use your planned sleep time as the reference point. NHLBI advises shift workers to limit caffeine to the first part of their shift. A drink near the end of an overnight shift may interfere with daytime sleep.
Protecting a quiet, dark sleeping space and allowing enough time for rest are also important. For a broader look at daily routines, read our guide to morning light, sleep, and energy; shift workers may need a different light schedule.
When should you ask for individual advice?
Check with a healthcare professional about caffeine if you are pregnant or breastfeeding, have anxiety, a sleep disorder, heart rhythm problems, or take medicines that may interact with it.
Persistent sleep difficulties deserve assessment, especially if they affect daytime functioning. Caffeine may be one contributor rather than the whole explanation. If snoring accompanies morning headaches, our article on when to ask about sleep apnea explains another reason to seek advice.
Your first step can be small: identify your latest caffeine source and decide whether its timing still works for the bedtime you want.
Would you like support building healthier daily habits?
A private WellNest Central consultation offers educational guidance around food choices, energy routines, and sustainable lifestyle goals.
Book Your One-on-One Consultation
Pingback: How to Keep a Sleep Diary: A Simple Two-Week Guide