Why Do We Have Nightmares?
What a bad dream is, what triggers one, and what actually helps.
A nightmare is a vivid, frightening dream that wakes you, or leaves you shaken when you wake naturally. Nearly everyone has them now and then, from childhood onward. They are unpleasant, but an occasional nightmare is a normal part of sleeping and dreaming, not a sign that something is wrong.
What happens in the brain
Nightmares happen mostly during REM sleep, the stage when dreams are most vivid, and they tend to occur in the second half of the night when REM periods are longest. The parts of the brain involved in emotion and fear are active in REM sleep, while the parts that handle logic and planning are quieter. That mix helps explain why a dream can feel intensely real and frightening yet make little sense. If you want the wider picture, see why dreams feel so real and why we dream at all.
Why do we have them? The main theories
No one has a single settled answer, but there are a few leading ideas.
- Emotional processing. Dreaming may help the brain work through strong feelings and memories. A nightmare may be that process going badly, with too much fear and not enough settling.
- Threat rehearsal. One theory suggests dreams evolved partly to simulate threats, so that frightening dreams are the brain practising danger. It is an interesting idea but still debated.
- Stress overflow. When stress or anxiety is high, it often shows up at night. People commonly report more nightmares in difficult periods of life.
Common triggers
- Stress and anxiety. The most common link, and often the first thing to look at.
- Poor or irregular sleep. Being overtired or changing your sleep times can make dreams more intense and more likely to wake you.
- Distressing events. Nightmares often follow a frightening or upsetting experience, and in some people they continue for a long time afterwards.
- Medication and alcohol. Some medicines can affect dreaming, and nightmares can appear when a medicine is changed or stopped. Alcohol disrupts REM sleep, and vivid dreams are common as it wears off or after cutting back.
- Frightening content before bed. The evidence is modest, but many people find that scary films or news late at night colour their dreams.
- Illness and fever. A temperature can bring unusually vivid, unpleasant dreams.
Do nightmares mean anything?
Traditional dream dictionaries link particular images, such as being chased, falling or losing teeth, to particular meanings, and you can look up individual symbols in our dream dictionary. Researchers are more cautious. Most see a nightmare as the brain handling fear and stress, with the images drawn from your own worries and recent experience. It is a good idea to treat a nightmare as a prompt to ask what has been weighing on you, rather than as a prediction. Our look at what the science says about dream interpretation goes into this further.
Nightmares and night terrors are different
People often mix the two up. A nightmare happens in REM sleep, you wake and usually remember it. A night terror happens in deep sleep, the person is not really awake and often remembers nothing. If someone is screaming and thrashing but cannot be woken properly, that points to a night terror, which is covered in our guide to nightmares vs. night terrors. A frightening experience on waking, where you cannot move, is something else again, called sleep paralysis.
Nightmares in folklore
The word itself carries an old explanation. The "mare" in nightmare was a spirit in old English belief that was said to sit on a sleeper's chest and bring bad dreams. Many cultures had a night spirit of this kind. In Ireland, the night was a time of particular caution, above all around Samhain, the old festival at the end of October. Our Samhain guide on Gods of Ireland covers the festival and the folklore creatures of the night, and our own page on Irish dream folklore looks at how dreams were read in Irish tradition.
What can help
- Keep a steady sleep routine. Regular bed and wake times are the simplest step with the best evidence of benefit.
- Wind down. Give yourself some quiet time before bed and leave frightening films and news until earlier in the day.
- Go easy on alcohol, especially close to bedtime.
- Write the dream down. Getting it out of your head can take some of the sting out of it, and a dream journal can show patterns, such as nightmares clustering in stressful weeks.
- Rewrite the ending. For nightmares that repeat, a method called imagery rehearsal therapy has good evidence behind it. While awake, you write down the dream, change the ending to something less frightening, and rehearse the new version for a few minutes each day. A therapist can guide you through it.
- Talk to someone. It helps to talk about what is worrying you, with a friend or a professional.
When to see a doctor
Occasional nightmares do not need treatment. It is worth speaking to a doctor if they are frequent, if they began after a traumatic event or a change of medication, if they leave you afraid to go to sleep, or if they affect your mood or daily life. Effective help is available, and this page is general information rather than medical advice.
Want to know what a specific symbol in your own dream might mean?
Try the free AI Dream Analyzer →Frequently Asked Questions
Why do I keep having nightmares?
Frequent nightmares are most often linked to stress, anxiety, poor or irregular sleep, and sometimes to medication changes or past distressing events. Occasional bad dreams are normal. If they happen often enough to disturb your sleep or daytime mood, it is worth speaking to a doctor.
Are nightmares a sign of something wrong?
Not usually. Nightmares are common at all ages, and most people have them now and then. They are worth mentioning to a doctor when they are frequent, when they follow a traumatic event, or when they leave you dreading sleep.
What is the difference between a nightmare and a night terror?
A nightmare is a frightening dream in REM sleep that you wake from and usually remember. A night terror happens in deep sleep, and the person is not really awake and rarely remembers it. Our guide to nightmares and night terrors covers the difference.
Do nightmares mean anything?
Researchers generally see nightmares as the brain working through fear, stress and emotion rather than predicting anything. Dream dictionaries give traditional meanings for individual symbols, but there is no good evidence that a nightmare foretells events.
How can I stop having nightmares?
Keeping regular sleep hours, winding down before bed, cutting back on alcohol and avoiding frightening content late at night all help. For recurring nightmares, a technique called imagery rehearsal, where you rewrite the ending while awake, has good evidence behind it and is often taught by therapists.