Why Do We Sleep? The Science Explained

We sleep because the brain and body need a daily shutdown to repair themselves, sort the day’s memories and clear away the waste built up while we are awake. Nobody has found a single reason that explains all of it: the honest scientific answer is that sleep does several vital jobs at once, and researchers still argue about which of them matters most. What is not in doubt is that we cannot do without it — go without sleep for long enough and the body and the mind both start to fail.
The NHS puts it simply: sleep gives your mind and body time to rest and repair, and getting enough of it can support your mood, energy, immune system and overall health. Most healthy adults need around seven to nine hours a night, although the exact amount varies from person to person. This explainer sets out how much sleep different ages need, what the brain actually does during the night, why scientists think we sleep at all, and what happens when we do not get enough.
How much sleep do we actually need?
The amount of sleep we need falls as we grow up, and it falls again slightly in old age. The NHS says most healthy adults need around seven to nine hours a night, and its guidance for children and teenagers is higher. The table below gives the usual ranges.
| Age group | Sleep needed each night |
|---|---|
| Children aged 3 to 5 | 10 to 13 hours |
| Children aged 6 to 12 | 9 to 12 hours |
| Teenagers aged 13 to 18 | 8 to 10 hours |
| Adults | 7 to 9 hours |
| Adults aged 65 and over | 7 to 8 hours |
Those are averages, not rules for any one person: some healthy adults genuinely need a little less, and some need a little more. The test the NHS suggests is how you feel during the day. You are probably getting enough sleep if you wake up feeling refreshed, have enough energy to get through the day and can focus on everyday tasks. You are probably not getting enough if you find it hard to wake up, feel very tired, irritable or sleepy during the day, or struggle to focus or cope.
Most of us fall short of the target. One NHS trust leaflet puts the current UK average at six hours and 30 minutes a night — a full half hour below the bottom of the recommended range for adults. A single short night is usually nothing to worry about, but the NHS warns that poor sleep that happens often can start to affect how you feel and get through the day, and longer-term sleep problems can affect mood, appetite, relationships and social life.
What happens during a night of sleep?
Sleep is not one long, flat state. The brain cycles through distinct stages again and again through the night, and each cycle lasts about 90 minutes. A good night’s sleep usually includes four to five full cycles, according to the Sleep Charity, and each cycle runs through light sleep, deep sleep and dreaming sleep before starting again.
Scientists divide sleep into two kinds. Non-REM sleep, the quieter kind, has three stages: a light dozing stage as you drift off, a slightly deeper light sleep, and then deep slow-wave sleep, when the brain produces slow, large waves and the body is at its most still. REM sleep — rapid eye movement sleep — is the dreaming stage, when the eyes flicker beneath closed lids, the brain becomes almost as active as when you are awake, and the body is effectively paralysed so you do not act out your dreams. The two kinds are easy to tell apart on a brain scan: non-REM sleep shows slowing brain waves with bursts called sleep spindles, while REM sleep looks much closer to wakefulness.
The mix changes as the night goes on. The first cycles of the night are rich in deep slow-wave sleep, which is when the body does most of its physical repair and releases growth hormone, the chemical that helps rebuild tissue. Later cycles carry more and more REM sleep, so most of our vivid dreaming happens in the second half of the night, towards morning. That is also why an alarm that goes off in deep sleep leaves you groggy, while waking at the end of a cycle, in light sleep, usually feels easier.
What makes us feel sleepy?
Two separate systems decide when we sleep. The first is the body clock, or circadian rhythm: a roughly 24-hour timer in the brain that tells us when to feel alert and when to feel drowsy. It lives in a tiny cluster of cells called the suprachiasmatic nucleus, in the hypothalamus at the base of the brain, and it is reset every day by daylight. As evening falls and light fades, the brain releases melatonin, a hormone that helps signal that it is time to sleep.
The second system is sleep pressure. The longer we stay awake, the sleepier we get, and the pressure does not reset until we sleep. Part of that pressure comes from adenosine, a chemical that accumulates in the brain during waking hours, and part of it comes from the simple fact that the brain has been working hard all day. The proof that sleep pressure is real is the rebound effect: after a night of short sleep, a sleep-deprived person falls asleep faster and sleeps more deeply the next night, as the brain tries to repay the debt. Both systems work together — the clock decides the timing, and the pressure decides the depth.
The main theories of why we sleep
After more than a century of research, there is still no single agreed answer to why we sleep. The leading review of the evidence, by Stanford sleep researcher Emmanuel Mignot, concludes that sleep serves several functions at once: recovery at the level of cells, brain networks and hormones, saving energy, and a role in learning and memory. The table below sets out the main theories and the evidence behind each.
| Theory | What it says | Evidence for it |
|---|---|---|
| Restorative theory | Sleep repairs the body and brain | The brain makes more proteins and other building materials during sleep, and deep sleep is when tissue repair peaks |
| Energy conservation | Sleep saves energy by lowering activity | Animals with high metabolic rates tend to sleep longer; the body’s temperature and energy use fall overnight |
| Memory consolidation | Sleep files away what we learned | People remember things better after sleeping on them, and the brain replays the day’s experiences during sleep |
| Adaptive inactivity | Sleep keeps animals still and safe at night | Sleep evolved in animals that gain little from being active in the dark, when food is scarce and predators hunt |
| Synaptic homeostasis | Sleep prunes the brain’s connections | Connections between brain cells strengthen all day as we learn; sleep weakens the unimportant ones so the brain does not overload |
None of these theories has been disproved, and none explains everything on its own. Most sleep scientists now think the truth involves all of them, operating on different timescales and for different reasons. Sleep is, in Mignot’s phrase, a resilient form of cellular recovery that evolution has organised in time and space — and then loaded with extra jobs, from memory to energy saving, on top.
What happens if we do not sleep enough?
The short-term effects are familiar to anyone who has had a bad night: it is harder to wake up, harder to concentrate, and easier to feel irritable or low. Reaction times slow, memory slips, and ordinary tasks take more effort. That is why tiredness is treated as seriously as drink-driving in road safety: a drowsy driver is a dangerous one.
The longer-term picture is more serious. Research reviewed by Mignot finds that chronic partial sleep deprivation — the kind most of us actually live with, night after night of six hours instead of eight — is increasingly recognised as harmful to human health. In laboratory animals the effect is stark: rats kept totally awake die after two to three weeks. In people, total sleep deprivation is difficult to sustain for more than a few days to a week, and the body forces sleep on us whether we want it or not, in the form of microsleeps — seconds-long lapses into sleep that the person may not even notice.
The NHS advice for sleeping better is deliberately ordinary: keep regular bedtimes and wake times, make the bedroom comfortable, avoid caffeine late in the day, put the phone away before bed, and do not smoke or drink alcohol, tea or coffee for at least six hours before going to bed. Regular daytime activity helps too — the NHS recommends building up to 150 minutes of exercise a week — but not in the four hours before bed. If poor sleep persists, or you regularly find it hard to fall asleep, stay asleep or wake up too early, the NHS says to speak to a GP.
The teenager who stayed awake for 11 days
The most famous test of how long a person can go without sleep was never meant to be a medical experiment at all. In December 1963, Randy Gardner, a 17-year-old schoolboy in San Diego, California, decided to stay awake as a science fair project, after hearing about a radio host who had reportedly managed 260 hours. Two classmates kept him awake in shifts, and Stanford sleep researcher Dr William Dement came down to monitor him.
Gardner stayed awake for 11 days and 25 minutes — 264.4 hours — from 28 December 1963 to 8 January 1964, setting a new record at the time. By the later days he was forgetful, irritable and struggling to speak clearly, but he could still play games and hold conversations. When he finally slept, he slept for about 14 hours and 40 minutes on the first night, then a further ten and a half hours the next night — and follow-up recordings in the weeks after showed his sleep had returned to normal. His brain had preferentially made up the deep sleep and dreaming sleep it had missed most.
Later claims pushed the figure higher, to 453 hours, but Gardner’s case remains the best documented, because he was watched around the clock by people trained to spot the microsleeps that make unverified claims unreliable. Guinness World Records stopped accepting sleep-deprivation attempts in 1997, for safety reasons. The record is a curiosity, but it also makes the serious point: the body can be pushed a long way, yet it always collects the debt in the end.
Frequently asked questions
Do we need less sleep as we get older? Slightly. The recommendation for adults aged 65 and over is around seven to eight hours, against seven to nine for younger adults, and the NHS notes that sleep patterns often change with age — some people sleep less at night or doze during the day.
Why do we dream? Most vivid dreaming happens during REM sleep, when the brain is almost as active as it is awake. Dreams are part of the same overnight processing that files memories away, although why dreams take the strange forms they do is still not fully understood.
How do I know if I am getting enough sleep? The NHS test is daytime function: if you wake up feeling refreshed, have enough energy for the day and can focus on everyday tasks, you are probably getting enough. If you struggle to wake up, feel very tired or irritable during the day, or cannot concentrate, you probably are not.
Sources: NHS, PMC (Mignot 2008), The Sleep Charity, LibreTexts.