Science March 11, 2026

How Sleep Works

A 7-minute read

You spend a third of your life doing it. Scientists spent decades assuming it was just the brain going quiet. They were wrong.

If you pulled an all-nighter in college and survived fine, your brain lied to you. Sleep deprivation impairs your ability to assess your own impairment. The worse your cognitive function gets, the less capable you are of noticing it declining. According to research published in Occupational & Environmental Medicine (Williamson & Feyer, 2000) and subsequently cited by the CDC’s NIOSH division, after 17 hours without sleep you perform roughly like someone with a blood alcohol level of 0.05%. After 24 hours: 0.10%. Legally drunk. The idea that sleep is passive rest, just the brain going quiet, turned out to be one of the most consequential scientific misunderstandings of the 20th century.

The short answer

Sleep is not rest. It’s a highly orchestrated biological process where your brain cycles through distinct stages, each serving a different function. NREM (non-rapid eye movement) sleep handles physical repair and memory consolidation, while REM sleep, the phase where most dreaming happens, is when your brain processes emotions, solves problems, and builds creative connections. Your circadian rhythm, the internal clock that tells you when to be alert and when to feel drowsy, works alongside a chemical called adenosine that builds up while you’re awake and gets cleared while you sleep. Skip enough sleep, and both systems rebel: adenosine floods your brain, your glymphatic system fails to clear toxic byproducts, and your cognition tanks.

The full picture

The four stages of sleep

Sleep isn’t a flat line. It’s a cycle, and you go through it roughly four to six times a night.

Stage 1 (NREM 1) is the bridge between awake and asleep. Lasts just a few minutes. Your muscles relax, your heart rate slows, and those jerky twitches you sometimes experience as you drift off? That’s this stage. You’re easily woken here.

Stage 2 (NREM 2) is where things get interesting. Your body temperature drops, your brain waves slow, and your heart rate becomes regular. Scientists discovered something remarkable: your neurons fire in sudden bursts called sleep spindles. These spindles may help protect sleep by blocking out external stimuli, and they also seem to play a role in memory consolidation. You’re in deeper territory now, but not yet fully under.

Stage 3 (NREM 3) is deep sleep, also called slow-wave sleep because your brain produces delta waves, slow and powerful. This is the stage where your body does its most critical maintenance work. Tissue repair happens. Growth hormone releases. Your immune system strengthens. If someone woke you up here, you’d feel groggy and disoriented because this stage is extremely hard to interrupt. Deep sleep is also when the glymphatic system, your brain’s waste clearance network, kicks into high gear, flushing out beta-amyloid (the protein linked to Alzheimer’s) and other metabolic debris.

Then comes REM sleep, and everything changes.

Why REM sleep is weird and vital

In REM, your brain lights up like it’s awake. Your eyes dart around (hence “rapid eye movement”), your heart rate becomes irregular, and most of your muscles go limp thanks to a mechanism called REM atonia that paralyzes you so you don’t act out your dreams. This is when most vivid dreaming happens.

But REM isn’t just for dreams. It’s when your brain processes emotional experiences, filing away what matters and dulling the emotional charge of painful memories. Think of it as overnight therapy. Studies from Matthew Walker’s sleep lab at UC Berkeley and others show that REM sleep helps you regulate mood, and people with depression often have disrupted REM patterns.

REM is also when memory consolidation extends beyond facts to include skills, creative problem-solving, and complex learning. Ever woken up with a solution to a problem you were wrestling with the day before? Thank REM sleep. Your brain was working on it all night.

Your circadian rhythm and adenosine: the two forces behind sleep

Two systems govern when you feel tired.

Your circadian rhythm is your internal 24-hour clock, regulated by a tiny region called the suprachiasmatic nucleus (SCN) in your hypothalamus, discovered by researchers Robert Moore and Irving Zucker in the early 1970s. It responds to light, telling you to be alert when the sun is up and drowsy when it sets. Light hits special photoreceptive cells in your eyes called intrinsically photosensitive retinal ganglion cells (ipRGCs), and those cells signal the SCN to suppress melatonin, the hormone that makes you sleepy. This is why staring at screens at 2am is self-sabotage: the blue light tricks your brain into thinking it’s still daytime.

Then there’s adenosine. This chemical builds up in your brain while you’re awake, as a byproduct of energy metabolism. The more adenosine accumulates, the sleepier you feel. Caffeine works by blocking adenosine receptors, essentially muffling the signal, as pharmacologist Bertil Fredholm’s research on adenosine receptor pharmacology has detailed. But adenosine doesn’t disappear instantly when you sleep; it clears gradually, which is why you feel more alert after a full night’s rest.

These two systems don’t always agree. Jet lag happens when your circadian rhythm says it’s daytime but adenosine says you should be asleep. Pulling an all-nighter means fighting both forces, and the result is a brain running on fumes and borrowed time.

What sleep deprivation actually does

After 24 hours without sleep, your cognitive abilities drop to roughly the equivalent of someone with a blood alcohol level of 0.10 percent, per the NIOSH-cited research above. You’re legally drunk. After 48 hours, microsleeps start intrudingly, involuntary seconds of sleep that you don’t even notice. After 72 hours, hallucinations begin.

But the damage goes deeper than feeling tired. During sleep, your glymphatic system, a network of channels around your blood vessels, expands and flushes out metabolic waste. In deep sleep, this system is up to ten times more active than when you’re awake. Without it, beta-amyloid and tau proteins accumulate, the same proteins found in the brains of people with Alzheimer’s disease. Chronic sleep deprivation isn’t just uncomfortable; it may accelerate neurodegenerative processes.

Your prefrontal cortex, responsible for decision-making and impulse control, is particularly vulnerable to sleep loss. The amygdala, which handles emotional reactions, becomes hyperreactive. This is why sleep-deprived people are more irritable, more impulsive, and worse at reading social cues. You’re not just tired. You’re a worse version of yourself.

Why do we dream?

Dreams remain one of neuroscience’s great mysteries, but several theories have gained traction.

The emotional regulation theory suggests dreams help you process difficult experiences. During REM sleep, your brain reactivates emotional memories while simultaneously reducing the norepinephrine (a stress hormone) levels that normally accompany them. Research by Matthew Walker at UC Berkeley frames this as “overnight therapy.” Your brain running a therapeutic simulation, processing trauma without the emotional charge.

The memory consolidation theory proposes that dreams are a byproduct of your brain filing away new information, replaying experiences to strengthen neural connections. The bizarre, random nature of dreams might just be your brain’s associative networks firing as they organize memories.

The threat simulation theory, proposed by Finnish neuroscientist Antti Revonsuo, suggests dreams evolved as a way to practice responses to dangerous situations in a safe environment. Your brain runs scenarios, rehearsing escape routes and threat responses without real-world consequences.

Most likely, all of these have elements of truth. Dreams probably serve multiple functions, which explains why they’re so hard to pin down.

Why do some people need more sleep?

Sleep needs vary. Most adults need between seven and nine hours, per guidelines from the National Sleep Foundation and the American Academy of Sleep Medicine (AASM). But some function perfectly well on six, while others need nine or more. A significant portion comes down to genetics. A mutation in the DEC2 gene (also called BHLHE41), identified by UCSF researchers Ying-Hui Fu and Louis Ptáček, allows some people to thrive on less sleep, though this is rare. More common are variations in genes related to circadian rhythm timing and sleep pressure sensitivity.

Age also plays a role. Teenagers have shifted circadian rhythms that make early mornings biologically difficult, a well-documented phenomenon that has led the American Academy of Pediatrics to recommend later school start times. Older adults tend to sleep less and wake more frequently.

And then there’s sleep quality. Someone who sleeps eight hours in a room that’s too warm, with sleep apnea disrupting their breathing every few minutes, might wake up feeling exhausted even though they were in bed for what looks like a full night. Sleep efficiency matters as much as duration.

What napping does

Naps are powerful tools, but timing matters.

A short nap of 10 to 20 minutes during the early afternoon can boost alertness and cognitive performance without leaving you groggy. This timing aligns with a natural dip in circadian alertness that most people experience around 2 to 3pm, consistent with research by Sara Mednick at UC San Diego published in her work on “strategic napping.”

Longer naps of 60 to 90 minutes include deep sleep and REM stages, which can improve creativity and emotional processing but may leave you feeling out of sorts if you wake from deep sleep. This grogginess is called sleep inertia, and it can last for 30 minutes after you wake.

The key is matching the nap to your goal. Need a quick alertness boost? Keep it short. Need to solve a complex problem or process something emotionally? A longer nap might help. Just avoid napping after 3pm, because it can interfere with your ability to fall asleep at night.

The glymphatic system: your brain washing itself while you sleep

One of the most significant sleep discoveries of the past decade didn’t come from sleep scientists, it came from neuroscientists studying the brain’s waste clearance system.

In 2013, researchers at the University of Rochester led by Maiken Nedergaard published a landmark paper in Science revealing that the brain has its own plumbing system called the glymphatic system (glia + lymphatic). While you’re awake, brain cells are metabolically active and produce waste products, including beta-amyloid and tau proteins, the same ones found in elevated concentrations in Alzheimer’s disease.

During sleep, particularly deep slow-wave sleep, something remarkable happens: glial cells in the brain actually shrink, expanding the space between cells by up to 60%. Cerebrospinal fluid rushes through these expanded channels, flushing out accumulated waste products. The brain is washing itself.

This process is dramatically less efficient during wakefulness and almost nonexistent during sleep deprivation. The Rochester team’s studies in mice showed that beta-amyloid clearance was nearly twice as efficient during sleep as during waking hours. In humans, research published in subsequent years found that a single night of sleep deprivation leads to measurably higher beta-amyloid levels in the brain the next day, levels that return to baseline after recovery sleep.

The implication is significant: chronic sleep deprivation may not just cause cognitive impairment in the short term, but potentially contribute to the accumulation of the same proteins associated with neurodegenerative disease in the long term. It doesn’t prove that bad sleep causes Alzheimer’s. The relationship is complex and bidirectional, but it reveals a physical mechanism by which sleep quality could matter over decades. Sleep isn’t just rest. It’s maintenance.

Common misconceptions

You can “catch up” on sleep. Not really. You can pay back some of the debt, but the cognitive damage from chronic sleep deprivation accumulates. Studies by Hans Van Dongen and David Dinges at the University of Pennsylvania show that after weeks of sleeping six hours a night, your performance is identical to someone who stayed awake for 24 hours straight, even if you feel like you’re functioning. The debt doesn’t disappear; it compounds.

Your brain is less active in sleep. Absolutely false. Certain brain regions are more active during sleep than during waking hours. The default mode network, which handles internal reflection and memory integration, goes into overdrive. Sleep is not the brain going quiet. It’s the brain going to work.

Older people need less sleep. They often sleep less, but that’s not the same as needing less. Older adults experience lighter sleep, more interruptions, and often spend less time in deep sleep and REM. The need doesn’t disappear; the capacity often does.

Why it matters

Sleep is not a luxury. It’s not something you trade for more productive hours, because the math doesn’t work: every hour of sleep you skip costs you multiple hours of reduced performance the next day. Your brain clears toxins, consolidates memories, processes emotions, and repairs your body while you rest. Skimp on sleep, and you’re not saving time. You’re borrowing from a debt that will eventually be collected.

You will spend a third of your life asleep. You can either fight it or get the most out of it. Understanding how sleep works is the first step toward doing it well.