Our Services
Medical Information
Helpful Resources
Published on: 5/13/2026
Visual hallucinations such as seeing spiders or shadows at night often result from REM sleep intruding into wakefulness during hypnagogic or hypnopompic states. Factors like sleep deprivation, irregular sleep schedules, stress, certain medications or underlying disorders can increase these REM intrusions.
There are several factors to consider; see below for detailed next steps on self-help strategies, professional evaluation, and treatment options.
Visual hallucinations—such as seeing spiders or shadows at night—can be unsettling. Understanding why these experiences occur, how they relate to REM (rapid eye movement) sleep, and what to do next can help you manage symptoms and seek appropriate care.
Hypnagogic Hallucinations
– Occur as you drift into sleep (the "hypnagogic" state)
– May involve seeing shapes, insects, spiders or shadows
Hypnopompic Hallucinations
– Occur while waking up from sleep (the "hypnopompic" state)
– Often vivid, dream-like images that linger as you regain consciousness
REM Intrusion into Wakefulness
– REM sleep is normally distinct from wakefulness
– Intrusions can blur boundaries, producing dream images when you're partly awake
– Explains why you might see spiders or shadows at night when you're not fully asleep
Several factors can cause REM intrusions:
Sleep Deprivation
Extended lack of sleep increases REM pressure, making intrusions more likely.
Irregular Sleep Schedules
Shift work or frequent time-zone changes disrupt the REM cycle.
Stress and Anxiety
Heightened arousal can fragment sleep stages.
Medications and Substances
Some antidepressants, stimulants or alcohol withdrawal affect REM regulation.
Underlying Sleep Disorders
Conditions like narcolepsy and Rapid Eye Movement (REM) Sleep Behavior Disorder are strongly linked to REM intrusions.
Spiders
– The sudden sense of a crawling insect is a classic hypnagogic image
– Your brain's visual center can fill in vague patterns as familiar shapes (e.g., spiders)
Shadows
– Low-light conditions and partial wakefulness lead your mind to interpret random dark patches
– These vague stimuli can trigger lifelike shadow figures
Both types of hallucinations are typically harmless. However, if they are frequent, distressing or disrupt your sleep, it's important to take the next steps.
Most hypnagogic and hypnopompic hallucinations are benign, but certain red flags warrant medical attention:
While you prepare to consult a healthcare professional, you can try:
Improve Sleep Hygiene
• Set a consistent bedtime and wake time
• Keep your bedroom cool, dark and quiet
• Limit screen use 1–2 hours before bed
Manage Stress
• Practice relaxation techniques (deep breathing, progressive muscle relaxation)
• Consider meditation or gentle yoga in the evening
Monitor Caffeine and Alcohol
• Avoid stimulants at least 6 hours before bedtime
• Minimize alcohol, especially close to sleep
Maintain a Sleep Diary
• Log bed/wake times, naps, caffeine/alcohol intake, and any hallucinatory episodes
• Helps your doctor identify patterns and triggers
If self-help strategies don't reduce the frequency or distress of seeing spiders or shadows at night, consult a healthcare provider—ideally a sleep specialist or neurologist. They may recommend:
A Comprehensive Sleep Evaluation
• Detailed history of your sleep and daytime symptoms
• Use of validated questionnaires on sleep quality and daytime functioning
Overnight Sleep Study (Polysomnography)
• Records brain waves, oxygen levels, eye movements, muscle activity and heart rhythm during sleep
• Identifies REM abnormalities and other sleep disorders
Home Sleep Testing
• Simplified version for screening certain sleep issues
• May not capture detailed REM data but can rule out breathing-related problems
Before your appointment, you can get personalized insights by using Ubie's free AI-powered Rapid Eye Movement (REM) Sleep Behavior Disorder symptom checker—it takes just a few minutes and helps you understand whether your nighttime visual experiences might be connected to this specific sleep disorder.
RBD is a parasomnia in which the normal muscle paralysis of REM sleep is incomplete or absent. This allows dream content to be acted out, sometimes leading to injury.
Key features:
Dream Enactment Behaviors
• Talking, yelling, or gesturing during REM sleep
• Can be violent or protective actions in response to dream content
Increased Risk Factors
• Older age (typically over 50)
• Certain neurodegenerative conditions (e.g., Parkinson's disease)
• Preceded by vivid nightmares or dream recall
Diagnostic Criteria
• Documented REM without atonia on polysomnography
• Clinical history of dream enactment behaviors
Medications
Safety Measures
Behavioral Interventions
Follow-Up Appointments
Prepare for your appointment by bringing:
Questions to ask:
Experiencing seeing spiders or shadows at night can be traced to REM sleep intrusions like hypnagogic and hypnopompic hallucinations. While often harmless, persistent or distressing symptoms deserve attention.
If you ever feel that your symptoms could be life-threatening or are causing serious harm, please speak to a doctor immediately. Your well-being and safety are the top priorities.
(References)
* Ehgoetz Martens, K. A., & Postuma, R. B. (2016). REM sleep dysregulation as a common mechanism underlying visual hallucinations in Lewy body disease and narcolepsy type 1. *Neuroscience & Biobehavioral Reviews*, *67*, 134–143.
* Miyauchi, R., Tanabe, S., & Shioiri, S. (2020). Visual cortex activity during REM sleep and its implication for visual imagery. *Frontiers in Human Neuroscience*, *14*, 140.
* Siclari, F., & Tononi, G. (2017). The role of the visual cortex in REM sleep and dreaming: a mini-review. *Frontiers in Psychology*, *8*, 1780.
* Waters, F., Blom, J. D., & Jardri, R. (2014). Hallucinations and Dreams: What Can Sleep Tell Us About the Mechanisms of Hallucinations? *Schizophrenia Bulletin*, *40*(Suppl 4), S233–S243.
* Bubu, O. M., O'Shea, A., & Postuma, R. B. (2020). Neural correlates of visual hallucinations in sleep disorders and neurological diseases. *Journal of Clinical Sleep Medicine*, *16*(4), 605–612.
We would love to help them too.
For First Time Users
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.