A stye forms when bacteria, almost always Staphylococcus aureus, infect one of the tiny oil or sweat glands along the eyelid margin. The result is a painful, red, swollen bump that looks and feels a lot like a pimple. Most styes resolve on their own within a week or two, but they tend to come back if the underlying conditions that invited the infection are still present. Understanding those conditions, and what you can actually do about them, is more useful than simply knowing “bacteria did it.”
How a Stye Actually Develops
Your eyelids are lined with several types of glands. Along the lash line sit the glands of Zeis (small oil glands attached to eyelash follicles) and the glands of Moll (modified sweat glands). Deeper inside the eyelid, embedded in the firm tissue called the tarsal plate, are the meibomian glands, which produce the oily layer of your tear film. When any of these glands gets clogged by dead skin cells, dried oil, or debris, bacteria that normally live harmlessly on the skin surface can multiply inside the blocked gland and trigger an acute infection.
S. aureus is the dominant culprit. It colonizes the skin of most people without causing problems, but once trapped in a plugged gland with a warm, moist environment, it multiplies quickly and triggers the immune response that creates the classic tender lump.1PubMed Central. The Pathogenesis of Staphylococcus aureus Eye Infections External styes involve a lash follicle or Zeis gland and usually appear as a small pustule right at the lid margin. Internal styes affect the meibomian glands deeper in the lid, causing more diffuse swelling, redness on the inner surface of the lid, and sometimes noticeable conjunctival irritation.2PubMed Central. What Can Cause a Stye in the Eye and How to Prevent It – Section: Staging/Classification
Blepharitis and the Recurrence Trap
If you have had one stye, you are more likely to get another, and the most common reason is chronic blepharitis. Blepharitis is low-grade, ongoing inflammation of the eyelid margins. It creates an environment where glands are perpetually on the edge of blockage, the bacterial load along the lash line is elevated, and the quality of the oils those glands secrete is degraded. In a study of 92 cases of anterior blepharitis treated with topical antibiotics, more than half relapsed, with several patients experiencing three, four, or even five separate episodes during follow-up.3Eye & Contact Lens. Long-Term Prognosis of Anterior Blepharitis After Topical Antibiotics Treatment That recurrence rate illustrates why treating an individual stye without addressing the underlying blepharitis is often a losing strategy.
There are two broad flavors of blepharitis. Anterior blepharitis affects the outside of the lid near the lashes and is typically driven by bacteria or seborrheic dermatitis. Posterior blepharitis involves meibomian gland dysfunction, where the glands produce thick, waxy secretions that don’t flow properly. Both types predispose you to styes, but posterior blepharitis specifically increases the risk of the more painful internal variety.
Skin Conditions That Raise Your Risk
Rosacea, a chronic inflammatory skin condition best known for facial flushing and redness, has a well-documented ocular component. Ocular rosacea can cause persistent eyelid margin inflammation, and styes and chalazia (the chronic, non-infectious cousins of styes) are listed among the frequent indicators of the condition.4PubMed Central. Ocular Rosacea: An Updated Review – Section: Clinical Features and Differential Diagnosis If you find yourself dealing with recurrent styes alongside facial redness or visible blood vessels on the cheeks and nose, it is worth mentioning the combination to a dermatologist or ophthalmologist. Treating the rosacea itself can reduce the frequency of eyelid flare-ups.
Seborrheic dermatitis, which causes dandruff on the scalp, can also flake and irritate the eyelid margins in the same way. Atopic dermatitis (eczema) is another culprit. Any condition that disrupts the normal skin barrier of the eyelid makes it easier for glands to clog and for bacteria to gain a foothold.
The Demodex Connection
Demodex mites are microscopic arachnids that live in hair follicles and oil glands across most adult faces. They are usually harmless passengers, but when their populations grow too large, they can trigger inflammation, particularly along the eyelid margin. Researchers have proposed that when these mites die and decompose inside a gland, their chitinous exoskeletons provoke a localized inflammatory reaction that can lead to a stye or chalazion.5PubMed Central. Demodex Blepharitis: A Comprehensive Review of the Disease, Current Management, and Emerging Therapies – Section: Chalazia, Hordeola, and Pterygia
Demodex blepharitis has its own signature look: cylindrical, waxy dandruff at the base of the lashes, sometimes called “collarettes.” If your eye doctor notices these during an exam, they may recommend tea tree oil-based lid scrubs or a prescription treatment. Addressing the mite overgrowth can reduce the cycle of recurring eyelid bumps that conventional antibiotic drops alone may not break.
Makeup, Contact Lenses, and Daily Habits
Eye makeup is a common but underappreciated contributor to eyelid gland problems. Eyeliner, mascara, and eyeshadow can physically block gland openings at the lash line, especially products applied to the waterline (the inner rim of the eyelid). A cross-sectional study of eye makeup users found that a striking 85% reported at least one ocular adverse reaction, with tearing being the most frequent complaint.6PubMed Central. Ocular adverse events associated with eye makeup: a cosmetovigilance-based cross-sectional study of prevalence and predictors among Jordanian women An interesting wrinkle in that same data: women who reported consistently removing their eye makeup before sleep actually had a higher rate of adverse reactions than those who didn’t. The researchers speculated that the removal process itself, particularly vigorous rubbing or use of irritating cleansers, might be contributing to lid irritation. The lesson isn’t “don’t remove your makeup,” but rather that how you remove it matters. Gentle, oil-based removers and soft pads tend to cause less friction than cotton balls and harsh micellar waters.
Contact lenses introduce their own risks by altering the eyelid environment. They sit on the cornea and can disrupt the tear film, irritate the lid’s inner surface with each blink, and accumulate protein and lipid deposits that harbor bacteria. A study of medical students who wore contact lenses found that nearly a third reported at least one lens-related complication, and common hygiene lapses included wearing lenses past their replacement date, sleeping in them, and swimming with them in.7PubMed Central. Prevalence, habits and outcomes of using contact lenses among medical students Each of these behaviors increases the bacterial and inflammatory load on the ocular surface, setting the stage for a stye. Contact lens wear can also alter the composition and diversity of the ocular surface microbiome, shifting the balance away from protective commensal organisms and toward opportunistic pathogens.8PubMed Central. The Ocular Surface Microbiome in Homeostasis and Dysbiosis
Environmental and Occupational Factors
Dust, wind, smoke, and air pollution can all irritate the eyelid margins, encourage gland blockage, and introduce additional microbial load. Farmers and agricultural workers appear to experience higher rates of eyelid bumps consistent with styes and chalazia, and researchers have attributed this to continuous exposure to organic dust combined with workplace hygiene challenges.9PLoS One. Eye health in farmers: The impact of environmental and occupational factors Construction workers, mechanics, and anyone who spends long hours in smoky or dusty conditions faces similar risks.
Heat and humidity also play a role, though in a more indirect way. Hot climates tend to increase facial sweating and sebum production, which can make gland blockages more likely. On the other end, very dry environments, including heavily air-conditioned offices, promote tear-film instability and meibomian gland stagnation. The common thread is any environmental condition that disrupts the normal flow of oil from the eyelid glands or introduces debris that can clog them.
What You Can Actually Do to Prevent Styes
Prevention is mostly about keeping the eyelid glands clean, open, and flowing. The strategies are simple, but consistency matters far more than intensity.
- Warm compresses: A clean, warm washcloth held against closed eyelids for five to ten minutes once or twice a day softens thickened gland secretions and helps them drain. This is the single most effective daily habit for people prone to styes. The cloth should be comfortably warm, not scalding, and you may need to rewarm it partway through. Microwaveable eye masks designed to hold heat longer are a convenient alternative.
- Lid scrubs: After a warm compress, gently cleaning the lash line removes the crusty debris, bacterial biofilm, and makeup residue that contribute to blockages. You can use diluted baby shampoo on a cotton pad, commercially available lid-scrub pads, or hypochlorous acid sprays, which kill bacteria without irritating the delicate eyelid skin.
- Hand hygiene: Rubbing or touching your eyes with unwashed hands is one of the most direct routes for introducing bacteria to the lash line. Wash your hands before inserting or removing contact lenses, applying eye drops, or touching your face.
- Makeup discipline: Replace mascara and liquid eyeliner every three months. Avoid applying products directly to the waterline. Never share eye cosmetics. Use a gentle, oil-based remover and avoid aggressive scrubbing.
- Contact lens care: Follow the replacement schedule your eye-care provider recommended. Clean lenses daily with fresh solution rather than topping off old solution. Never sleep in lenses that are not approved for overnight wear. Avoid swimming or showering while wearing them.
For people with chronic blepharitis or rosacea, these daily habits may need to be paired with prescription treatments: antibiotic ointments for the lid margins, anti-inflammatory drops, or low-dose oral antibiotics to calm the underlying inflammation. If Demodex mites are contributing, targeted lid treatments can help break the cycle.
Can Diet Make a Difference?
There is growing interest in the idea that omega-3 fatty acids can support meibomian gland health. The glands produce an oily secretion, and the composition of that oil matters. When the oil becomes too thick or waxy, the glands clog more easily. A small clinical trial found that participants with meibomian gland dysfunction who took high-dose DHA omega-3 supplements showed improvements in tear-film stability and gland function scores after eight weeks compared to a placebo group.10PubMed Central. Effects of dietary high dose DHA omega-3 supplement in dry eye with meibomian gland dysfunction Another study observed improvements in the oil quality secreted by the meibomian glands after twelve months of omega-3 supplementation, with a shift toward less saturated fatty acids in the gland secretions.11PubMed Central. The role of omega-3 dietary supplementation in blepharitis and meibomian gland dysfunction (an AOS thesis)
These are small studies, and the evidence isn’t strong enough to call omega-3 supplementation a proven stye preventive. But the logic is plausible: healthier gland secretions mean fewer blockages, and fewer blockages mean fewer opportunities for infection. Eating fatty fish a couple of times a week or adding a fish oil supplement is unlikely to hurt and may offer modest protection for people who are already managing other risk factors.
Stye Versus Chalazion
People often confuse styes with chalazia, and the two do start out looking similar. The key difference is that a stye is an acute infection, meaning it is red, tender, and often produces pus, while a chalazion is a chronic, sterile inflammatory cyst caused by a blocked gland that never got infected. Chalazia arise from the same gland obstruction, specifically lipogranulomatous inflammation from blocked meibomian or Zeis glands, but instead of bacteria proliferating inside, the trapped oil provokes a slow immune reaction that produces a firm, usually painless nodule.12PubMed. The lowly chalazion
In practice, a stye sometimes evolves into a chalazion. The acute infection clears, the tenderness fades, but a firm lump persists for weeks or months. Warm compresses remain the first-line treatment for chalazia, and many eventually resolve on their own. When they don’t, a simple in-office procedure to drain the cyst is usually effective. The prevention strategies for both conditions overlap almost entirely: keep the glands open, keep the lids clean, and manage any underlying blepharitis.
When a Bump That Looks Like a Stye Isn’t One
Most eyelid bumps are exactly what they appear to be. But a small number of lesions that look like recurring chalazia or styes are something more concerning. Sebaceous gland carcinoma, a rare eyelid cancer, frequently masquerades as a chalazion. It typically presents as a firm nodule that keeps coming back in the same spot despite treatment.13PubMed Central. Sebaceous Gland Carcinoma of Lid: Masquerading as a Recurring Chalazion This is most commonly flagged as a concern in older adults, but case reports have documented it in younger patients as well, underscoring that age alone shouldn’t be the deciding factor.14Nepalese Journal of Ophthalmology. An Unusual Case of Sebaceous Gland Carcinoma Mimicking Recurrent Chalazion in a Young Patient
The practical rule of thumb: any eyelid lump that recurs in the exact same location, doesn’t respond to standard treatment, changes the architecture of the eyelid margin, or causes loss of lashes nearby warrants a biopsy. This isn’t meant to alarm you. The vast majority of styes and chalazia are benign. But if a bump has been drained or treated more than twice and keeps coming back, it’s worth having an ophthalmologist take a closer look rather than assuming it’s just another stye.
Your Eyelid’s Invisible Ecosystem
The surface of your eye and eyelids hosts a community of microorganisms, sometimes called the ocular surface microbiome, that plays a surprisingly active role in keeping your eyes healthy. Commensal bacteria on the lid margin interact with the local immune system in a way that promotes tolerance to harmless organisms while priming defenses against genuinely dangerous ones.8PubMed Central. The Ocular Surface Microbiome in Homeostasis and Dysbiosis When this microbial balance shifts, whether from antibiotic use, contact lens wear, aging, or chronic disease, opportunistic species like S. aureus can gain the upper hand.
This is one reason why aggressive antibiotic use for every minor stye can be counterproductive. Broad-spectrum antibiotic drops don’t just hit the pathogen; they also suppress the protective bacteria that were helping keep it in check. For uncomplicated styes, warm compresses and time are generally preferred over antibiotics. Reserving antibiotics for cases with spreading cellulitis, preseptal involvement, or failure to improve after a week or two helps preserve the microbial ecosystem that protects against future infections.
Old Remedies and Persistent Myths
Styes have attracted folk remedies for centuries. Historical medical literature documents a fascinating array of treatments: rubbing the eye with a gold wedding ring, applying a poultice of specific herbs, or performing ritualized gestures believed to draw out the infection.15PubMed Central. Ophthalmic Folk-lore The gold ring tradition persists in some communities to this day. While there is no evidence that gold has any therapeutic effect on a stye, the rubbing motion may have provided a crude form of warm massage to the eyelid, which, accidentally, is not entirely off-base mechanistically.
A more modern myth is that styes are contagious in the way a cold is. Styes are caused by bacteria that already live on your own skin, not by a pathogen you caught from someone else. You can’t “give” someone a stye by sharing a pillow. That said, sharing eye makeup, towels, or contact lens solution with someone who has an active stye is still inadvisable, because you would be transferring a concentrated dose of bacteria to your own eyelid margins, where they could exploit any existing gland vulnerability. The distinction matters: it is not that styes spread between people the way infections normally do, but rather that transferring heavy bacterial loads to an already-vulnerable lid can tip the balance toward a new blockage and infection.