The most effective way to get rid of nightmares is a technique called imagery rehearsal therapy, where you rewrite the nightmare’s storyline while you’re awake and mentally rehearse the new version daily. This works for both occasional bad dreams and chronic nightmares tied to trauma or stress. But nightmares often have identifiable triggers, so the fastest path to fewer bad dreams may be addressing the cause directly, whether that’s a medication, alcohol, or unresolved anxiety.
Why Nightmares Happen
Nightmares occur during REM sleep, the dream-heavy stage that concentrates in the second half of the night. That’s why bad dreams tend to hit in the early morning hours rather than right after you fall asleep. Stress, anxiety, and trauma are the most common psychological triggers, but plenty of physical and chemical factors play a role too.
Alcohol is one of the most overlooked causes. When you go to bed with alcohol in your system, your brain suppresses REM sleep early in the night and pushes it into the later hours with extra intensity. This “REM rebound” produces unusually vivid dreams, and for many people, those dreams are disturbing. Heavy or repeated drinking makes this cycle worse, and the vivid dreams can persist for several nights after you stop drinking as your brain readjusts.
Fever, significant life stress, irregular sleep schedules, and sleep deprivation all increase nightmare frequency. So does eating a large meal close to bedtime, which raises your metabolism and brain activity during sleep.
Medications That Cause Nightmares
A surprisingly wide range of medications can trigger nightmares, and the connection isn’t always obvious. In one systematic review, blood pressure medications called beta-blockers accounted for a third of all nightmare reports as a drug side effect in clinical trials. This is counterintuitive because beta-blockers actually reduce REM sleep, yet they still produce vivid, disturbing dreams.
Other common culprits include:
- Antidepressants (SSRIs, SNRIs, and others): These can cause nightmares both while taking them and during withdrawal. They suppress REM sleep, which then rebounds later in the night with more intense dream activity.
- Stimulant medications used for ADHD or Parkinson’s disease.
- Certain antibiotics, which may alter sleep by affecting inflammatory signaling in the brain.
Withdrawal from alcohol, sedatives, or benzodiazepines is another major trigger. These substances suppress REM sleep, so when they’re removed, the brain compensates with a surge of REM activity that brings vivid, often frightening dreams. If your nightmares started around the same time as a new prescription or a change in drinking habits, that’s a strong clue worth discussing with your doctor.
Imagery Rehearsal Therapy
Imagery rehearsal therapy (IRT) is the best-studied treatment for recurring nightmares, and you can practice the core technique on your own. It works in three stages: exposure, rescripting, and rehearsal.
First, write down the nightmare in detail while you’re fully awake. This is the exposure step. Don’t avoid the unpleasant parts. Next, rewrite the dream. Change the storyline, the ending, or any element you want into something neutral or positive. You’re not trying to analyze the dream’s meaning. You’re giving your brain a new script. Finally, spend 10 to 20 minutes each day mentally rehearsing the rewritten version, visualizing it as vividly as you can.
A standard clinical protocol runs about seven sessions with a therapist, but the daily rehearsal at home is what drives the results. Research shows IRT produces large reductions in nightmare frequency, improves overall sleep quality, and reduces PTSD symptoms in people with trauma-related nightmares. Many people notice a change within a few weeks of consistent practice.
Lucid Dreaming as a Technique
Lucid dreaming therapy takes a different approach: instead of rehearsing while awake, you train yourself to recognize that you’re dreaming while the dream is happening. Once you’re aware you’re in a dream, you can alter the scenario in real time, turning a threatening situation into something manageable.
Getting there requires practice. Keeping a dream diary improves dream recall, which is the foundation. Several induction methods exist, from reality-testing habits during the day (asking yourself “Am I dreaming?” at regular intervals) to waking briefly in the middle of the night and returning to sleep with the intention of becoming lucid. Most studies on lucid dreaming therapy have found it effective at reducing nightmare frequency in adults with chronic, recurring nightmares, though it takes more effort to learn than imagery rehearsal.
Sleep Habits That Help
You won’t eliminate nightmares with sleep hygiene alone, but poor sleep habits make them more frequent and more vivid. Sleep deprivation creates the same REM rebound effect as alcohol: when you finally get a full night’s rest, your brain packs in extra REM sleep, often with intense dreams.
A consistent sleep schedule matters more than any single-night trick. Go to bed and wake up at roughly the same time, including weekends. Keep your room cool, since a slightly lower temperature improves sleep quality overall, though there’s no strong evidence that room temperature directly triggers nightmares. Avoid alcohol within a few hours of bedtime. If you use screens late at night, the issue isn’t blue light causing nightmares specifically, but the stimulating content and delayed bedtime contributing to fragmented sleep.
Stress management during the day has a direct effect on dream content at night. Regular exercise, even a daily walk, reduces both anxiety and nightmare frequency. Journaling before bed, particularly writing down worries or unfinished thoughts, can help your brain process stress before sleep rather than during it.
Nightmares vs. Night Terrors
If you’re waking up screaming or thrashing but can’t remember what scared you, you may be experiencing night terrors rather than nightmares. The two are fundamentally different. Nightmares happen during REM sleep in the second half of the night. You wake up, remember the dream vividly, and feel afraid. Night terrors happen earlier in the night during deep non-REM sleep. During an episode, a person may scream, shout, jump out of bed, or move around with their eyes open, but they’re not actually awake and rarely remember anything afterward.
Night terrors in adults can last up to 15 minutes and sometimes happen more than once per night. They require a different treatment approach than nightmares, so distinguishing between the two matters if you’re seeking help.
When Nightmares Become a Disorder
Everyone has a nightmare now and then. It crosses into clinical territory when the nightmares are frequent, cause significant distress or fear of going to sleep, and interfere with your daytime functioning. If you’re avoiding sleep, dreading bedtime, or feeling exhausted because nightmares keep waking you, that pattern has a name and it responds well to treatment.
For trauma-related nightmares, particularly those connected to PTSD, imagery rehearsal therapy combined with broader trauma-focused therapy tends to produce the strongest results. Some clinicians prescribe a blood pressure medication called prazosin off-label for PTSD nightmares, though the evidence for it is mixed. A Veterans Affairs review found insufficient evidence to clearly recommend it, and effective doses vary widely. The therapeutic approaches, especially IRT, have a more consistent track record.
The most important thing to know is that chronic nightmares are not something you just have to live with. They’re a treatable sleep problem, and the most effective treatments don’t require medication at all.

