Somniscient
An empty bed and a lit lamp stand in a dark forest of twisted trees under a clouded moon

Why do I have nightmares? The fear your sleep failed to defuse

Somniscient

On the fear-extinction model of nightmares, you have them because dreaming is where the sleeping brain takes the fear out of memories, and under heavy stress that work fails. Nightmares are common, and the American Academy of Sleep Medicine says that in most cases they need no treatment. When they become a problem, a short exercise done while awake is the one treatment the academy recommends.

In the academy's description, a nightmare is a disturbing dream that wakes you. Unlike someone in a night terror, you wake completely, know at once where you are and remember the dream vividly. Nightmares are most likely in the last third of the night, when REM (rapid-eye-movement) sleep, the stage they tend to come from, runs longest. After the 1989 Loma Prieta earthquake, Wood's team compared 92 students in the San Francisco Bay area with 97 in Tucson, Arizona: over three weeks, about 40% of the Bay-area students had at least one nightmare about an earthquake, against 5% in Arizona. The fear of the day came back at night, and in some people it keeps coming back long after the day is over.

Tell us what happened and get a personalized interpretation of your own dream.

Free · no account · 30 s

Why does the brain make nightmares?

On a 2007 model, the dreaming brain tries to defuse frightening memories and, under strain, strengthens them instead. Tore Nielsen in Montreal and Ross Levin in New York proposed that nightmares reflect problems with the fear-extinction function of dreaming, extinction being the weakening of a fear memory. A 2019 consensus paper by 23 researchers states the idea with a 'may': normal dreaming may weaken fear by recombining frightening memories with new, unrelated settings. In people with nightmare disorder, on this account, the arousing memory fragments keep being activated in sleep, and the fear memory is reinforced. The drill meant to calm the alarm sets it off.

In brain terms, the consensus paper describes an overactive amygdala, the fear centre, with weakened regulation from the medial prefrontal cortex. The model has two ingredients. 'Affect load' is a state: how much stressful events are currently weighing on your capacity to regulate emotion. On this reading, an earthquake raises it for a whole city. 'Affect distress' is a trait, a lasting tendency to react to stress with negative emotion. People high in both are the most prone.

Geneva supplied a test of the idea. Sterpenich's team, publishing in 2020, compared how much fear 89 people reported in their dreams with how their brains responded, awake and in a scanner, to frightening stimuli. Those with more fear in their dreams showed less emotional arousal and a smaller response in the insula, the amygdala and the midcingulate cortex. It is a correlation, and the authors draw a line: recurrent nightmares, such as those of people with PTSD, 'could represent a failure' of the fear-extinction function of dreaming.

Antti Revonsuo of the University of Turku reads frightening dreams the other way. His threat simulation theory (2000) holds that the biological function of dreaming is to simulate threats and rehearse avoiding them, which makes a nightmare the system at work. His group reported in 2005 that severely traumatised Kurdish children had more dreams, with more threatening events and more severe threats, than Finnish children who had not been traumatised. But in a study published in 2008, Malcolm-Smith's team found that 208 people in a high-crime area of South Africa reported fewer threat dreams than 116 people in a low-crime area of Wales, and that escape occurred in under 2% of dreams.

What are nightmares actually about?

Mostly being attacked, chased or confronted, and far less often falling than questionnaires suggest. In a diary study published in 2014, Robert and Zadra at the Université de Montréal had 572 volunteers write down every dream on waking for two to five weeks. In the nightmares, physical aggression was the commonest theme, then being chased and the presence of an evil force. In bad dreams, the disturbing ones that do not wake you, conflict with other people came first.

Earlier questionnaire studies put falling among the commonest nightmares. In the diaries it made up 1.5% of the nightmares and bad dreams, and being paralysed or suffocated never appeared at all. The authors give two reasons. Asked to think of a nightmare, people recall their most striking ones, not their typical ones. Some of those themes may also belong to other sleep events, such as hypnic jerks or sleep paralysis, which people report as nightmares when a questionnaire asks broadly.

Fear is not the whole story either. More than a third of the nightmares had a main emotion other than fear, and 22% ended partly or entirely well, for instance with the dreamer taking control or being rescued. How often nightmares come differs widely from person to person. Up to 85% of adults report at least one nightmare in a year, a 2009 review of surveys found, and 2 to 6% have them weekly.

Why do I have nightmares every night?

Frequent nightmares go with poor sleep, exhaustion and low mood, with a tendency that runs partly in families, and with a nightmare that has learned to replay itself. They are an adult problem too. In eight Finnish national health surveys from 1972 to 2007, covering 69,813 people aged 25 to 74, 3.5% of men and 4.8% of women reported frequent nightmares.

In a 2015 analysis of 13,922 Finnish adults, the strongest risk factors were insomnia and exhaustion. Each went with nearly seven times the odds of frequent nightmares, as did a depressive attitude to oneself. The same analysis found frequent nightmares strongly associated with heavy drinking and with antidepressants or sleeping pills. These were one-off surveys, so they show an association, not which comes first. Bad sleep and bad dreams could be feeding each other.

Nightmares also run partly in families. In a 1999 study of 3,717 pairs of Finnish twins, genes accounted for an estimated 36% of the variation in adult men and 38% in adult women. A nightmare can also outlive its cause: the consensus paper describes a 'nightmare script', a fixed pattern of expectation replayed in a loop even when the stress that first set it off has long faded. Trying not to think about it may backfire. Experiments cited in the paper found that suppressed thoughts are more likely to return in dreams, especially in REM sleep. Untreated, nightmare disorder often lasts for decades.

Can food, alcohol or medicine give you nightmares?

Several medicines and stopping cannabis have evidence behind them; cheese has only surveys and an unpublished trade study. A 1999 review of the drug literature found that sleeping pills and sedatives, beta-blockers and amphetamines were the drugs most often linked with nightmares, and dopamine drugs used in Parkinson's disease also had evidence against them. Antidepressants mostly reduce remembered dreams, a 2013 systematic review found. But stopping older ones may cause nightmares, and SSRIs seem to intensify dreaming, even more when they are stopped. If your nightmares began with a new medicine, MedlinePlus advises telling your prescriber and not stopping the medicine before you have talked.

Cannabis reduces REM sleep, a 2008 review reports. When people stop, strange dreams are among the most consistent withdrawal symptoms, along with a rebound of REM sleep. Melatonin appears too. In a 2019 review of 37 placebo-controlled trials, nightmares were among the very few adverse events of clinical significance, and most such events stopped within days or once melatonin was stopped.

Blaming the body is old. John Bond's 1753 Essay on the Incubus, or Night-Mare blamed lying on the back, and in 1838 John Gideon Millingen blamed digestion and a heavy dinner before bed. The word itself first named a visitor, not a dream. French cauchemar, recorded around 1375, named something that climbs on the sleeper so that he can neither speak nor move, and the French dictionary of record dates the sense 'frightening dream' only to 1833.

The cheese belief has a famous cartoon: Winsor McCay's Dream of the Rarebit Fiend, which ran in the New York Herald from 1904 to 1925 and whose characters wake from bizarre dreams regretting their Welsh rarebit. In 2005 the British Cheese Board, a trade body, reported a study of 200 volunteers. Nielsen and Russell Powell note that it was never published in a peer-reviewed journal. Their own 2025 online survey linked nightmare scores with lactose intolerance, through gut symptoms, and with evening eating. They call for experiments in which food intake is deliberately varied.

Are frequent nightmares a sign of something wrong?

Not necessarily. The consensus paper separates posttraumatic nightmares, which replay a trauma or carry its emotion, from idiopathic ones, which tell more imaginative stories and need not reflect any traumatic event. The sleep of frequent sufferers does not look abnormal either. A Budapest team recorded 22 frequent nightmare recallers and 22 controls with equally high dream recall over two laboratory nights. In a study published in 2020, it found no difference in the brain-wave power of their REM sleep. On this evidence, REM sleep is when nightmares happen, not what goes wrong.

Frequent nightmares do cluster with other problems. Up to 80% of people with PTSD report nightmares, the academy's 2018 position paper notes. In Hong Kong, a clinical evaluation of 252 people drawn from a community survey found that those with frequent nightmares were 5.74 times as likely to have a psychiatric disorder, mood disorders above all. That is an association; it does not show which came first.

Nightmares can also accompany sleep apnoea. In a Riyadh sleep clinic, nightmares had disappeared after three months in 91% of apnoea patients who used a CPAP breathing machine, against 36% of those who refused it, though the patients chose for themselves.

The link with suicide is disputed. In Finnish adults followed from 1972, the risk of suicide was 105% higher in people with frequent nightmares than in those with none. A Swedish cohort of 40,902 people followed for 19 years found no link in people without depression and concluded that nightmares may reflect depression that is already there. Either way, frequent nightmares are a warning sign worth mentioning to a doctor. MedlinePlus advises seeing one if nightmares come more than once a week, or if over a long period they stop you sleeping well or keeping up with daily life. The consensus paper adds that, for many researchers, the distress nightmares cause matters more for mental health than their number.

How do I stop having nightmares?

Rewrite the nightmare while awake and rehearse the new version every day. This is imagery rehearsal therapy, the one treatment the American Academy of Sleep Medicine recommended in its 2018 position paper for both nightmare disorder and PTSD nightmares. You change the content of the nightmare into a new set of positive images, then rehearse the rewritten dream for 10 to 20 minutes a day. It works on the script directly, whatever first wrote it.

One valley in two halves: a storm with lightning on one side, a golden sunrise on the other, and a path running between flowers

Krakow's team tested the therapy in a landmark trial published in JAMA in 2001. They randomised 168 women in New Mexico, almost all survivors of sexual assault with PTSD, to three sessions of the therapy or to a waiting list. Among the 114 who completed follow-up, nights with nightmares fell by a large margin while the waiting-list group barely changed, and the gain held at six months. Counting all 168 women, the effect was moderate.

Written self-help works too, more weakly. In a Dutch trial of 399 people recruited through a nightmare website, self-help with imagery rehearsal or with exposure reduced nightmare frequency and distress compared with a waiting list. The weakness of the evidence lies in the comparison. In a 2012 review of 13 studies, the one study that tested rehearsal against another active treatment found small effects. A 2024 review covering 658 military veterans found better sleep with rescripting treatments, but no fewer nightmares than in control conditions.

Medicine is a question for a doctor, and the record is mixed. Prazosin, a blood-pressure drug, was the main medicine for PTSD nightmares until its largest trial, in 304 US veterans and reported in 2018, found it no better than placebo. The academy then downgraded it to 'may be used', yet a 2025 pooling of ten trials still found that it reduced nightmares.

The newest step brings sleep into the treatment. In a Geneva trial published in 2022, 36 patients with nightmare disorder practised imagery rehearsal. For half of them, a sound was played while they imagined the new ending, then replayed by a headband during their REM sleep at home. That group had fewer nightmares after two weeks, and the drop lasted three months. It is one small trial. If it holds, the sleeping brain that failed to put a fear away can be enlisted to finish the job.

What was last night trying to tell you?

Get a personalized AI interpretation that connects your dream to your specific life circumstances.

Interpret My Dream

In the dream dictionary

Read next

Sources

  1. Nightmares: MedlinePlus Medical Encyclopedia. MedlinePlus, U.S. National Library of Medicine.
  2. Nightmares. Sleep Education, American Academy of Sleep Medicine.
  3. Aetiology and treatment of nightmare disorder: State of the art and future perspectives. Journal of Sleep Research.
  4. Nightmares: a new neurocognitive model. Sleep Medicine Reviews.
  5. Position Paper for the Treatment of Nightmare Disorder in Adults: An American Academy of Sleep Medicine Position Paper. Journal of Clinical Sleep Medicine.
  6. Imagery rehearsal therapy for chronic nightmares in sexual assault survivors with posttraumatic stress disorder: a randomized controlled trial. JAMA.
  7. Trial of Prazosin for Post-Traumatic Stress Disorder in Military Veterans. New England Journal of Medicine.
  8. Comparative efficacy of imagery rehearsal therapy and prazosin in the treatment of trauma-related nightmares in adults: A meta-analysis of randomized controlled trials. Sleep Medicine Reviews.
  9. Thematic and content analysis of idiopathic nightmares and bad dreams. Sleep.
  10. Nightmares: Prevalence among the Finnish General Adult Population and War Veterans during 1972-2007. Sleep.
  11. Nightmares: risk factors among the Finnish general adult population. Sleep.
  12. Nightmares: familial aggregation and association with psychiatric disorders in a nationwide twin cohort. American Journal of Medical Genetics.
  13. Correlates and Treatments of Nightmares in Adults. Sleep Medicine Clinics.
  14. Drug-induced nightmares. Annals of Pharmacotherapy.
  15. Dreams of the Rarebit Fiend: food and diet as instigators of bizarre and disturbing dreams. Frontiers in Psychology.
  16. More dreams of the rarebit fiend: food sensitivity and dietary correlates of sleep and dreaming. Frontiers in Psychology.
  17. Enhancing imagery rehearsal therapy for nightmares with targeted memory reactivation. Current Biology.
  18. Effects of the 1989 San Francisco earthquake on frequency and content of nightmares. Journal of Abnormal Psychology.
  19. Fear in dreams and in wakefulness: Evidence for day/night affective homeostasis. Human Brain Mapping.
  20. Cognitive-behavioral self-help treatment for nightmares: a randomized controlled trial. Psychotherapy and Psychosomatics.
  21. Effect of illicit recreational drugs upon sleep: cocaine, ecstasy and marijuana. Sleep Medicine Reviews.
  22. Adverse Events Associated with Melatonin for the Treatment of Primary or Secondary Sleep Disorders: A Systematic Review. CNS Drugs.
  23. CAUCHEMAR: étymologie (Trésor de la Langue Française informatisé). Centre National de Ressources Textuelles et Lexicales (CNRS, ATILF).
  24. Night-Mares in the Stacks. Circulating Now, U.S. National Library of Medicine (History of Medicine Division).
  25. Prevalence and correlates of frequent nightmares: a community-based 2-phase study. Sleep.
  26. Unaltered EEG spectral power and functional connectivity in REM microstates in frequent nightmare recallers: are nightmares really a REM parasomnia?. Sleep Medicine.
  27. The reinterpretation of dreams: an evolutionary hypothesis of the function of dreaming. Behavioral and Brain Sciences.
  28. The threat simulation theory of the evolutionary function of dreaming: Evidence from dreams of traumatized children. Consciousness and Cognition.
  29. Threat in dreams: an adaptation?. Consciousness and Cognition.
  30. A meta-analysis of imagery rehearsal for post-trauma nightmares: effects on nightmare frequency, sleep quality, and posttraumatic stress. Clinical Psychology Review.
  31. The Effectiveness of Imagery Rescripting Interventions for Military Veterans With Nightmares and Sleep Disturbances: A Systematic Review and Meta-Analysis. Clinical Psychology & Psychotherapy.
  32. Factors impacting prazosin efficacy for nightmares and insomnia in PTSD patients - a systematic review and meta-regression analysis. Progress in Neuro-Psychopharmacology and Biological Psychiatry.
  33. Dreaming under antidepressants: a systematic review on evidence in depressive patients and healthy volunteers. Sleep Medicine Reviews.
  34. Clinical and polysomnographic characteristics and response to continuous positive airway pressure therapy in obstructive sleep apnea patients with nightmares. Sleep Medicine.
  35. Nightmares as predictors of suicide. Sleep.
  36. The relationship between nightmares, depression and suicide. Sleep Medicine.