← Melio Blog

How Sleep Works

Why you spend a third of your life unconscious, what your body and brain quietly repair while you are out, and how to actually sleep better tonight. A picture for every idea.

01

Sleep Is Active, Not Off

a busy night, not a blank one

It feels like sleep is your body switching off. It is closer to the opposite. While you lie still, your brain runs a tightly scheduled program: cleaning out waste, filing away the day's memories, repairing tissue, and tuning your mood. You spend roughly a third of your entire life doing this, which is far too expensive a habit for evolution to keep unless it were doing essential work.

The clearest proof is what happens when you skip it. Miss a night and your focus, memory, reaction time, and emotional control all drop sharply. Skip it for long enough and the effects become dangerous. Sleep is not a pause in living; it is one of the things that makes the waking third work at all.

a typical 24-hour day awake (about 16 hours) asleep (about 8) that asleep slice is when most repair, cleanup, and memory work happens
A third of every day is spent asleep. It is reserved time for jobs that cannot run while you are awake.

02

The Night Comes in Cycles

about 90 minutes, repeated

You do not sleep in one smooth block. You move through cycles of roughly 90 minutes, each one a journey from light sleep down into deep sleep and back up into REM (the dreaming stage). A normal night is four to six of these cycles stacked end to end. The mix shifts as the night goes on: deep sleep is loaded into the first half, while REM stretches out toward morning. That is why a late night robs you mostly of dreaming, and an interrupted first half robs you of deep repair.

REM light deep deep sleep peaks early REM peaks before waking one night, drawn as a line that rises and dips
Each dip into deep sleep and climb back to REM is one cycle. The shape tilts: deep early, dream-heavy late.

03

Deep Sleep Repairs the Body

the maintenance shift

The deepest stage is slow-wave sleep, named for the big, slow brain waves that roll across it. This is your body's physical maintenance window. Blood pressure and heart rate fall, the release of growth hormone peaks, and tissues, muscles, and the immune system get repaired and restocked. It is also when the brain runs a literal wash cycle: fluid flushes through and clears out metabolic waste that built up during the day, including the proteins linked to long-term brain decline.

Deep sleep is the hardest stage to wake from, and the one your body protects most fiercely. Pull an all-nighter and the next time you sleep, your brain dives straight into extra deep sleep to pay back the debt, before it bothers catching up on dreaming.

deep sleep: the body's repair shift heart + pressure drop, body rests growth hormone peaks, tissue heals immune system restocks defenses brain wash cycle flushes out waste all four run mostly in the first half of the night
Slow-wave sleep is the body's overnight repair crew: rest, rebuild, defend, and clean.

04

REM Sleep Repairs the Mind

where memory and emotion get filed

In REM (rapid eye movement) sleep, your brain becomes almost as active as when you are awake, your eyes dart under closed lids, and you do most of your vivid dreaming. Your body, meanwhile, is temporarily paralyzed, a safety lock that stops you from acting out dreams. This is the stage that works on your mind: it strengthens new memories, weaves them into what you already know, sparks the unexpected connections behind creativity, and processes the day's emotions so they sting less by morning.

One way to picture it → deep sleep is the night-shift mechanic fixing the body; REM is the librarian who shelves the day's memories, files away the feelings, and leaves a few surprising notes between the pages.
brain highly active, dreaming sorting memory + emotion body muscles switched off paralyzed so you stay still
REM is the brain wide awake inside a body held still: the safe space to replay, connect, and let go.

05

Your Body Clock Runs on Light

the circadian rhythm

You have an internal clock, the circadian rhythm, a master timer in the brain that runs on a roughly 24-hour loop and decides when you feel awake and when you feel sleepy. Left alone it drifts slightly, so it has to be reset every day, and the main signal it uses is light. Bright morning light tells the clock "it is day," winding you up for the hours ahead. As darkness falls, the brain releases melatonin, a hormone that does not knock you out but quietly signals "night is coming," lowering the gates for sleep.

This is why screens late at night backfire: bright, bluish light fools the clock into thinking it is still daytime and holds melatonin back. It is the same machinery that powers jet lag, where your clock is still set to the city you left. Vision and the body clock share the same starting point, the light entering your eyes; if that hand-off fascinates you, see how your eyes see.

body clock ~24 hours morning light sets clock to "day" evening dark releases melatonin
Light is the dial. Morning brightness winds you up; evening darkness lets melatonin signal that night has come.

06

Sleep Pressure and Why Caffeine Works

adenosine, the sleepiness gauge

Alongside the clock, a second force builds through the day: sleep pressure. Every hour you are awake, your brain accumulates a chemical called adenosine, a byproduct of burning energy. The more it piles up, the sleepier you feel. Sleep is what clears it out, which is why you wake up (on a good night) with the gauge reset to near zero. Two systems, working together: the clock sets the schedule, adenosine sets the hunger for sleep.

This is exactly where caffeine comes in. Caffeine is shaped enough like adenosine to plug into the same docking spots in your brain, blocking the sleepy signal without actually clearing the adenosine. The pressure is still building underneath; you just cannot feel it. When the caffeine wears off, all that backed-up adenosine floods the now-open docks at once, which is the familiar afternoon crash. It is a clever trick, but it borrows alertness rather than creating it.

without caffeine adenosine fits the dock sleepy ✓ with caffeine caffeine blocks the dock adenosine locked out alert (for now)
Caffeine does not remove sleepiness; it hides it by sitting in adenosine's seat until it wears off.

The Whole Story in 6 Steps

1

Sleep is active work, not an off switch: a third of life spent on jobs that cannot run awake.

2

The night runs in cycles of about 90 minutes, with deep sleep early and REM heavy toward morning.

3

Deep sleep repairs the body: it rebuilds tissue, restocks the immune system, and washes brain waste.

4

REM repairs the mind: it files memories, fuels creativity, and processes emotion while the body stays still.

5

The body clock runs on light: morning brightness wakes it, evening darkness releases melatonin.

6

Adenosine builds sleep pressure; caffeine blocks its signal but does not clear it.

What Actually Helps (and What Does Not)

evidence over folklore

The habits with the strongest evidence are unglamorous. Keep a consistent schedule, going to bed and waking near the same times even on weekends, because it keeps the body clock steady. Get bright light early and dim, screen-free light in the last hour before bed. Keep the bedroom cool, dark, and quiet; your core temperature has to fall for sleep to deepen. Stop caffeine by early afternoon (it lingers in the body for many hours) and treat alcohol with suspicion: it helps you fall asleep but fragments the night and suppresses REM.

Now the myths. You cannot fully "catch up" on lost sleep with one long weekend lie-in; some deficits do not simply reverse. More sleep is not always better either, and the idea that everyone strictly needs eight hours is a rounded average, not a rule (most adults land somewhere in the seven-to-nine range). The widely repeated claim that you can train yourself to thrive on four or five hours is, for almost everyone, false: people who feel fine on little sleep are usually just used to being impaired. And lying in bed wide awake "trying harder" backfires; if sleep will not come, get up, do something calm and dim, and return when you feel drowsy. If you would rather wind down with something quiet than a screen, the Melio Games puzzles are built for exactly that kind of low-stimulation evening.

Sleep cycle: one roughly 90-minute pass from light sleep down to deep and up into REM.
Deep sleep: the slow-wave stage that repairs the body and clears brain waste.
REM sleep: the active, dreaming stage that files memory and processes emotion.
Slow-wave sleep: another name for the deepest, hardest-to-wake stage.
Circadian rhythm: the internal roughly 24-hour clock that times sleep and waking.
Melatonin: the hormone released in darkness that signals night is coming.
Adenosine: the chemical that builds while awake and creates sleep pressure.
Sleep pressure: the rising urge to sleep, driven by accumulated adenosine.

Keep Reading

How Memory Works: How your brain records, stores, and recalls, why repetition and meaning make things stick, and why memory r... Read →
How Your Immune System Works: Barriers, fast first responders, and a slow precise memory: how your body spots invaders, fights them off... Read →
How Sound Works: Something vibrates, air ripples outward in waves, and your ear turns it into music and voices. Read →

Browse all the Melio Blog guides →