Sleepless Night? A 20-Minute Workout or 90-Minute Nap May Protect Your Memory
After 30 hours without sleep, researchers found two very different interventions produced a surprisingly similar result: people who exercised briefly or took a long nap remembered about 22% more than people who simply pushed through.
By Health & Neuroscience Desk | Monday, August 31, 2026
Everyone knows the feeling.
The night disappears.
A deadline stretches until morning.
A hospital shift refuses to end.
A flight destroys your sleep schedule.
A newborn does not care that you have work tomorrow.
By sunrise, the question changes from:
How do I sleep well tonight?
to:
How do I function today?
A new study led by McGill University offers an intriguing answer for one important part of cognitive performance.
After 30 continuous hours awake, healthy young adults who either performed 20 minutes of aerobic exercise or received a 90-minute nap opportunity performed about 22% better on a later episodic-memory test than people who received neither intervention.
The study was published online in Proceedings of the National Academy of Sciences on August 7, 2026.
The result is fascinating because sleep and exercise appear to be almost opposite interventions.
One shuts the body down.
The other activates it.
Yet each seemed to help the sleep-deprived brain reach a similar behavioral outcome through a different neural route.
There is, however, an important warning.
The researchers did not prove that exercise or a nap can erase the consequences of sleep deprivation.
They tested one specific function:
the ability to encode new episodic memories.
That distinction could matter enormously in how the findings are used.
What the Researchers Actually Did
The trial included 54 healthy adults aged 18 to 35.
They did not have diagnosed sleep disorders.
They were not habitual night-shift workers.
They were not taking sleep medication.
Participants stayed awake for 30 continuously monitored hours.
Then researchers randomly assigned them to three groups.
Exercise Group
Participants completed 20 minutes of moderate-to-vigorous aerobic cycling at approximately 80% of maximum heart rate, alongside a warm-up and cool-down.
Nap Group
Participants were given a 90-minute opportunity to sleep in a laboratory sleep room.
Control Group
Participants sat on the stationary bicycle for 20 minutes without exercising.
Afterward, everyone completed a memory-encoding task while their brain activity was measured using a 64-channel EEG.
They viewed 150 color images without being told that their memory would later be tested.
Three days later, after recovery sleep, participants returned.
Researchers mixed the old images with new ones and asked participants to identify which they had seen previously.
The Result: Both Interventions Helped
The average recognition hit rates were approximately:
Control: 0.46
Exercise: 0.56
Nap: 0.57
Compared with the control group, exercise improved the primary memory measure by roughly 21%, while napping improved it by about 23%.
Across the two intervention groups, the researchers summarized the benefit as roughly 22% better memory performance.
That is a substantial difference.
But it should not be interpreted as:
“Exercise makes your entire brain 22% better after no sleep.”
The measured benefit concerned correctly recognizing material encoded after sleep deprivation.
The study did not show a 22% improvement in:
reaction time,
driving,
surgical precision,
judgment,
emotional regulation,
attention across an entire shift,
or every other cognitive function affected by sleep loss.
The Nap and the Workout Did Not Work the Same Way
This may be the most interesting part of the research.
EEG measurements suggested that exercise and sleep achieved similar memory results through different neural mechanisms.
After the nap, markers related to:
sleep pressure,
neural fatigue,
and brain state
became especially important in explaining subsequent memory performance.
In simple terms:
the nap appeared to create a brain state more ready to learn.
Exercise produced a different pattern.
Memory-related neural signals became more efficient predictors of successful encoding.
The researchers interpret this as exercise helping the sleep-deprived brain use its available processing resources more effectively.
Two roads.
Similar destination.
Neuroscientists sometimes describe this principle as neural degeneracy—different biological mechanisms can support the same function.
Why Does Losing Sleep Hurt Memory So Much?
Memory is not one process.
One important stage is encoding.
That is the moment your brain first converts an experience into information capable of later retrieval.
Imagine attending an important training session after being awake all night.
You may appear conscious.
You may hear every sentence.
You might even take notes.
But if the sleep-deprived brain struggles to encode the information efficiently, much of it may never become a stable memory.
That matters for:
students,
clinicians,
emergency responders,
pilots,
drivers,
military personnel,
shift workers,
and anyone required to absorb new information while exhausted.
The new study specifically focused on episodic memory, the system involved in remembering events and experiences.
Why Might Exercise Help?
Twenty minutes of exercise cannot manufacture eight hours of lost sleep.
It does produce immediate physiological changes.
Aerobic exercise affects:
arousal,
circulation,
catecholamine signaling,
attention,
and neural plasticity.
Previous research has linked acute exercise before learning with improved memory encoding.
For this experiment, researchers chose a moderate-to-vigorous intensity because short bouts at this intensity had already shown memory benefits under normal conditions.
Following extreme wakefulness, exercise appears to provide a temporary state in which the brain processes incoming information more efficiently.
That makes exercise particularly interesting for situations where sleep simply is not possible.
There is no bed.
No private room.
No 90-minute break.
But there might be:
a stationary bicycle,
stairs,
a brisk outdoor walk,
or another safe form of aerobic activity.
Whether those alternatives produce exactly the same effect as the controlled cycling intervention still needs study.
Why Might a 90-Minute Nap Help?
Sleep directly reduces accumulated sleep pressure.
A 90-minute opportunity is also long enough for many people to enter deeper stages of sleep and potentially move through several stages of a sleep cycle.
The researchers deliberately chose a longer nap because previous studies using 30- or 60-minute naps after complete sleep deprivation had not consistently restored some cognitive outcomes.
The PNAS study gave participants 90 minutes.
Importantly, the researchers also waited 30 minutes after the nap before memory encoding to reduce the effects of sleep inertia—the groggy period that can occur after waking from deeper sleep.
That detail matters enormously for real-world interpretation.
You should not read this study as evidence that someone can wake from a 90-minute nap and immediately perform a high-risk procedure at peak performance.
The experiment itself built in recovery time.
Is 90 Minutes the “Perfect Nap”?
No.
The experiment tested one nap protocol.
It does not establish 90 minutes as the ideal daily nap for everyone.
Shorter naps—often around 10 to 30 minutes—have a different advantage.
They may improve alertness while reducing the likelihood of waking from deeper sleep and experiencing prolonged sleep inertia.
Longer naps offer greater opportunity for deeper sleep.
But they can:
produce more grogginess,
consume more time,
and interfere with later nighttime sleep in some people.
The right nap depends on:
sleep debt,
time of day,
schedule,
individual sleep patterns,
and what someone has to do immediately afterward.
What “20-Minute Workout” Really Means
There is another useful clarification.
Participants did not casually stroll for 20 minutes.
The exercise group worked at approximately 80% of their maximum heart rate on a stationary bicycle.
They also completed a short warm-up and cool-down.
That qualifies as fairly substantial aerobic activity.
So someone should not assume:
“Any 20 minutes of movement produces exactly the same result.”
The practical question for future studies is whether:
walking,
jogging,
cycling,
stair climbing,
resistance exercise,
or lower-intensity activity
produce similar cognitive effects.
The Study Does Not Prove “Nervous System Regulation”
The phrase sounds scientifically sophisticated.
It is also too vague for this research.
The authors measured:
memory performance,
EEG activity,
sleep-related neural markers,
fatigue,
and other controlled variables.
They did not establish that exercise or napping broadly “regulated the nervous system” after sleep deprivation.
The better conclusion is more precise:
both interventions protected episodic-memory encoding after acute sleep loss, while EEG suggested they did so through different neural processes.
The real result is already compelling.
It does not need a wellness buzzword added to it.
Could This Help Doctors and Nurses on Long Shifts?
Potentially.
The researchers specifically highlight safety-sensitive occupations including:
healthcare,
transportation,
mining,
and shift work.
But this requires careful interpretation.
The study did not measure:
medical mistakes,
surgical errors,
driving collisions,
industrial accidents,
or patient outcomes.
Researchers are calling for exactly those kinds of implementation studies next.
So a hospital should not respond by deciding:
Doctors can work indefinitely as long as they ride an exercise bike.
That would completely misunderstand the research.
A better question is:
If unavoidable acute sleep loss occurs, could protected nap opportunities or appropriate exercise breaks reduce some cognitive harm?
That is worth investigating.
Driving Is a Particularly Important Example
Someone who has been awake for 30 hours may be seriously impaired.
A short workout improving one laboratory memory outcome does not prove they are safe to drive.
Neither does a nap automatically erase impairment.
Sleep loss can affect:
attention,
reaction time,
decision-making,
microsleep risk,
mood,
and situational awareness.
The PNAS study was not designed to certify fitness for safety-critical activities.
If someone is dangerously sleepy, avoiding hazardous activities remains more important than trying to “hack” wakefulness.
What About Students Pulling an All-Nighter?
This is the application almost everyone will immediately imagine.
A student stays awake all night.
Exam tomorrow.
Should they:
sleep,
exercise,
or keep studying?
The study suggests that if someone is already acutely sleep deprived, a nap or brief aerobic exercise before learning new information may protect the ability to encode some of that material.
But this does not make the all-nighter a good study strategy.
Sleep plays critical roles in both:
learning new information,
and consolidating information already learned.
Regular sleep before an exam remains the much stronger strategy.
The study offers a rescue tool.
Not permission to deliberately destroy sleep.
Could Exercise and a Nap Be Combined?
We don't know.
The researchers compared:
exercise,
nap,
and control.
They did not test:
nap + exercise.
It is tempting to assume combining both would produce even better performance.
Biology does not always work additively.
Benefits may overlap.
Fatigue may increase.
Timing could matter.
Only another experiment can answer that question.
What About Coffee?
Also not tested.
Caffeine is widely used to temporarily improve alertness during sleep deprivation.
But caffeine works through different mechanisms and can interfere with later recovery sleep, particularly when consumed late.
The McGill study deliberately restricted caffeinated beverages during the sleep-deprivation protocol.
So this research cannot tell us whether:
exercise beats coffee,
nap + coffee works better,
or combining caffeine with exercise changes the result.
Those would require separate trials.
The Participants Were Young and Healthy
This is one of the study's biggest limitations.
The 54 participants were aged 18 to 35.
They did not have sleep disorders.
They did not routinely work night shifts.
They were healthy enough to perform the exercise intervention.
That means we cannot automatically assume the same effect in:
older adults,
people with cardiovascular disease,
people with insomnia,
people with sleep apnea,
pregnant people,
chronic night-shift workers,
or people living with persistent sleep deprivation.
The study examines acute experimental sleep loss.
Real life is often messier.
Chronic Sleep Debt Is a Different Problem
Thirty hours awake is severe but temporary.
Some people instead sleep:
five hours tonight,
six tomorrow,
four the next day,
then seven on the weekend.
That chronic partial sleep restriction may affect the body differently.
Exercise and naps could still help.
But this trial does not demonstrate how effectively they compensate for weeks or months of inadequate sleep.
That matters because chronic insufficient sleep is associated with problems extending far beyond memory, including effects on:
metabolism,
cardiovascular health,
mental health,
immune function,
and overall well-being.
No 20-minute workout can reasonably be expected to replace all of sleep's biological functions.
The Real Finding Is That the Sleep-Deprived Brain Is Surprisingly Adaptable
The study could easily be framed as:
Sleep hack discovered.
That undersells the neuroscience.
What the researchers really demonstrated is that even after extreme sleep loss, the brain retained multiple ways of protecting memory.
Sleep restored one type of neural state.
Exercise recruited another route.
Similar behavioral outcome.
Different biology.
That suggests the brain has a remarkable ability to reorganize how it accomplishes a task when circumstances become unfavorable.
This may ultimately matter beyond sleep deprivation.
It provides another window into how the nervous system maintains function despite stress.
The Best Treatment for Sleep Loss Is Still Sleep
This article needs one sentence larger than all the others:
A nap or workout is not a substitute for adequate sleep.
The researchers themselves emphasize this.
So do independent sleep specialists commenting on the work.
Regular restorative sleep supports far more than memory.
It affects:
metabolism,
cardiovascular function,
immune regulation,
hormones,
emotional processing,
attention,
and physical recovery.
The new finding belongs in a narrower category.
When a sleepless night has already happened, and optimal recovery is temporarily impossible, the brain may have more than one practical route for protecting its ability to learn.
Twenty Minutes or Ninety?
There is something beautifully strange about the comparison.
Twenty minutes of hard cycling.
Ninety minutes asleep.
One pushes the cardiovascular system.
The other withdraws from the waking world.
One increases activity.
The other reduces it.
Yet after 30 hours without sleep, both groups remembered about 22% more than the exhausted participants who simply sat and continued.
That does not mean the two interventions are biologically equivalent.
The EEG results suggest the opposite.
They appear to work differently.
The nap helps make the brain ready to learn again.
Exercise appears to make the fatigued brain process new information more efficiently.
For people who sometimes face unavoidable acute sleep loss, that is genuinely useful knowledge.
But the hierarchy should remain clear.
First choice:
sleep enough.
If the sleepless night already happened:
recover properly as soon as possible.
And when immediate demands make full recovery impossible, this study suggests the human brain may still respond meaningfully to two surprisingly accessible interventions:
move for 20 minutes
or
sleep for 90.
Not a cure for exhaustion.
Not a license to ignore sleep.
A temporary bridge when the night has already been lost.
Frequently Asked Questions
What did the 2026 sleep-deprivation study find?
After 30 hours awake, healthy adults who completed 20 minutes of aerobic exercise or took a 90-minute nap performed about 22% better on an episodic-memory task than a no-intervention control group.
How many people participated?
The trial included 54 healthy adults aged 18 to 35.
What kind of exercise did they perform?
Participants cycled for 20 minutes at approximately 80% of maximum heart rate, in addition to a brief warm-up and cool-down.
Did the nap group sleep for exactly 90 minutes?
They received a 90-minute nap opportunity. Researchers then allowed a 30-minute interval before the learning task to reduce sleep inertia.
Was the nap better than exercise?
Their primary memory outcomes were very similar: roughly 21% improvement for exercise and 23% for napping relative to control. The study was more notable for showing that the two interventions appeared to reach similar results through different neural mechanisms.
Can exercise replace sleep?
No. The study measured protection of episodic-memory encoding after acute sleep deprivation. It did not demonstrate that exercise restores all cognitive, metabolic, cardiovascular or physiological functions of sleep.
Can a 90-minute nap completely reverse an all-nighter?
No. It improved one aspect of memory performance in this controlled study. Acute sleep deprivation affects many functions that were not tested.
Is it safe to drive after 30 hours without sleep if I exercise first?
This study does not establish that. It did not measure driving performance or accident risk. Severe sleepiness should be treated as a safety issue rather than managed solely with a workout or nap.
Does the research apply to shift workers?
The researchers believe it could inform future fatigue-management strategies in safety-sensitive occupations, but the participants were not habitual shift workers. Real-world implementation studies are still needed.
Can I combine a nap with exercise?
The study did not test the combination, so we cannot say whether the effects would be additive.
Health & Safety Note: Acute and chronic sleep deprivation can significantly impair judgment, attention and physical performance. This article describes a controlled research study and should not be interpreted as evidence that exercise or napping makes a severely sleep-deprived person safe for driving, operating machinery or performing other high-risk tasks.
90 minute nap memory, 20 minute workout sleep deprivation, sleepless night memory, exercise cognitive performance, nap after all nighter, acute sleep loss, McGill sleep study
Sleep, Exercise, Memory, Sleep Deprivation, Napping, Brain Health, Cognitive Performance, Shift Work, McGill University