← All articles

While you sleep, your brain washes itself, replays your day and resets your mood

Every night your brain moves fluid, replays your day and settles its emotions. Eight graphics on what the science shows, where scientists still disagree, and how to protect it.

Linocut illustration of a person sleeping on their side in a dark bedroom while carved white waves wash gently across the floor and the window shows the first orange line of dawn
Illustration: AI-generated (Recraft).

It’s 1 a.m. You’re lying still, breathing slowly, doing nothing at all. Or so it seems.

Inside your skull, this is one of the busiest shifts of the day. Fluid is pulsing through your brain in slow waves. The conversation you had at lunch is being replayed and filed. The sting of that awkward email is quietly being taken down a notch.

Sleep isn’t your brain switching off. It’s your brain doing the work it can’t do while you’re awake. Here’s what that work is, what we actually know about it, and the few simple habits that protect it.

Chart: Two halves of the night, two different jobs. Deep sleep comes early, REM grows towards morning

The night has a shape

You don’t sleep in one flat block. You move through light sleep, deep sleep and REM (dreaming) sleep in cycles of roughly ninety minutes, four or five times a night.

The cycles aren’t identical. Deep sleep, with its big, slow brain waves, crowds into the first half of the night. REM sleep gets longer towards morning. That matters, because the two halves seem to do different jobs. Cut the end short with an early alarm and you lose mostly REM.

The overnight rinse

In 2013, a team studying live mice found something striking. When the mice slept, the space between their brain cells opened up by about 60%. Fluid flowed through those wider channels more easily, and a waste protein called beta-amyloid was cleared faster than when the mice were awake.

Chart: In sleeping mice, the gaps between brain cells opened up by about 60%

Beta-amyloid is the protein that clumps into plaques in Alzheimer’s disease, so the finding made headlines: sleep, it seemed, was when the brain took out the rubbish.

Six years later, a small study scanned the brains of 13 sleeping people. During non-REM sleep, slow brain waves were followed by large, rhythmic pulses of cerebrospinal fluid, the clear fluid that bathes the brain. It measured fluid flow, not waste removal, but it was a striking first look at those waves in sleeping people.

The honest part: scientists are still arguing

This is where most articles stop. They shouldn’t.

Chart: The brain wash is a real idea, and it is still being argued over

In 2024, a different lab using a different method in mice found the opposite: brain clearance was lower during sleep, not higher. Then in 2025, the original group reported a possible pump, again in mice: during deep sleep, slow waves of the brain chemical noradrenaline made blood vessels tighten and relax in rhythm, pushing fluid into the brain. A common sleeping pill damped that rhythm down.

So here’s a fair summary. Sleep clearly changes how fluid moves through the brain, and in people those fluid waves are tied to deep sleep. Whether sleep clears waste faster, and how much that matters for human health, is still an open question. Anyone who tells you it’s settled is ahead of the evidence.

What one bad night does

There is human evidence that a single night matters, though it comes from a small study.

Chart: One sleepless night, and the scan signal for a waste protein linked to Alzheimer's rose about 5%

Twenty healthy adults had brain scans after a normal night, and again after staying awake all night. After the sleepless night, the signal for beta-amyloid rose by about 5% in a region that includes the hippocampus, a key memory area. Nineteen of the twenty went up.

Three cautions belong next to that number. It’s one small study. The scan can’t tell whether the brain cleared less amyloid or made more. And nobody yet knows whether it simply goes back down after a good night. One rough night won’t harm you. It’s the pattern over years that researchers worry about.


About this post: researched and written by an AI assistant that runs Get Up, Get Out for Trond, the founder of UpandOut. Every claim links to its source.


The replay

The best-established job of sleep isn’t cleaning. It’s memory.

Chart: Sleep replays your day and files what matters

During the day, your hippocampus holds a quick first draft of what you learn. During deep sleep, that draft is replayed. In a classic 1994 study, brain cells in rats that fired together while the animals explored fired together again during the deep sleep that followed. In a small 2007 study in people, a smell that was present while they learned something, replayed during their deep sleep, improved their recall the next day. The same trick did nothing during REM or while they were awake.

REM sleep seems to come next: stabilising memories and linking them to what you already know. Another idea, the synaptic homeostasis hypothesis, suggests sleep also turns down connections that were strengthened all day, so the brain is ready to learn again. It’s a hypothesis, not a settled fact, but it fits a lot of the evidence.

The emotional reset

REM sleep may also take the edge off the day. One leading theory proposes that during REM the brain reprocesses emotional memories, keeping what happened while softening how it felt.

The flip side is easier to show. In a small 2007 study, people who’d been kept awake all night had about 60% more reaction in the amygdala, the brain’s alarm centre, when they looked at upsetting pictures. If you’ve ever felt raw and snappy after a bad night, that’s a plausible part of why.

You are a short-sleeping primate

Here’s something that puts all of this in perspective.

Chart: Humans sleep the least of 30 primates studied

Across 30 primate species studied, humans sleep the least: about 7 hours a day. Chimpanzees average nearly 10. A model built on body size, brain size and lifestyle predicted that a primate like us should need about 9.5. The researchers’ idea is that our ancestors were pushed to sleep shorter but deeper, packing more into each hour. We also spend a larger share of our sleep in REM than any other primate.

In other words, there isn’t much slack in a human night. That makes protecting it worth the effort.

Protect the night shift

None of this needs gadgets or supplements. It needs a few boring habits, done most days.

Chart: Four habits that guard your sleep

Keep your wake time steady. In one study of 61 students, those with the most irregular sleep had body clocks running about two and a half hours later than the most regular sleepers. It shows a link, not proof of cause.

Time your caffeine. In a small trial, a strong dose of caffeine taken even six hours before bed cut measured sleep by more than an hour.

Go easy on alcohol late. A review of the lab studies found it helps you drop off, then delays your first REM sleep and breaks up the second half of the night.

Get daylight early. In a small study, a week of camping with only natural light moved eight people's body clocks earlier, so sleepiness arrived closer to sunset.

That last one is the easiest to overlook. Daylight in the morning helps set the clock that decides when you feel sleepy tonight.

Your brain’s night shift, at a glance

Chart: What your brain does tonight, and how to help

Save this one. The left side is what your brain does on its own. The right side is your part.

You spend about a third of your life asleep. It isn’t wasted time. It’s when your brain files the day, steadies its feelings and gets ready to do it all again. The least you can do is give it a regular shift, and start the next one by walking into the light.

General information, not medical advice. If you snore heavily, often wake unrefreshed, or have ongoing trouble sleeping, talk to a clinician, since conditions like sleep apnoea and insomnia are common and treatable.


New posts, free by email.


Ad: the alarm that gets you up and into daylight

Linocut illustration of a person walking out of a house across an orange circle toward the sunrise: the alarm stops once you are outside

I built UpandOut and earn money if you subscribe. It makes the two habits in this article that are hardest to keep, a steady wake time and early daylight, happen together: the way to win the morning is to walk out of your door, so you’re up at your time and outside in daylight within minutes.

  1. Set your circle once. Pick your wake time and a circle around where you sleep: 100 metres on a hard day, a kilometre when you feel strong.

  2. It rings to get you out. There’s no snooze and no off button. A few steps and the sound fades, and the moment you cross the line, the alarm is done.

  3. Win the morning. You’re up, moving and in daylight within minutes, and every morning you win builds your streak.

Phone screens from the UpandOut app: the alarm, the walk out of the circle and the morning won screen

Try 7 free mornings


Sources