Our Services
Medical Information
Helpful Resources
Published on: 2/18/2026
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.
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.
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:
Let's break down the most common causes.
One of the most common and harmless reasons for flashes of light with closed eyes is hypnagogic hallucinations.
These occur:
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:
If the flashes only happen as you're drifting off to sleep, they are usually benign.
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:
This is a medical emergency. If flashes are new, frequent, and accompanied by visual changes, you should speak to a doctor immediately.
Migraines are a very common cause of visual disturbances.
A migraine aura can cause:
These symptoms typically:
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.
Have you ever rubbed your eyes and seen bursts of light?
This happens because pressure mechanically stimulates the retina. Even mild pressure from:
can cause temporary flashes. These are harmless and stop once the pressure is relieved.
Less commonly, hallucinations seeing flashes of light when closing eyes can be linked to neurological conditions.
These may include:
Neurological flashes are often:
If flashes are paired with:
Seek urgent medical care.
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:
The exact cause is unclear, but it is thought to involve sudden shifts in brain activity during sleep.
High stress can heighten your awareness of normal sensory phenomena. When anxious, your brain becomes more alert and reactive.
Stress can:
Reducing stress often decreases the frequency of symptoms.
Most flashes with closed eyes are harmless. However, you should speak to a doctor right away if you experience:
These symptoms could indicate retinal detachment, stroke, or another serious condition.
If you seek medical care, your doctor may:
An ophthalmologist (eye doctor) is often the first step if symptoms seem eye-related. A neurologist may be involved if brain causes are suspected.
If your symptoms are mild and not accompanied by vision loss, you can:
Avoid rubbing your eyes aggressively, as this can worsen retinal traction.
Hallucinations seeing flashes of light when closing eyes are common and usually not dangerous. The most frequent causes include:
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.
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.
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.