What Causes Styes on Eyelids? Bacteria, Habits, and Prevention

A stye is a small bacterial infection that forms when an oil gland along the lash line or deeper inside the lid gets clogged and Staphylococcus aureus multiplies in the trapped oil. The bump appears because your immune system sends white blood cells to fight the bacteria, producing redness, swelling, and tenderness.

Most styes clear on their own in seven to fourteen days with warm compresses and clean hands, though recurring ones usually point to a habit or condition worth addressing.

This article breaks down how a clogged eyelid gland, Staphylococcus bacteria, and daily habits combine to trigger those tender red bumps, then walks through prevention strategies that help people prone to recurring styes.

The Eyelid Glands Most Often Involved in a Stye

Your eyelid looks like a thin fold of skin, but it’s actually a busy factory of microscopic oil glands. Three sets matter most when a stye develops, and which one is involved explains most of what you’ll feel.

External glands at the lash line

The Zeis glands sit right at the base of each eyelash and produce a light oil that keeps the lash follicles from drying out. The Moll glands are sweat glands tucked next to those follicles. When either gland gets clogged, the resulting external hordeolum pokes out near the lash line, often with a small yellow head, and tends to be the most visible kind.

Internal Meibomian glands deeper in the lid

Running vertically deep inside the eyelid, the Meibomian glands secrete the thicker oils that form the outer layer of your tear film. If one of these blocks, the internal hordeolum forms on the inner surface of the lid. You’ll usually feel it more than see it, and the tenderness can be surprisingly sharp because the swelling pushes against sensitive lid tissue.

Recognizing which gland is involved matters because internal styes often linger longer and feel worse than external ones, even though both come from the same basic process: a clogged gland plus trapped oil.

Because that clog is where bacteria seize their opening, turning trapped oil into an inflamed bump.

How Bacteria Turn a Blocked Gland Into a Red Bump

A blocked gland alone doesn’t always cause a stye. Many people walk around with mildly plugged glands and never notice. The infection is what escalates a quiet clog into a painful, swollen bump.

The usual culprit: Staphylococcus aureus

Staphylococcus aureus lives harmlessly on the skin of roughly one in three people, including right around the nose and eyes. The American Academy of Ophthalmology notes it is the bacterium most commonly identified in styes. Once it slips into a clogged gland, the trapped oil becomes a perfect incubator. Bacteria multiply quickly, your immune system sends in white blood cells, and the swelling you see is largely that immune response, not just the clog itself.

How the bacteria get there in the first place

Everyday contact is the usual route. Rubbing your eye with unwashed fingers after touching a phone, a doorknob, or your nose transfers staph straight to the lash line. Old mascara, eyeliner pencils, or shared eye makeup carry bacteria into the follicles. Contact lenses handled with poor hygiene seed germs along the lid margin, and sleeping in lenses dramatically extends the time those bacteria have to settle in.

Recurring styes in the same spot usually mean a chronic bacterial load on the lid margin rather than a string of unlucky events. Reducing that load matters more than treating each bump in isolation.

Everyday Habits and Conditions That Raise Stye Risk

Some people get one stye and never see another. Others get them in clusters, often in the same eye. The difference usually traces back to a handful of habits and underlying conditions that keep the lid margin inflamed or contaminated.

Those same habits also distort the early signs, which is why styes and chalazia are so often confused.

  • Sleeping in eye makeup. Mascara left on overnight crusts into the lash follicles and traps bacteria against the gland openings.
  • Sharing or aging cosmetics. Mascara older than three months, or shared with a friend, carries a heavy bacterial load straight to the follicles.
  • Poor contact lens hygiene. Sleeping in lenses, skipping the case replacement, or using tap water for rinsing invites germs onto the lid margin.
  • Blepharitis. Chronic inflammation of the eyelid keeps the gland openings swollen and flaky, making blockages routine. The Mayo Clinic lists blepharitis as one of the most common conditions linked to recurring styes.
  • Rosacea and seborrheic dermatitis. Both conditions alter the oil chemistry of the face and eyelids, producing thicker secretions that clog more easily.
  • Hormonal shifts and stress. Changes in androgen levels and chronic stress can alter how much oil the Meibomian glands secrete and how viscous it becomes.
  • Weakened immunity or diabetes. When the immune system is suppressed, minor infections flare into repeated, more stubborn styes.

Stye vs Chalazion: Telling Common Eyelid Bumps Apart

Not every lump on your eyelid is a stye. A few common mimics behave differently and respond to different care, so knowing the difference saves you weeks of mistreatment.

FeatureStye (Hordeolum)Chalazion
CauseInfected, blocked oil glandBlocked oil gland without active infection
PainTender, often sharpUsually painless
LocationLash line or inner lidTypically mid-lid, away from the lashes
Speed of onsetSudden, over hours to a daySlow, over days to weeks
AppearanceRed, swollen, may show a yellow headFirm, round, skin-colored nodule
ResolutionOften, within 1–2 weeksSometimes, but slower; stubborn cases need a clinician

Internal styes blur this line because they sit on the inner lid like a chalazion until the bacterial component reddens the overlying tissue. Eyelid cysts, milia, and in rarer cases sebaceous carcinoma can also resemble a stye, but they don’t drain, don’t respond to warmth, and keep growing. Correct identification is what stops weeks of squeezing something that was never going to pop.

Home Care That Shortens a Stye’s Lifespan

Most styes are self-limiting, and a few consistent habits can shave days off their run. The goal is to soften the blockage, encourage natural drainage, and avoid making things worse.

The warm compress routine

A clean washcloth soaked in warm (not hot) water and held against the closed lid for 10 to 15 minutes, three or four times a day, does most of the heavy lifting. The heat liquefies the trapped oil so the gland can drain on its own. After each session, gentle lid massage with a clean fingertip, moving toward the lash line, helps push the softened oil out.

Skip the wet tea bag folklore: a plain washcloth works just as well and is less likely to introduce debris.

What to avoid while it heals

Squeezing or popping a stye pushes infection deeper into the orbital tissue. Hands should stay off the lid entirely except for compresses and gentle cleansing. Eye makeup used in the week before the stye appeared, especially mascara and eyeliner, should be discarded, and contact lenses should be swapped for glasses until the bump fully resolves. A lint-free pad with diluted baby shampoo along the lash line, once a day, helps reduce the bacterial load without irritating the eye.

Most resolve with that routine, but a stubborn few cross the line into something that needs a clinician.

When a Stye Needs a Doctor’s Attention

Most styes stay local and resolve without intervention. A smaller number signal something more serious, and recognizing the warning signs protects both the eye and the surrounding tissue.

Red flags that warrant a same-day visit

Spread of redness or swelling across the whole eyelid, fever, blurred or decreasing vision, severe pain that keeps you from opening the eye, or any discharge that looks like pus mixed with blood points toward a complication such as preseptal cellulitis. Prompt evaluation matters when swelling extends beyond the lid or vision changes accompany the bump, since orbital infections can progress quickly.

Patterns worth discussing with an eye doctor

A stye that grows larger after a week, refuses to drain after two weeks, or keeps returning in the same spot deserves an in-person look. Recurring styes sometimes prompt bloodwork to check for diabetes, a closer inspection for underlying blepharitis or rosacea, or, in stubborn cases, a minor in-office procedure to drain the bump. A clinician can also rule out the rare eyelid tumors that mimic styes but never quite resolve.

If the bump sits in the same spot three or more times, insist on a closer exam.

An eye doctor can also distinguish a stubborn chalazion from a stye, and that distinction changes the care plan. Persistent lumps often need a clinical procedure, not more compresses.

Bottom Line

A stye is your body responding to bacteria that slipped into a blocked oil gland, and the habits that put those bacteria there are usually within your control. Clean hands, fresh eye makeup, proper contact lens care, and a steady warm-compress routine cover the everyday prevention and treatment. When a stye keeps coming back, grows quickly, or starts affecting vision, an eye doctor can sort out whether something deeper is driving the cycle.

FAQ

What is the main cause of a stye on the eyelid?

The main cause is a blocked oil gland at the lash line or inside the lid that becomes infected with Staphylococcus aureus bacteria already living on your skin. The immune response to those bacteria produces the redness, swelling, and tenderness you feel.

Are styes caused by a bacterial infection?

Yes. A stye only becomes a painful red bump once bacteria, most often Staphylococcus aureus, multiply inside a clogged gland and trigger an immune response. A plain clog without infection typically forms a painless chalazion instead.

Can stress or lack of sleep cause styes?

Although stress and poor sleep do not directly trigger styes, they can shift hormone levels, change oil-gland secretions, and weaken immune defenses, increasing the odds that a clog turns into an infected bump.

Why do I keep getting styes on my eyelids?

Recurring styes usually point to a chronic bacterial load on the lid margin, often driven by old eye makeup, blepharitis, rosacea, or a contact lens habit that seeds germs in the same spot each time. Addressing the underlying habit or condition breaks the cycle.

Are styes contagious and how do they spread?

Styes themselves aren’t considered contagious the way a cold is, but the bacteria that cause them can move between people on shared towels, pillowcases, or eye makeup. Use clean linens and never share mascara or eyeliner.

What is the difference between an internal and external stye?

An external stye comes from a clogged Zeis or Moll gland at the lash line and usually shows a small yellow head. An internal stye comes from a clogged Meibomian gland deeper in the lid, often hurts more, and tends to linger longer.

Staff
Staff

Our team brings together health and food enthusiasts who are passionate about discovering reliable health information, nutritious choices, and enjoyable food experiences. From everyday nutrition and healthy eating ideas to recipes, ingredients, food trends, and standout dishes, we share carefully researched and thoughtfully curated content to help readers make informed choices about what they eat and enjoy.