Those brief white flashes you see with your eyes shut are called phosphenes, and they happen because your retina and visual cortex can generate the sensation of light even when no actual light is entering your eye. The causes range from completely harmless spontaneous neural firing to vitreous gel tugging on the retina, and occasionally to conditions that need medical attention. The fact that you notice them most in the dark or with closed eyes is not a coincidence; your visual system is quieter then, making faint internal signals easier to perceive.
Your Retina Never Truly Goes Dark
Even in total darkness, your photoreceptor cells are not silent. The light-sensitive pigment in your rod cells, rhodopsin, undergoes occasional spontaneous chemical changes from thermal energy alone. Each of these events mimics what would happen if an actual photon of light had struck the cell. Research on retinal bipolar cells estimated that thermal isomerization of rhodopsin produces roughly one false signal every 30 seconds in a single human rod at body temperature.1PubMed Central. Dark noise in retinal bipolar cells and stability of rhodopsin in rods That may sound negligible, but you have about 120 million rods, so across the whole retina, these phantom signals add up.
A separate line of research has proposed that this “dark noise” is not solely from thermal jostling of rhodopsin. Because the retina has the highest oxygen demand and highest concentration of polyunsaturated fatty acids of any tissue, it produces low-level bioluminescent photons through natural lipid peroxidation. During normal daylit vision, this faint internal glow is swamped by incoming light and goes unnoticed. In a dark-adapted retina, however, these self-generated photons are no longer negligible and could contribute to the faint sparkles and flickers people report with their eyes closed.2Journal of Photochemistry and Photobiology B: Biology. Retinal phosphenes and discrete dark noises in rods: A new biophysical framework
So if the flashes you see are faint, brief, and scattered, you may simply be noticing the baseline hum of your own visual hardware. This is perfectly normal and something everyone experiences if they pay attention in a dark enough environment.
Mechanical Phosphenes and Eye Rubbing
If you press or rub your closed eyes, the resulting light show can be vivid: swirling patterns, bright spots, even colored rings. This happens because your retinal cells are mechanically sensitive. Physical pressure deforms them enough to trigger a neural signal, which your brain interprets as light because that is the only language your visual cortex speaks. The same principle explains why a bump to the head can produce “seeing stars.”
You do not need to rub your eyes deliberately for this to happen. Simply squeezing your eyelids shut, rolling your eyes around, or even a sudden change in posture that shifts pressure inside the eye can produce a quick flash. These mechanical phosphenes are harmless in themselves, though habitual vigorous eye rubbing over years can weaken the cornea and is something eye doctors generally discourage.
Vitreous Traction and Posterior Vitreous Detachment
If the flashes you are seeing are more like brief lightning streaks in your peripheral vision, particularly if they have appeared recently and were not there before, the most likely explanation involves the vitreous gel inside your eye. This clear, jelly-like substance fills the space between the lens and the retina. With age, the vitreous gradually liquefies and shrinks. As it pulls away from the retina, the tugging mechanically stimulates retinal cells and produces flashes of light.3Ageing Research Reviews. Ageing of the vitreous: From acute onset floaters and flashes to retinal detachment
This process, called posterior vitreous detachment (PVD), is extremely common. It is the single most frequent cause of photopsias that send people to an eye doctor, accounting for about 40% of cases in a large clinical review of photopsia causes.4Ophthalmology. Photopsias: A Key to Diagnosis PVD-related flashes have a characteristic profile: they are quick (lasting a fraction of a second), lightning-like in shape, white, typically off to the side of your vision, and are preferentially noticed in the dark or with eyes closed. About 60% of the time, head or eye movements trigger them.4Ophthalmology. Photopsias: A Key to Diagnosis
PVD itself is usually harmless and eventually settles down. But in a minority of cases the tugging vitreous tears the retina, which can lead to retinal detachment. That clinical review found retinal tears in about 9% and retinal detachment in about 8% of eyes presenting with photopsias.4Ophthalmology. Photopsias: A Key to Diagnosis There are subtle differences in the flashes that can hint at a tear or detachment: patients with retinal tears or detachment sometimes describe flashes that are oriented horizontally or obliquely rather than the typical vertical streaks of uncomplicated PVD, and the flashes may appear in non-temporal parts of the visual field.5PubMed. Discriminate characteristics of photopsia in posterior vitreous detachment, retinal tears and retinal detachment These differences are subtle enough that you should not try to self-diagnose. The important takeaway is that new-onset flashes of light, especially if accompanied by a sudden increase in floaters or a shadow creeping across your vision, warrant a prompt eye examination.
Migraine Aura Without the Headache
Not all closed-eye light shows originate in the retina. Migraine with visual aura produces its own brand of light phenomena: shimmering zigzag lines, expanding arcs, or scintillating spots that typically build up over 5 to 30 minutes and then fade. These patterns arise from a wave of electrical and chemical activity that spreads slowly across the visual cortex.6PubMed Central. Migraine Visual Aura and Cortical Spreading Depression-Linking Mathematical Models to Empirical Evidence Because the disturbance is cortical rather than retinal, you see it whether your eyes are open or closed and it typically affects both eyes in the same part of the visual field.
Migraine accounted for about 6.5% of photopsia cases in the clinical review mentioned earlier.4Ophthalmology. Photopsias: A Key to Diagnosis What surprises many people is that you can get migraine aura without any headache at all, a phenomenon sometimes called acephalgic or silent migraine. This is especially common in people over 50, so someone who has never had migraines might suddenly start seeing shimmering lights with their eyes closed and have no idea what is happening. The geometric, slowly expanding quality of migraine aura is distinctive enough that most eye care professionals can identify it from the description alone, but the first episode understandably alarms people.
When Your Eyes Are Falling Asleep
Many people notice flashes, blobs, or swirling shapes right at the edge of sleep. These hypnagogic phenomena (or hypnopompic, if they happen on waking) sit at the boundary between wakefulness and dreaming. As your brain transitions into early sleep stages, visual cortex activity does not simply switch off in one clean step. Research has shown that stimuli delivered during stage 2 sleep can increase the frequency of visual imagery reports, suggesting that the visual system remains partially receptive even as consciousness fades.7Oxford Academic (Sleep). Induction of Visual Imagery During NREM Sleep
The flashes and shapes people see as they drift off are usually simple: brief white or colored blobs, expanding rings, or static-like grain. They are different from the narrative, movie-like hallucinations of full dreaming. For most people, these are a normal part of the sleep-wake transition and not a sign of anything wrong. They become more vivid and more frequent with sleep deprivation, stress, or caffeine, which makes sense because all of those states blur the boundary between wakefulness and sleep.
Medications That Can Trigger Phosphenes
Certain drugs cause phosphenes as a known side effect. The best-studied example is ivabradine, a heart-rate-lowering medication. Ivabradine inhibits a specific ion current in retinal cells, the same current that normally dampens the retina’s response to slow, noisy background signals. When that dampening is reduced, the random thermal events in rhodopsin and other fluctuations become more likely to register as perceptible flashes.8PubMed Central. Cellular mechanisms underlying the pharmacological induction of phosphenes Patients on ivabradine often describe brief, bright flashes particularly noticeable in low-light conditions or with eyes closed. The effect is dose-dependent and generally fades with continued use or dose adjustment.
Digitalis (used historically for heart conditions) appeared in the clinical photopsia review as well, and phosphodiesterase inhibitors used for erectile dysfunction are notorious for producing transient blue-tinged vision and light sensitivity. In each case, the drug is interacting either with retinal cells directly or with visual processing pathways, temporarily lowering the threshold for perceiving light that is not actually there. If phosphenes start shortly after beginning a new medication, that is worth mentioning to your prescriber.
Less Common but More Interesting Causes
A few unusual triggers for closed-eye flashes are worth knowing about, both because they are genuinely fascinating and because they occasionally explain symptoms that baffle people.
Sound-Induced Flashes
Some people with damage to the optic nerve or nearby visual pathways experience flashes of light triggered by sudden sounds, a phenomenon called auditory-visual synesthesia or sound-evoked phosphenes. In case studies, patients with optic nerve lesions described seeing anything from simple white flashes to colorful kaleidoscope-like patterns whenever an unexpected noise startled them. The flashes always appeared in the part of the visual field affected by the nerve damage, and the triggering sounds were everyday noises ranging from soft to loud.9PubMed. Auditory-visual synesthesia: sound-induced photisms Separate case reports confirmed this in patients with vascular and demyelinating optic neuropathies, where sudden unexpected sounds produced bright phosphenes in the affected eyes.10PubMed. Auditory evoked phosphenes in optic nerve disease The phenomenon seems related to startle reflexes cross-activating a partially disconnected visual pathway. It is rare, but if you have known optic nerve problems and notice light flashes linked to sounds, this is a recognized condition rather than something you are imagining.
Cosmic Ray Flashes
Astronauts have reported seeing flashes of white light with their eyes closed since the Apollo missions. These flashes turn out to be caused by high-energy cosmic ray particles passing through the eye and either directly exciting retinal cells or generating Cherenkov radiation (a flash of light produced when a charged particle moves through a medium faster than light travels in that medium).11Nature. Generation of Cherenkov Light Flashes by Cosmic Radiation within the Eyes of the Apollo Astronauts Astronauts notice these particularly when dark-adapted, and subsequent investigations both in orbit and with particle accelerators on the ground confirmed that ionizing radiation can produce the effect.12PubMed Central. Light flashes and other sensory illusions perceived in space travel and on ground, including proton and heavy ion therapies The same phenomenon has been reported by patients undergoing proton beam therapy for eye or brain tumors. For everyone else on Earth, our atmosphere and magnetic field shield us from the vast majority of cosmic rays, so this is not a meaningful contributor to everyday phosphenes. But it is a vivid demonstration of how the retina responds to any form of energy that reaches it, not just visible light.
Visual Pathway Lesions and Release Hallucinations
When part of the visual pathway is damaged, whether by stroke, tumor, or degeneration, the brain areas downstream from the damage can sometimes become hyperactive and generate their own visual signals, a phenomenon called release hallucinations. This can range from simple flashes and geometric patterns to complex formed images (Charles Bonnet syndrome, which appeared in the clinical photopsia review). The underlying principle is that visual cortex neurons deprived of their normal input become more excitable, lowering the threshold for spontaneous firing.13Brain. Complex visual hallucinations. Clinical and neurobiological insights. Transcranial magnetic stimulation experiments have independently confirmed that direct stimulation of the visual cortex reliably produces perceived flashes of white or colored light.14Brain. Changes in visual cortex excitability in blind subjects as demonstrated by transcranial magnetic stimulation
When to Actually Worry
Most phosphenes are harmless. The baseline dark noise of your retina, the gentle swirls at the edge of sleep, or the stars you see after rubbing your eyes are not signs of disease. But certain patterns deserve prompt evaluation.
New, sudden-onset flashes of light, especially if they appear as streaks in your peripheral vision, should be checked within a day or two. If they arrive alongside a shower of new floaters or a curtain-like shadow in your visual field, that combination suggests possible retinal tear or detachment, which is time-sensitive. When patients with new flashes and floaters are referred to eye clinics, the most common diagnoses being investigated are retinal breaks (about half of referrals) and retinal detachment (about a fifth), though a meaningful proportion of patients turn out to have a normal examination and are discharged after one visit.4Ophthalmology. Photopsias: A Key to Diagnosis In other words, getting checked does not mean you necessarily have a serious problem, but the stakes of missing a retinal detachment are high enough that the trip is worth it.
Flashes that are accompanied by vision loss, persistent headache, or neurological symptoms like weakness or speech changes warrant more urgent attention, as they could point to vascular events affecting the brain. And if phosphenes are interfering with your daily life, persisting for weeks, or changing in character, let an eye care professional sort through the possibilities rather than assuming they will resolve on their own.
After Cataract Surgery
People who have had cataract surgery sometimes notice new flashes and light artifacts afterward. These “positive dysphotopsias” include glare, light streaks, arcs, and flashes. They are surprisingly common in the immediate postoperative period, with up to two-thirds of patients experiencing some form of unwanted light phenomena right after surgery. The reassuring part is that the vast majority resolve on their own: only about 2% have persistent symptoms a year later, and fewer than one in a thousand require any additional surgical intervention for the problem.15PubMed Central. Dysphotopsias or Unwanted Visual Phenomena after Cataract Surgery These flashes come from light interacting with the edges of the artificial intraocular lens and are distinct from vitreous traction flashes, though the two can coexist since both cataract surgery and vitreous detachment become more common with age.
Other Systemic Triggers
Low blood sugar (hypoglycemia) accounted for about 3% of photopsia cases in the large clinical review, and reduced blood flow to the visual centers of the brain (vertebrobasilar insufficiency) contributed another 3%.4Ophthalmology. Photopsias: A Key to Diagnosis These are reminders that the visual system is sensitive to metabolic and circulatory disruptions, not just to what is happening inside the eye itself. People with diabetes who notice new visual flashes should consider whether their blood sugar was dropping at the time. Rapid standing, dehydration, or anything that temporarily reduces blood flow to the brain can also produce brief flashes or graying of vision.
Even something as forceful as a severe coughing fit was identified as a photopsia trigger in about 2% of cases in that same review.4Ophthalmology. Photopsias: A Key to Diagnosis The mechanism is likely a brief spike in venous pressure in and around the eye. Sneezing, straining during heavy lifting, or bearing down can do the same thing on occasion. If it happens once and resolves, there is no cause for concern. If forceful activities consistently produce flashes, it is worth getting your retinal health checked to rule out any pre-existing vulnerability.
The Blue Field Phenomenon
One final entoptic oddity deserves a mention because people sometimes confuse it with phosphenes. If you stare at a bright, uniformly blue sky (or any bright uniform light through closed lids), you may notice tiny bright dots darting along curved paths and then disappearing. These are not phosphenes. You are actually seeing your own white blood cells moving through the capillaries in front of your retina.16Journal of the Optical Society of America. Blue field entoptic phenomenon and blood velocity in the retinal capillaries White blood cells transmit short-wavelength blue light differently than the surrounding red blood cells, creating tiny moving gaps in the light field that your brain registers as bright dashes. The effect is most visible against blue light because that is where the transmittance difference between white and red blood cells is largest. It is completely normal, and some ophthalmologists even use a version of it as a diagnostic tool to measure retinal blood flow.