Doctors Note Logo

Published on: 4/7/2026

Seeing Things at Bedtime? The Science of Sleep-Onset Hallucinations

Sleep-onset hallucinations, also called hypnagogic hallucinations, are common and usually harmless, arising when dream activity starts before full sleep and causing brief visual, sound, or touch experiences; triggers include sleep deprivation, stress, irregular schedules, certain medications or substances, and sometimes narcolepsy, with Exploding Head Syndrome as a typically benign variant.

There are several factors and red flags to consider that could change your next steps, from frequent episodes and daytime sleepiness to cataplexy, sleep paralysis, or neurological symptoms, plus practical sleep-habit fixes; see the complete answer below to understand more and when to talk to a doctor.

answer background

Explanation

Seeing Things at Bedtime? The Science of Sleep-Onset Hallucinations

If you've ever seen shadows moving, heard a voice call your name, or felt a sudden jolt just as you were drifting off to sleep, you're not alone. Hallucinations when falling asleep are more common than most people realize. They can feel vivid and sometimes frightening, but in many cases, they are harmless and linked to normal sleep processes.

Understanding what's happening in your brain can help reduce fear and guide you toward the right next steps.


What Are Hallucinations When Falling Asleep?

Hallucinations that happen as you drift off are called hypnagogic hallucinations. They occur during the transition from wakefulness to sleep. (When they happen as you wake up, they're called hypnopompic hallucinations.)

These experiences can involve:

  • Visual images – seeing shapes, flashes of light, people, animals, or shadowy figures
  • Sounds – hearing voices, music, footsteps, or a loud bang
  • Sensations – feeling like you're falling, floating, or being touched
  • Sudden muscle jerks – known as hypnic jerks

Up to 25–37% of people report experiencing sleep-onset hallucinations at some point in their lives, according to sleep medicine research. So while they may feel unusual, they are not rare.


Why Do Hallucinations Happen When Falling Asleep?

To understand this, it helps to know what happens in your brain at bedtime.

Sleep isn't a simple "on/off" switch. It's a gradual shift. As you fall asleep:

  • Brain wave patterns change
  • Muscles relax
  • Dream-related brain activity begins
  • Awareness of your surroundings fades

Sometimes, the systems responsible for dreaming activate before you are fully asleep. In other words, your brain starts dreaming while you're still partly awake.

That overlap can create vivid, dream-like experiences that feel real.

Think of it as your brain briefly mixing wakefulness and REM sleep.


Common Causes of Hallucinations When Falling Asleep

In many cases, these hallucinations are not a sign of mental illness. They often relate to sleep patterns or lifestyle factors.

1. Sleep Deprivation

Lack of sleep makes your brain more likely to misfire during transitions between sleep stages. Even a few nights of poor rest can increase episodes.

2. Irregular Sleep Schedules

Shift work, jet lag, or staying up very late disrupt your body's internal clock and can trigger unusual sensory experiences at bedtime.

3. Stress and Anxiety

High stress levels can make your brain more alert at night. That hyper-alert state can blend with dream imagery as you fall asleep.

4. Narcolepsy

Frequent, intense hallucinations when falling asleep are strongly associated with narcolepsy, a neurological sleep disorder. Other signs include:

  • Sudden daytime sleep attacks
  • Muscle weakness triggered by emotions (cataplexy)
  • Sleep paralysis

If hallucinations happen often and are paired with daytime sleepiness, it's important to speak to a doctor.

5. Certain Medications or Substances

Some antidepressants, blood pressure medications, or substances like alcohol and recreational drugs can increase sleep-related hallucinations.


What About Exploding Head Syndrome?

One specific form of hallucination when falling asleep is called Exploding Head Syndrome (EHS). Despite the dramatic name, it is usually harmless.

People with EHS may experience:

  • A sudden loud bang, crash, or explosive noise in their head
  • A flash of light
  • A sense of electrical shock

There is no actual explosion and no physical damage. It is believed to result from a brief misfire in brain signaling during sleep transitions.

If you're experiencing sudden loud noises or explosive sounds as you fall asleep, Ubie's free AI-powered Exploding Head Syndrome (EHS) symptom checker can help you understand whether your symptoms align with this condition and what steps to take next.

Even though EHS is typically not dangerous, recurring or distressing episodes should still be discussed with a healthcare professional.


Are Sleep-Onset Hallucinations a Sign of Mental Illness?

This is one of the biggest fears people have.

In most cases, hallucinations when falling asleep are not linked to psychotic disorders.

There are key differences:

  • Sleep-related hallucinations occur only at sleep-wake transitions.
  • People usually recognize that the experience may not have been real.
  • They are often brief and stop once fully awake.

By contrast, hallucinations tied to psychiatric conditions usually:

  • Happen during full wakefulness
  • Persist over time
  • Are accompanied by disorganized thinking or major behavior changes

If hallucinations happen during the day or feel uncontrollable, that is different and requires medical evaluation.


When Should You See a Doctor?

While many bedtime hallucinations are harmless, you should speak to a doctor if you experience:

  • Frequent episodes that disrupt sleep
  • Excessive daytime sleepiness
  • Sudden muscle weakness with emotions
  • Hallucinations during full wakefulness
  • Severe headaches, seizures, or neurological symptoms
  • New symptoms after a head injury

Any symptom that could be serious or life-threatening should be evaluated promptly by a medical professional. It's always better to check and be reassured than to ignore something important.


How to Reduce Hallucinations When Falling Asleep

Improving sleep hygiene can significantly reduce episodes.

Practical steps:

  • Stick to a consistent bedtime and wake time
  • Aim for 7–9 hours of sleep nightly
  • Limit screen time 1 hour before bed
  • Avoid heavy alcohol use
  • Reduce caffeine after midday
  • Practice stress-reduction techniques (deep breathing, meditation, journaling)

If anxiety is fueling nighttime symptoms, cognitive behavioral therapy (CBT) for insomnia can be very effective.

In cases related to narcolepsy or severe sleep disorders, doctors may prescribe medication to regulate REM sleep.


What Happens in the Brain?

Research using EEG and brain imaging suggests that sleep-onset hallucinations involve:

  • Early activation of REM-related dream circuits
  • Reduced activity in areas responsible for reality testing
  • Temporary sensory processing distortions

During REM sleep, the brain is highly active — almost as active as when awake. If awareness lingers while dream imagery begins, the result can be vivid and realistic experiences.

Importantly, these episodes do not usually indicate brain damage.


Reassurance Without Sugarcoating

Hallucinations when falling asleep can feel intense. Seeing figures in the room or hearing a loud bang can be frightening in the moment.

But in many people:

  • They are brief
  • They are infrequent
  • They decrease with better sleep
  • They are not dangerous

That said, persistent or worsening symptoms should never be ignored. Sleep disorders, neurological conditions, and medication side effects are real and treatable.

The key is context and frequency.


The Bottom Line

Hallucinations when falling asleep are common and often harmless. They usually happen because your brain begins dreaming before you are fully asleep.

Common triggers include:

  • Sleep deprivation
  • Stress
  • Irregular schedules
  • Narcolepsy
  • Certain medications

Occasional episodes are generally not a cause for alarm. However, frequent, distressing, or daytime hallucinations require medical attention.

If loud bangs or flashes are your main symptom, consider using Ubie's free AI-powered Exploding Head Syndrome (EHS) symptom checker to gain clarity on your symptoms and receive personalized guidance.

And most importantly: if anything feels severe, persistent, or potentially life-threatening, speak to a doctor right away. Getting professional guidance can bring clarity — and often, peace of mind.

Sleep is complex, and your brain is powerful. Sometimes, it simply gets its wires crossed during the transition to rest. In most cases, that's all it is.

(References)

  • * Kucukarslan I, Yildiz S, Karatas M, Ayhan Y, Ince H, Koca I, Eren B, Turkoglu S, Gunay A, Kurt E, Aydin M. Hypnagogic Hallucinations in the General Population: A Systematic Review and Meta-Analysis. Sleep Med Rev. 2021 Jun;57:101456. PMID: 33735824.

  • * Sacre P, De Tiège X, Sunaert S, Ceulemans B, Van Mierlo P, Van Eyll J. Sleep Hallucinations and Related Disorders. Curr Neurol Neurosci Rep. 2020 Aug 3;20(9):42. PMID: 32740700.

  • * Chellappa SL, Ly J, Frey S, Gmez-Marin O, Steiner R, Gaggioni G, Bruni O, Rosales-Lagarde A, Cajochen C, Frauscher B. Sleep-Related Hallucinations: Etiology, Pathophysiology, and Differential Diagnosis. CNS Drugs. 2018 Apr;32(4):341-356. PMID: 29594640.

  • * Frauscher B, Gschliesser V, Brandauer E, Ulmer H, Poewe W, Hogl B. Hypnagogic Hallucinations: Clinical Significance and Pathophysiological Mechanisms. J Sleep Res. 2014 Dec;23(6):682-94. PMID: 24712534.

  • * Ohayon MM, Gncarov J, Garca-Borreguero D, Rosa A. Hypnagogic and Hypnopompic Hallucinations: A Systematic Review of the Literature. J Clin Psychiatry. 2014 Nov;75(11):e1291-301. PMID: 25486127.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.