Why Do My Eyes Hurt When I Wake Up in the Morning?

Morning eye pain usually comes down to your eyes drying out overnight. During sleep, tear production drops significantly, and any condition that disrupts the thin protective film covering your cornea will make itself known the moment you open your eyes. The good news is that most causes are manageable once you identify what’s happening.

Your Tear Film Changes While You Sleep

When your eyes are closed, they produce a different type of tear than when you’re awake. These closed-eye tears contain specialized compounds that protect and repair the corneal surface. If anything interferes with this process, the cornea can dry out, stick slightly to the inner eyelid, or become inflamed. That’s why so many eye conditions feel worst in the first few minutes after waking: your eyes have spent hours in a vulnerable state, and the damage reveals itself when you blink.

Blocked Oil Glands in the Eyelids

The most common culprit behind gritty, burning morning eyes is dysfunction in the tiny oil-producing glands lining your eyelid margins. These glands secrete a thin layer of oil that sits on top of your tears and prevents them from evaporating too quickly. When the glands become blocked, usually from thickened secretions or skin cell buildup, the oil layer breaks down. Without it, tears evaporate faster, the cornea dries out, and bacteria on the eyelid margin produce inflammatory byproducts that irritate the surface further.

This condition often goes hand in hand with blepharitis, a chronic low-grade inflammation of the eyelid edges. You might notice crusty debris along your lashes in the morning, redness at the lid margins, or a foreign-body sensation that improves as the day goes on. Aging, prolonged screen use, and hormonal changes all increase the risk. Warm compresses held against closed eyelids for five to ten minutes can soften blocked secretions and get oil flowing again. Doing this consistently before bed makes a noticeable difference for many people.

Sleeping With Partially Open Eyes

An estimated number of people sleep with their eyelids slightly open without realizing it. This is called nocturnal lagophthalmos, and even a small gap exposes a strip of cornea to air all night. The exposed area dries out and develops tiny surface erosions, often visible as a band of irritation across the lower portion of the cornea. You wake up with stinging, redness, or the sensation that something is in your eye.

Because the protective tear chemistry that activates during sleep depends on full eyelid closure, even partial opening disrupts the system. If your partner has noticed your eyes don’t fully close at night, or if you consistently wake with irritation in the lower half of your eyes, this is worth investigating. Overnight lubricating ointments applied inside the lower lid before sleep can create a protective barrier. Some people also benefit from medical tape or sleep masks that gently hold the lids shut.

Recurrent Corneal Erosion

If your morning eye pain is sharp and sudden, like a stabbing sensation the instant you open your eyes, you may be dealing with recurrent corneal erosion. This happens when the outermost layer of the cornea doesn’t adhere properly to the layer beneath it. Overnight, as tears thin out and the surface dries, the inner eyelid can stick to this loosely attached layer. When you open your eyes, the eyelid peels a patch of corneal cells away, essentially creating a small wound on the surface of the eye.

The pain is immediate and can be intense, often accompanied by tearing and light sensitivity that gradually improves over minutes to hours. Previous eye injuries, even minor scratches from years earlier, are the most common setup for this condition. The original injury heals but the attachment between cell layers never fully restores. Treatment typically starts with aggressive overnight lubrication to prevent the eyelid from sticking. For stubborn cases, an eye doctor can perform procedures that encourage stronger adhesion between the corneal layers.

Your Sleeping Position Matters

Side sleepers and stomach sleepers press their face into the pillow, which can physically push on the eyelids and distort them throughout the night. In some people, the upper eyelid becomes excessively lax and flips open or folds under pressure. This is known as floppy eyelid syndrome, and it typically affects one eye more than the other, specifically the side you sleep on. The exposed eye dries out, and the mechanical rubbing against the pillow or pillowcase causes conjunctival irritation.

If your morning eye pain is consistently worse in one eye, and that eye corresponds to the side you sleep on, this pattern is a strong clue. Switching to sleeping on your back often improves symptoms. A firm sleep mask that shields the eyes without pressing on them can also help by preventing the lids from catching on bedding.

Allergies and Your Bedroom Environment

Dust mites thrive in pillows, mattresses, and bedding, and their waste particles are a potent allergen. If you’re sensitive to dust mites, spending eight hours with your face buried in a pillow concentrates your exposure. The immune response causes inflammation of the conjunctiva, the clear membrane covering the white of your eye, leading to itchy, red, watery eyes that are worst upon waking. Symptoms tend to be worse while sleeping or during cleaning, according to Mayo Clinic data.

Encasing your pillows and mattress in allergen-proof covers, washing bedding weekly in hot water, and keeping bedroom humidity below 50 percent can reduce dust mite populations substantially. If your morning eye irritation comes with nasal congestion and sneezing, allergies are a likely contributor.

CPAP Mask Air Leaks

If you use a CPAP machine for sleep apnea, air leaking from the top of your mask is a surprisingly common cause of morning eye pain. A poorly fitting nasal mask can direct a steady stream of pressurized air upward into one or both eyes all night, drying out the surface. You might wake with eyes that feel dry, irritated, or paradoxically watery as the eyes try to compensate for the drying. Adjusting the mask fit so it doesn’t sit too high on the bridge of your nose usually solves the problem. If your mask is worn or stretched, replacing the cushion or trying a different mask style can eliminate the leak.

Eye Pressure Peaks Overnight

The fluid pressure inside your eyes follows a circadian rhythm, rising during sleep regardless of your body position. For most people this increase is harmless, but for those with glaucoma or a predisposition to it, these overnight pressure spikes can cause a dull ache or headache centered around the eyes upon waking. The pressure typically decreases after you’ve been upright for a while, which is why the discomfort fades as the morning progresses. If you have a family history of glaucoma or notice a persistent dull pressure behind your eyes in the morning, an eye pressure check is worthwhile.

What You Can Do Tonight

For most people, morning eye pain responds well to a few straightforward changes. Applying a preservative-free lubricating ointment or gel to the eyes at bedtime creates a protective layer that lasts through the night. These are thicker than regular eye drops and will blur your vision briefly, which is why they’re best used right before sleep. Warm compresses before bed help keep eyelid oil glands open. Keeping a humidifier in the bedroom prevents the air itself from pulling moisture off your eyes.

Avoid sleeping directly under a ceiling fan or with a fan pointed at your face, as moving air accelerates tear evaporation dramatically. If you wear contact lenses, make sure you’re removing them before bed, since overnight lens wear multiplies the risk of corneal drying and infection.

Signs That Need Prompt Attention

Most morning eye discomfort is a nuisance, not an emergency. But certain symptoms warrant seeing an eye doctor soon rather than waiting. A visible white spot on the cornea with moderate to severe pain suggests a corneal ulcer, especially in contact lens wearers. Sudden vision loss, even if painless, can signal conditions like optic nerve damage or retinal detachment. A painful, deeply red eye with a hazy cornea and nausea could indicate acute angle-closure glaucoma, which requires same-day treatment to prevent permanent vision loss. Significant swelling around the eye with pain and difficulty moving the eye in any direction may point to an orbital infection. Any of these combinations should prompt you to seek care the same day rather than waiting to see if symptoms improve on their own.