Eye gunk is a mix of mucus, oil, skin cells, and dust that collects in the corners of your eyes, especially overnight. A small amount of crusty or sticky residue when you wake up is completely normal. When your eyes produce noticeably more discharge, or it changes color or texture, something else is usually going on.
Why You Wake Up With Crusty Eyes
Your eyes are constantly producing a thin film of tears made up of three layers: a watery layer, an oily layer, and a mucus layer. Throughout the day, blinking sweeps away dead cells, dust, and other tiny debris. At night, you stop blinking. All that material pools in the corners of your eyes and along your lash line, drying into the familiar crust or sticky clump you find each morning. This substance is called rheum, and it’s a sign your eyes did their housekeeping while you slept.
The amount varies from person to person and even day to day. Sleeping in a dry room, wearing contact lenses, or spending hours staring at a screen can all increase what you find in the morning. A thin, whitish or clear film that wipes away easily is nothing to worry about.
Infections That Increase Discharge
Pink eye (conjunctivitis) is the most common infection behind a sudden increase in eye gunk. The type of discharge often points to the cause. Bacterial conjunctivitis tends to produce thick, yellow or green pus that can glue your eyelids shut overnight. In severe cases, the discharge can be massive and build up quickly throughout the day. Viral conjunctivitis, on the other hand, typically starts in one eye and produces a thinner, watery discharge that may turn slightly white or yellow.
Bacterial infections caused by chlamydia can produce purulent (pus-filled) discharge in adults, while in newborns, the same organism may cause discharge that looks watery, mucus-filled, or even slightly bloody. These differences in texture and color are useful clues, but the key takeaway is straightforward: if discharge is thick, colored, or worsening over a day or two, an infection is likely.
Allergies and Stringy Mucus
Allergic conjunctivitis produces its own signature type of eye gunk. When pollen, pet dander, or dust mites trigger a reaction, your body releases histamine into the tissue around your eyes. This causes the classic combination of red, itchy, swollen, watery eyes, often with a stringy or ropy discharge that can look white or pale yellow.
The stringy texture is distinctive. Unlike the thick pus of a bacterial infection, allergic discharge stretches when you pull it away from the eye. Itching is usually the dominant symptom. If your eyes itch intensely and produce clear, stretchy strands, allergies are the most likely explanation. Over-the-counter antihistamines typically start working within about 30 minutes and can reduce both the itching and the excess mucus.
Blepharitis and Eyelid Inflammation
Blepharitis is a chronic inflammation of the eyelids that causes some of the most persistent, annoying eye gunk. It comes in two main forms. Anterior blepharitis affects the outside of the eyelid near the lash line and produces greasy flakes and crusting around the base of your eyelashes, similar to dandruff. Posterior blepharitis involves the tiny oil glands (meibomian glands) on the inner rim of the eyelid, which start producing thickened, unhealthy oil instead of the clear liquid that normally keeps your tear film stable.
The discharge from blepharitis can look foamy and white or pus-like and yellow-green. You might notice your eyelids feeling greasy or swollen, with flakes of skin collecting around your eyes. In more severe cases, crusts can stick your lashes together, and removing them roughly can cause bleeding. Over time, blepharitis can lead to lash loss or lashes that grow inward toward the eye surface. The condition tends to be ongoing rather than a one-time event, requiring regular eyelid hygiene to keep symptoms manageable.
When the meibomian glands stop functioning well, the quality of your tears drops. This creates an overlap with dry eye: your eyes feel gritty and irritated, and they may compensate by producing more mucus, which only adds to the gunk.
Dry Eyes and the Mucus Cycle
It sounds counterintuitive, but dry eyes can actually cause more eye discharge, not less. When your eyes lack adequate moisture, specialized cells in the conjunctiva (the clear tissue lining the inside of your eyelids) ramp up mucus production to compensate. The result is thick, stringy strands of mucus that collect in the corners of your eyes or drape across your vision.
This extra mucus creates a tempting urge to fish it out with your finger. That habit, sometimes called mucus fishing syndrome, makes things worse. Pulling strands of mucus from your eye mechanically irritates the surface, which triggers those same cells to produce even more mucus. Your fingers also introduce bacteria and other irritants that cause further inflammation, histamine release, and swelling. The cycle can escalate quickly: more irritation, more mucus, more fishing, more irritation. If you notice yourself constantly pulling stringy gunk from your eyes, the underlying issue is usually dryness or another condition driving excess mucus production, and breaking the habit is an essential part of treatment.
Blocked Tear Ducts in Babies
If you’re a parent noticing persistent gunk in your newborn’s eyes, a blocked tear duct is the most common explanation. The condition is common in newborns because the drainage system that carries tears from the eye into the nose hasn’t fully opened yet. Tears pool and stagnate, leading to a watery eye with mucus or pus discharge collecting on the lids and eye surface.
Most blocked tear ducts in infants resolve on their own within the first year as the drainage pathway matures. Gentle massage of the area between the inner corner of the eye and the side of the nose can help open the duct. If the discharge becomes thick, yellow, or green, or the skin around the eye turns red and swollen, the stagnant tears may have become infected.
What the Color Tells You
The color and texture of your eye discharge is one of the most practical clues to its cause:
- Clear and watery: Allergies, viral infection, or dry eye irritation.
- White, stringy, or ropy: Allergic conjunctivitis or dry eye with excess mucus production.
- Foamy and white: Blepharitis, particularly when oil glands in the eyelids aren’t working properly.
- Yellow or green and thick: Bacterial infection. The thicker and more colored the discharge, the more likely bacteria are involved.
- Crusty residue that seals eyelids shut: Can occur with bacterial or viral conjunctivitis, or with blepharitis. The key is whether it’s a one-time event or a chronic pattern.
A single morning of slightly heavier crust after a poor night’s sleep or a dusty day is rarely a concern. Discharge that persists for more than a day or two, keeps coming back throughout the day rather than just overnight, or is accompanied by pain, light sensitivity, or blurred vision points to something that needs attention.
When Eye Gunk Signals Something Serious
Most causes of eye discharge are minor irritations or treatable infections. But certain combinations of symptoms warrant prompt evaluation. Discharge paired with significant eye pain and sensitivity to light can indicate keratitis or a corneal ulcer, conditions where the clear front surface of the eye is damaged or infected. A red, painful eye with nausea, vomiting, or halos around lights could signal a sudden spike in eye pressure that needs emergency treatment.
Any sudden change in vision alongside discharge, especially if it affects only one eye, is a red flag. Floaters, flashes of light, or a sensation like a curtain being drawn across your field of vision are unrelated to simple eye gunk and suggest problems deeper inside the eye that require immediate care.

