Protocols
Sleep
14 min read

The Sleep Protocol

A Science-Backed Guide to Optimizing Sleep

In This Article

The short answer: Sleep is the single highest-leverage health variable available to you, and the most disrupted. The interventions that actually move the needle, ranked by evidence: consistent wake time, cool room, morning light, no alcohol, caffeine cutoff by noon, and a real wind-down. Everything else is secondary. Here's the full framework.



Read key takeaways →

Why Sleep Is the Highest-Leverage Health Variable

You can optimize macros to the gram. You can PR your deadlift. You can drink a gallon of water a day and take every supplement on the Huberman stack. And then you sleep five and a half hours, get woken up twice, and undo a meaningful chunk of it.

Sleep isn't a lifestyle preference. It's the biological foundation everything else sits on. Matthew Walker, director of UC Berkeley's Center for Human Sleep Science, opens Why We Sleep with a blunt claim: sleep is the single most effective thing you can do to reset your brain and body every 24 hours. The evidence backs him up across almost every domain: metabolic health, cardiovascular risk, immune function, hormonal regulation, cognitive performance, emotional regulation, and muscle recovery.

Your Oura or WHOOP recovery score and readiness score are composite scores that aggregate physiological signals collected while you slept: HRV, resting heart rate, sleep stages, and skin temperature. They're useful calibration tools. But chasing a specific score nightly is the wrong game: trends and patterns over weeks are where the signal lives.

Protocol

Protocol shows you the trends that actually matter

Your sleep scores, recovery patterns, and week-over-week changes in one place. Stop guessing and start seeing the signal in your own data.

Sleep Architecture 101

Sleep isn't a single state. It's a structured cycle your brain runs through roughly every 90 minutes, all night long. Each full cycle contains both NREM (Non-Rapid Eye Movement) and REM (Rapid Eye Movement) sleep. You'll complete 4–6 of these cycles in a full night, and what you get out of them changes depending on when in the night they occur.

NREM Sleep: Stages 1, 2, and 3

Stage 1 (N1): Light Transition

The transition from wakefulness to sleep. Light, easy to disrupt. Takes only a few minutes normally. This is where you might have a hypnic jerk, that sudden body twitch as you're falling off.

Stage 2 (N2): Stable Light Sleep

The most abundant stage, roughly 50% of total sleep. Body temperature drops, heart rate slows. The brain produces sleep spindles linked to memory consolidation and motor learning. This stage is real sleep; don't discount it.

Stage 3 (N3): Deep Sleep / Slow-Wave Sleep

The hardest to wake someone from. Growth hormone is released in its largest pulse of the day almost entirely during SWS in the first half of the night. Cellular repair, immune function, and metabolic restoration happen here. Deep sleep is front-loaded: the majority occurs in the first two 90-minute cycles.

REM Sleep: The Back-Half Asset

REM sleep is where your brain goes strange. Eyes dart rapidly. Your muscles are paralyzed (to prevent you acting out dreams). Most vivid dreaming occurs here. What REM actually does:

  • Emotional processing: the brain reprocesses emotionally charged memories and strips the emotional "charge" while preserving the memory content. This is literally why we say "sleep on it."
  • Creativity and associative thinking: the brain makes non-obvious connections between stored information. Insight and creative problem-solving spike in REM.
  • Synaptic pruning: your brain trims back weak or unused neural connections, keeping the network efficient.

The critical implication:

Deep sleep is front-loaded: most of it happens in hours 1–4. REM is back-loaded: the richest REM periods are in hours 6–8. A full night is not just "8 hours": it's 8 continuous hours that includes both the deep-sleep-heavy early cycles AND the REM-heavy late cycles. Cutting the morning short robs you specifically of REM. Cutting the night short robs deep sleep.

What Actually Moves the Needle (Ranked by Evidence)

Most sleep content treats everything as equally important. It isn't. Here are the interventions with the strongest evidence base, in rough order of leverage:

1

Consistent Wake Time

This is the highest-leverage sleep intervention available, and it's wake time, not bedtime. Your circadian clock (centered in the suprachiasmatic nucleus, per foundational work by Charles Czeisler at Harvard) is anchored primarily to light signals and behavioral rhythms. When you wake at the same time every day, you reinforce the circadian anchor AND build sleep pressure that makes falling asleep at night more reliable. Varying wake time by more than an hour or two between weekdays and weekends, what Roenneberg et al. call "social jetlag", is associated with higher obesity risk, worse mood, and worse sleep quality even when total hours are controlled.

2

Cool Room (65–67°F / 18–19°C)

Your core body temperature needs to drop by roughly 1–2°F to initiate and maintain sleep. A cool environment assists this; a warm one fights it. Cooling your feet helps: vasodilation at the extremities is part of how the body sheds heat. Hot showers or baths 60–90 minutes before bed also help paradoxically by pulling blood to the skin surface and dropping core temp afterward.

3

Morning Light Within 30 Minutes of Waking

Consistently underrated. Intrinsically photosensitive retinal ganglion cells (ipRGCs) contain melanopsin and are maximally sensitive to short-wavelength (blue) light. Outdoor light exposure within 30 minutes of waking sends a hard "start" signal to your circadian clock, sets a timer for when sleep pressure will peak (~15–16 hours later), and triggers a cortisol pulse that sharpens morning alertness and normalizes the daily cortisol rhythm. Outdoor light on a cloudy day is ~10,000 lux; indoor lighting is 100–500 lux. Sunglasses block the relevant pathway. Don't wear them for this.

4

No Alcohol

Alcohol is a sedative, not a sleep aid. Sedation is not sleep. Alcohol suppresses REM, often dramatically, for the first half of the night. As your liver metabolizes it in the second half, there's a rebound effect: lighter sleep, more fragmentation, elevated cortisol, elevated heart rate, suppressed HRV. Your Oura or WHOOP will catch this every time. Even moderate amounts (1–2 drinks) measurably worsen sleep quality and REM architecture. The relationship is dose-dependent with no "safe" threshold that preserves sleep quality.

5

Caffeine Cutoff: 10+ Hours Before Bed

Caffeine works by blocking adenosine receptors, the sleep pressure molecule. The issue is clearance time. Caffeine's half-life in most adults is 5–7 hours. A 2pm coffee is still 50% active at 7–9pm. Some people are slow caffeine metabolizers (CYP1A2 variant) with half-lives of 9–10 hours. The 10-hour rule is supported by research on how caffeine reduces total sleep time and slow-wave sleep (Landolt et al., 1995). For a 10pm bedtime, that means a hard cutoff around noon.

6

Wind-Down Routine: 60–90 Minutes Before Bed

Sleep onset isn't an event: it's a gradual process. Dim the lights. Stop working. Reduce screen exposure. The 2015 Harvard study by Chang et al. found that an e-reader at night delayed melatonin onset by 90 minutes. Blue-light-blocking glasses are a reasonable middle ground if you can't fully step away from screens.

7

Dark Room

Light during sleep, even through closed eyelids, suppresses melatonin and affects sleep staging. Blackout shades are the superior solution. A quality sleep mask is a legitimate alternative for travel.

8

Late Eating and Blood Sugar Stability

Late large meals, particularly high-glycemic ones, create a glucose spike followed by a crash that can time out right around 3–4am. When blood glucose drops too low, the body triggers a stress response: cortisol and adrenaline are released to prompt glucose release. This often wakes you up. If you're waking consistently at a specific time with no other explanation, blood sugar fluctuation is worth investigating.

9

Exercise Timing

Exercise improves sleep quality significantly. The caveat is timing. High-intensity exercise raises core body temperature, cortisol, and heart rate in ways that can take 4–6 hours to fully resolve. Vigorous exercise within 3–4 hours of bedtime can delay sleep onset and reduce slow-wave sleep for some people. Morning and afternoon exercise are optimal. An imperfect workout at 8pm is still better than no workout, but if sleep is genuinely struggling, shifting training earlier is a real lever.

The 3am Problem

If you wake up at 3am and stare at the ceiling, you're not alone and you're not broken. Understanding why it happens is the first step to diagnosing it, because the cause determines the fix.

The Cortisol Curve

Cortisol follows a predictable daily pattern: near zero at sleep onset, rising slowly through the night, peaking in the morning to drive wakefulness. The rise begins around 3–4am. In people under chronic stress or with HPA axis dysregulation, this cortisol rise can be sharp enough to trigger waking. You'll feel mentally alert but physically tired: that's the cortisol, not adequate rest.

Alcohol in the Second Half

When you drink, your liver metabolizes alcohol throughout the night. By 3–4am, the sedating effects have worn off and the metabolic aftermath kicks in: elevated cortisol, elevated heart rate, lighter sleep stages, more awakenings. If you drink fairly regularly and wake at 3am, test this: skip alcohol for a week and see if the 3am problem resolves. For many people, it significantly does. For a complete breakdown of the overnight mechanism and a timing framework for minimizing damage, see the Alcohol & Sleep Protocol.

Blood Sugar Crashes

When blood glucose dips too low in the early morning, the body triggers a counterregulatory hormonal response. Late alcohol, a high-GI dinner with no protein or fat follow-up, or going to bed with low glycogen stores can all set this up. If you wake hungry or anxious at 3am and eating something small resolves it within 20 minutes, this is likely your mechanism.

Stress and Cognitive Hyperarousal

Sometimes 3am waking is psychological: an anxious mind that activates once the sedating effects of tiredness wear off. The default mode network generates its own content without a competing external task. Journaling before bed, specifically a "to-do" or brain-dump journal, reduces overnight cognitive activation by removing the need for the brain to "hold" open loops.

3am: What to actually do

  • Don't check your phone. Light exposure will push you further into wakefulness.
  • Don't watch the clock. Time monitoring increases anxiety and paradoxically makes it harder to return to sleep.
  • Stay in bed if you're calm. Even light restful states have value.
  • Get up if you're anxious. If lying in bed generates frustration, the bed becomes associated with wakefulness. Get up, do something calm in dim light, return when sleepy.
  • Don't take melatonin mid-night. Melatonin is a phase-shifting hormone, not a sedative. It doesn't fix 3am waking.

The Parent Reality

There's a version of sleep advice that exists in a vacuum: the person who controls their sleep environment, goes to bed at a consistent time, has no obligations between 10pm and 6am, and can implement every best practice with fidelity. That's not you if you have young kids.

Some of the highest-leverage sleep interventions are simply off the table with small children. Earplugs? You need to hear them. Phone in another room? You need to be reachable. Uninterrupted 90-minute cycles? You have no control over whether a kid wakes up at the 45-minute mark. This is real, and no sleep article should gloss over it.

Fragmented sleep is biologically different from consolidated sleep, even at the same total hours. When sleep is interrupted mid-cycle, you lose the benefits of completing that cycle's deep or REM phase. Six hours of uninterrupted sleep can feel better than eight hours of interrupted sleep. You cannot replicate the biology of good uninterrupted sleep. That's the honest answer.

What IS controllable in the parenting phase:

  • Consistent wake time: even if you got woken twice. It preserves the circadian anchor.
  • No alcohol: the easiest high-return control. You're already fragmented; alcohol makes it dramatically worse.
  • Room temperature: it doesn't require the kids to cooperate.
  • Morning light: even five minutes outside after waking.
  • Caffeine management: the temptation is to compensate with more caffeine, but late caffeine compounds the next night.
  • Going to bed slightly earlier: if you know interruptions are coming, shift bedtime earlier.

This is a phase, not a life sentence. Sleep improves dramatically as kids get older. The goal during this season isn't optimizing your sleep: it's protecting the controllables while not beating yourself up over a recovery score that reflects real-world parenting, not personal failure.

Damage Control & Recovery

You had a bad night. Maybe a rough week. Here's how to manage it intelligently rather than making it worse.

Strategic Napping

The nap rule: 20 minutes or 90 minutes. Nothing in between.

  • 20-minute nap (or "coffee nap" with caffeine beforehand): clears adenosine, improves alertness, doesn't impair nighttime sleep.
  • 90-minute nap: completes a full cycle, delivers both deep and REM sleep.
  • 30–60 minutes: the danger zone. You enter deep sleep but get woken out of it, creating sleep inertia and eroding nighttime sleep pressure.
  • Time naps before 2–3pm. After that, napping competes with nighttime sleep pressure.

Caffeine on Rough Mornings

Delay your first caffeine by 90–120 minutes after waking. Allow adenosine to do its natural work first: this produces a better energy curve and avoids a steep mid-afternoon crash. Cap caffeine at a moderate dose. And hold the same hard cutoff: noon, at the latest, for a 10pm bedtime. Sleep debt is not resolved by staying awake longer.

Weekend Recovery: What It Can and Can't Do

The concept of sleep debt is real. Sleeping longer on weekends does reduce this debt and provides measurable cognitive and health benefits. But it doesn't fully repay the deficit, and more than 60–90 extra minutes creates social jetlag: your circadian clock drifts and Monday morning becomes harder.

The better rule: sleep as much as your schedule allows on weekends, but keep your wake time within 60 minutes of your weekday time. Extra sleep is earned on the front end (earlier bedtime) rather than the back end (sleeping much later).

Supplements With Actual Evidence

Most sleep supplements don't work. A few do. Here's an honest breakdown:

Magnesium Glycinate

Strongest evidence

Magnesium is involved in GABA receptor function, GABA being the primary inhibitory neurotransmitter that promotes sleep. Deficiency (extremely common in the modern diet) is associated with poor sleep quality, restless legs, and higher cortisol. The glycinate form is better absorbed and less likely to cause GI distress. Dose: 200–400mg, 30–60 minutes before bed.

L-Theanine

Useful, modest effect

An amino acid found in green tea that promotes alpha brain wave activity and has anxiolytic effects without sedation. Doesn't knock you out: it reduces cognitive arousal, which makes it useful for people whose primary problem is a racing mind at sleep onset. Often combined with magnesium. 100–200mg is the standard dose.

Low-Dose Melatonin (0.5–1mg)

Phase-shifting, not sedation

Melatonin is not a sleeping pill. It's a hormone that signals darkness to your circadian system: it shifts your biological clock, but doesn't make you sleepy the way sedatives do. Most commercial melatonin (3–10mg) is massively overdosed. Higher doses don't produce more sleepiness: they flood the receptor and can worsen sleep quality over time. Genuinely useful for shifting your clock earlier, jet lag, shift work, or getting an off-schedule night back on track. Not a nightly supplement for most people.

What to skip:

  • Diphenhydramine (ZzzQuil, Benadryl): builds tolerance within 3–5 nights, causes next-day grogginess, and a 2015 cohort study (Gray et al., JAMA Internal Medicine) linked cumulative long-term use to increased dementia risk in adults 65 and older.
  • Valerian root: inconsistent evidence, poor standardization of commercial products.
  • CBD: more promising data emerging but insufficient for strong recommendation.
  • High-dose melatonin nightly: receptor desensitization without meaningful benefit.

Frequently Asked Questions

How much sleep do I actually need?

Most adults need 7 to 9 hours of consolidated sleep to function at full capacity. The 7-hour lower bound is supported by large epidemiological datasets. A small percentage of people have a rare genetic variant that allows them to genuinely function on 5 to 6 hours. For everyone else, believing you function fine on less sleep likely reflects adaptation to impairment rather than true sufficiency. The honest test: can you function well without caffeine? If not, you are probably running a sleep debt.

Why do I keep waking up at 3am?

The three most common causes, in rough order of frequency:

  • Alcohol metabolizing in the second half of the night, even 1 to 2 drinks, elevating cortisol and heart rate as the sedating effects wear off
  • Blood sugar dropping and triggering a counterregulatory cortisol and adrenaline response, especially common after a late high-carb meal with no protein buffer. See the Protein Protocol for how evening protein intake stabilizes overnight blood sugar.
  • Normal early-morning cortisol rise amplified by chronic stress, producing wakefulness before adequate sleep is complete

Start with the alcohol variable. Eliminate it for one week and see if the 3am waking resolves. If it persists, look at what and when you are eating before bed.

Does napping make nighttime sleep worse?

It depends on timing and duration. Naps before 2 to 3pm and under 20 minutes do not meaningfully impair nighttime sleep for most people. The danger zone is 30 to 60 minutes: you enter deep sleep without completing the cycle, causing grogginess (sleep inertia) and eroding the sleep pressure you need to fall asleep at night. Naps after 3pm compete directly with nighttime sleep pressure. If you are napping because you are chronically short on sleep, the nap is not the problem.

Is it bad to use my phone before bed?

The light is the problem more than the content. Blue-spectrum light from screens suppresses melatonin production and shifts your circadian clock later. The 2015 Harvard study by Chang et al. found that an e-reader at night delayed melatonin onset by 90 minutes compared to a printed book. If you cannot avoid screens, dim your brightness as far as it goes and use blue-light-blocking glasses. Finishing work on your phone at 10pm in a bright room is significantly worse than watching a dim TV across the room.

Can you catch up on sleep over the weekend?

Partially. Weekend recovery sleep does reduce sleep debt and provides measurable cognitive and health benefits. But it does not fully repay the deficit, and sleeping more than 60 to 90 extra minutes creates social jetlag that makes Monday feel worse. The better rule: earn extra sleep on the front end with an earlier bedtime, not a later wake time. Keep your wake time within 60 minutes of your weekday schedule to preserve your circadian anchor.

What to Remember

  • Sleep is the highest-leverage health intervention available. Nothing else comes close for recovery, cognition, metabolism, or longevity.
  • Sleeping less than 7 hours raises next-day cortisol measurably. Even one short night affects nervous system state and decision-making.
  • Consistency in sleep and wake time is more powerful than any supplement. Your circadian clock runs on schedule, not total hours.
  • Temperature is the most underused sleep lever. A bedroom above 68F suppresses deep sleep regardless of how long you are in bed.
  • Alcohol does not help you sleep. It sedates you and then fragments the second half of the night, cutting REM and deep sleep.
  • Light before bed is the primary disruptor of melatonin. Dim lights 1-2 hours before bed and the rest of the protocol gets easier.

Know what your sleep data actually means

Protocol correlates your sleep metrics with everything else in your health stack, training load, nutrition, body composition, readiness score, so you get one morning summary that tells you what the data means for how you should approach today.

Get started free

No credit card required.

References

Books

  • Why We Sleep by Matthew Walker (Scribner, 2017). The foundational popular science text. Walker is a gifted communicator; read for the frameworks and evidence categories. Note: some specific statistics have been contested (Guzey, 2019), not a textbook, but still one of the most important books in the space.
  • The Sleep Solution by W. Chris Winter, MD (Berkley, 2017). More practical, more clinically grounded, and considerably less alarmist than Walker. Winter is a neurologist and sleep medicine specialist who has worked with professional sports teams. Excellent on sleep anxiety and distinguishing actual sleep disorders from normal variation.

Podcasts & Video

  • Huberman Lab Sleep Episodes by Andrew Huberman, Stanford School of Medicine. Specifically episodes on sleep toolkit, jet lag, adenosine/caffeine, and light exposure. Rigorous about citing primary research; particularly strong on neurobiological mechanisms of sleep and circadian regulation.

Key Researchers

  • Charles Czeisler (Harvard Medical School) Pioneer of circadian rhythm research, light/sleep interactions, and the public health consequences of sleep deprivation. His work on medical resident sleep deprivation and the SCN is foundational.
  • Clifford Saper (Harvard/Beth Israel Deaconess) Identified the "flip-flop switch" mechanism in the brain controlling sleep/wake transitions and the role of the ventrolateral preoptic nucleus (VLPO) in sleep regulation.
  • Matthew Walker (UC Berkeley) Memory consolidation, emotional processing in REM sleep, and the public health consequences of sleep deprivation across the lifespan.

Key Studies

  • Landolt et al. (1995) Demonstrated that caffeine reduces total sleep time and slow-wave (deep) sleep in a dose-dependent manner, establishing the physiological basis for the caffeine cutoff recommendation.
  • Chang et al. (2015), Harvard / Anne-Marie Chang Found that reading on a light-emitting e-reader in the hours before bedtime delayed melatonin onset by approximately 90 minutes and reduced next-morning alertness, compared to reading a printed book. Published in PNAS.
  • Roenneberg et al.: Social Jetlag Research Till Roenneberg and colleagues documented the phenomenon of "social jetlag", the discrepancy between biological sleep timing and socially imposed schedules, and its associations with obesity, mood disorders, and metabolic disruption.
  • Gray et al. (2015), JAMA Internal Medicine Shelly Gray and colleagues at the University of Washington analyzed 10 years of pharmacy data for 3,434 adults 65 and older. Higher cumulative use of strong anticholinergic drugs, including diphenhydramine (Benadryl, ZzzQuil), was associated with increased dementia risk in a dose-response relationship. The basis for caution around long-term OTC sleep aid use in the article.

Follow your protocol.

You built the stack. Now give it a system.

Get started free
ProtocolProtocol

The intelligence layer for your health stack.