What happens in your brain when you have a nightmare?

Updated

During a nightmare, the brainstem triggers REM sleep, the amygdala fires intense fear, the hippocampus weaves memories into the narrative, the visual cortex creates vivid imagery, while the prefrontal cortex is underactive so you can't reality-check.

Brainstem, Amygdala, Hippocampus, Visual Cortex, Prefrontal Cortex lit up on the Brain Atlas 3D brain: what happens in your brain when you have a nightmare
Figure. The brain regions that light up when you have a nightmare, in order: Brainstem (rem launch), then Amygdala (fear surge), then Hippocampus (memory weave), then Visual Cortex (vivid imagery), then Prefrontal Cortex (lost oversight).

Watch it light up on the 3D brain

Brain regions that light up

OrderRegionWhat it does here
1BrainstemThe brainstem triggers REM sleep, generating the vivid dream state.
2AmygdalaThe amygdala fires intensely, producing the terror that defines a nightmare.
3HippocampusThe hippocampus reactivates memories, weaving them into the dream's scary narrative.
4Visual CortexThe visual cortex constructs the frightening images you see in the nightmare.
5Prefrontal CortexThe prefrontal cortex is underactive, so you can't realize it's just a dream.

1. Brainstem: rem launch

Step 1 of what happens in your brain when you have a nightmare: Brainstem lit on the Brain Atlas 3D brain
Figure 1. Brainstem, rem launch: The brainstem triggers REM sleep, generating the vivid dream state.

During REM sleep, brainstem nuclei such as the pedunculopontine and laterodorsal tegmental nuclei become active, causing cortical arousal and rapid eye movements. This state is permissive for dreaming, including nightmares. The brainstem also inhibits spinal motor neurons, preventing you from acting out the dream.

2. Amygdala: fear surge

Step 2 of what happens in your brain when you have a nightmare: Brainstem, Amygdala lit on the Brain Atlas 3D brain
Figure 2. Amygdala, fear surge: The amygdala fires intensely, producing the terror that defines a nightmare.

The amygdala is hyperactive during nightmares, responding as if to a real threat. It processes fear and emotional salience, and its output to the hypothalamus and brainstem triggers a stress response, even though the threat is imaginary. This activity is thought to be even stronger in people with frequent nightmares.

3. Hippocampus: memory weave

Step 3 of what happens in your brain when you have a nightmare: Brainstem, Amygdala, Hippocampus lit on the Brain Atlas 3D brain
Figure 3. Hippocampus, memory weave: The hippocampus reactivates memories, weaving them into the dream's scary narrative.

The hippocampus retrieves and integrates memory fragments, especially emotionally charged ones, into a coherent story. During sleep, it replays experiences for consolidation, but in nightmares this process may go awry, mixing fearful memories into the dream plot. This can make the nightmare feel disturbingly personal.

4. Visual Cortex: vivid imagery

Step 4 of what happens in your brain when you have a nightmare: Brainstem, Amygdala, Hippocampus, Visual Cortex lit on the Brain Atlas 3D brain
Figure 4. Visual Cortex, vivid imagery: The visual cortex constructs the frightening images you see in the nightmare.

Even without external visual input, the visual cortex is active during REM sleep, generating internal imagery. In nightmares, this activity can be especially intense, producing detailed and horrifying scenes. The visual cortex is driven by feedback from the limbic system, giving the dream its cinematic quality.

5. Prefrontal Cortex: lost oversight

Step 5 of what happens in your brain when you have a nightmare: Brainstem, Amygdala, Hippocampus, Visual Cortex, Prefrontal Cortex lit on the Brain Atlas 3D brain
Figure 5. Prefrontal Cortex, lost oversight: The prefrontal cortex is underactive, so you can't realize it's just a dream.

The dorsolateral prefrontal cortex, critical for logic and reality testing, shows reduced activity during REM sleep. This makes it hard to question the bizarre events of a nightmare. Without this top-down control, the amygdala's fear response goes unchecked, sustaining the nightmare until you wake up.

Good to know

  • Nightmares occur almost exclusively during REM sleep, which is characterized by rapid eye movements and muscle atonia.
  • Children experience more nightmares than adults, possibly due to higher emotional reactivity in the developing amygdala.
  • The amygdala is highly active during REM sleep, which may explain why dreams are often emotionally intense.

Nightmare vs normal dream

In a normal dream, the amygdala is less active, allowing pleasant or neutral content. During a nightmare, amygdala activity spikes and prefrontal control is weaker, so fear dominates. Both occur in REM sleep, but the emotional intensity and lack of insight distinguish them.

Test yourself

  1. Which brain region is primarily responsible for generating the fear in a nightmare?

  2. Why can't you usually realize you're dreaming during a nightmare?

  3. During which sleep stage do most nightmares occur?

0 of 3 answered · 0 correct

Simplified: many regions work together at once, and this shows the main players in the order they act.