PsychologyMeaning Inner Rooms ↗
SleepRelatingMemoryGrowthEmotionsDictionaryInner Rooms
Home / The Night Shift / Nightmares
The Night Shift · Nightmares

Why fear rehearses itself at 4am

Last reviewed: July 2026
The short answer

Nightmares occur mostly in REM sleep, which is concentrated in the second half of the night — which is why they cluster toward morning. Occasional nightmares are completely normal. When they are frequent and distressing, that is a recognised condition with effective treatments — notably imagery rehearsal therapy, which has good support and is worth asking a clinician about.

Read this first

This wing explains the science of sleep. It is not medical advice, and it cannot diagnose or treat anything. We give no dosages and recommend no supplements or medications — those decisions belong with a doctor or pharmacist who knows your history. If sleep problems persist for weeks, if you stop breathing or gasp in your sleep, if you fall asleep during the day without meaning to, or if poor sleep is affecting your mood or safety, please speak to a doctor. Sleep problems are common, treatable, and worth taking to a professional.

Why the small hours

REM periods lengthen as the night progresses, so the vivid, narrative, emotionally-charged dreaming is concentrated toward the end. A 4am nightmare is not a message about 4am — it is simply where the REM is.

What drives them up

  • Stress and anxiety — the clearest everyday driver.
  • Sleep deprivation — leads to REM rebound, where REM returns more intensely once you finally sleep. Ironically, fearing sleep produces more vivid dreams.
  • Alcohol withdrawal after drinking (REM suppressed, then rebounding).
  • Some medications — a real and common cause. Never stop or change a prescribed medication because of a website — but do mention nightmares to your doctor, because it is a recognised side effect of several drug classes and there may be options.
Imagery rehearsal therapy, in outline

A well-supported approach for chronic nightmares: while awake, you write out the recurring nightmare, rewrite the ending into something neutral or empowering, and rehearse the new version mentally in the daytime. Over weeks, the rewritten script tends to displace the original. It is not a trick — it is a recognised therapy, and it is best done with a clinician, particularly where trauma is involved.

Please talk to someone if

Nightmares are frequent, distressing, or connected to a trauma; if you are afraid to go to sleep; if you act out dreams physically (this can be a sign of a treatable sleep disorder and is worth a prompt medical review); or if the distress spills into your days. Recurrent trauma nightmares are treatable, and PTSD is treatable — please speak to a doctor or therapist. You do not have to simply endure this.

Keep going

More from this wing: all 8 pages · related: why we forget, the Dream Decoder, anxiety.

Frequently asked

Why do nightmares happen in the early morning?
Because nightmares occur mostly in REM sleep, and REM periods lengthen through the night, concentrating vivid emotional dreaming toward morning.
What causes frequent nightmares?
Stress and anxiety, sleep deprivation (which produces REM rebound), alcohol, some medications, and trauma. Frequent distressing nightmares are a recognised condition with effective treatments.
How do you stop recurring nightmares?
Imagery rehearsal therapy — rewriting the nightmare’s ending while awake and rehearsing the new version — has good support and is best pursued with a clinician, especially where trauma is involved.

Sources & further reading

  1. REM sleep concentrates in the later part of the night, which is why vivid dreams and nightmares tend to occur toward morning (sleep architecture, Stickgold 2005). Sleep architecture ↗
  2. Imagery rehearsal therapy (IRT) is the best-supported, Level-A treatment for chronic nightmares — rewrite the nightmare’s ending and rehearse it while awake (Krakow RCT, JAMA 2001). Krakow et al., JAMA 2001 ↗
  3. On IRT as first-line clinical management for chronic nightmares (Krakow & Zadra). IRT clinical management ↗

Not medical advice. Educational content only. Always consult a qualified clinician about your own sleep, health, or medication. Last reviewed July 2026.