The night crew
Sleep is a night shift
Night helpers
Tap the sleeping house. What jobs happen while you sleep?
Toggle the crew: which three jobs does sleep do that waking can't do as well?
Tap the house. Who is working?
Your turn
Each lab is one step from the video. Change things and see what happens.
Each lab isolates one part of the story. The models are simplified to show the idea; they are not medical tools.
Tap the buttons and slide the sliders.
Tap the sleeping house. What jobs happen while you sleep?
Toggle the crew: which three jobs does sleep do that waking can't do as well?
Tap the house. Who is working?
Switch between awake and deep sleep. What happens to the heart and the growth hormone?
Compare waking and slow-wave sleep: heart rate, growth hormone and immune activity.
Switch day and night. When does your heart rest?
A picture of the idea, not measured values.
Slide from awake to asleep. What happens to the gaps between cells and the waste?
Widen the interstitial space (mouse data, ~60%) and watch clearance. Remember: human evidence is still growing.
Slide to asleep. Watch the mess wash away!
Based on sleeping mice (2013). Scientists are still testing how it works in people.
Sleep on it, or pull an all-nighter. Which memories make it into storage?
Compare a full night with total deprivation: what reaches long-term cortical storage?
Sleep or stay up? What do you keep?
A simple picture: real memory saving is gradual, not all-or-nothing.
Drag through the evening. Then add the teen clock or a late screen. When does sleepiness kick in?
Shift the circadian phase (adolescence, evening light) and see where sleep drive and the melatonin signal meet.
A schematic model, not to scale.
Set a bedtime and a wake-up time. Which jobs get finished?
Vary sleep opportunity: which stage-dependent jobs are cut first, and how fast does debt build over 5 nights?
Pick bedtime and wake-up time. Do the helpers finish?
A simplified model: 90-minute cycles, deep sleep early, REM late; debt measured against 9 hours (middle of the teen range).
When you sleep, it looks like your body turns off. But it doesn't! Sleep is a busy night shift. While you rest, helpers inside you get to work.
In deep sleep, your heart slows down and rests. Your body makes a special helper that helps you grow and fixes your muscles. Your body's guards get busy too, and help keep germs away.
All day, your busy brain makes a little mess. Scientists watched sleeping mice and saw little gaps in their brains get wider. Then a clear liquid could wash the mess away. They are still learning how this works in people.
All day you learn new things. While you sleep, your brain moves them into a safe place, so you can keep them.
Children need lots of sleep, more than grown-ups. Your sleep goes up and down all night, deep and then dreamy. If you wake up too early, some jobs don't get finished.
Wondering what dreams are? See How do dreams work? And if you ever wake up and can't move for a moment, see What causes sleep paralysis?
Sleep is important because your body and brain do essential maintenance work while you sleep that they can't do as well while you're awake. You spend about a third of your life asleep, and good sleep is as essential to survival as food and water.1 During sleep your body repairs tissues and releases growth hormone, your immune system gets to work, your brain sorts and stores new memories, and research suggests the brain clears away waste that builds up during the day.1210
Sleep affects almost every system in your body: brain, heart, lungs, metabolism, immune function and mood.1 That's why too little sleep makes it harder to focus, learn and react, makes you more likely to catch colds, and over time raises the risk of problems like high blood pressure, diabetes, obesity and depression.48
One honest note: scientists still don't fully understand the biological purpose of sleep.1 But they have found several clear jobs it does. Think of sleep as a night shift, not an off switch.
A key time for growth and repair is deep sleep (also called slow-wave sleep or stage 3). It comes in longer stretches during the first half of the night and is the stage you need to feel refreshed.1
This is one of the most exciting discoveries in sleep science, and it's still being worked out. Brain tissue itself doesn't contain the ordinary lymph vessels that clear waste from the rest of your body. Instead, a clear liquid called cerebrospinal fluid flows around the brain and spinal cord.1011
In 2013, scientists at the University of Rochester watched this fluid in the brains of living mice. When the mice were asleep, the spaces between their brain cells grew by about 60 percent, and the fluid flowed through much faster, washing away waste. That waste included beta-amyloid, a protein linked to Alzheimer's disease, which was cleared faster during sleep.1011 The researchers called this plumbing the glymphatic system. "We need sleep. It cleans up the brain," said Maiken Nedergaard, the study's senior researcher.11
What about people? The evidence is growing. A 2019 brain-imaging study found that during non-REM sleep, slow brain waves are followed by pulses of cerebrospinal fluid washing through the human brain.12 A small 2021 study found that one night without sleep slowed the clearance of a tracer substance from people's brains.13 But not every result agrees: a 2024 study in mice found that brain clearance was actually lower during sleep.14 So "sleep helps clean the brain" is a strong, exciting idea, while exactly how it works is still being tested. NIH scientists describe it as "recent findings suggest that sleep plays a housekeeping role."1
Sleep helps you learn and form long-term memories.2 Without it, you can't form or maintain the brain pathways that let you learn and create new memories.1 Here's the current picture:
Sleep before learning matters too. In one experiment, after a single night without sleep, people's hippocampus was less active while they tried to learn, and they remembered less afterwards.19 So an all-nighter before a test can backfire. Sleeping on it really helps.
Curious about the stages themselves, and why REM is when the most vivid dreams happen? See our explainer How do dreams work?, which lets you scrub through a whole night's sleep cycles. And if you've ever woken up and found you couldn't move for a moment, that's linked to REM sleep too: see What causes sleep paralysis?
Without enough sleep, you might feel frustrated, cranky or worried, and find it harder to judge other people's emotions.4 REM sleep seems to help here: in a UC Berkeley study, REM sleep was linked to the brain's emotion centre, the amygdala, reacting less strongly the next day to upsetting things people had seen, as if sleep took some of the sting out.18 Getting enough sleep can help reduce stress and improve your mood.5
Two systems work together to decide when you sleep.1
Light is perhaps the biggest influence on your sleep timing, and light in the evening can make it harder to fall asleep.1 In a Harvard sleep-lab study, people who read on a light-emitting tablet before bed took longer to fall asleep, made less melatonin, had their body clocks shifted later and were less alert the next morning than when they read a printed book.21
It's not just habit. During the teen years, the body clock naturally shifts later.20 Melatonin starts being released later in the evening and sleep pressure builds more slowly, so many teens simply don't feel tired until 11 pm or later. Left to their own schedule, many would sleep from about 11 pm or midnight until 8 or 9 am.24 Early school start times clash with this, which is why the American Academy of Sleep Medicine says middle and high schools should start at 8:30 am or later.9
How much sleep you need depends on your age. These are the recommendations from the American Academy of Sleep Medicine, used by the CDC and NIH:839
| Age | Recommended sleep (per 24 hours) |
|---|---|
| Babies 4–12 months | 12–16 hours (including naps) |
| Children 1–2 years | 11–14 hours (including naps) |
| Children 3–5 years | 10–13 hours (including naps) |
| Children 6–12 years | 9–12 hours |
| Teens 13–18 years | 8–10 hours |
| Adults | 7 hours or more (NHLBI: 7–9 hours) |
Needs vary from person to person, and there's no magic number that works for everyone of the same age.1 Sleeping more than 9 hours isn't necessarily harmful, and can help young adults and people who are sick or catching up on sleep.3 Many teens fall short: about three in four U.S. high school students get less than 8 hours on school nights.96
Sleep comes in cycles of roughly 90 minutes (a full cycle takes about 1.5 to 2 hours), and a night usually has four to six of them.25 Deep sleep is packed into the early cycles, while REM periods get longer toward morning.1 So when you cut a night short by setting an early alarm, you don't lose an "average" slice of sleep. You lose a big share of the night's REM. In our simplified model in the player, waking at 5 instead of 7 after a 10 pm bedtime cuts sleep by about a fifth but removes over 40 percent of the night's REM.
Regularly sleeping less than you need is linked to problems with attention, behaviour and learning, and a higher risk of accidents, injuries, high blood pressure, obesity, diabetes and depression.8 In the short term you may have trouble learning, focusing and reacting.4
Can you catch up at the weekend? Sleeping in may help a little, but it may not fully make up for lost sleep.1 And sleeping very late can push your body clock later still.24
Habits recommended by the CDC:5
Getting outside into daylight in the morning also helps set your body clock.25 If you often have trouble sleeping, or feel sleepy during the day even after enough sleep, talk to a parent or doctor.5
Sleep helps your body repair and grow (growth hormone is released in deep sleep), supports your immune system so you get sick less often, helps you learn and save memories, keeps your mood steadier, and keeps you alert and safe, for example when playing sports or driving.
Scientists are still working out every reason, but sleep clearly does jobs the body can't do as well while awake: deep sleep supports growth and tissue repair, the sleeping brain sorts and stores memories, and research in mice suggests the brain clears waste faster during sleep. Without enough sleep, thinking, mood and health all suffer.
The American Academy of Sleep Medicine recommends 8 to 10 hours per 24 hours for teens aged 13 to 18, and 9 to 12 hours for children aged 6 to 12. Adults should get at least 7 hours.
Yes. For teenagers, 9 hours is right in the middle of the recommended 8 to 10 hours. Some adults need more than 7 to 8 hours too, and sleeping more than 9 hours isn't necessarily harmful, especially for young adults or people who are sick or catching up on sleep.
For most people, no. It's well below the 9 to 12 hours children aged 6 to 12 need, the 8 to 10 hours teens need, and the 7 hours recommended for adults. In a lab study, adults allowed only 6 hours in bed each night for two weeks got steadily worse on attention tests, ending up about as bad as after a whole night without sleep, and didn't realise how much worse they'd got.
In the short term you may find it harder to focus, learn and react, feel more cranky or worried, and be more likely to get colds. Drowsiness is dangerous when driving. Over the long term, too little sleep is linked to health problems such as high blood pressure, diabetes, obesity and depression.
Sleeping in can help a bit, but it may not fully make up for a week of short nights, and very late weekend mornings can make it harder to feel sleepy at your usual bedtime. A regular sleep schedule works best.