- Published on
Caffeine and Sleep After Quitting Weed: What to Change
- Authors
- Name
- The Dehaze Team
- Role
- Writing on quitting cannabis • Dehaze
Clinical standard
Written to a clinical standard reviewed by Dr. Lu Chong · Medical oncology · Health examination and preventive care. This article was not individually reviewed — what that means.

If you are sleeping badly after quitting weed, caffeine is the easiest thing to change and one of the few that is fully in your control. You do not need to give it up. Keep your usual morning amount, stop caffeine by around lunchtime while withdrawal is disrupting your sleep, and resist the urge to add extra cups to push through the tired days. Caffeine taken even six hours before bed can cut more than an hour off your sleep, and in the first weeks after stopping weed you do not have an hour to spare.
The rest of this explains why the two interact, how late is too late, and how to cut back without making withdrawal worse.
Why sleep breaks when you quit weed
Disturbed sleep and strange dreams are among the most common features of cannabis withdrawal, alongside anxiety, irritability and low appetite. Symptoms typically start 24 to 48 hours after stopping and most peak around days two to six.
The sleep piece is often the slowest to settle. In one outpatient study, the sleep problems people reported included trouble falling asleep (55%), frequent night awakenings (44%) and vivid dreams (41%), with a median duration of 19 days after stopping. That sample was small and many participants were also opioid-dependent, so treat the numbers as a rough guide. Other research has recorded strange dreams and sleep difficulty for up to seven weeks, and changes in sleep architecture for at least two weeks.
Sleep-lab measurements back up what people report. A study of heavy users found measurable sleep disturbance during discontinuation compared with drug-free controls, and its authors noted that poor sleep could contribute to treatment failure. That is the practical reason sleep deserves attention: bad nights make the days harder to get through without using. The full picture of why this happens is in why you cannot sleep after quitting weed.
What caffeine does to sleep
Caffeine reaches its peak level in your blood within about an hour, and you may feel its effects for four to six hours. Feeling it wear off is not the same as it being gone, though.
A review of caffeine and evening sleep put its half-life at four to six hours and noted how much that varies: in women taking oral contraceptives it nearly doubled, to around 10.7 hours versus 6.2 hours. Half-life means half the caffeine is still in your body after that time. A 3pm coffee can leave a meaningful dose on board at 10pm.
The clearest evidence on timing comes from a sleep-lab study. People took 400 mg of caffeine at bedtime, three hours before or six hours before, and all three disrupted sleep — even at six hours, caffeine reduced sleep by more than one hour. The authors noted that published advice on when to stop varies widely, from four to eleven hours before bed, because people clear caffeine at such different rates.
The NHS guidance for insomnia is simpler: do not drink tea or coffee at least six hours before going to bed. While withdrawal is already making sleep fragile, an earlier cut-off is a cheap way to give yourself more margin.
How much caffeine is in what you drink
The FDA cites 400 milligrams a day, about two to three 12-ounce cups of coffee, as an amount not generally associated with negative effects for most adults. Its own figures show how wide the range is:
| Drink (12 fl oz unless noted) | Caffeine (FDA figures) |
|---|---|
| Brewed coffee | 113–247 mg |
| Energy drink | 41–246 mg |
| Energy drink (16 fl oz) | 54–328 mg |
| Black tea | 71 mg |
| Green tea | 37 mg |
| Soft drinks | 23–83 mg |
| Decaf coffee (8 fl oz) | 2–15 mg |
Two things stand out. A single large coffee can come close to half the daily figure, and energy drinks vary so much that the label is the only way to know. If your afternoon habit is a large cold brew or a 16-ounce energy drink, that one drink may be doing more to your night than everything else combined.
The overlap problem: caffeine withdrawal feels like weed withdrawal
The obvious response to all this is to quit caffeine too. For most people that is a mistake in the first weeks.
Caffeine withdrawal is its own diagnosis in the DSM-5. It starts within 24 hours of cutting back and includes headache, marked fatigue or drowsiness, low or irritable mood, difficulty concentrating and flu-like symptoms. Compare that with cannabis withdrawal — irritability, low mood, poor concentration, and sometimes headaches — and the overlap is obvious. Stopping both at once stacks two sets of symptoms on the same days and makes it hard to tell which is which.
The FDA's advice is that if you want to cut back, it is best to do so gradually, and caffeine withdrawal is not considered dangerous but can be unpleasant. Researchers take the overlap seriously too: one cannabis withdrawal sleep study allowed coffee with breakfast but restricted caffeine after 10:00 each day, to limit the effects of caffeine withdrawal on its results. That is close to the plan most people should copy — keep the morning, drop the afternoon.
There is one more reason not to go the other way and drink more. A meta-analysis found that caffeine intake is associated with an elevated risk of anxiety, especially above 400 mg. Anxiety is already one of the main symptoms of cannabis withdrawal, and too much caffeine can also bring on jitters. If your hands are unsteady, weed withdrawal shakes covers how caffeine fits into that.
A caffeine plan for the first few weeks
This is not a medical protocol, just a sensible order of changes.
- Keep your morning amount the same. Do not quit caffeine in the same week you quit weed.
- Set a cut-off. Aim for no caffeine after noon or early afternoon while your sleep is disrupted. If you usually go to bed late, count back at least six hours from bedtime, and more is better.
- Do not add cups for the tired days. Fatigue is part of early withdrawal. Extra caffeine tends to buy an alert afternoon at the cost of a worse night, which makes the next day more tiring. Fatigue after quitting weed covers what to expect.
- Check the hidden sources. Energy drinks, cola, pre-workout, black and green tea, and some pain relievers all add up.
- If you want to cut the total, do it later and slowly. Once sleep has started to settle, reduce by a small amount every few days rather than all at once.
Start counting clean days with Dehaze
Dehaze tracks every clean day, walks you through cravings with guided breathing, and adds up the money and hours you get back. Free to start, private by default.
Download Dehaze on iOSKeeping a simple log helps here. Note what time you had your last caffeine and how you slept. Within a week or two you can see whether the cut-off is making a difference, rather than guessing.
Beyond caffeine: what else helps sleep
Caffeine is one lever. There are no medications approved for the cannabis withdrawal syndrome, and the same clinical review says standard sleep hygiene and cognitive behavioural therapy for insomnia may improve sleep during withdrawal, though this has not been well studied.
For insomnia that sticks around, the evidence is strongest for CBT-I. The American Academy of Sleep Medicine recommends multicomponent CBT-I for chronic insomnia in adults and advises against using sleep hygiene as a single-component treatment. In plain terms: cutting afternoon coffee is a good start, but if you are still sleeping badly after the first few weeks, a structured programme will do more than more tips.
Some people turn to supplements. Melatonin after quitting weed covers what the evidence shows, and nightmares after quitting weed explains the vivid dreams that often come with this stage.
When to get help
See a doctor if you are still sleeping badly several weeks after stopping, if poor sleep is affecting your safety at work or on the road, or if you have a mental health condition that is getting worse. Get help promptly if you are pregnant, if you are also stopping alcohol or other drugs, or if you have any thoughts of harming yourself.
In the US, SAMHSA's National Helpline is free, confidential and open 24/7 at 1-800-662-4357. If you are in immediate danger, call your local emergency number.
Sleep after quitting weed usually comes back in weeks, not days. Moving your last coffee earlier will not fix it overnight, but it takes one thing out of the way while the rest settles.
Sources
- Clinical management of cannabis withdrawal (Connor et al., 2022) — common symptoms, timeline, sleep hygiene and CBT-I, no approved medications
- Self-reported sleep disturbances during cannabis withdrawal — types of sleep problems; median 19 days
- Sleep disturbance and extended-release zolpidem during cannabis withdrawal — duration of sleep effects; caffeine restricted after 10:00
- Sleep disturbance in heavy marijuana users — sleep-lab findings during discontinuation
- MedlinePlus — Caffeine — time to peak and duration of effects
- Caffeine before late afternoon or evening exercise and sleep: systematic review — half-life and its variability
- Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed — more than one hour of sleep lost at six hours
- NHS — Insomnia — no tea or coffee within six hours of bed
- FDA — Spilling the Beans: How Much Caffeine Is Too Much? — 400 mg a day, caffeine by drink, cutting back gradually
- Caffeine use disorder: a comprehensive review — DSM-5 caffeine withdrawal criteria
- Caffeine intake and anxiety: a meta-analysis — anxiety risk above 400 mg
- AASM guideline: behavioral and psychological treatments for chronic insomnia — CBT-I recommended
- SAMHSA National Helpline — free, confidential support, 24/7, 1-800-662-4357
Frequently Asked Questions
Should I stop drinking coffee when I quit weed?
You do not need to quit caffeine at the same time, and stopping both at once is usually harder than it needs to be. Caffeine withdrawal causes headache, fatigue, irritability and poor concentration, which overlap with cannabis withdrawal. A better plan is to keep your morning amount steady and move the cut-off earlier in the day.
How late can I drink coffee without hurting my sleep?
In a sleep-lab study, 400 mg of caffeine taken six hours before bed still cut total sleep by more than an hour. The NHS advises avoiding tea and coffee for at least six hours before bed. While withdrawal is already disrupting sleep, many people do better keeping caffeine to the morning.
Does caffeine make weed withdrawal insomnia worse?
No study has tested caffeine inside cannabis withdrawal specifically. But withdrawal commonly causes trouble falling asleep and frequent waking, and caffeine late in the day independently shortens and disrupts sleep. Adding one to the other is a reasonable thing to avoid while your sleep recovers.
How long does caffeine stay in your system?
Caffeine peaks in the blood within about an hour, and MedlinePlus says you can feel its effects for four to six hours. Its half-life is roughly four to six hours but varies a lot between people. In one analysis it nearly doubled in women taking oral contraceptives, so an afternoon cup can still be active at bedtime.
How much caffeine is too much while quitting weed?
The FDA cites 400 mg a day, about two to three 12-ounce cups of coffee, as an amount not generally linked to negative effects in healthy adults. During withdrawal the timing matters as much as the total, and a meta-analysis linked intake above 400 mg to a higher risk of anxiety.
A note on this article
This is information and peer support, not medical advice, diagnosis, or treatment. Dehaze is a self-directed tracking app, not a treatment programme, and nothing here replaces guidance from a clinician who knows your history. If withdrawal is severe, if you are using cannabis alongside other substances, or if you are managing a mental health condition at the same time, please talk to a professional.
In the US, SAMHSA’s National Helpline is free, confidential, and open 24/7 at 1-800-662-4357. If you are in immediate danger, call your local emergency number. Spot something inaccurate here? Tell us.