What Is a Nightmare? Causes, Brain Science, and More

A nightmare is a vivid, disturbing dream that wakes you up and leaves you feeling afraid, anxious, or upset. Unlike a vague bad dream that fades by morning, nightmares are extended, intensely negative, and well-remembered. You wake up quickly alert and oriented, but the emotional residue can linger for minutes or longer. Most adults experience nightmares occasionally, but about 11% of people report having them at least once a week.

What Happens in Your Brain During a Nightmare

Nightmares occur primarily during REM sleep, the stage when most vivid dreaming takes place. During REM, the brain’s emotional centers become highly active, particularly the amygdala (which processes fear and threat) and the hippocampus (involved in memory). At the same time, the prefrontal cortex, the part of the brain responsible for rational thought and decision-making, is relatively quiet. This imbalance creates a perfect storm: your brain generates emotionally charged scenarios while the part that would normally say “this isn’t real” is essentially offline.

Because REM periods grow longer as the night progresses, nightmares tend to happen in the second half of your sleep. This is why you’re more likely to wake from a nightmare in the early morning hours rather than right after falling asleep.

Nightmares vs. Night Terrors

People often confuse nightmares with night terrors, but they’re fundamentally different events happening in different stages of sleep. Nightmares occur during REM sleep, typically later in the night. You wake up fully, remember the dream clearly, and can describe what happened. Night terrors happen during deep non-REM sleep, usually in the first few hours after falling asleep. A person experiencing a night terror may scream, thrash, kick, or even get out of bed and run around, but they remain asleep through the episode.

The most telling difference is recall. After a nightmare, the dream sticks with you. After a night terror, children almost never remember anything the next morning, and adults recall only fragments at best. Night terrors also involve much more physical activity, sometimes including aggressive behavior if someone tries to restrain the person. Nightmares, by contrast, happen while your body is largely paralyzed by the normal muscle inhibition of REM sleep.

Who Gets Nightmares and How Often

Nightmares are nearly universal in childhood, with prevalence peaking between ages 10 and 14 before declining into adulthood. A large international study across 16 countries found that 11% of adults reported weekly or more frequent nightmares in 2021, up from about 7% in 2019. That jump may reflect the psychological toll of the pandemic years, though nightmare frequency fluctuates with stress levels in general.

Genetics plays a meaningful role. A nationwide twin study found that genetic factors account for roughly 44-45% of the variation in childhood nightmare frequency, and 36-38% in adults. If your parents had frequent nightmares, you’re more likely to as well, independent of your stress levels or sleep habits.

Common Causes and Triggers

Stress and anxiety are the most reliable nightmare triggers. Major life changes, ongoing worry, and traumatic experiences all increase nightmare frequency. People with PTSD are especially prone to recurrent nightmares, which often replay elements of the traumatic event itself rather than producing the surreal, symbolic imagery of typical bad dreams.

Sleep deprivation can paradoxically fuel nightmares. When you’re sleep-deprived, your brain compensates with more intense REM sleep once you finally rest, a phenomenon called REM rebound. This concentrated burst of REM activity increases both the vividness and emotional intensity of dreams.

Several types of medications can trigger nightmares or make them worse. Certain antidepressants, particularly SSRIs like fluoxetine, are associated with increased nightmare recall. Some other antidepressants can produce especially realistic nightmares. Perhaps more commonly, abruptly stopping certain medications (rather than tapering off) can cause a rebound effect that floods your sleep with vivid, disturbing dreams. This withdrawal-related nightmare surge has been documented across multiple classes of antidepressants and sleep aids.

Other common triggers include eating late at night (which raises your metabolism and brain activity during sleep), alcohol consumption, and fever.

When Nightmares Become a Disorder

Occasional nightmares are normal. Nightmare disorder is something different. The diagnostic criteria require repeated, extended nightmares that you remember well, along with significant distress or impairment in your daily life. You might dread going to sleep, struggle to function at work, or develop anxiety that bleeds into your waking hours. The nightmares can’t be explained by medication side effects or another condition alone.

There’s no strict frequency cutoff for diagnosis, though a generally accepted threshold is at least one nightmare per month. What matters more than frequency is the impact: a person who has nightmares twice a month but develops severe sleep anxiety and daytime fatigue may meet the criteria, while someone who shrugs off a weekly bad dream may not.

How Frequent Nightmares Are Treated

The most effective treatment for chronic nightmares is a technique called Imagery Rehearsal Therapy (IRT). The concept is straightforward: while awake, you write down a recurring nightmare, then deliberately change the storyline to something less threatening or even neutral. You then mentally rehearse this new version of the dream daily. Over time, this practice rewires the dream pattern itself.

A meta-analysis of IRT studies found it produced large improvements in nightmare frequency, sleep quality, and PTSD symptoms. The effects held up at follow-up assessments 6 to 12 months later. Some versions of the therapy include an exposure component, where you write out and read aloud the original nightmare before rewriting it, which can be particularly effective for trauma-related nightmares.

IRT is often combined with broader sleep improvement strategies: maintaining a consistent sleep schedule, reducing caffeine and alcohol, and addressing any underlying anxiety or depression. For many people, the nightmares themselves become less distressing once they feel they have a tool to manage them, which breaks the cycle of sleep anxiety that often makes the problem worse.