This is why you sometimes see patterns when you close your eyes

When you close your eyes, do you see anything odd? Maybe shapes, colors or people?

If you do, there may be a scientific explanation. It isn’t necessarily rare, but many people don’t realise there are a few well-understood reasons it can happen.

Some people say that when they shut their eyes, they notice patterns, bright specks, shifting shapes, or other visual “noise” instead of total darkness.

For most, closing their eyes brings a blank, dark field. For others, it can feel more like a light show—think drifting colours, geometric designs, or a spinning, kaleidoscope-like effect.

In some situations, visuals like these can be linked to health issues. But if you’re otherwise well and it’s mainly happening around rest or sleep, it can also be something benign.

One possible umbrella term is closed-eye hallucinations.

Ubie Health suggests that if these visuals show up most often as you’re falling asleep, they may be a specific kind called hypnagogic hallucinations.

On its site, the service notes that seeing ‘swirling colors, grids, or geometric shapes as you drift off is usually a normal hypnagogic hallucination’ and attributes it to the visual cortex staying active even as the brain transitions toward sleep.

Another explanation is phosphenes.

The Cleveland Clinic explains that phosphenes cause ‘flashes of light with or without structure that you see when there isn’t an actual source of light entering into your eye.’

That description can match what people report as random pixels, flickers, or brief bursts of light and shadow behind closed eyelids.

According to the Vision Eye Institute, phosphenes can be intensified by ‘everyday stimuli, such as an intense sneeze, hearty laughter, coughing, blowing your nose or standing up too quickly’.

They can also happen if you gently press on your closed eyelids, which can trigger the retina or visual system to fire signals even without incoming light.

Healthline also lists other closed-eye hallucination experiences, including vivid images of random objects.

That said, similar symptoms can sometimes be connected to medical problems. One example is hyponatremia—dangerously low sodium levels in the blood—which requires urgent care and may also involve confusion, weakness, and seizures.

Another potential cause is Charles Bonnet syndrome, which the Clinic links to vision loss (including from macular degeneration) in older adults.

In that case, the hallucinations are sometimes described as phantom images and are more likely to occur with eyes open. The UK’s NHS says someone with the condition may see patterns such as shapes or lines, or people, animals, objects or places—either moving or still—and in black and white or colour.

These visual episodes can appear abruptly and may last anywhere from a few minutes to several hours.