Guide
Caffeine Crash, Caffeine Withdrawal and Brain Fog After Quitting Nicotine or Weed
Why coffee leads to an afternoon crash, how long caffeine withdrawal lasts, why your head goes foggy after quitting nicotine or weed, a side-by-side withdrawal timeline, and what people say gets them through.
Last updated November 20, 2026.
A small first step
- Move your last caffeinated drink an hour earlier today, and write down tonight how easily you fell asleep.

Coffee is the first thing most people reach for when the fog rolls in, and plenty of them say it works. Others aren’t so sure. One person on Reddit’s r/Microbiome wrote: “I had brain fog, fatigue, muscle & body aches and overall tiredness that never went away except with a lot of caffeine & sugar.” One person on Reddit’s r/brainfog said: “I noticed a while ago that daily coffee drinking leads to anhedonia and brain fog for me.” And one person on Reddit’s r/brainfog wrote: “I also had brain fog and once I stopped coffee, a lot of my symptoms improved.”
Quitting other things brings its own fog. One person on Reddit’s r/brainfog wrote: “I’ve noticed that when I quit nicotine my brain fog tends to get worse.” One person on Reddit’s r/brainfog said: “Since i stopped smoking about 2 month ago, i had horrible brain fog too..”
The good news people repeat: it passes. This page covers the caffeine crash, then what happens when you quit caffeine, nicotine or weed, with one timeline for all three.
The withdrawal timeline, side by side
| Caffeine | Nicotine | Cannabis | |
|---|---|---|---|
| Starts | 12 to 24 hours after the last cup | Within 2 to 3 hours of last use | Usually 24 to 48 hours after last use |
| Worst | Around 20 to 51 hours | The first 3 days | Days 2 to 6 |
| Fades | 2 to 9 days | Intensity drops over the first month; some people take several months | Most effects within 4 to 14 days; sleep can take 3 weeks or more |
| Fog shows up as | Feeling “foggy/not clearheaded,” trouble concentrating, headache, fatigue | Difficulty concentrating, a foggy brain in the days after quitting | Fog with poor sleep, strange dreams, irritability and anxiety |
Sources: a review of 57 caffeine withdrawal studies in Psychopharmacology; MedlinePlus and the National Cancer Institute for nicotine; a 50-day study of regular cannabis users and a 2022 review for cannabis.
What causes a caffeine crash?
People describe a familiar arc: alert for a couple of hours, then a heavy, foggy slump, then another cup. One person on Reddit’s r/sleep posted the goal most people have: “Finally fixed my 2 PM brain fog without pouring more caffeine down my throat.” Here’s what stacks up.
Sleep that caffeine trimmed. A 2023 systematic review and meta-analysis pooled 24 studies and found caffeine reduced total sleep time by about 45 minutes and sleep efficiency by about 7%, with less deep sleep and more time awake in the night. In a 2013 at-home study, 400 mg of caffeine taken even six hours before bedtime still disturbed sleep. Mayo Clinic describes the loop: you use caffeine to push through a short-sleep day, it makes that night harder, and you’re more tired tomorrow.
The gap between cups. People who usually consume caffeine can develop withdrawal symptoms when they go without it, including fatigue, drowsiness, difficulty concentrating and feeling “foggy/not clearheaded.” The review concluded that avoiding those symptoms plays a central role in why people keep drinking it. A mid-afternoon dip that a cup “fixes” may be partly that.
What’s in the cup besides caffeine. Many energy drinks and sweetened coffees also carry a lot of sugar; brain fog after eating covers the blood sugar side.
Why the same cup feels weaker over time
If you’ve been drinking coffee daily for years, the first cup doesn’t hit like it used to. That’s tolerance. In a randomized, double-blind study of 20 young men who were habitual caffeine drinkers, caffeine three times a day for ten days didn’t give clear-cut gains in alertness over placebo, which the authors read as adaptation. When the volunteers swapped to placebo for two days, they got sleepier, had more attention lapses and showed more sleep pressure in the late evening. Mayo Clinic adds that people who don’t drink caffeine daily tend to react more strongly to it.
Hidden caffeine
Mayo Clinic notes that some over-the-counter pain relievers contain caffeine, and energy bars and many packaged foods may too. A pre-workout or “focus” drink late in the day can push your last caffeine later than you think. The FDA warns that pure or highly concentrated caffeine powders and liquids can contain toxic amounts and can cause serious harm, including death. Avoid them entirely.
How much caffeine is too much?
For most adults, 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. Mayo Clinic says people who are pregnant or breastfeeding should ask their health professional, and that caffeine can make anxiety worse and interact with some medicines.
The more useful number is timing. The 2023 meta-analysis estimated that a coffee of about 107 mg should be finished at least 8.8 hours before bed to avoid losing sleep. The NHS suggests no tea or coffee for at least six hours before bed.
Caffeine withdrawal: how long does it last?
The Psychopharmacology review pulled together 57 experimental studies and 9 surveys. Ten symptoms met its criteria: headache, fatigue, decreased energy, decreased alertness, drowsiness, decreased contentedness, depressed mood, difficulty concentrating, irritability and feeling “foggy/not clearheaded.”
- Symptoms typically began 12 to 24 hours after the last caffeine, peaked around 20 to 51 hours, and lasted about 2 to 9 days.
- Headache occurred in about half of people in the experimental studies.
- Clinically significant distress or impairment in daily life was reported in about 13%.
Mayo Clinic describes the same thing: suddenly cutting caffeine can bring headaches, tiredness, crankiness and trouble focusing, mostly mild and better after a few days.
How to cut back without the fog
Both Mayo Clinic and the FDA suggest cutting back gradually. In a 2019 randomized trial, people with problematic caffeine use who were given a simple manual for tapering over six weeks, with no counseling, cut their caffeine use and caffeine-related distress, and the reductions were still there 20 weeks later.
- Keep track. Note how much you get from food and drink, including energy drinks, and check labels.
- Trim one cup at a time. One fewer can or a smaller cup each day, or skip caffeinated drinks late in the day.
- Swap some of it. Decaf still has a little caffeine; brewing tea for less time or switching to herbal tea cuts it further.
- Plan lighter work for days 1 and 2. That’s where the studies put the worst of it.
Brain fog after quitting nicotine
Smokefree.gov, run by the National Cancer Institute, says some people notice it’s harder to concentrate, or that their brain feels foggy, in the days after they quit. A 2015 review of a decade of studies found that going without smoking was linked with dips in executive function, the skills behind working memory, staying focused and holding back impulses. MedlinePlus notes that nicotine stimulates memory and alertness, and that people who use tobacco often depend on it to get tasks done.
The fog rarely comes alone. NCI and MedlinePlus list cravings, irritability, trouble sleeping or feeling drowsy, restlessness, anxiety, low mood and more hunger. Sleeping badly, on edge and hungry is a recipe for a cloudy head. NCI says its tips apply to quitting any tobacco product, including vapes and pouches.
One person on Reddit’s r/sleep described the reset they went for: “I recently quit nicotine about a month ago after a while of heavy use and last week I deleted TikTok and instagram do fully reset my head and get it cleared after a while of stimulation.”
What helps, from Smokefree.gov and NCI: a fixed bedtime and wake time; going easy on coffee, soda and tea if you feel jumpy; a walk, yardwork or chores for restlessness; crunchy snacks like carrots or nuts nearby; and breathing in deeply through your nose and out slowly through your mouth, ten times, to ride out a craving. Nicotine replacement and prescription quit medicines ease withdrawal for some people; ask a pharmacist, a quitline counselor or your clinic. Free support: 1-800-QUIT-NOW (1-800-784-8669), or text CRAVE to 47848.
Brain fog after quitting weed
In quitting communities like r/leaves, the timeline people give for the fog runs longer than the lab studies, especially for people who smoked daily for years. “It took me about 3 months to level out and feel like a human again,” one Reddit user wrote. Others put it at month 2, or “month 3 or 4.” One said the fog was the first thing to clear, in a “matter of a few weeks,” while sleep and mood took longer.
The most repeated point is that it isn’t a straight line. One long-time smoker on r/leaves described it this way: the fog “will at first feel permanent, then it’ll last for a day, then it’ll last for an afternoon, then it’ll last for an hour, then it’ll last for a few minutes.”
Why the fog shows up
Three things overlap. A 2004 review concluded that a real withdrawal pattern reliably follows stopping long-term heavy use, mostly restlessness, irritability and anxiety. Sleep gets worse before it gets better: trouble sleeping and strange dreams are among the most consistently reported effects of stopping, and in a 2010 sleep-lab study of 18 heavy users, total sleep and sleep efficiency kept dropping over almost two weeks. And NIDA says frequent or heavy use has been linked with problems in learning, memory, attention and processing speed, so part of the fog may have been there all along.
Does your thinking come back?
On tests, yes, for most people. A 2012 meta-analysis of people off cannabis for at least 25 days found no significant differences in thinking, and a 2018 meta-analysis of 69 studies in teens and young adults found differences too small to tell from zero after more than 72 hours without cannabis.
Nate, who runs this site, went through it himself:
“In my younger years, when I used quite a bit of cannabis, I noticed that the first month after stopping was when I struggled with a little brain fog and anxiety. It usually passed within about a month. I would say the best thing a person can do is exercise, especially cardio. That post-workout endorphin rush is magical, especially when you’re breaking the habit.”
Getting through the foggy stretch
Whatever you quit, people who made it through say the same things:
- Move, and sweat if you can. Exercise is the most common answer in quitting threads, and cardio comes up most. “For me jogging helped/helps the most,” one Reddit user wrote.
- Guard your bedtime. “Make a bed time routine a priority,” one r/leaves user advised, along with no late caffeine and less scrolling before bed. Brain fog and lack of sleep covers the basics.
- Get daylight early. See brain fog in the morning.
- Watch the caffeine trade. It’s tempting to swap one crutch for extra coffee. Late cups make shaky sleep worse.
- Eat, even if appetite is low, and keep snacks handy if it’s high.
- Fill the gap. If it was your wind-down or your work break, plan what goes there instead: a walk, a shower, a few minutes of slow breathing.
- Keep a one-line log. “Day 9, slept 5 hours, head 2 out of 5” sounds trivial, but on day 20 it’s how you see the bad days getting further apart. The symptom diary has a simple layout.
When it’s worth a closer look
Withdrawal has a signature: it starts within a day or so of stopping and fades. If your fog doesn’t follow that pattern, or lasts well past the timelines above, something else is probably in the mix, such as sleep, mood or another health issue.
Some people used a substance to cope with poor sleep, anxiety, low mood or pain. When it goes, that original problem can come back into view, and it can feel like fog. That’s useful information. Fog that’s no better after about a month, sleep that isn’t recovering, loud snoring or gasping at night, or mood that keeps sliding are all reasons to get checked. Fog that comes on suddenly with confusion or trouble speaking is different: see sudden brain fog and call 911.
Help lines: 1-800-QUIT-NOW (1-800-784-8669) for nicotine. SAMHSA’s National Helpline, free, confidential and open 24/7 in English and Spanish, at 1-800-662-HELP (4357), TTY 1-800-487-4889. If you’re having thoughts of harming yourself, call or text 988, any time.
Small first steps
- Shift one cup. Move your last caffeinated drink an hour earlier for a week.
- Half an hour later. Push your first cup back by thirty minutes, so you’re not drinking straight through the wake-up grogginess.
- Quitting something? Write your quit date at the top of a page and add one line tonight: how you slept and how clear your head felt, 1 to 5.
If drinks with alcohol are part of the picture, see alcohol and brain fog. For everything else, start with the guide to fixing brain fog.
Sources and citations
- Spilling the Beans: How Much Caffeine Is Too Much? — U.S. Food and Drug Administration (leaves this site)
- Caffeine: How much is too much? — Mayo Clinic (leaves this site)
- The effect of caffeine on subsequent sleep: A systematic review and meta-analysis (Sleep Medicine Reviews, 2023) — PubMed (leaves this site)
- Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed (Journal of Clinical Sleep Medicine, 2013) — PubMed (leaves this site)
- Insomnia: self-help tips — NHS (leaves this site)
- How to fall asleep faster and sleep better — NHS Every Mind Matters (leaves this site)
- A critical review of caffeine withdrawal: empirical validation of symptoms and signs, incidence, severity, and associated features (Psychopharmacology) — PubMed (leaves this site)
- Caffeine-dependent changes of sleep-wake regulation: Evidence for adaptation after repeated intake (Progress in Neuro-Psychopharmacology & Biological Psychiatry, 2020) — PubMed (leaves this site)
- A randomized controlled trial of a manual-only treatment for reduction and cessation of problematic caffeine use (Drug and Alcohol Dependence, 2019) — PubMed (leaves this site)
- Caffeine Use Disorder: A Comprehensive Review and Research Agenda (Journal of Caffeine Research, 2013) — PubMed (leaves this site)
- Signs and Symptoms of Stroke — Centers for Disease Control and Prevention (leaves this site)
- 988 Suicide & Crisis Lifeline — 988 Lifeline (leaves this site)
- Managing Nicotine Withdrawal — Smokefree.gov, National Cancer Institute (leaves this site)
- Nicotine Withdrawal — Smokefree.gov, National Cancer Institute (leaves this site)
- Tips for Coping with Nicotine Withdrawal and Triggers — National Cancer Institute (leaves this site)
- Nicotine and tobacco — MedlinePlus, National Library of Medicine (leaves this site)
- Smoking abstinence and neurocognition: implications for cessation and relapse (Current Topics in Behavioral Neurosciences, 2015) — PubMed (leaves this site)
- Healthy Sleep Habits — National Heart, Lung, and Blood Institute (NHLBI), NIH (leaves this site)
- SAMHSA's National Helpline — Substance Abuse and Mental Health Services Administration (leaves this site)
- Cannabis (Marijuana) — National Institute on Drug Abuse (NIDA) (leaves this site)
- The time course and significance of cannabis withdrawal (Budney et al., Journal of Abnormal Psychology, 2003) — PubMed (leaves this site)
- Review of the validity and significance of cannabis withdrawal syndrome (Budney et al., American Journal of Psychiatry, 2004) — PubMed (leaves this site)
- Prevalence of Cannabis Withdrawal Symptoms Among People With Regular or Dependent Use of Cannabinoids: A Systematic Review and Meta-analysis (Bahji et al., JAMA Network Open, 2020) — PubMed (leaves this site)
- Clinical management of cannabis withdrawal (Connor et al., Addiction, 2022) — PubMed (leaves this site)
- Effect of illicit recreational drugs upon sleep: cocaine, ecstasy and marijuana (Schierenbeck et al., Sleep Medicine Reviews, 2008) — PubMed (leaves this site)
- Sleep disturbance in heavy marijuana users (Bolla et al., Sleep, 2008) — PubMed (leaves this site)
- Polysomnogram changes in marijuana users who report sleep disturbances during prior abstinence (Bolla et al., Sleep Medicine, 2010) — PubMed (leaves this site)
- Residual effects of cannabis use on neurocognitive performance after prolonged abstinence: a meta-analysis (Schreiner and Dunn, Experimental and Clinical Psychopharmacology, 2012) — PubMed (leaves this site)
- Association of Cannabis With Cognitive Functioning in Adolescents and Young Adults: A Systematic Review and Meta-analysis (Scott et al., JAMA Psychiatry, 2018) — PubMed (leaves this site)
- Evidence on the acute and residual neurocognitive effects of cannabis use in adolescents and adults: a systematic meta-review of meta-analyses (Dellazizzo et al., Addiction, 2022) — PubMed (leaves this site)
- National Helpline for Mental Health, Drug, Alcohol Issues — Substance Abuse and Mental Health Services Administration (SAMHSA) (leaves this site)