Guides · Harder nights

Nightmares: why they happen and gentle ways to ease them

A nightmare can follow you into the morning. Here's what's known about why they happen, what can help tonight, and when it's worth asking for support.

By the Pearlet teamUpdated 7 min read

In short

  • Occasional nightmares are a normal part of sleep, especially during stressful times.
  • Stress, trauma, short sleep, alcohol and some medications can make them more frequent.
  • Right after a nightmare, it helps to bring yourself back into the room, slow your breathing and let your body settle.
  • If nightmares come more than once a week or affect your days, talk to a doctor. Effective treatments exist.

You wake with your heart pounding, sure for a moment that it was real. Even once you know it wasn't, the feeling can linger: in your chest, in the corners of the room, sometimes all morning.

Nightmares are common, and an occasional one is part of being human. When they're frequent, though, they deserve to be taken seriously, and there's a lot that can help.

What counts as a nightmare?

In everyday speech, any frightening dream is a nightmare. Sleep medicine is a little stricter: the Sleep Foundation (source: Sleep Foundation, opens in a new tab) describes nightmares as vivid, upsetting dreams that wake you up, often with a racing heart, and that you remember clearly. Disturbing dreams that don't wake you are usually called bad dreams.

Nightmares mostly happen during REM sleep, which is why they tend to come in the second half of the night. They're different from night terrors, which happen in deeper non-REM sleep earlier in the night. Someone having a night terror may look frightened or agitated but stays mostly asleep and usually remembers little; a nightmare wakes you, and stays vivid.

Occasional nightmares are normal. The Sleep Foundation estimates that about 2% to 8% of adults have problems with nightmares, and the American Academy of Sleep Medicine puts nightmare disorder at around 4% of adults (source: Journal of Clinical Sleep Medicine, opens in a new tab). Nightmare disorder means nightmares frequent enough to disturb your sleep, your mood or how you function during the day.

Why do nightmares happen?

There's no single cause, but some things reliably make nightmares more likely. MedlinePlus (source: MedlinePlus Medical Encyclopedia (U.S. National Library of Medicine), opens in a new tab), the National Library of Medicine's health encyclopedia, lists triggers including:

  • a major life event, such as a loss, or more stress than usual at home or work;
  • a new medicine, or stopping certain medicines, such as some sleeping pills;
  • drinking too much alcohol, or stopping suddenly after drinking heavily;
  • illness with a fever;
  • eating just before bed, and some over-the-counter sleep aids.

Short or broken sleep matters too. After a stretch of too little sleep, the body tends to make up for lost REM sleep, which the Sleep Foundation (source: Sleep Foundation, opens in a new tab) notes can bring more vivid dreams and nightmares.

Trauma is a special case. Nightmares are a core symptom of post-traumatic stress, and they're often a replay of the traumatic event, as the National Center for PTSD (source: National Center for PTSD (U.S. Department of Veterans Affairs), opens in a new tab) describes. Repeated nightmares can also go along with sleep apnea, depression or anxiety disorders, which is one more reason frequent nightmares are worth mentioning to a doctor.

Why the brain produces nightmares at all is less clear. One idea is that dreaming helps process emotional experiences (source: Psychological Bulletin, opens in a new tab), and that nightmares are what happens when that process is overwhelmed by fear. It's a theory rather than a settled fact, but many people find it a kinder way to see them: not a malfunction, but a mind working hard on something difficult.

What to do right after a nightmare

  1. 1

    Let the room come back

    Turn on a soft light if you can. Name a few things you can see, hear and touch: the lamp, the traffic outside, the sheet under your hand. It helps your body register that you're awake and safe.

  2. 2

    Slow your breathing

    Breathe in gently through your nose and let each out-breath be a little longer than the in-breath, for a few minutes. Your heart rate usually settles on its own; you don't have to force it.

  3. 3

    Say it plainly

    Out loud or in your head: “That was a dream. I'm in my room, and I'm safe.” Simple words can cut through the fog faster than reasoning with it.

  4. 4

    Decide whether to write it down

    Some people feel better getting a nightmare out of their head and onto paper; others find it keeps the fear alive. Either is fine. If you do write it, add one line about how you'd like it to have ended.

  5. 5

    Don't wrestle with sleep in bed

    If you can't settle, get up and do something quiet in dim light, then go back to bed when you feel sleepy. Cleveland Clinic (source: Cleveland Clinic, opens in a new tab) suggests the same for stress dreams, so your bed doesn't become a place for worrying.

Gentle ways to have fewer nightmares

None of these will stop every bad night, but together they often make nightmares less frequent and less intense.

  • Keep a regular sleep schedule. Steady sleep heads off the catch-up REM sleep that can follow short nights.
  • Give yourself a wind-down. Half an hour without screens, and especially without distressing news or shows, gives your mind a quieter runway into sleep.
  • Go easy on alcohol and caffeine in the evening. Alcohol close to bedtime can cause a rebound of REM sleep in the second half of the night, which the Sleep Foundation (source: Sleep Foundation, opens in a new tab) says may worsen nightmares.
  • Give worries a daytime slot. Writing about what's on your mind for 10 to 15 minutes earlier in the day can keep it from crowding into the night, a tip Cleveland Clinic (source: Cleveland Clinic, opens in a new tab) recommends for stress dreams.
  • Talk about it. Telling someone you trust about a recurring nightmare can take some of its charge away.
  • Check your medicines with your doctor. If nightmares began soon after you started, changed or stopped a medication, say so, but don't stop anything on your own.

Rewriting the dream: imagery rehearsal

The best-studied treatment for recurring nightmares is surprisingly simple in outline. It's called imagery rehearsal therapy, and the American Academy of Sleep Medicine recommends it (source: Journal of Clinical Sleep Medicine, opens in a new tab) both for nightmare disorder and for nightmares linked to PTSD.

The idea is to change the dream while you're awake. You write down the nightmare, then rewrite it into a version that feels less distressing (it doesn't have to be happy, only different), and you rehearse the new version in your imagination for a few minutes each day. In a randomized trial with 168 women with PTSD (source: JAMA, opens in a new tab), three sessions of imagery rehearsal substantially reduced nightmares and improved sleep, and a meta-analysis of psychological treatments (source: Clinical Psychology Review, opens in a new tab) for chronic nightmares found large reductions in how often they happened.

When should you talk to someone about nightmares?

It's worth talking to a doctor or therapist if any of these are true, as both the Sleep Foundation (source: Sleep Foundation, opens in a new tab) and MedlinePlus (source: MedlinePlus Medical Encyclopedia (U.S. National Library of Medicine), opens in a new tab) advise:

  • you have nightmares more than once a week;
  • they're affecting your sleep, your mood or your daily life;
  • you've started avoiding sleep because you're afraid of dreaming;
  • they began around the time you started a new medication;
  • they replay something traumatic that happened to you.

Nightmare disorder is treatable. Beyond imagery rehearsal, options include other forms of talk therapy and, for some people, medication. Treating an underlying problem such as insomnia or sleep apnea can help too: the National Center for PTSD (source: National Center for PTSD (U.S. Department of Veterans Affairs), opens in a new tab) notes that cognitive behavioral therapy for insomnia also reduces nightmares. If you're not sure where to start, your doctor is a good first step, and the National Institute of Mental Health (source: National Institute of Mental Health (NIH), opens in a new tab) has guidance on finding care.

Questions people ask

Are nightmares normal?

Occasional nightmares are a normal part of sleep, especially during stressful periods. They become something to address when they're frequent, when they disturb your sleep or mood, or when they're tied to a traumatic experience.

Why do I get nightmares when I'm stressed?

Stress is one of the most common triggers. Dreams tend to draw on what's weighing on us, and stress can also disrupt sleep in ways that make vivid, unsettling dreams more likely. Easing daytime stress, even a little, often helps the nights too.

Can medications cause nightmares?

Some can, and stopping certain medications can too. If your nightmares began around a change in medication, talk to your doctor or pharmacist rather than stopping anything on your own.

What's the difference between a nightmare and a night terror?

A nightmare is a frightening dream that wakes you, usually in the second half of the night, and you tend to remember it clearly. A night terror happens in deeper sleep earlier in the night: the person may seem frightened or agitated but stays mostly asleep and usually remembers little or nothing.

Should I write down my nightmares?

It depends on you. Some people find that writing a nightmare down makes it less powerful, especially if they add a different ending. Others find it keeps the fear fresh. If writing makes things worse, it's fine to stop.

Do nightmares mean something bad is going to happen?

No. Dreams don't predict the future. Nightmares tend to reflect fears and stresses you're already carrying, not events to come.

When you're ready

Some people find a hard dream easier to look at once it's written down and read back gently. Your dreams stay private, and readings are careful, never alarming. If a dream feels like too much to sit with alone, reach out to someone you trust first.

Read my dreamFree. No account needed.

Symbols in this guide

Keep reading

Sources

We draw on published sleep and dream research and on established health organizations, and we say where the evidence is thin. This guide is for reflection and general information, not medical or psychological advice.

  1. 1.Why we have nightmares (and how to prevent them). Sleep Foundation.
  2. 2.Morgenthaler TI, et al. Position paper for the treatment of nightmare disorder in adults: an American Academy of Sleep Medicine position paper. Journal of Clinical Sleep Medicine, 2018.
  3. 3.Nightmares. MedlinePlus Medical Encyclopedia (U.S. National Library of Medicine).
  4. 4.Sleep problems and PTSD. National Center for PTSD (U.S. Department of Veterans Affairs).
  5. 5.Walker MP, van der Helm E. Overnight therapy? The role of sleep in emotional brain processing. Psychological Bulletin, 2009.
  6. 6.Anxiety dreams: why we have them and how to stop them. Cleveland Clinic, 2025.
  7. 7.Krakow B, et al. Imagery rehearsal therapy for chronic nightmares in sexual assault survivors with posttraumatic stress disorder: a randomized controlled trial. JAMA, 2001.
  8. 8.Hansen K, et al. Efficacy of psychological interventions aiming to reduce chronic nightmares: a meta-analysis. Clinical Psychology Review, 2013.
  9. 9.Help for mental illnesses. National Institute of Mental Health (NIH).
  10. 10.988 Suicide & Crisis Lifeline. 988 Lifeline.
  11. 11.Find a helpline. Find A Helpline.