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 well-remembered, often detailed, and can linger emotionally long after you open your eyes. Most people experience them occasionally, but about 5% of adults have them at least once a week, and they can become a clinical problem when they disrupt sleep and daily life.
What Happens in Your Brain During a Nightmare
Nightmares occur during REM sleep, the sleep stage most associated with vivid dreaming. They typically happen in the second half of the night, when REM periods grow longer and more intense. This is why you’re more likely to wake from a nightmare in the early morning hours rather than right after falling asleep.
During REM sleep, the brain’s emotional centers are highly active. In normal dreaming, the front of the brain helps regulate fear signals coming from deeper emotional regions. Think of it as a built-in volume knob for fear: the front of the brain turns it down so your dreams process emotions without overwhelming you. In people who have frequent nightmares, this regulation appears to break down. Brain imaging research shows that people with severe nightmares have reduced activity in frontal brain regions, not just during sleep but also while awake. The fear centers essentially run unchecked, producing dreams that are intensely threatening and emotionally charged.
Why Nightmares Happen
There’s no single cause. Nightmares sit at the intersection of stress, biology, mental health, and sometimes medication. The most common triggers include:
- Stress and anxiety. Day-to-day pressures, major life changes, or ongoing worry are the most frequent drivers of occasional nightmares.
- Trauma and PTSD. Up to 71% of people diagnosed with PTSD have frequent nightmares. These nightmares aren’t limited to one type of trauma, though they’re especially common among combat veterans and survivors of sexual assault. Notably, people who had frequent nightmares before a traumatic event are more likely to develop PTSD afterward, suggesting a bidirectional relationship.
- Medications. Sleep aids, beta-blockers (often prescribed for blood pressure), amphetamines, and drugs that stimulate dopamine receptors are the medication classes most reliably linked to nightmares. Each has a plausible biological mechanism for disrupting normal dream patterns.
- Sleep deprivation. Missing sleep causes your brain to spend more time in REM when you finally do sleep, a phenomenon called REM rebound. More REM means more opportunity for intense dreams.
Nightmares vs. Night Terrors
These two are often confused, but they’re fundamentally different events. A nightmare happens during REM sleep in the second half of the night. You wake up, quickly become alert, and remember the dream clearly. A night terror happens earlier in the night during deep non-REM sleep. During a night terror, a person may scream, thrash, sit up with a look of panic, sweat heavily, and have a racing pulse, all while remaining partially asleep. They’re difficult to wake and usually have no memory of the episode the next morning.
The key distinction: nightmare sufferers wake up and know what scared them. People experiencing night terrors don’t fully wake up and typically can’t recall what happened. Night terrors are far more common in children, while nightmares affect all ages.
When Nightmares Become a Disorder
Occasional nightmares are normal. Nightmare disorder is a clinical diagnosis that applies when the pattern becomes persistent and damaging. The diagnostic criteria require repeated, extended nightmares that are well-remembered, rapid alertness upon waking (ruling out the confusion of night terrors), and meaningful impairment in daily life, whether that’s exhaustion at work, dread of going to sleep, or emotional distress that carries into the day. The symptoms also can’t be fully explained by medication use or another mental health condition.
Nightmare disorder affects roughly 2% to 5% of the general population. Among people receiving psychiatric care, the rate jumps to about 30%. It’s not simply “having bad dreams a lot.” The disorder is defined by the downstream effects: fragmented sleep, daytime fatigue, anxiety about sleeping, and in some cases, measurable health consequences. Research on military veterans found that frequent, severe nightmares were associated with higher rates of high blood pressure and heart problems, even after accounting for PTSD. People with severe nightmares were roughly 40% to 60% more likely to have cardiovascular issues, suggesting nightmares may be an independent risk factor for heart disease through chronic sleep disruption and repeated stress activation.
The Evolutionary Perspective
One leading theory proposes that nightmares aren’t a malfunction but an ancient defense mechanism. The threat simulation theory holds that dreaming evolved to rehearse dangerous scenarios. By simulating threats during sleep, the brain practices the cognitive skills needed for recognizing and avoiding danger, skills that would have improved survival during human evolution. Under this framework, nightmares are essentially the system working in overdrive, running threat drills that are too vivid or too frequent to serve a useful purpose. Studies of children who have experienced trauma show heightened threat simulation in their dreams, consistent with the theory’s predictions.
How Chronic Nightmares Are Treated
The most effective treatment for recurring nightmares is a technique called imagery rehearsal therapy. The concept is straightforward: while awake, you write down a recurring nightmare, then deliberately change the storyline to something less threatening. You then rehearse the new version in your mind for 10 to 20 minutes a day. Over time, this retrains the brain’s dream patterns.
A meta-analysis of imagery rehearsal studies found large improvements in nightmare frequency, sleep quality, and PTSD symptoms. These gains held up at follow-ups six to twelve months later, with PTSD symptom improvement actually increasing over time. The therapy works through several overlapping mechanisms: repeated mental exposure reduces the emotional charge of the nightmare (habituation), rewriting the narrative gives a sense of control (mastery), and the process helps the brain reframe the threatening content (cognitive reappraisal). For many people, nightmares that persisted for years after trauma responded to just a few sessions.
Some people with PTSD find that trauma-focused therapy resolves their other symptoms but the nightmares persist. This is common enough that clinicians now recognize nightmares may need to be addressed as a separate treatment target rather than assumed to resolve on their own.

