Why Do I Have a Stye on My Eyelid? Causes Explained

A stye forms when one of the tiny oil or sweat glands along your eyelid gets clogged and infected, almost always by staph bacteria that already live on your skin. It shows up as a tender, red bump near your lash line and typically resolves on its own within one to two weeks. But understanding what triggered yours can help you prevent the next one.

What’s Actually Happening Inside Your Eyelid

Your eyelids contain dozens of small glands. Some produce oil that keeps your tears from evaporating too fast. Others are sweat glands attached to your eyelash follicles. When any of these glands gets blocked, bacteria (usually Staphylococcus aureus) that normally sit harmlessly on your skin can multiply inside the clogged gland, causing a localized infection. That’s the painful bump you’re feeling.

External styes form in the smaller oil or sweat glands right at your lash line, so they look like a pimple on the edge of your eyelid. Internal styes develop deeper, in the larger oil glands embedded within the eyelid itself. Internal styes tend to be more painful because they press against the eyeball, but both types follow the same basic pattern: blockage, bacterial overgrowth, swelling, and (usually) drainage and healing.

Common Reasons You Got One

Touching or Rubbing Your Eyes

Rubbing your eyes with unwashed hands is one of the most straightforward ways to introduce extra bacteria to your eyelids. If you have a habit of rubbing your eyes when you’re tired or when allergies flare up, you’re repeatedly pushing bacteria toward those vulnerable gland openings.

Makeup and Cosmetic Habits

Eye makeup is a frequent culprit. Mascara wands, eyeliner pencils, and eyeshadow brushes make direct contact with your lash line, and bacteria accumulate on them over time. Heavy or oil-based products can physically block the glands along your eyelid, creating the warm, sealed environment bacteria thrive in. Expired cosmetics are especially risky because bacterial counts increase the longer a product sits around. Sleeping in your makeup compounds the problem, giving bacteria all night to colonize clogged glands.

Lining the inner rim of your eyelid (the waterline) with eyeliner is particularly likely to block glands, since you’re applying product directly over their openings.

Contact Lens Hygiene

If you wear contacts, improper cleaning or reuse of solution lets bacteria build up on the lens surface, which then sits against your eyelid for hours. Sleeping in contacts is especially problematic because bacteria thrive in moist, dark environments.

Sweat, Chlorine, and Everyday Grime

Sweat and oil from exercise can clog eyelid glands and lead to infection. Chlorinated pool water and hot tubs can also irritate the delicate skin around your eyes. If you exercise regularly or swim, your eyelids are getting exposed to more pore-clogging material than you might realize.

Why Some People Get Styes Repeatedly

If you’re dealing with your second, third, or tenth stye, there may be an underlying condition driving the cycle. The most common one is meibomian gland dysfunction, a condition where the oil glands in your eyelids become chronically clogged or produce thickened, abnormal oil. This creates a near-constant setup for bacterial infection. Recurring styes are actually one of the hallmark signs of meibomian gland dysfunction, and left untreated, it can also lead to chronic dry eye and ongoing eyelid inflammation (blepharitis).

Rosacea is another significant contributor. Up to 92% of people with rosacea have some degree of meibomian gland dysfunction, which causes plugging of the gland openings and recurrent styes. You don’t need to have the classic facial redness to have ocular rosacea. Some people experience it primarily around the eyes, with chronic eyelid irritation and repeated bumps. Seborrheic dermatitis, which causes flaky, oily skin, can affect the eyelids in a similar way.

How a Stye Heals

Most styes resolve on their own in one to two weeks. The bump gradually comes to a head, drains (often while you sleep or during a warm compress), and the swelling fades. Warm compresses are the standard home treatment. Holding a clean, warm washcloth against the affected eyelid for 10 to 15 minutes several times a day helps soften the blocked material and encourages natural drainage.

Resist the urge to squeeze or pop it. Forcing a stye open can spread the infection into surrounding tissue and make things significantly worse.

Stye vs. Chalazion vs. Something Worse

Not every eyelid bump is a stye. A chalazion looks similar but is not an active infection. It forms when a blocked oil gland causes a firm, painless lump in the middle portion of the eyelid rather than at the lash line. Chalazia tend to linger longer than two weeks and don’t have the acute tenderness of a stye. They sometimes develop after a stye that didn’t fully drain.

Preseptal cellulitis is a more serious infection of the eyelid skin. Instead of a single bump, the entire eyelid becomes red, swollen, and tender. Your eye movement and vision stay normal, which distinguishes it from orbital cellulitis, a deeper infection where you may have pain with eye movement, double vision, or vision changes. If your whole eyelid is dramatically swollen, you have a fever, or you notice any change in your vision or ability to move your eye, that’s a different situation from a simple stye and needs prompt medical attention.

Keeping Styes From Coming Back

Basic eyelid hygiene makes a real difference. Washing your face isn’t enough, because the lash line doesn’t get much attention during a typical face wash. Gently cleaning along your lash margin with diluted baby shampoo and warm water targets the area where styes form. This is especially important if you’re prone to recurrences.

For makeup users, a few specific habits reduce your risk:

  • Replace mascara every three months, eyeliner every six months, and eyeshadows at least once a year.
  • Never share eye makeup, as it’s a direct route for passing bacteria between people.
  • Clean brushes and sponges weekly with gentle soap and warm water, and let them dry completely before reuse.
  • Remove all makeup before bed using an oil-free remover or micellar water, followed by a gentle cleanser.
  • Avoid lining your waterline, since this blocks gland openings directly.

If you wear contacts, disinfect them daily and avoid sleeping in them. After swimming or heavy exercise, rinse your eyelids with clean water to clear away chlorine, sweat, and oil before they have a chance to settle into your glands. And the simplest rule: wash your hands before touching your eyes, every time.