Doctors Note Logo

Published on: 2/18/2026

Flashing Lights and Closed Eyes: Why Your Brain is Misfiring

Flashes of light with closed eyes are often benign photopsias from sleep transitions, migraines, mild retinal stimulation, or eye pressure, but they can sometimes indicate serious problems like a retinal tear or detachment or less common neurological issues. There are several factors to consider, especially sudden new flashes with floaters, a dark curtain, vision loss, severe headache, weakness, confusion, or recent head injury, which change urgency and which clinician to see. See below for the full details on red flags, when to seek urgent care, and practical next steps you can take now.

answer background

Explanation

Flashing Lights and Closed Eyes: Why Your Brain Is Misfiring

Hallucinations seeing flashes of light when closing eyes can feel strange, confusing, or even frightening. Many people describe seeing bright sparks, lightning streaks, colors, or camera-like flashes the moment they shut their eyes. Others notice bursts of light in a dark room or while drifting off to sleep.

In most cases, these experiences are harmless. But sometimes, they can signal an underlying neurological or eye-related issue that deserves attention. Understanding what causes these visual flashes can help you stay calm, informed, and proactive about your health.


Why Do I See Flashes of Light When I Close My Eyes?

Your brain and eyes work together to interpret light. Even when your eyes are closed, your brain remains active. If something disrupts the normal signaling between your eyes and your brain, you may experience hallucinations seeing flashes of light when closing eyes.

These flashes are often called photopsias. They are not always psychiatric hallucinations. Instead, they are usually caused by:

  • Stimulation of the retina
  • Pressure on the eye
  • Changes in the vitreous gel inside the eye
  • Electrical activity in the brain

Let's break down the most common causes.


1. Normal Brain Activity While Falling Asleep

One of the most common and harmless reasons for flashes of light with closed eyes is hypnagogic hallucinations.

These occur:

  • As you are falling asleep
  • When transitioning between wakefulness and sleep
  • During periods of stress or sleep deprivation

Your brain doesn't "turn off" instantly. Instead, it shifts between different patterns of electrical activity. During this shift, visual areas of the brain can fire randomly, creating flashes, shapes, or brief images.

These are generally:

  • Short-lived
  • Not painful
  • Not associated with vision loss
  • More common when overtired

If the flashes only happen as you're drifting off to sleep, they are usually benign.


2. Retinal Causes (Eye-Related Issues)

Sometimes, flashes originate from the eye itself rather than the brain.

Inside your eye is a gel-like substance called the vitreous humor. As you age, this gel shrinks and can tug on the retina. This pulling can stimulate light-sensing cells, causing you to see flashes—even in complete darkness.

Common eye-related causes include:

Posterior Vitreous Detachment (PVD)

  • Common after age 50
  • Flashes in peripheral vision
  • Often accompanied by floaters

Retinal Tear or Detachment (More Serious)

  • Sudden increase in flashes
  • New floaters
  • A shadow or "curtain" over part of your vision
  • Vision loss

This is a medical emergency. If flashes are new, frequent, and accompanied by visual changes, you should speak to a doctor immediately.


3. Migraines (With or Without Headache)

Migraines are a very common cause of visual disturbances.

A migraine aura can cause:

  • Flashing lights
  • Zigzag lines
  • Shimmering patterns
  • Blind spots

These symptoms typically:

  • Develop gradually over 5–20 minutes
  • Last less than an hour
  • May or may not be followed by headache

Some people experience "silent migraines," meaning they get the visual symptoms without pain.

Migraine-related visual changes are caused by temporary electrical disturbances in the brain's visual cortex—not by eye damage.


4. Pressure on the Eyes

Have you ever rubbed your eyes and seen bursts of light?

This happens because pressure mechanically stimulates the retina. Even mild pressure from:

  • Lying face down
  • Tight sleep masks
  • Eye rubbing

can cause temporary flashes. These are harmless and stop once the pressure is relieved.


5. Neurological Causes

Less commonly, hallucinations seeing flashes of light when closing eyes can be linked to neurological conditions.

These may include:

  • Occipital lobe seizures
  • Brain injury
  • Infections
  • Tumors
  • Stroke

Neurological flashes are often:

  • Repetitive and patterned
  • Associated with confusion or weakness
  • Accompanied by other neurological symptoms

If flashes are paired with:

  • Severe headache
  • Weakness
  • Slurred speech
  • Numbness
  • Confusion

Seek urgent medical care.


6. Exploding Head Syndrome (EHS)

Some people experience flashes of light along with a loud imagined noise when falling asleep—a phenomenon known as Exploding Head Syndrome (EHS).

Despite its dramatic name, EHS is usually harmless. It involves:

  • Sudden loud noise sensation (like a bang or crash)
  • Flash of light
  • Occurs during sleep transitions
  • No pain

The exact cause is unclear, but it is thought to involve sudden shifts in brain activity during sleep.


7. Anxiety and Stress

High stress can heighten your awareness of normal sensory phenomena. When anxious, your brain becomes more alert and reactive.

Stress can:

  • Worsen migraines
  • Disrupt sleep
  • Increase hypnagogic hallucinations
  • Make harmless flashes feel alarming

Reducing stress often decreases the frequency of symptoms.


When Should You Be Concerned?

Most flashes with closed eyes are harmless. However, you should speak to a doctor right away if you experience:

  • Sudden onset of frequent flashes
  • New floaters
  • Vision loss
  • A dark curtain over part of your vision
  • Severe headache unlike usual headaches
  • Weakness or confusion
  • Recent head trauma

These symptoms could indicate retinal detachment, stroke, or another serious condition.


How Doctors Evaluate Flashes of Light

If you seek medical care, your doctor may:

  • Perform a detailed eye exam
  • Dilate your pupils to examine the retina
  • Check visual fields
  • Review migraine history
  • Evaluate neurological function
  • Order imaging (MRI or CT) if needed

An ophthalmologist (eye doctor) is often the first step if symptoms seem eye-related. A neurologist may be involved if brain causes are suspected.


What Can You Do Right Now?

If your symptoms are mild and not accompanied by vision loss, you can:

  • Track when flashes occur
  • Note whether they happen during sleep transitions
  • Monitor for new floaters
  • Improve sleep hygiene
  • Reduce stress
  • Stay hydrated

Avoid rubbing your eyes aggressively, as this can worsen retinal traction.


Key Takeaways

Hallucinations seeing flashes of light when closing eyes are common and usually not dangerous. The most frequent causes include:

  • Sleep-related brain activity
  • Migraines
  • Vitreous changes in the eye
  • Mild retinal stimulation

More serious causes—like retinal detachment or neurological disorders—are much less common but require prompt medical attention.

The pattern, timing, and associated symptoms matter more than the flashes themselves.


The Bottom Line

Seeing flashes of light when your eyes are closed does not automatically mean something is seriously wrong. In many cases, it reflects normal brain or eye activity—especially during sleep transitions or migraines.

However, sudden changes in vision, new floaters, severe headache, weakness, or confusion should never be ignored. If anything feels unusual, persistent, or frightening, speak to a doctor promptly. Vision and neurological symptoms should always be evaluated if they could signal something serious.

Staying informed without panicking is the healthiest approach. Most causes are manageable. Some require medical care. The key is recognizing the difference—and getting help when needed.

(References)

  • * Vella S, Tassinari CA, De Marco P, De Marco I, Tana MG. Photic stimulation and EEG rhythms: a systematic review. Clin Neurophysiol. 2018 Apr;129(4):755-764. doi: 10.1016/j.clinph.2018.01.006. Epub 2018 Jan 11. PMID: 29337033.

  • * Cogan J, Mistry S, Saifee TA. The spectrum of spontaneous visual phenomena. Pract Neurol. 2018 Apr;18(2):107-116. doi: 10.1136/practneurol-2017-001799. Epub 2018 Feb 21. PMID: 29555776.

  • * Shrivastava D, Kim D, Behbehani A, Waseef S, Hamedani AG. Visual snow syndrome: A clinical, pathophysiological, and therapeutic review. J Neuroophthalmol. 2023 Sep 1;43(3):e284-e298. doi: 10.1097/WNO.0000000000001859. Epub 2023 Jun 26. PMID: 37372338.

  • * Schankin CJ, Goadsby PJ. Cortical hyperexcitability and its role in visual snow syndrome pathophysiology. Curr Opin Neurol. 2020 Aug;33(4):428-435. doi: 10.1097/WCO.0000000000000831. PMID: 32665672.

  • * De Martino L, Vanagaite V, De Gregorio F, Goadsby PJ. Visual processing in migraine: from symptoms to pathophysiology. Cephalalgia. 2018 Jun;38(7):1314-1327. doi: 10.1177/0333102418760079. Epub 2018 Feb 28. PMID: 29498263.

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.

Learn more about diseases

Exploding Head Syndrome (EHS)

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.