How Did I Get a Stye? What Really Causes Them

You got a stye because bacteria, almost always Staphylococcus aureus, infected one of the tiny oil glands in your eyelid. These glands normally produce an oily layer that keeps your tears from evaporating too quickly, but when one gets clogged, the trapped oil creates a perfect breeding ground for bacteria already living on your skin. The result is that painful, red bump you’re dealing with now.

What Actually Happens Inside Your Eyelid

Your eyelids contain dozens of oil-producing glands. Some sit right at the base of your eyelashes (called glands of Zeis and Moll), while others are embedded deeper in the eyelid tissue (called meibomian glands). Under normal conditions, these glands release small amounts of oil every time you blink.

A stye forms when one of these glands gets blocked. The oil thickens and stagnates instead of flowing freely, and Staph bacteria that normally live harmlessly on your skin move in and multiply. Within a day or two, the infection produces a tender, swollen bump. If the blocked gland is near the lash line, you’ll see a small yellowish pustule right at the eyelid margin, sometimes with tearing and light sensitivity. If a deeper gland is involved, the swelling shows up on the inner surface of the eyelid and can be more intensely painful, occasionally even causing a low fever.

The Most Common Reasons It Happened to You

Several everyday habits make gland blockages more likely. The most common culprits include:

  • Touching or rubbing your eyes. Your hands carry Staph bacteria constantly. Every time you rub your eyes, you push those bacteria closer to gland openings.
  • Old or shared eye makeup. Mascara is one of the worst offenders. A study testing mascara samples found S. aureus in 79% of them, and nearly all participants admitted to using makeup past its expiration date. Bacteria thrive in the warm, moist environment of a mascara tube. Sharing eye makeup transfers those bacteria between people.
  • Sleeping in contact lenses or poor lens hygiene. The CDC identifies sleeping in lenses, exposing lenses to water, reusing disinfecting solution, and not replacing lenses on schedule as key risk behaviors for eye infections. Any of these can introduce or trap bacteria against your eyelid.
  • Not removing makeup before bed. Leaving eye makeup on overnight blocks gland openings for hours, giving bacteria time to colonize.
  • Stress and sleep deprivation. When your immune system is run down, your body is less effective at keeping normal skin bacteria in check.

Chronic Conditions That Make Styes Recurring

If this isn’t your first stye, an underlying eyelid condition may be at play. Blepharitis, a chronic inflammation of the eyelid margins, causes the oil glands to malfunction persistently. The gland secretions thicken and plug up more easily, setting the stage for repeated infections. Many people with blepharitis don’t realize they have it because the symptoms (slight crustiness at the lash line, mildly irritated eyes) are easy to dismiss.

Ocular rosacea is another common contributor. People with rosacea affecting their eyes experience recurrent eyelid infections, including styes, as a hallmark of the condition. Seborrheic dermatitis, the same condition that causes dandruff, can also inflame the eyelid margins and increase stye risk. If you’re getting styes more than once or twice a year, one of these conditions is worth investigating.

Stye vs. Chalazion: Telling Them Apart

Not every eyelid bump is a stye. A chalazion looks similar but forms differently. While a stye is an active bacterial infection right at the lid margin, a chalazion is a firm, usually painless lump that develops in the middle portion of the eyelid when a blocked gland becomes chronically inflamed without an acute infection. Chalazia often start as styes that didn’t fully resolve.

The key distinction: a stye hurts, appears quickly, and sits at the edge of the lid. A chalazion is deeper, less tender, and develops more gradually. Both can cause swelling, but a chalazion tends to linger for weeks or months rather than days.

When a Stye Becomes Something More Serious

Most styes resolve on their own within a week or so. Warm compresses applied for 10 to 15 minutes several times a day help soften the blocked oil and encourage drainage. You should never squeeze or pop a stye, as this can spread the infection.

Rarely, the infection can spread beyond the gland into the surrounding eyelid tissue, causing preseptal cellulitis. The eyelid becomes diffusely red, warm, and swollen rather than having a single focal bump. More dangerous still is orbital cellulitis, where infection moves behind the eye. Warning signs include changes in vision, pain when moving the eye, the eye appearing to push forward, or double vision. These symptoms require immediate medical attention.

Reducing Your Risk Going Forward

Preventing styes comes down to keeping your eyelid glands clean and unblocked. Wash your hands before touching your face. Replace mascara and liquid eyeliner every three months, and never share eye cosmetics. If you wear contact lenses, follow the replacement schedule exactly, use fresh disinfecting solution every time, and avoid sleeping in them unless they’re specifically approved for overnight wear.

If you have blepharitis or tend to get styes repeatedly, a daily eyelid hygiene routine helps. This means gently cleaning the base of your lashes with warm water or a diluted baby shampoo solution, and using warm compresses regularly to keep the oil glands flowing. Consistent lid hygiene over weeks and months is more effective than reacting only when a stye appears.