Sleep Disorders: Causes of Nightmares

Most people have nightmares from time to time.

What Are Nightmares?

Nightmares are dreams that may be upsetting, scary, or strange. They happen during REM sleep, also called rapid eye movement sleep. That's the stage when your brain is working hard, almost as hard as when you're awake. Nightmares are different from bad dreams, though. Nightmares will always wake you up during the night, but you'll sleep through a bad dream. It's normal to have nightmares from time to time.

Scientists don't exactly know what causes dreams, including bad dreams and nightmares.

What Causes Them?

Dreams -- including bad dreams and nightmares -- are still mysterious to scientists. Although we don't know what causes them, we do know about plenty of things that can make nightmares more likely.

Daily stresses of life and bigger life events can trigger nightmares.

Anxiety or Stress

Sometimes, the daily stresses of life can bring nightmares. Worrying about school or work can make you more likely to have one. Bigger events and life changes, like moving or losing a loved one, can bring nightmares, too.

Traumatic experiences may trigger nightmares.

Trauma and PTSD

It's not uncommon to have nightmares after something traumatic, like physical abuse, sexual abuse, or an accident. For people with posttraumatic stress disorder (PTSD), nightmares are common. If you have PTSD, you might have ones that are intense and happen often. Those nightmares can also make your PTSD worse.

Mental health conditions are often associated with nightmares.

Mental Health Conditions

If you're dealing with things like bipolar disorder, depression, general anxiety disorder, or schizophrenia, you're more likely to have nightmares. Your doctor might suggest things like stress-easing techniques or different types of therapy that can help keep your nightmares to a minimum.

Taking certain medications may make you more likely to have nightmares.


Some medicines can make nightmares more likely. These include drugs like:

  • Antidepressants
  • Antimicrobials
  • Beta-blockers
  • Blood pressure medicine
  • Drugs for Parkinson's disease
  • Drugs to help you stop smoking
  • Stimulants like amphetamine and methylphenidate (like those used to treat ADHD and narcolepsy)

If you think that meds cause your nightmares, talk with your doctor. They may be able to change the medicine or the dose that you take.

Alcohol and drug use may be associated with nightmares.

Substance Misuse and Withdrawal

If you misuse alcohol or drugs, you might find that you have more nightmares. Withdrawal from alcohol or drugs can also make them more likely. For example, opioid drugs affect parts of your body that regulate sleep. You might have heavy sleep, but you could also go back and forth between the stages of sleep much quicker. That can bring the nightmares. When you go through withdrawal and your patterns adjust again, the nightmares can persist.

Lack of sleep or having an irregular sleep schedule may trigger migraines.

Not Sleeping Enough

A lack of quality sleep could trigger a nightmare. A common cause of dips in restful sleep is a change in your schedule. For example, if you wake up or go to bed at times that are unusual for you, or if you have a hard time staying asleep. Insomnia also is a common cause of nightmares.

Eating before bed may speed up your metabolism, make your brain more active, and may trigger nightmares.

Eating Right Before Bed

A pre-bedtime meal or snack can speed up your metabolism, which can make your brain more active. If you find that you're having more nightmares, try to avoid those after-dinner indulgences.

Sleep apnea can make nightmares more likely.

Sleep Apnea

This is when you briefly stop breathing during your sleep. Although doctors aren't sure why, there is a belief that sleep apnea can make nightmares more likely. Some researchers think that the stress that can come with the condition causes them. Some research suggests CPAP therapy can lower your odds of having nightmares. In one study, 91% of participants said their nightmares went away once they had it.

Reading scary books and watching horror movies at night may trigger nightmares.

Scary Books and Movies

Sometimes, reading a scary book or watching a horror movie can cause nightmares, especially if you do them right before bed. Video games and TV shows that scare you can also make you more likely to have one. If you notice that you usually have nightmares after you read or watch something frightening, avoid those activities right before you go to sleep.

You can make lifestyle adjustments to reduce the chances of getting nightmares.

What You Can Do

Nightmares happen sometimes, but there are strategies that can cut your chances of having one. Try to:

  • Stick to a sleep schedule and get enough rest at night
  • Cut out alcohol, caffeine, and cigarettes
  • Work out earlier in the day
  • Relax before you fall asleep
  • Steer clear of frightening movies, video games, TV shows, and books

If these tips don't work, visit your doctor. They may be able to help you find another cause of your nightmares.

See your doctor if you have frequent nightmares or nightmares that affect your mood, sleep, or daily activities.

When to See a Doctor

It's normal to have a nightmare from time to time. But you should see your doctor if your nightmares:

  • Disrupt your sleep
  • Happen more than once a week
  • Affect your mood or activities
  • Make you scared to go to sleep
  • Make it harder for you to do daily tasks
  • Began at the same time that you started a new medication


  1. urbazon / Getty Images
  2. Phanie / BURGER / Medical Images
  3. AJPhoto / Science Source
  4. diane39 / Getty Images
  5. Jonah_M / Getty Images
  6. gmnicholas / Getty Images
  7. Westend61 / Getty Images
  8. vladans / Getty Images
  9. KatarzynaBialasiewicz / Getty Images
  10. nicolesy / Thinkstock
  11. Tero Vesalainen / Getty Images
  12. DragonImages / Getty Images
  13. FatCamera / Getty Images


  • The Sleep Foundation: "Nightmares," "Sleep Paralysis."
  • Sleep: "Five surprising reasons for your dark dreams."
  • Mayo Clinic: "Nightmare disorder: Symptoms & causes."
  • Sleep Medicine: "Clinical and polysomnographic characteristics and response to continuous positive airway pressure therapy in obstructive sleep apnea patients with nightmares."
  • Frontiers in Neurology: "Dreams and Nightmares in Patients With Obstructive Sleep Apnea: A Review."
  • TeensHealth: "How Can I Stop My Nightmares?"
  • National Institute on Drug Abuse: "Connections Between Sleep and Substance Use Disorders."
  • Alcohol and Drug Foundation: "Amphetamines."
  • MedlinePlus: "Methylphenidate."
  • UpToDate: "Nightmares and nightmare disorder in adults."
WebMD does not provide medical advice, diagnosis or treatment. See additional information