Skip to content
Sleep Science

What Causes Nightmares and How to Have Fewer of Them

July 9, 2026 · 7 min read
What Causes Nightmares and How to Have Fewer of Them

You wake up at 3 a.m., heart pounding, from a dream that felt entirely real. Nightmares can shake even the calmest sleeper. The good news is that sleep scientists have a fairly clear picture of why they happen, and a gentle, well-tested method for having fewer of them.

What a Nightmare Actually Is

A nightmare is more than an unpleasant dream. Clinicians describe it as a vivid, disturbing dream that usually involves a threat to safety or survival, one intense enough to jolt you awake with fear, sadness, or dread still clinging to you. Most nightmares surface during REM sleep, the stage of the night when the brain is most active and dreaming is most vivid, and they tend to cluster in the final hours before you wake, when REM periods grow longer.

Occasional nightmares are simply part of being human. Research suggests that somewhere between roughly 3 and 10 percent of adults have at least one nightmare a week, and nearly everyone has one now and then after a stressful day or a late-night scary movie. It only becomes something worth addressing directly when bad dreams show up often enough, or feel intense enough, to leave you dreading sleep itself. Sleep specialists call that pattern nightmare disorder, and it is recognized as a treatable condition rather than something you simply have to endure.

One detail researchers find interesting is how differently nightmares behave depending on their root. Everyday nightmares, the kind tied to a stressful week or an unfamiliar bed, tend to be fragmented and rarely repeat in exact detail. Nightmares connected to trauma behave differently. They can occur in any stage of sleep, not only REM, and often replay a frightening event with unsettling precision, almost like a memory intruding on rest rather than a story the mind invented.

Stress and Trauma: The Most Studied Triggers

Stress is the trigger most consistently linked to bad dreams. Sleep researchers note that nightmares are more common during periods of stress, and that sad, frightening, or worrisome situations can provoke them even in people who rarely have bad dreams otherwise. A demanding week at work, a family conflict, or simply an overloaded mind at bedtime can all show up, sometimes literally and sometimes in a disguised, symbolic form, in the dreams that follow.

Trauma sits at the more intense end of this same spectrum. After a frightening or life-threatening event, the body's fight-flight-freeze response can stay switched on well past the danger itself, keeping the nervous system on alert even during sleep. This lingering hyperarousal is thought to feed the kind of repetitive, vivid nightmares seen after accidents, violence, or disasters. For most people who go through a hard experience, these nightmares tend to ease within a few weeks or months as the nervous system settles.

Post-traumatic stress disorder represents the most studied nightmare connection of all. Nightmares are so tightly bound to PTSD that they are one of the diagnostic criteria for the condition, and research estimates suggest that frequent nightmares affect a large share of people living with PTSD. Harvard dream researcher Deirdre Barrett has described these trauma-linked nightmares as functioning almost like flashbacks that occur during sleep, since they can appear across every stage of the night rather than clustering in REM alone.

It helps to remember that not everyone who lives through something frightening develops PTSD or lasting nightmares. Most people's nervous systems recover their footing over time. When nightmares linger well beyond that window, or when they arrive alongside other symptoms like avoidance or a jumpy startle response, it is a sign worth mentioning to a doctor or therapist, not a personal failing.

Other Everyday Causes: Medications, Alcohol, and Sleep Habits

Beyond stress and trauma, a surprising number of nightmares trace back to substances and daily habits rather than deep psychological causes. Certain medications are known to increase nightmare frequency, particularly ones that act on brain chemicals like serotonin, dopamine, norepinephrine, or GABA. This includes some antidepressants, blood pressure medications, and drugs used for Parkinson's disease. Anyone who notices a clear change in dream intensity after starting a new prescription can reasonably bring it up with the prescribing doctor rather than assuming it has to be permanent.

Alcohol deserves its own mention because its effect on dreams is almost the opposite of what people expect. A drink before bed can help you fall asleep faster, but as the body metabolizes it overnight, sleep becomes fragmented and REM sleep rebounds harder in the second half of the night, which is associated with more vivid, unsettling dreams. The same rebound effect happens after any stretch of sleep deprivation or a disrupted schedule, which is part of why an irregular bedtime tends to invite more intense dreaming once sleep finally arrives.

Sleep disorders themselves can also be at the root of frequent nightmares. Conditions such as obstructive sleep apnea and restless legs syndrome fragment sleep and pull people out of restorative deep sleep, which appears to make disturbing dreams more likely. Mental health conditions including anxiety disorders, depression, and borderline personality disorder are also linked to a higher rate of nightmares, likely because they share the same underlying threads of heightened arousal and emotional processing that stress and trauma involve.

Even ordinary daily content can seep in. Scary movies, unsettling news, an argument left unresolved, or simply an overstimulated mind at bedtime can all resurface in dream form. This is sometimes called the continuity principle: dreams tend to weave in fragments of whatever the mind was processing while awake, which is one reason nightmares often ease once the underlying stressor in daily life gets some attention.

Everyday Habits That Help Reduce Nightmares

Sleep hygiene sounds like a small thing, but it has a real, measurable effect on nightmare frequency. Going to bed and waking at roughly the same time each day helps keep sleep stable and prevents the kind of sleep deprivation that leads to REM rebound and more vivid, unsettling dreams. A cool, dark, quiet bedroom, free of glowing screens and clocks, also supports the deeper, steadier sleep that tends to produce calmer dreams.

Cutting back on alcohol and caffeine in the evening is one of the more evidence-backed changes available. Because alcohol disrupts the normal architecture of sleep and triggers a REM rebound later in the night, avoiding it for a few hours before bed can noticeably calm dream intensity for people prone to bad dreams. The same logic applies to heavy or spicy meals late at night and to any stimulant that keeps the mind wired past the point of relaxation.

Winding down deliberately matters just as much as what you avoid. Simple relaxation practices, like slow breathing, gentle stretching, a warm bath, or a few minutes of journaling about the day's stress, give the nervous system a chance to downshift before sleep rather than carrying tension straight into it. Many sleep specialists describe this as addressing the stress that feeds nightmares at its source, rather than only treating the dream itself.

For nightmares that seem tied to a specific worry, some people find it useful to write the dream down in the morning and set it aside, almost like closing a folder, rather than replaying it mentally throughout the day. This does not erase the memory, but it can reduce how much power the image holds once daylight returns, which for many people is enough to lower how often that particular dream repeats.

Imagery Rehearsal Therapy: Rewriting the Dream While Awake

When nightmares are frequent enough to disrupt daily life, sleep specialists most often recommend imagery rehearsal therapy, known as IRT. Developed by psychiatrist Isaac Marks in the late 1970s, it remains the most frequently recommended technique for chronic nightmares and carries the strongest research support of any nightmare-specific treatment available today.

The method itself is refreshingly simple to describe, even though it takes patience to practice. You choose one recurring nightmare, ideally starting with a less intense one, and write it down while fully awake. Then you rewrite the ending into something less threatening, changing the story however feels right, whether that means the danger disappears, an ally shows up, or the scene shifts into something neutral entirely. From there, you mentally rehearse this new version for around ten to twenty minutes a day, treating it almost like a short daily meditation.

The idea is not to force yourself to have that exact new dream, but to give your sleeping mind a rehearsed, calmer alternative to draw on. Studies following people through this process have found reductions in nightmare frequency and distress that last for months, and in some cases the improvement in general sleep quality shows up even before the specific nightmare itself fades. It typically takes just a handful of sessions to learn, and many people continue the practice on their own once a therapist has walked them through the first round.

IRT tends to work well whether the nightmare traces back to trauma or has no clear origin at all, and research has found it helpful across a range of situations, including for people also dealing with depression or anxiety. It is not a cure-all, and a portion of people need a different approach or additional support. But for many, the simple act of consciously rewriting the ending gives the mind permission to stop rehearsing the frightening version night after night.

When to Talk to a Professional

Most nightmares fade on their own or respond well to the habit changes above. It is reasonable to seek professional support when nightmares happen several times a week, when they leave you afraid to fall asleep, or when they are clearly tied to a traumatic event that keeps replaying in close detail. A doctor can also check whether an underlying condition such as sleep apnea or a medication side effect might be contributing, since both are treatable once identified.

Therapists trained in nightmare-focused treatment can guide you through imagery rehearsal therapy, cognitive behavioral therapy for insomnia, or trauma-focused approaches if PTSD is part of the picture. None of this requires assuming something is deeply wrong. Frequent nightmares are simply the nervous system's way of signaling that something, whether stress, an old memory, or a disrupted sleep pattern, still needs attention, and there is real, gentle help available once you decide to ask for it.

Share:

See also in the dictionary

Frequently asked questions

What is the number one cause of nightmares?

Stress is the most consistently reported trigger, though trauma, certain medications, alcohol, irregular sleep, and some mental health or sleep conditions all play a well-documented role too.

Can alcohol really cause nightmares?

Yes. Alcohol helps you fall asleep initially, but as your body processes it overnight, it triggers a REM rebound in the second half of the night that is linked to more vivid, unsettling dreams.

How does imagery rehearsal therapy work?

You recall a nightmare while awake, rewrite its ending into something less frightening, and mentally rehearse that new version for about ten to twenty minutes a day, which research shows can reduce how often the original nightmare returns.

When should I worry about frequent nightmares?

If nightmares happen several times a week, disrupt your sleep or daytime mood, or feel connected to a traumatic event, it is worth talking with a doctor or therapist, since effective treatments exist.

Do nightmares mean something is wrong with me?

Not necessarily. Occasional nightmares are a normal part of sleep and often simply reflect stress or daily worries working themselves out; frequent ones are treatable rather than a sign of a permanent problem.

Sources

Read next