Why Do We Dream? The Science of Nightmares and Lucid Dreams

2026-03-17
5 minutes
A person sleeping peacefully under moonlight and starry window, evoking why do we dream

Your Brain Never Really Shuts Off

You fell asleep an hour ago. Your muscles are limp, your breathing is slow, and your eyes are darting behind closed lids like they're watching a private movie. Inside your skull, electrical activity is spiking — nearly as intense as when you were awake and arguing about dinner plans.

This is REM sleep, and it's where most vivid dreams take shape.

What happens during REM sleep

Your brain cycles through sleep stages roughly every 90 minutes. During REM (rapid eye movement), the prefrontal cortex — your logic and decision-making center — dials down. Meanwhile, the amygdala and hippocampus light up, which is why dreams feel emotionally charged and memory-rich but rarely logical.

According to the National Institute of Neurological Disorders and Stroke, adults spend about 20-25% of total sleep time in REM. That percentage increases through the night, meaning your longest and most story-like dreams happen in the hours before waking.

Dreams as memory sorting and emotional reset

So why do we dream? One leading theory explains dreams as a side effect of memory consolidation. During REM, the brain replays fragments of the day's events, strengthens useful connections, and discards irrelevant ones. It's less like watching a movie and more like your brain's filing system running a night shift.

Emotional processing happens alongside this sorting. Stressful experiences get re-examined in a neurochemically safer environment — norepinephrine (the brain's stress chemical) drops during REM. This may be why a bad day often feels more manageable after a full night of sleep.

 

Back of a sleeping person's head with subtle neural glow patterns illustrating brain activity and why do we dream during REM sleep

 

Why Nightmares Happen (and How to Have Fewer)

Nightmares are dreams with the volume turned up on fear, anxiety, or dread. They typically occur during later REM cycles and often jolt you awake, which is why you remember them so clearly.

Stress, late meals, medications, and sleep deprivation

The most common nightmare triggers are surprisingly mundane:

  • Stress and anxiety. Unresolved worry gives the amygdala extra material to work with during REM.
  • Eating late at night. A heavy meal before bed raises metabolism and body temperature, increasing brain activity during sleep.
  • Certain medications. Antidepressants, blood pressure drugs, and even melatonin supplements can alter REM patterns and intensify dreams.
  • Sleep deprivation. When you're short on sleep, your brain compensates with more intense REM periods — a phenomenon called REM rebound. More REM means more vivid, often unsettling dreams.

Small changes that reduce nightmare frequency

You don't need therapy for the occasional bad dream. A few adjustments often help:

  • Stop eating at least 2-3 hours before bed.
  • Wind down with calming audio instead of scrolling through stressful news. Apps like Alarmy include built-in sleep sounds — rain, white noise, crackling fire — that help lower pre-sleep arousal.
  • Maintain a consistent sleep schedule. A solid bedtime routine reduces the sleep deprivation that fuels REM rebound.

If nightmares are frequent and distressing enough to affect your daily life, that's worth discussing with a healthcare provider.

 

Recurring Dreams and What They Signal

About 60-75% of adults report experiencing recurring dreams, according to research published in the journal Consciousness and Cognition. Falling, being chased, arriving late to an important event — the themes are remarkably similar across cultures.

Unresolved stress and pattern-locked worries

Recurring dreams rarely predict the future. They tend to reflect emotional themes your brain hasn't fully processed. A dream about failing an exam years after graduating likely isn't about school — it's about a current situation where you feel unprepared or evaluated.

The more stressed you are about a particular theme, the more your sleeping brain returns to it. Understanding your REM sleep patterns can provide context for when these dreams are most likely to occur.

When the same dream keeps coming back

Some researchers describe recurring dreams as the brain's unfinished business queue. Resolving the underlying emotional trigger — whether it's a conflict at work, financial worry, or a relationship issue — frequently stops the dream from repeating.

Journaling before bed can help. Writing down what's on your mind gives the brain a "processed" signal, reducing the chance it'll loop through the same content during sleep.

 

Lucid Dreaming 101 — Control Without the Hype

Lucid dreaming means becoming aware that you're dreaming while still inside the dream. For some people it happens spontaneously. Others train for it deliberately.

Reality checks and dream journaling

The most accessible lucid dreaming technique starts with two habits:

  • Reality checks during the day. Several times a day, ask yourself whether you're dreaming. Try pushing a finger through your palm or reading text twice (text shifts in dreams). The habit eventually carries into sleep, triggering awareness mid-dream.
  • Dream journaling. Keep a notebook by your bed and write down whatever you remember immediately after waking. This trains your brain to treat dreams as worth remembering, which increases the chance of recognizing one in progress.

Neither technique guarantees results, and the "control your dreams" promises you see online are often exaggerated. Most beginners experience brief moments of lucidity rather than full dream control.

 

Person writing a dream journal in morning sunlight, representing practical tips for why do we dream and managing dream experiences

 

Tracking your REM patterns for better awareness

Since lucid dreams occur during REM sleep, knowing your REM timing helps. Alarmy's Sleep Analysis tracks your sleep stages through the night, showing when REM periods are longest. If you notice your heaviest REM window lands between 5 and 7 AM, setting an intention right before that window — or waking briefly and falling back asleep — increases the odds of a lucid episode.

This isn't guaranteed to work for everyone, but having objective REM data turns lucid dreaming practice from guesswork into something you can actually iterate on.

 

* This article is for informational purposes only and does not replace professional medical advice. Always consult a healthcare provider for health-related decisions.

 

 

Download Alarmy app

Download Alarmy