Nightmares are triggered by a combination of stress, sleep disruption, medications, and how your brain processes emotions during sleep. About 11% of adults report having nightmares at least once or twice a week, and the causes range from everyday anxiety to specific drugs and substances. Understanding what’s behind your nightmares is the first step toward having fewer of them.
What Happens in Your Brain During a Nightmare
Nightmares occur during REM sleep, the stage when your brain is most active and dreams are most vivid. During normal REM sleep, your brain dials down stress-related chemicals while replaying emotional experiences from the day. This process is thought to strip the emotional charge from difficult memories, essentially filing them away with less intensity. It’s like your brain is doing overnight therapy.
When this system fails, nightmares happen. In people with anxiety disorders and chronic stress, those stress chemicals stay elevated during REM sleep instead of dropping. The result is a hyperactive fear center (the amygdala) processing emotional memories at full intensity, producing dreams dominated by threat, aggression, helplessness, and failure. These are the most common nightmare themes across populations.
Stress, Anxiety, and Trauma
Psychological stress is the single most common nightmare trigger. Stressful life events can set off a cycle where the stress produces nightmares, and the nightmares themselves become an additional stressor that fuels daytime anxiety. When nightmares happen frequently, they can generate persistent negative mood that feeds back into more disturbed sleep. It’s a loop that can be surprisingly hard to break without addressing both the stress and the sleep disruption.
Trauma has a particularly strong connection to nightmares. About two-thirds of people with PTSD experience trauma-related nightmares. But the relationship runs in both directions. Military personnel who reported bad dreams before deployment were nearly three times more likely to develop PTSD symptoms afterward. In other words, nightmares aren’t just a reaction to trauma; they can also be a vulnerability factor that makes a person more susceptible to it.
Once nightmares become a pattern, the way you think about them matters. Interpreting nightmares as evidence that you’re a bad person, or as predictions of the future, amplifies their emotional impact and makes the cycle worse. Worry and rumination about nightmares during waking hours is a key factor in whether occasional bad dreams escalate into a chronic problem.
Medications That Cause Nightmares
Several classes of medication can increase nightmare frequency, either while you’re taking them or when you stop. Antidepressants are the most well-documented culprits. SSRIs (like fluoxetine) can increase nightmare recall during treatment. SNRIs (like venlafaxine) are associated with particularly realistic nightmares. Older antidepressants, including tricyclics, can provoke nightmares especially when taken in a single large dose before bed.
The withdrawal effect is just as important as the drug itself. Suddenly stopping many antidepressants triggers a surge of REM sleep (more on that below), which often brings intense, vivid dreaming. This has been consistently documented with tricyclics, older antidepressants like trazodone, and several other classes. Antipsychotic medications, benzodiazepines, and certain sleep aids have also been linked to increased nightmares, either during use or upon discontinuation.
If you suspect a medication is causing your nightmares, that’s worth bringing up with your prescriber. Adjusting the timing, dose, or type of medication can often help.
Alcohol, Substances, and Withdrawal
Alcohol suppresses REM sleep while you’re drinking. When you stop, even after a few days of heavy use, your brain compensates with a flood of REM activity. This “REM rebound” produces unusually long, frequent, and intense dream periods. Because your brain’s emotional processing centers are firing hard during this rebound, the dreams tend to be vivid and disturbing.
The same mechanism applies to other substances that suppress REM sleep, including cannabis and many sedatives. The nightmares aren’t a sign that something is going wrong with withdrawal; they’re a predictable consequence of your brain reclaiming the REM sleep it was missing. The effect is temporary, but it can be severe enough to disrupt recovery if people aren’t expecting it.
Sleep Deprivation and REM Rebound
You don’t need substances to trigger REM rebound. Plain sleep deprivation does it too. When you’ve been short on sleep, your brain prioritizes catching up on REM once you finally get a full night. The longer the deprivation, the more dramatic the rebound. After moderate sleep loss (around 12 to 24 hours), both deep sleep and REM increase. After extended deprivation of several days, the rebound is almost entirely REM, producing some of the most vivid and potentially disturbing dreams people experience.
This is why people sometimes report terrible nightmares after “finally getting a good night’s sleep.” The sleep itself isn’t the problem. Your brain is simply cramming in the dream time it was denied, and the intensity of those compressed REM periods can turn dreams dark. Shift workers, new parents, and anyone with an irregular sleep schedule are especially prone to this pattern.
Nightmares vs. Night Terrors
If you’re waking up screaming or thrashing, you might wonder whether you’re having nightmares or something else entirely. Night terrors (sleep terrors) look dramatic but are fundamentally different from nightmares. Nightmares happen during REM sleep, usually in the second half of the night. You wake up from a nightmare and can typically describe what happened in the dream.
Night terrors happen during deep non-REM sleep, usually in the first few hours after falling asleep. A person experiencing one may sit up, scream, or appear terrified, but they’re not fully awake and are extremely difficult to rouse. Children usually remember nothing the next morning. Adults may recall a fragment of a scene but nothing like a full dream narrative. If your experience involves detailed, story-like dreams you remember clearly upon waking, those are nightmares, not night terrors.
When Nightmares Become a Disorder
Everyone has an occasional nightmare. It crosses into clinical territory, called nightmare disorder, when the pattern starts damaging your waking life. The key markers are: nightmares happening frequently, significant daytime distress like anxiety or fear that persists after waking, difficulty concentrating or being unable to stop replaying nightmare images, fatigue and low energy from disrupted sleep, and developing anxiety specifically around bedtime or going to sleep.
If you’re dreading sleep because of what might happen when you close your eyes, that’s a meaningful threshold. Nightmare disorder is a recognized condition with effective treatments, not just something you have to live with.
How Chronic Nightmares Are Treated
The most effective treatment for chronic nightmares is imagery rehearsal therapy (IRT). The technique is straightforward: you write out the narrative of a recurring nightmare, change something about it (the ending, a detail, the setting), and then spend time each day vividly imagining the new version. Over time, this rewrites the mental script your brain defaults to during sleep.
IRT produces large improvements in nightmare frequency, sleep quality, and PTSD symptoms when nightmares are trauma-related. Those improvements hold up at 6 to 12 month follow-ups, meaning the benefits stick. The therapy works through several pathways: you become desensitized to the nightmare content, you gain a sense of control over the dream, and you give your brain a competing memory to retrieve instead of the original nightmare. Some people see results within a few weeks of consistent practice.
For trauma-related nightmares specifically, treating the underlying PTSD also leads to large reductions in nightmare frequency. The two approaches, treating the nightmares directly and treating the trauma, complement each other.

