When Should You Stop Drinking Caffeine for Better Sleep?
This article contains affiliate links. As an Amazon Associate, we earn from qualifying purchases, at no extra cost to you. Learn more.
For most people, the best time to stop caffeine is at least six hours before bed, and earlier is better if you are sensitive or sleep lightly. A 2013 study found that caffeine taken six hours before bedtime still disrupted sleep, so if you go to bed at 10:30 p.m., a last cup around noon to early afternoon is a sensible starting point. After 50, when sleep is lighter and easier to break, that margin matters more.
| Your bedtime | 6 hour line | A gentler starting cutoff |
|---|---|---|
| 9:30 p.m. | 3:30 p.m. | Late morning to noon |
| 10:30 p.m. | 4:30 p.m. | Noon to 1 p.m. |
| 11:30 p.m. | 5:30 p.m. | 1 p.m. to 2 p.m. |
How long does caffeine stay in your body?
Caffeine works by blocking adenosine, a chemical that builds up the longer you are awake and creates the feeling of sleep pressure. While caffeine sits on those receptors, your brain does not get the full “time to sleep” signal, even if you feel tired.
Pharmacology references commonly put caffeine’s average half-life in healthy adults at around five hours, meaning about half of a dose is still in your system five hours later and about a quarter after ten. That average hides a wide range. The FDA notes there is wide variation both in how sensitive people are to caffeine and in how fast they eliminate it.

Why do some people clear caffeine more slowly?
Several well known factors change how long caffeine lingers:
- Genetics: the liver enzyme that breaks caffeine down works faster in some people than others.
- Medicines: some prescriptions and some hormone containing medicines slow caffeine clearance. Your pharmacist can tell you whether yours do.
- Liver health: liver disease can slow it considerably.
- Smoking: smoking speeds caffeine clearance, so people who quit often find the same coffee suddenly hits harder.
- Age and sleep: many people notice they become more sensitive to caffeine’s effect on sleep as they get older, partly because their sleep is lighter to begin with.
What did the six hour caffeine study find?
The study most often cited on caffeine timing was published in 2013 in the Journal of Clinical Sleep Medicine by Christopher Drake and colleagues at the Henry Ford Hospital Sleep Disorders and Research Center. Healthy adults who normally slept well took a 400 milligram dose of caffeine, or a placebo, at bedtime, three hours before bed and six hours before bed, then slept at home with a portable sleep monitor.
All three caffeine timings disrupted sleep compared with placebo, including the dose taken six hours before bed. Based on how much total sleep was lost, the authors concluded that caffeine six hours before bedtime has important disruptive effects, and that the results support avoiding substantial caffeine for a minimum of six hours before bed. On the objective monitor, the six hour dose cut total sleep by more than an hour.
Keep the limits in mind. It was a small study of healthy sleepers, and 400 milligrams is a large single dose, about what the FDA describes as two to three 12 ounce cups of coffee. A single cup will have a smaller effect, but the study is a good reason to treat six hours as the minimum gap, not the ideal one.
Where does caffeine hide?
Coffee gets the attention, but afternoon caffeine often comes from somewhere else. The FDA lists these typical amounts for 12 ounce servings, and points out that caffeine also shows up in protein bars, ice cream, chewing gum, dietary supplements and some over the counter medicines.
| Source | Typical caffeine (FDA) | Easy to miss? |
|---|---|---|
| Brewed coffee, 12 oz | 113 to 247 mg | No, but cup sizes keep growing |
| Black tea, 12 oz | 71 mg | Yes, especially iced tea refills |
| Green tea, 12 oz | 37 mg | Yes, often seen as caffeine free |
| Caffeinated soft drink, 12 oz | 23 to 83 mg | Yes, including some citrus and orange sodas |
| Energy drink, 12 oz | 41 to 246 mg | Sometimes, when caffeine comes from guarana |
| Decaf coffee, 8 oz | 2 to 15 mg | Yes, decaf is not caffeine free |
| Chocolate, coffee flavored desserts | Varies, dark chocolate has more | Very, especially as an evening treat |
| Some headache and pain pills | Listed on the Drug Facts label | Very, check the active ingredients |

Restaurants and coffee shops are not required to tell you how much caffeine their drinks contain, according to the FDA, so ask if you are unsure. A large iced coffee or a sweet tea refill at 3 p.m. can carry far more than you expect.
Which cutoff should you start with?
Use this as a quick decision guide. Pick the line that sounds most like you, try it for two weeks, then adjust.
- If you fall asleep easily and rarely wake: the six hour minimum may be enough. Keep doses modest after lunch.
- If you lie awake for a long time at bedtime: move your last caffeine to late morning and remove hidden afternoon sources.
- If you fall asleep fine but wake at 2 or 3 a.m.: try a noon cutoff anyway. Caffeine can lighten sleep in the second half of the night. Our guide on why you wake up at 3 a.m. covers other causes.
- If you rely on an afternoon cup to get through the day: the real problem may be short or broken nights. Read how sleep changes after 50, including when a short nap helps more than coffee.
- If you also drink alcohol in the evening: the two can combine into a cycle of poor sleep and more coffee. See does alcohol help you sleep?
How do you cut back without headaches?
MedlinePlus advises cutting back slowly, because stopping suddenly can bring withdrawal symptoms such as headache, drowsiness and irritability. The FDA describes caffeine withdrawal as not dangerous but unpleasant. A slow taper over two to three weeks avoids most of it.
- Days 1 to 3, take stock: write down every caffeinated drink and food, with the time. Many people find one or two they had forgotten.
- Days 4 to 7, move the latest one: shift your last caffeinated drink an hour earlier. Keep your morning coffee as it is.
- Week 2, swap rather than skip: replace afternoon drinks with half caf, then decaf, herbal tea or water.
- Week 3, settle your cutoff: hold your new cutoff time and keep a simple sleep log.
- Keep the habit, change the contents: if the 3 p.m. coffee break is about a pause, keep the pause with a different drink.
Mild headaches during a taper often ease within days. If you have frequent headaches, check whether your pain reliever contains caffeine, and talk with your doctor about the pattern.
Is decaf really safe for sleep?
For most people, yes. The FDA says decaf coffee typically has 2 to 15 milligrams of caffeine in an 8 ounce cup, a small fraction of regular coffee. Decaf is made by removing most of the caffeine from the green coffee beans before roasting, using water, carbon dioxide or an approved solvent. If you react strongly to caffeine, the FDA suggests you may want to avoid decaf too, and several large decaf drinks late in the day do add up.
What mistakes keep caffeine from helping?
- Counting cups, not timing. Two coffees before 10 a.m. are easier on sleep than one at 4 p.m.
- Forgetting the sweet tea and soda. These are the most common afternoon sources for people who “only drink coffee in the morning”.
- Quitting cold turkey. The withdrawal headache convinces many people to go back to their old habit.
- Using caffeine to cover a sleep problem. If you need it to function, look at why your nights are short. CBT for insomnia is the first line treatment for long term sleeplessness.
When should you see a doctor?
See your doctor if you have a racing or irregular heartbeat, chest pain, or feel shaky or anxious after modest amounts of caffeine. Also check in if you still sleep poorly after a few weeks with an early cutoff, if you are very sleepy during the day despite enough time in bed, or if you take medicines and are not sure how they interact with caffeine.
When should you stop caffeine?
The Sleep Doctor channel shares when to drink caffeine and when to stop for better sleep.
What helps you replace afternoon caffeine?
A warm caffeine free drink, steady water through the day and a consistent wake time can stand in for that 3 p.m. coffee.
- Amazon Grocery Chamomile Herbal Tea: A naturally caffeine free option for the afternoon break or the evening. Think of it as a swap for coffee, not a sleep aid. Check price on Amazon
- Owala FreeSip Insulated Water Bottle: Keeps cold water at hand through the workday, useful if your afternoon coffee is partly a habit of having something to sip. Check price on Amazon
- Odokee Sunrise Alarm Clock: Brightens gradually before your alarm, which can make a steady wake time easier and mornings less groggy without leaning on extra coffee. Check price on Amazon
Frequently asked questions
Does caffeine affect older adults more?
Many people find caffeine bothers their sleep more as they age, partly because sleep after 50 is lighter and easier to interrupt. Medicines and health conditions that become more common with age can also change how caffeine affects you. If your coffee habit has not changed but your sleep has, try an earlier cutoff first.
Can I drink coffee and still fall asleep fine?
Some people can, but falling asleep is not the whole story. Caffeine can make sleep lighter and more broken later in the night, even when it does not stop you from drifting off. Judge your cutoff by how rested you feel in the morning.
Is matcha or green tea better than coffee in the afternoon?
Green tea usually has less caffeine than brewed coffee, but it still has some, and matcha can have more than regular green tea because you consume the whole leaf. Treat both as caffeinated drinks when you set your cutoff. Herbal teas such as chamomile or peppermint are naturally caffeine free.
How much caffeine is too much in a day?
The FDA cites 400 milligrams a day as an amount not generally associated with negative effects for most healthy adults. That is a safety figure, not a sleep figure, and timing matters as much as the total. Ask your doctor about a personal limit if you have heart rhythm problems, anxiety or take medicines that interact with caffeine.
Does caffeine make hot flashes or night sweats worse?
Caffeine is one of the triggers some women report for hot flashes, though it does not affect everyone the same way. Keeping a simple log of caffeine and night sweats for two weeks is the easiest way to see whether it matters for you. Our guide to falling asleep faster after 50 has more evening habits worth testing.
Will cutting caffeine make me more tired at first?
Possibly, for a few days. Drowsiness is a common withdrawal symptom, which is why a slow taper works better than stopping all at once. Most people find their energy steadies once their sleep improves.
Sources and further reading
- Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed, Journal of Clinical Sleep Medicine (PubMed)
- Spilling the Beans: How Much Caffeine is Too Much?, U.S. Food and Drug Administration
- Caffeine in the diet, MedlinePlus Medical Encyclopedia
- Caffeine, MedlinePlus
- About Sleep, Centers for Disease Control and Prevention
- Caffeine: How much is too much?, Mayo Clinic
- Caffeine content for coffee, tea, soda and more, Mayo Clinic
- Insomnia: Symptoms and causes, Mayo Clinic
- Caffeine, Wikipedia
A quick note: this is general health information, not medical advice. Talk with your doctor before starting, stopping, or changing any treatment.