Why Does My Eye Hurt When I Close It?

Pain that flares when you close your eye usually points to something on or near the surface of the eye, most often a scratch on the cornea, inflamed eyelid margins, or a dry and irritated tear film that the lid drags across as it shuts. Closing the eye forces the inner surface of the eyelid to slide over the cornea, and anything that makes that contact painful, from a tiny abrasion to a swollen oil gland, will announce itself the moment the lid moves. The causes range from harmless and self-limiting to genuinely urgent, and telling them apart often comes down to a few details the average person can check at home.

Corneal Scratches and Foreign Bodies

The cornea is one of the most densely nerve-packed tissues in the body. Even a microscopic scratch can produce pain that feels wildly disproportionate to the injury’s size. Corneal abrasions are the most common reason closing your eye suddenly hurts, because the eyelid presses directly against the damaged surface. Research on corneal abrasion injuries shows that heightened pain sensitivity peaks within the first 24 hours, driven by a surge of nerve-injury markers in the trigeminal nerve pathway that supplies sensation to the eye. Pain responses typically return to normal within about a week, though dry-eye symptoms can linger after the acute pain resolves.1PubMed Central. Acute hyperalgesia and delayed dry eye after corneal abrasion injury

Common culprits include a fingernail nick, a gust of wind carrying grit, a contact lens edge, or even a stray eyelash that gets trapped under the lid. In some cases a tiny metallic or organic foreign body lodges on the cornea and continues to irritate it every time you blink or close the eye. One illustrative case involved a patient whose initial corneal iron foreign body was removed, but who returned months later with ongoing eye pain because a secondary fungal infection had developed at the site.2BMC Ophthalmology. Phaeoisaria sp. fungal keratitis resembling corneal rust residue: a case report The lesson: if eye pain persists well beyond what seems reasonable for a minor scratch, the surface may not have healed cleanly.

Recurrent Corneal Erosion

If you keep waking up with a sharp, stabbing pain in the same eye, especially one that eases within a few hours but keeps coming back night after night, you may be dealing with recurrent corneal erosion. This happens when the outermost layer of the cornea does not bond properly to the tissue underneath. During sleep, the eyelid can literally stick to that loosely attached layer and tear it off when you open or shift your eyes.

Recurrent erosion typically presents as sharp, one-sided pain upon awakening. The most common underlying causes are a prior corneal injury, a condition called epithelial basement membrane dystrophy, or previous eye surgery such as refractive procedures, cataract surgery, or corneal transplant.3PubMed Central. Recurrent corneal erosion: a comprehensive review People sometimes dismiss the pain because it improves by midday, but each episode re-damages the surface and can make the next one more likely. If this pattern sounds familiar, lubricating ointment applied at bedtime can reduce the friction between lid and cornea while you sleep, and an eye-care professional can offer more definitive treatments if ointment alone isn’t enough.

Dry Eye and Tear Film Problems

A healthy tear film acts as a lubricating cushion between the eyelid and the cornea. When tear production drops or tear quality deteriorates, closing the eye can feel like rubbing sandpaper across the surface. The discomfort is sometimes described as burning rather than sharp, and it tends to worsen later in the day, after hours of blinking in dry air, staring at screens, or wearing contact lenses.

What makes chronic dry eye tricky is that the pain sometimes persists even after tear production improves. Research into what has been called “burning eye syndrome” suggests that repeated injury to the corneal sensory nerves from ongoing dryness can trigger changes in how those nerves process pain signals. Over time, the nerves themselves may become hypersensitive, producing spontaneous ocular pain that no longer correlates well with how dry the eye surface actually is.4Oxford Academic Pain Medicine. Burning Eye Syndrome: Do Neuropathic Pain Mechanisms Underlie Chronic Dry Eye? In other words, the dryness can be the initial trigger, but the pain can outlast it by transitioning into something closer to nerve-based chronic pain. That disconnect between surface dryness and pain level is one reason some people feel their eyes hurt on closing even when artificial tears seem to make little difference.

When Your Eyelids Don’t Fully Close at Night

Some people sleep with their eyes partially open without realizing it. This condition, called nocturnal lagophthalmos, leaves a strip of exposed cornea that dries out overnight. By morning, the dried area is raw and inflamed, and fully closing the eye is painful because the lid finally contacts that damaged strip. Studies confirm that the inability to close the eyelids during sleep worsens dry-eye symptoms and also disrupts sleep quality.5PubMed Central. Nocturnal Lagophthalmos and Sleep Quality in Patients with Dry Eye Disease

Partners or family members may notice the gap between the lids during sleep before the affected person is aware of it. Clues include waking up with red, irritated eyes that improve by midmorning, crustiness along the lash line, or a sensation of grittiness concentrated in the lower part of the eye. If you suspect this is happening, a simple test is to apply a thick lubricating eye gel before bed. If morning symptoms improve, incomplete lid closure is likely part of the problem, and it is worth mentioning to your eye doctor.

Blepharitis and Eyelid Margin Inflammation

Your eyelids have dozens of tiny oil glands along their margins, and when those glands get inflamed or clogged, the lid edge becomes sore, swollen, and sometimes crusty. This is blepharitis, and it is among the most common causes of chronic eyelid discomfort across all age groups.6PubMed Central. Diagnosis and management of blepharitis: an optometrist’s perspective Closing the eye presses those inflamed margins together, which is why the pain sometimes isn’t constant but spikes each time you blink firmly or shut your eyes to sleep.

The condition tends to be chronic and fluctuating rather than a one-time event. Symptoms include redness along the lid edge, flaking or crusting at the base of the lashes, a gritty or burning feeling, and occasional blurred vision from the oily debris that spreads across the tear film. Warm compresses held against the closed lids for five to ten minutes can soften clogged oil and relieve discomfort. Gently cleaning the lid margins with a dilute baby shampoo solution or commercially available lid scrub is a standard first-line approach. If a single oil gland becomes severely blocked and swells into a firm bump, that is a stye or chalazion, and it can make closing the eye particularly painful because of the localized pressure against the globe.

Screen Fatigue and Muscle Strain Around the Eye

Not all eye pain on closing comes from the surface of the eye itself. The orbicularis oculi, the ring-shaped muscle responsible for closing your eyelids, can become fatigued and sore just like any other muscle. Research on visually demanding computer work found that sustained screen use raises the load on this muscle and alters blood flow to the area. People who developed eye-related pain during computer work showed elevated muscle blood flow in the orbicularis oculi compared to those who stayed comfortable, even when the actual muscle load was similar between groups.7PubMed Central. Eye-related pain induced by visually demanding computer work

This kind of discomfort tends to build through the day and peaks in the evening, which is why closing your eyes at bedtime can feel achy rather than relieving. It also tends to improve after a good night’s rest and worsen again during extended near work. The difference between muscular eye strain and surface pain is that strain feels dull and deep, centered around the orbit, whereas corneal or lid-margin problems feel sharp, gritty, or burning and localize to the front of the eye. Regular breaks from screen work, proper lighting, and corrected vision if you need glasses can all reduce this type of pain considerably.

Deeper Causes Inside the Eye

Sometimes eye pain on closing signals something happening behind the cornea. Anterior uveitis, or inflammation of the iris and the structures just behind it, is one of the more common forms of internal eye inflammation that primary eye care providers encounter.8PubMed Central. Diagnosis and treatment of anterior uveitis: optometric management It causes a deep, aching pain that worsens with any change in pupil size, including the slight constriction that happens when you close your eyes or move from bright to dim light. Redness concentrated in a ring around the colored part of the eye, light sensitivity, and blurred vision are telltale signs.

Optic neuritis, an inflammation of the nerve that carries visual information from the eye to the brain, can also produce pain with eye movement and sometimes with eye closure. A study of over 100 eyes with optic neuritis found that pain was strongly associated with inflammation toward the back of the optic nerve, likely caused by the pull of eye muscles on the nerve sheath where it passes through the bony socket at the back of the orbit.9PubMed. The origin of pain in optic neuritis. Determinants of pain in 101 eyes with optic neuritis This kind of pain often accompanies noticeable vision changes, such as dimming or color washout in one eye, and warrants prompt medical attention because it can be an early sign of broader neurological conditions.

Sinus Problems That Masquerade as Eye Pain

The sinuses sit remarkably close to the eye sockets, and when they become inflamed or infected, the pain can radiate directly into the eye area. The frontal sinuses sit just above the brow, and the ethmoid sinuses sit between the eyes along the bridge of the nose. Pressure in either location can produce a dull ache that feels like it’s coming from behind or around the eye, and closing the eyes may intensify the sensation simply because it shifts your attention inward.

Acute sinusitis can occasionally cause more dramatic eye-related symptoms. A published case report described a teenager with frontal sinusitis who developed drooping of the eyelid on the opposite side, with no other neurological or infectious cause found.10Saudi Journal of Emergency Medicine. Dreaded Lazy eyelid in an innocent jammed sinus – A rare presentation of acute Sinusitis presenting with acute unilateral ptosis That is an unusual presentation, but it illustrates how closely the sinus and orbital anatomy are interconnected. More commonly, sinus-related eye pain comes with nasal congestion, facial pressure, and pain that worsens when you lean forward or press on the cheekbones.

Allergic Reactions on the Inner Eyelid

Allergies do not just make your eyes itchy and watery. In some cases, the inner surface of the upper eyelid develops raised, cobblestone-like bumps called giant papillae, a condition known as giant papillary conjunctivitis. These bumps form in response to chronic mechanical or allergic irritation, often from contact lenses, ocular prostheses, or exposed sutures after eye surgery. Biopsy samples of affected tissue show a characteristic honeycomb pattern on the upper and lower inner eyelid surfaces.11PubMed Central. Conjunctival cytology features of giant papillary conjunctivitis associated with ocular prostheses

When those bumps are present, closing the eye grinds the roughened inner lid surface across the cornea. The result is pain, a foreign body sensation, and mucous discharge, especially on waking. Contact lens wearers who develop this problem often notice that their lenses feel increasingly uncomfortable and that the pain persists even after removing the lenses. Switching to daily disposable lenses or taking a break from lens wear altogether is usually necessary to let the papillae settle down.

Red Flags That Call for Urgent Care

Most causes of pain when closing the eye are manageable at home or with a routine appointment, but a few warning signs mean you should seek care the same day. Guidelines from the UK’s National Institute for Health and Care Excellence identify five red flags for eye complaints that may require urgent assessment: reduced visual acuity, copious discharge, marked eye pain or light sensitivity, contact lens use in the presence of symptoms, and recent trauma to the eye.12PubMed Central. A Closed-Loop Audit: The Assessment of Red Flags and Management of Acute Conjunctivitis in Primary Care

In practical terms, you should get prompt evaluation if any of the following apply:

  • Vision changes: blurriness, dimming, or missing spots in your visual field that appeared alongside the pain.
  • Severe light sensitivity: pain that worsens sharply in bright light, especially when only one eye is affected.
  • White or yellow spot on the cornea: visible in a mirror, this may indicate an ulcer or infection.
  • Pain after trauma: any blow to the eye, chemical splash, or high-speed particle exposure.
  • Contact lens wear: pain or redness that develops while wearing or shortly after removing lenses, as infections can progress quickly on a lens-wearing cornea.

A gritty, mild ache that improves with lubricating drops and is gone by midday is almost certainly benign. A deep, throbbing pain accompanied by vision changes and light sensitivity is telling you something more serious is happening, and the earlier it gets assessed, the better the outcome tends to be.

Practical Steps When the Pain First Appears

If you have just noticed that closing your eye hurts and there are no red flags, a few measures can help while you figure out the cause. Start by rinsing the eye with clean saline or artificial tears. This flushes away any loose debris and gives the tear film a boost. Avoid rubbing the eye, which can worsen a corneal scratch or push a foreign body deeper. If you wear contact lenses, take them out and switch to glasses until the pain resolves. Applying a clean, warm compress for five to ten minutes can ease lid margin soreness, soften clogged oil glands, and relax the orbicularis muscle if fatigue is a factor.

Over-the-counter lubricating eye drops labeled “preservative-free” are generally safe to use every few hours. Thicker gel drops or ointments work better at night because they stay on the surface longer and reduce friction between the lid and cornea during sleep. If the pain is clearly tied to prolonged screen time, the 20-20-20 approach helps: every 20 minutes, look at something about 20 feet away for 20 seconds. This gives the focusing muscles and the blink reflex a brief reset. If symptoms persist beyond 48 hours, worsen despite home care, or are accompanied by any of the red flags above, schedule an eye exam sooner rather than later.