Dr. Matt Walker: Protocols to Improve Your Sleep
High-Level Overview
In the second episode of Andrew Huberman's six-part guest series on sleep, UC Berkeley neuroscientist Dr. Matthew Walker moves from the biology of sleep to the practical question of how to improve it. He lays out five core sleep hygiene habits, explains exactly how alcohol, food, caffeine and cannabis affect sleep, and then offers a set of unconventional protocols, including what to do (and not do) after a bad night, a form of bedtime rescheduling used to treat insomnia, and tricks to get your mind off itself. The final third looks ahead to what Huberman calls sleep optimization 3.0: electrical, acoustic, thermal and rocking-based methods to deepen sleep, plus new ways to boost REM sleep.
The tone is friendly, practical and often funny, with Walker insisting he offers reasons rather than rules and Huberman frequently sharing his own sleep struggles and experiments. The conversation flows from simple, zero-cost habits to more nuanced science and finally to the cutting edge of sleep technology and pharmacology.
Table of contents
The Discussion Explores:
- Walker's five sleep hygiene basics: regularity, darkness, cool temperature, getting out of bed when awake, and caution with alcohol and caffeine
- Morning light, evening dimness, cortisol timing and the two flavors of insomnia
- How alcohol, food timing, carbohydrates, caffeine metabolism, THC and CBD affect sleep architecture
- What to do after a bad night, and why the intuitive fixes make things worse
- Bedtime rescheduling from CBT-I, wind-down routines, mental walks and removing clocks from the bedroom
- Emerging sleep enhancement through electrical, acoustic, thermal and rocking stimulation
- REM sleep, thermoneutral temperatures, older and newer sleep medications, and caution about gaming the system
Deep Dive into Main Ideas
The Five Pillars of Sleep Hygiene
Walker frames his advice as tools, not rules, because "People respond to reasons and not rules." The first is regularity: go to bed and wake up at the same time on weekdays and weekends. In his words, "regularity is king, because a consistent schedule trains the brain's 24-hour circadian clock and improves both the quantity and quality of sleep. The second is darkness. He believes we are a dark deprived society" and recommends dimming at least 50 percent of the lights in your home in the last hour before bed. He has a reminder that prompts him to do this, and his bedroom has a smart bulb turned down to around five lux in deep orange-red. Darkness lifts the brake on melatonin, which he calls the hormone of darkness, helping time the onset of sleep. Eye masks and blackout curtains help too.
The third pillar is temperature: keep it cool. Your core and brain temperature need to drop by a little less than one degree Celsius (two to three degrees Fahrenheit) to fall and stay asleep, and the general target in the literature is a bedroom around 67 degrees Fahrenheit, roughly 18.5 degrees Celsius. Thick socks or a hot water bottle at your feet are fine, but the room itself should be cold. The fourth is to walk it out: if you've been lying awake for about 20 to 25 minutes, get up, go to another room in dim light, and read or listen to something relaxing, without checking email or eating, and only return when you're genuinely sleepy. Because the brain is so associative, staying in bed awake teaches it that the bed is a place for wakefulness. The fifth is to be mindful of alcohol and caffeine, which he covers in depth.
Light, Cortisol and the Two Kinds of Insomnia
Huberman adds the morning side of the light story. Bright morning sunlight, or a 5,000 to 10,000 lux SAD lamp if sunlight isn't available, can increase the amplitude of the healthy morning cortisol peak by as much as 50 percent, supporting mood, focus and alertness during the day and easier sleep at night. The eye's circadian system is relatively insensitive early in the day, so you need a lot of light then, but in the evening it becomes, as he puts it, rather diabolical: very little artificial light can disrupt your rhythm, and he cites Charles Czeisler's lab showing that as little as 15 seconds of bright light in the evening can suppress melatonin. For middle-of-the-night bathroom trips, he suggests a phone flashlight pointed at the floor rather than bright overhead lights, and notes that candlelight and firelight are fine.
Walker describes a study that sampled cortisol every 30 minutes around the clock in good sleepers and people with insomnia. Overall levels looked similar across the day, but the insomnia patients had a rise right around sleep onset and a spike in the middle of the night, mapping onto the two forms of insomnia: trouble falling asleep and trouble staying asleep. Huberman, who has no trouble falling asleep but sometimes wakes in the night, relates to this, and Walker calls sleep maintenance insomnia "the revenge of daytime emotions" left unresolved.
Bed Associations, Sofas and Getting Your Mind Off Itself
Huberman shares that as a junior professor he often worked on grants in bed in the middle of the night, which probably built a bad association, and that he now gets out of bed after 10 to 15 minutes. He has noticed that when he can't sleep in bed he often sleeps well on the sofa, which Walker sees as a nice example of how powerful context is. Walker's quirky tip for anyone who won't leave a warm bed is to flip around and sleep with your head at the foot end, since even a small change of context can help. He also cautions that if you want your bed to be your place of sleep, you shouldn't start sleeping on the couch every night.
His single best piece of unconventional advice is to "do anything that gets your mind off itself." Insomnia often involves low-level anxiety, and because modern life is all input and no reflection, many of us only reflect when our head hits the pillow. That is the worst time, he says: "when you ruminate you begin to catastrophize and when you catastrophize you're dead in the water for the next two hours." Meditation, breathing techniques, and body scans all redirect attention. Walker, once skeptical, was persuaded by the research and has meditated for ten minutes every night for about six years using a guided app. He also stresses that no amount of hygiene will fix an untreated sleep disorder like sleep apnea or clinical insomnia; like a broken ankle for an athlete, it needs a doctor first.
Alcohol and Food
Walker calls alcohol "one of the most misunderstood sleep aids" because it isn't one. Three problems: alcohol is a sedative, and "sedation is not sleep"; it fragments sleep with many brief awakenings you don't remember, so you wake feeling unrefreshed without knowing why; and it is a potent blocker of REM sleep, which is important for learning, creativity and emotional regulation. The culprit seems to be metabolic byproducts such as aldehydes. Studies show even a single glass of wine in the afternoon measurably impairs sleep, prompting his joke that the best protocol is to go to the pub in the morning. He is realistic, though: a memorable evening with friends may be worth the trade-off occasionally, as long as it isn't a habit.
On food, Walker says the dogma of stopping eating three or four hours before bed is overstated. On average, eating two hours before bed didn't harm sleep in studies, 90 minutes was usually fine, 60 minutes showed small effects, and around 45 minutes sleep started to deteriorate, with big individual differences due to fullness, reflux and chronotype. He eats most of his calories in a three-to-four-hour window and stops about 90 minutes before bed. Diets high in sugar and low in protein are linked to worse sleep, possibly because sugar raises core temperature. Huberman shares that he sleeps much better when he eats more starchy carbohydrates at dinner and that very low-carb diets disrupt his sleep; Walker notes carbohydrates can supply precursors to serotonin and melatonin, and that his own research found some links between carbohydrate intake and sleep. He adds that glucose handling is better in the morning, which may matter more for people with blood sugar issues.
Caffeine: Half-Life, Quarter-Life and Genes
Walker's rule of thumb is to stop caffeine about ten hours before bed and keep it to two or three cups, because "the dose and the timing make the poison." Caffeine has a half-life of about five to six hours and a quarter-life of about ten to twelve, so a midday coffee is roughly like drinking a quarter cup right before an 11 p.m. or midnight bedtime. Friends who drink espresso after dinner and fall asleep fine are still losing 15 to 20 percent of their deep sleep, which he says is comparable to aging someone's sleep by about 20 years. Caffeine also keeps you in shallower non-REM sleep, making you easier to wake and harder to get back down.
Huberman describes drinking coffee and yerba mate early and tapering by early afternoon, occasionally adding an afternoon espresso. Walker approves of the taper but suggests Huberman, an early sleeper who wakes at night, run a two-week experiment without the afternoon cup; he also notes that falling asleep within a minute or so can be a sign of sleep debt, since healthy sleep onset usually takes five to twenty minutes. Individual variation is real: differences in the liver-enzyme gene CYP1A2 make some people faster or slower caffeine metabolizers. Walker says he has become more positive about morning coffee because of its health benefits, but recommends decaf if an afternoon cup is really about taste, while acknowledging that real-world pressures sometimes justify sacrificing some sleep.
The GIST of every new Huberman Lab summary in your inbox, daily or weekly. Free, and you can unsubscribe any time.
Cannabis: THC and CBD
Sleep is one of the top two reasons people report using cannabis. Walker says THC does help people fall asleep faster, but tolerance builds so doses climb, it strongly suppresses REM sleep, and stopping triggers a REM rebound with unusually vivid dreams plus a withdrawal insomnia so reliable it is part of the clinical definition of cannabis withdrawal and a major reason people relapse. He doesn't recommend THC for sleep.
CBD is more interesting. The evidence is mixed but somewhat favorable, without THC's downsides. Walker describes a U-shaped response, with doses roughly under 25 milligrams potentially wake-promoting and roughly 50 milligrams and above more sleep-promoting, and warns that the industry is unregulated, so third-party lab testing matters. Possible mechanisms include reducing anxiety, lowering core body temperature (seen in rats), and perhaps a direct effect on sleep circuits. He discloses that he is working with a UK company, in collaboration with King's College London, on a clean CBD analog. Walker emphasizes that his advice is scientifically descriptive, not prescriptive: "I'm a scientist not a physician so I don't prescribe anything but I profess lots of things."
After a Bad Night: Do Nothing
Huberman is visibly surprised by Walker's first unconventional tip. After a poor night, "do nothing: don't sleep in, don't go to bed early, don't increase caffeine, and don't nap. Sleeping in starts your sleep pressure clock later so you aren't sleepy at bedtime; going to bed early risks lying awake and reinforcing the problem; extra caffeine disrupts the next night; and a nap releases sleep pressure you need. Hold out until your normal bedtime. Sleeping in feels good, he says, but it's a short term gain but trust me it's a long term loss." He credits sleep clinician Michael Perlis for this framework.
Huberman mentions a study, highlighted by Rhonda Patrick, showing that morning exercise can offset some of the blood-glucose disruption from partial sleep loss, and now keeps exercising after a bad night, if a little less intensely. Walker agrees it's a hopeful finding but cautions against assuming exercise compensates for sleep loss's effects on immunity, hormones, cardiovascular health or memory, since those weren't measured.
Bedtime Rescheduling and Building Sleep Confidence
The most powerful component of cognitive behavioral therapy for insomnia (CBT-I), Walker says, is bedtime rescheduling, formerly called sleep restriction therapy. People with insomnia often spend more time in bed to compensate, which is exactly the wrong move; like pizza dough rolled too thin, the sleep develops holes. Instead, under clinical supervision, the sleep window is compressed, for example to about five hours, by moving bedtime later while keeping wake time fixed. After four or five days, built-up sleep pressure forces efficient, consolidated sleep; after about two weeks, bedtime is gradually moved earlier again as long as sleep stays solid. He compares it to a gym that throws you out after 40 minutes, which quickly teaches you to stop texting between sets.
The goal is to restore sleep confidence, so that "now your sleep does not control you you control your sleep." He warns it is hard, requires motivation and close check-ins, and calls for caution with driving or machinery. Huberman appreciates how constraints and deadlines focus the mind.
Wind-Down, Mental Walks and Clocks
Sleep is less like a light switch and more like landing a plane, so Walker recommends a wind-down routine with whatever relaxes you, whether reading, stretching, meditation or a podcast. His next tip: "do not count sheep." Research by Allison Harvey at UC Berkeley found counting sheep made people take longer to fall asleep, while taking a detailed mental walk along a familiar route, such as your daily dog walk, helped them fall asleep faster. Huberman wonders whether engaging procedural rather than declarative memory is the key, and Walker suggests the embodied nature of the imagined walk may matter.
Harvey's work also underlies another tip: "remove all clock faces from the bedroom." Knowing it's 2:45 a.m., then 3:14 a.m., only fuels anxiety. Walker's bedroom has no clocks, and the phone he uses for meditation is an old Wi-Fi-only device he never turns over. Phones also create anticipatory anxiety: teens check them overnight from fear of missing out, and adults who dive into email first thing train their brains to expect stress. He notes that when people have an early flight, they sleep less deeply and often wake minutes before the alarm because the brain stays in a shallow, anxious state.
Sleep Enhancement 3.0: Electrical, Thermal, Acoustic and Rocking
Walker describes four ways researchers have augmented human sleep. Electrical stimulation came first: in a well-known study by Jan Born's group in Germany, transcranial direct current stimulation delivered at the slow rhythm of deep sleep waves boosted deep sleep's electrical quality by about 60 percent and nearly doubled sleep's memory benefit. A later replication found weaker effects, so the field moved to closed-loop stimulation, which reads each person's brain waves and times pulses to them, reliably enhancing slow waves, sleep spindles and memory. Walker, who has spun this work into a company, is emphatic that people should not buy DIY stimulation devices online, citing burns and temporary vision loss.
Thermal methods follow his mantra: warm up to cool down to fall asleep, stay cool to stay asleep, and warm up to wake up. Sleepiness tracks the steepest drop in core temperature, which happens as blood moves to the hands, feet and face. A Dutch group using a suit lined with water tubes helped people fall asleep 25 percent faster, increased deep sleep, and in older adults, whose thermoregulation is weaker, cut the chance of waking in the second half of the night from 50 percent to 5 percent. The low-cost version is the warm bath effect: a bath or hot shower before bed draws heat to the skin and dumps it afterward. Studies by the late Jim Horne found gains in deep sleep and faster sleep onset in poor sleepers. Huberman uses evening sauna and a morning cold shower, and both men would love someone to invent portable foot-warming socks.
Acoustic stimulation uses quiet tones below the waking threshold, timed to slow waves. Early open-loop versions boosted deep sleep without improving memory, and closed-loop versions improved memory, but after three or four consecutive boosts the brain pushed back, likely a safeguard against seizure-like synchrony, so stimulation must pause and restart. For white noise machines, a review of dozens of studies found no reliable effect, though they may help in noisy settings like New York City; one pink noise study increased total sleep by close to 30 minutes, mostly stage 2, with a modest REM increase. As Walker says, "absence of evidence is not evidence of absence." Finally, rocking: Sophie Schwartz's group in Geneva suspended a bed and swung it gently at about 0.25 hertz, which sped sleep onset, deepened sleep, increased spindles and improved memory by about 10 percent; mice lacking lateral vestibular sensation got no benefit. Huberman speculates it may work by dissolving proprioceptive awareness, perhaps also explaining the mental walk.
REM Sleep, Medications and No Free Lunch
Most enhancement methods target deep sleep, but Walker describes two routes to REM. One is temperature: REM requires warming back toward thermoneutrality in the second half of the night, and being too cold or too hot reduces it, "a goldilocks phenomenon" that requires closed-loop temperature control. The other is pharmacology. Classic sedative-hypnotic sleeping pills (the so-called Z drugs, including Ambien) produce sedation and, according to work by Derk-Jan Dijk and colleagues, take a bite out of the very slowest, most beneficial brain waves. Newer DORAs, dual orexin receptor antagonists, grew out of narcolepsy research by Emmanuel Mignot and others: orexin acts like a finger on the brain's wake switch, so blocking it at night allows more naturalistic sleep, including more REM, possibly via melanin-concentrating hormone and acetylcholine, the key REM neurotransmitter identified by Walker's former mentor Allan Hobson. He notes they are expensive and often not covered by insurance.
Huberman asks about acetylcholine precursors like alpha-GPC; Walker warns they could increase arousal or pull REM earlier at the cost of deep sleep. Huberman shares that serotonin-related supplements like 5-HTP made him wake very alert later in the night, and that a brief trial of the peptide sermorelin massively expanded deep sleep while, according to his tracker, eliminating REM. Walker's conclusion: be wary of gaming one part of a system evolution has balanced for millions of years, and always ask first whether an intervention could cause harm.
Conclusion
This episode is a practical manual for better sleep, anchored in reasons rather than rules. Keep your schedule regular, get bright light in the morning and dim the lights at night, keep the bedroom cool, get out of bed when you can't sleep, and be honest about how alcohol, late caffeine and THC degrade sleep even when they seem to help. After a bad night, resist the urge to compensate; if insomnia persists, bedtime rescheduling through CBT-I can rebuild sleep confidence, and simple tools like a wind-down routine, a detailed mental walk, a warm bath and a clock-free bedroom can help today. Looking ahead, closed-loop electrical, acoustic, thermal and rocking technologies and newer medications promise deeper and richer sleep, but Walker's recurring message is caution: see a doctor for sleep disorders, avoid DIY brain stimulation, and remember that there are rarely free lunches in biology.
This is a summary of "Dr. Matt Walker: Protocols to Improve Your Sleep" from Huberman Lab, giving you the GIST so you can decide if you want the REST. Listen to the full episode.
Mentioned in this episode
Some of these are affiliate links: if you buy through them, Perfect Summary is paid a commission, at no extra cost to you. As an Amazon Associate, Perfect Summary earns from qualifying purchases.
-
Eight Sleep · Eight SleepTemperature-controlled mattress system Huberman uses and Walker praises for thermal sleep work
The GIST of every new Huberman Lab summary in your inbox, daily or weekly. Free, and you can unsubscribe any time.
This is an independent summary. Listen to the full conversation from Huberman Lab.


