Doctors Note Logo

Published on: 2/18/2026

Why You See Patterns and Shapes Before Falling Asleep

Seeing swirling colors, grids, or geometric shapes as you drift off is usually a normal hypnagogic hallucination, caused by the visual cortex staying active while external input fades during the transition to sleep. There are several factors to consider, and some can change your next steps: sleep loss or stress often make it harmless and fixable with better sleep habits, but red flags like severe daytime sleepiness, acting out dreams, migraine aura while awake, sudden brief episodes with confusion or jerking, or new meds or substances suggest you should speak with a clinician. For specifics on causes, self-care, and when to seek care, see the complete details below.

answer background

Explanation

Why You See Patterns and Shapes Before Falling Asleep

(Hallucinations seeing geometric patterns when closing eyes to nap)

If you've ever closed your eyes to nap and started seeing swirling colors, grids, flashes of light, or geometric shapes, you're not alone. Many people experience hallucinations seeing geometric patterns when closing eyes to nap, especially during the transition from wakefulness to sleep.

In most cases, this is a normal brain phenomenon. However, in some situations, it can be linked to sleep disorders or neurological conditions. Understanding what's happening can help you know when it's harmless — and when to speak to a doctor.


What Are These Patterns and Shapes?

The technical term for seeing patterns or shapes as you fall asleep is hypnagogic hallucinations.

  • Hypnagogic = occurring as you fall asleep
  • Hallucinations = seeing, hearing, or feeling things that aren't physically present

These visual experiences often include:

  • Geometric patterns (grids, spirals, checkerboards)
  • Flashes of light
  • Swirling colors
  • Floating shapes
  • Faces or shadowy figures (less common)
  • Brief "dream-like" scenes

When people describe hallucinations seeing geometric patterns when closing eyes to nap, they are usually describing this normal sleep-transition state.


Why Does This Happen?

To understand this, it helps to know what your brain is doing when you fall asleep.

1. Your Brain Is Switching Modes

As you drift off:

  • Your brain waves slow down.
  • Visual processing areas are still active.
  • Your brain begins producing dream-like imagery.

During this transition, your visual cortex (the part of your brain that processes sight) can fire spontaneously. Even though your eyes are closed, your brain is still generating images.

These spontaneous signals often appear as:

  • Repeating patterns
  • Symmetrical shapes
  • Geometric designs

This happens because the visual cortex is organized in a way that naturally produces structured, repeating patterns when stimulated randomly.


2. Reduced External Input Increases Internal Visual Activity

When you close your eyes:

  • Light input stops.
  • The brain receives less external stimulation.
  • Internal neural activity becomes more noticeable.

Think of it like turning off a television signal and seeing static. Your brain may create its own visual "noise," which appears as shapes or patterns.


3. Early Dream Activity Starts Before You're Fully Asleep

You don't suddenly go from awake to dreaming. Sleep happens in stages.

In early sleep:

  • Dream-like imagery can begin.
  • Muscle tone decreases.
  • Awareness fades gradually.

These geometric hallucinations are often the earliest signs of the dreaming process starting.


Is It Normal?

In most healthy adults, yes.

Hypnagogic hallucinations are common. Studies suggest that:

  • Up to 70% of people experience them at some point.
  • They are more common in people who are sleep-deprived.
  • They may happen more often during naps.

If you are simply seeing geometric patterns when closing your eyes to nap — without fear, confusion, or loss of awareness — it is usually harmless.


When It May Be More Than Normal

While hallucinations seeing geometric patterns when closing eyes to nap are often benign, certain situations warrant medical attention.

1. Narcolepsy

Frequent, vivid hypnagogic hallucinations are strongly associated with narcolepsy, especially when combined with:

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

If these symptoms sound familiar, a medical evaluation may be helpful.


2. REM Sleep Behavior Disorder (RBD)

In REM sleep, your body is normally paralyzed to prevent acting out dreams. In RBD:

  • That paralysis fails.
  • People may move, kick, punch, or talk during dreams.
  • Injuries can occur.

If you're experiencing unusual movements, talking, or acting out dreams during sleep alongside visual disturbances, you may want to learn more by taking a free symptom assessment for Rapid Eye Movement (REM) Sleep Behavior Disorder to understand if your symptoms align with this condition.


3. Migraine With Aura

Some people experience geometric visual patterns before a migraine headache.

Migraine aura may include:

  • Zigzag lines
  • Flashing lights
  • Expanding blind spots
  • Shimmering patterns

These usually last 5–60 minutes and may or may not be followed by headache.

If your visual patterns occur while fully awake and last longer than a few minutes, migraine could be a factor.


4. Occipital Lobe Seizures

Rarely, visual hallucinations can be caused by seizure activity in the brain's visual processing area.

Warning signs include:

  • Sudden, repeated episodes
  • Very brief (seconds)
  • Associated confusion
  • Jerking movements
  • Loss of awareness

If you suspect seizures, seek medical care immediately.


5. Substance Use or Medication Effects

Certain medications and substances can increase visual hallucinations, including:

  • Antidepressants
  • Sleep medications
  • Stimulants
  • Alcohol withdrawal
  • Recreational drugs

If symptoms began after starting a new medication, speak to your doctor.


Why Geometric Patterns Specifically?

This is not random.

The visual cortex has a highly organized structure. When it activates without outside input, it tends to generate:

  • Grids
  • Honeycomb shapes
  • Spirals
  • Tunnels
  • Checkerboards

Researchers believe this is due to the mathematical organization of neurons in the visual system. When stimulated in low-light or sleep-transition states, the brain naturally produces symmetrical patterns.

This is why hallucinations seeing geometric patterns when closing eyes to nap often look surprisingly structured rather than chaotic.


Factors That Make It More Likely

You may notice these patterns more often if you:

  • Are sleep-deprived
  • Are under high stress
  • Nap during the day
  • Have irregular sleep schedules
  • Use screens late at night
  • Have anxiety (which increases sensory awareness)

Improving sleep hygiene can reduce how often it happens.


How to Reduce Visual Hallucinations at Sleep Onset

If they are bothersome, try:

  • Maintaining a consistent sleep schedule
  • Avoiding caffeine 6–8 hours before bed
  • Reducing screen exposure 1 hour before sleep
  • Practicing relaxation breathing
  • Keeping your bedroom dark and cool
  • Avoiding alcohol before bed

In most cases, better sleep stabilizes the brain's transition into sleep.


When to Speak to a Doctor

You should speak to a doctor if:

  • The hallucinations are frightening or distressing.
  • You lose awareness during episodes.
  • You act out dreams.
  • You have sudden muscle weakness with emotions.
  • You experience severe daytime sleepiness.
  • You develop new neurological symptoms (confusion, weakness, speech changes).
  • Episodes are increasing in frequency or intensity.

Anything that could be life-threatening or serious should be evaluated promptly by a medical professional. While geometric patterns at sleep onset are usually harmless, persistent or worsening symptoms deserve medical attention.


The Bottom Line

Seeing geometric patterns and shapes when closing your eyes to nap is usually a normal brain event called a hypnagogic hallucination. It happens because your visual cortex remains active as you transition into sleep.

For most people:

  • It's common.
  • It's harmless.
  • It doesn't mean mental illness.
  • It doesn't mean you're "losing control."

However, if these hallucinations are frequent, intense, or paired with other sleep-related symptoms, it's worth exploring further. Consider speaking to a doctor if anything feels unusual, severe, or concerning.

Your brain is incredibly active during the shift from wakefulness to sleep. Sometimes, those internal signals show up as beautiful — or strange — geometric light shows. Most of the time, they're simply a sign that your mind is drifting into dreams.

(References)

  • * Ohayon, M. M., Morselli, L. L., & Dauvilliers, Y. (2013). Prevalence and comorbidity of hypnagogic hallucinations in the general population. *Neurology, 80*(19), 1735-1741.

  • * Dauvilliers, Y., & Ohayon, M. M. (2005). Hypnagogic hallucinations: a common feature of sleep-onset REM sleep. *Neurology, 65*(9), 1438-1442.

  • * Denis, D. (2018). Hypnagogic Hallucinations: A Review of the Current Literature. *Sleep Medicine Reviews, 39*, 13-24.

  • * Pederzoli, L., Corradini, I., Masi, S., Magnani, C., Corazza, O., & Saraceni, C. (2020). Changes in Brain Activity During Hypnagogic Sleep: A Preliminary Study of EEG Oscillations. *Frontiers in Human Neuroscience, 14*, 25.

  • * Kaminaga, T., Morita, Y., & Yamamoto, K. (2009). Neural correlates of imagery during the sleep onset period. *Neuroscience Letters, 451*(3), 209-213.

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.