Sleep is controlled by two biological systems working in parallel: a buildup of chemical pressure in your brain that increases the longer you stay awake, and a 24-hour internal clock that tells your body when it’s time to be alert and when it’s time to wind down. These two forces interact to determine when you fall asleep, how deeply you sleep, and when you wake up. What happens during those hours is far from passive. Your brain cycles through distinct stages, each serving different functions from memory processing to physical repair to clearing out toxic waste.
The Two Forces That Control Sleep
Sleep scientists describe sleep regulation through what’s known as the two-process model. The first force, called sleep pressure, is driven by a molecule called adenosine. Every hour you’re awake, your brain cells burn through energy in the form of ATP. As ATP breaks down, adenosine accumulates in the spaces between brain cells. The more adenosine builds up, the sleepier you feel. This is why staying awake for 18 or 20 hours makes it nearly impossible to concentrate: adenosine is essentially telling your brain it’s been running too long without maintenance. When you finally sleep, adenosine levels drop back down, and you wake up feeling refreshed.
Caffeine works by blocking the brain receptors that adenosine binds to, which is why coffee makes you feel alert without actually erasing the underlying sleep debt. The adenosine is still accumulating. You just can’t feel it until the caffeine wears off.
The second force is your circadian rhythm, a roughly 24-hour cycle governed by a tiny cluster of neurons in the brain called the suprachiasmatic nucleus, or SCN. This structure sits just above where the optic nerves cross and receives direct light signals from specialized cells in your retinas. When light hits these cells, they send signals to the SCN, which then suppresses the production of melatonin, the hormone that promotes drowsiness. When light fades in the evening, that suppression lifts and melatonin production ramps up, peaking in the middle of the night.
Blue light in the 460 to 480 nanometer range is the most effective at suppressing melatonin. Full-spectrum light at 2,500 lux will shut down melatonin production entirely, but even dimmer light below 200 lux can partially suppress it and shift your rhythm. For context, typical indoor lighting ranges from 100 to 500 lux, which is why bright screens at night can meaningfully delay your body’s sleep signals.
What Happens When You Fall Asleep
Sleep isn’t a single uniform state. Your brain moves through a repeating cycle of stages, each lasting roughly 90 minutes in total, and you’ll complete four to six of these cycles in a full night. The stages fall into two broad categories: non-REM sleep (which has three substages) and REM sleep.
Non-REM Sleep
Stage 1 (N1) is the lightest phase, lasting only a few minutes and accounting for about 5% of total sleep. Your muscles still have tone, your breathing is regular, and your brain produces low-voltage theta waves. You can be woken easily during this stage and might not even realize you were asleep.
Stage 2 (N2) is where you spend most of your night, roughly 45% of total sleep time. Your heart rate slows, your body temperature drops, and your brain produces distinctive electrical bursts called sleep spindles and K-complexes. These bursts are thought to play a role in processing new information and protecting sleep from external noise.
Stage 3 (N3) is deep sleep, also called slow-wave sleep, making up about 25% of total sleep. Your brain produces high-amplitude delta waves, the slowest frequency pattern seen during sleep. This is the hardest stage to wake from, and it’s where some of the most critical restorative work happens. Most deep sleep occurs in the first half of the night, with each successive cycle containing less of it.
REM Sleep
REM sleep is when dreaming is most vivid. Your brain becomes highly active, with the thalamus sending images, sounds, and sensory experiences to the cortex, producing brain wave patterns that resemble wakefulness. At the same time, your brainstem sends signals that paralyze most of your voluntary muscles, preventing you from physically acting out dreams. Your eyes move rapidly beneath closed lids, which gives the stage its name.
REM periods get longer as the night progresses. Your first REM episode might last only 10 minutes, while the last one before waking could stretch to 30 or 40 minutes. This is why people who cut their sleep short by an hour or two disproportionately lose REM sleep, even if they got plenty of deep sleep earlier in the night.
How Sleep Cleans Your Brain
One of the most important discoveries about sleep in the past decade involves the brain’s waste-clearance system, called the glymphatic system. During waking hours, this system is largely disengaged. But during sleep, particularly during deep slow-wave sleep, it ramps up dramatically. Studies in mice showed a 90% reduction in glymphatic clearance during wakefulness compared to sleep, and twice the amount of protein clearance from brain tissue during sleep.
The mechanism is surprisingly physical. When you enter deep sleep, levels of norepinephrine (an alertness chemical) drop, causing the spaces between brain cells to expand. This reduced resistance allows cerebrospinal fluid to flow more freely through brain tissue, flushing out metabolic waste. During slow-wave sleep specifically, large networks of neurons fire in synchronized, rhythmic pulses lasting 20 to 30 seconds each. These pulses create waves of fluid flow that boost clearance even further.
Among the waste products removed are amyloid-beta and tau proteins, both of which are associated with Alzheimer’s disease. Research shows a doubling of amyloid-beta clearance during sleep compared to wakefulness, and sleep deprivation measurably reduces the clearance of these metabolites. This is one reason chronic poor sleep is considered a risk factor for neurodegenerative disease.
What Sleep Deprivation Does to Your Brain
Losing sleep doesn’t just make you tired. It impairs specific cognitive functions in ways that compound with each hour of lost rest. Reaction times slow as neurological pathways become less efficient. Memory consolidation, which depends on a process called long-term potentiation in the hippocampus, is disrupted. Even a single night of mild sleep loss reduces the brain’s ability to encode new information, meaning you’ll absorb less from what you see and hear the next day, even if your reaction time during a task seems normal.
The emotional effects are equally striking. Sleep deprivation causes the amygdala, the brain’s emotional processing center, to become hyperreactive while simultaneously losing its normal connection to the prefrontal cortex, the region responsible for rational decision-making and impulse control. The result is stronger emotional reactions with less ability to regulate them. Studies on people kept awake for 53 hours found they took significantly longer to make moral judgments, suggesting difficulty integrating emotion and logic under extreme sleep debt.
Attention becomes unstable as well. In a sleep-deprived state, the brain struggles to properly activate the networks it uses for focused tasks while simultaneously failing to suppress the default mode network, which is normally active during daydreaming and mind-wandering. This creates an unpredictable pattern where you may perform adequately one moment and completely lose focus the next.
How Much Sleep You Actually Need
Sleep needs change substantially across the lifespan. The CDC’s current recommendations break down by age:
- Newborns (0 to 3 months): 14 to 17 hours
- Infants (4 to 12 months): 12 to 16 hours, including naps
- Toddlers (1 to 2 years): 11 to 14 hours, including naps
- Preschoolers (3 to 5 years): 10 to 13 hours, including naps
- School-age children (6 to 12 years): 9 to 12 hours
- Teens (13 to 17 years): 8 to 10 hours
- Adults (18 to 60 years): 7 or more hours
- Older adults (65 and up): 7 to 8 hours
These ranges reflect not just the total hours needed but the different proportions of sleep stages required at each age. Infants spend far more time in REM sleep than adults, which is thought to support the rapid brain development occurring in early life. Older adults tend to get less deep sleep naturally, which partly explains why sleep often feels lighter and more fragmented with age. The amount of deep slow-wave sleep you get has direct implications for waste clearance, memory consolidation, and physical recovery, so quality matters as much as total hours.

