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.


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.

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.

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.

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.

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.

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.

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.

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

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

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.
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.
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.
Win the morning. You’re up, moving and in daylight within minutes, and every morning you win builds your streak.

Sources
Sleep and the space between brain cells (mice): Xie et al., “Sleep drives metabolite clearance from the adult brain”, Science 342 (2013): 373–377. doi:10.1126/science.1241224
Fluid waves in human deep sleep: Fultz et al., Science 366 (2019): 628–631. doi:10.1126/science.aax5440
The challenge (mice): Miao et al., “Brain clearance is reduced during sleep and anesthesia”, Nature Neuroscience 27 (2024): 1046–1050. doi:10.1038/s41593-024-01638-y
The noradrenaline pump (mice): Hauglund et al., Cell 188 (2025): 606–622. doi:10.1016/j.cell.2024.11.027
One night without sleep and beta-amyloid: Shokri-Kojori et al., PNAS 115 (2018): 4483–4488. doi:10.1073/pnas.1721694115
Sleep and memory (review): Rasch and Born, Physiological Reviews 93 (2013): 681–766. doi:10.1152/physrev.00032.2012
Replay in rats: Wilson and McNaughton, Science 265 (1994): 676–679. doi:10.1126/science.8036517
Smell cues during deep sleep: Rasch, Büchel, Gais and Born, Science 315 (2007): 1426–1429. doi:10.1126/science.1138581
Synaptic homeostasis hypothesis: Tononi and Cirelli, Neuron 81 (2014): 12–34. doi:10.1016/j.neuron.2013.12.025
Sleep and emotion (theory): Walker and van der Helm, Psychological Bulletin 135 (2009): 731–748. doi:10.1037/a0016570
Sleep loss and the amygdala: Yoo, Gujar, Hu, Jolesz and Walker, Current Biology 17 (2007): R877–R878. doi:10.1016/j.cub.2007.08.007
Primate sleep data: Nunn and Samson, “Sleep in a comparative context”, American Journal of Physical Anthropology 166 (2018): 601–612. doi:10.1002/ajpa.23427
The idea of shorter, deeper human sleep: Samson and Nunn, Evolutionary Anthropology 24 (2015): 225–237. doi:10.1002/evan.21464
Irregular sleep and the body clock: Phillips et al., Scientific Reports 7 (2017): 3216. doi:10.1038/s41598-017-03171-4
Caffeine timing: Drake, Roehrs, Shambroom and Roth, Journal of Clinical Sleep Medicine 9 (2013): 1195–1200. doi:10.5664/jcsm.3170
Alcohol and sleep: Ebrahim, Shapiro, Williams and Fenwick, Alcoholism: Clinical and Experimental Research 37 (2013): 539–549. doi:10.1111/acer.12006
Natural light and the body clock: Wright et al., Current Biology 23 (2013): 1554–1558. doi:10.1016/j.cub.2013.06.039