A stye forms when bacteria infect one of the small oil-producing glands or hair follicles along the edge of your eyelid. The culprit in most cases is Staphylococcus aureus, the same bacterium behind many common skin infections, which was found to account for over half of eyelid infections in a large hospital study.1PubMed Central. Etiology and antibacterial susceptibility pattern of community-acquired bacterial ocular infections in a tertiary eye care hospital in south India The result is a painful, red bump that looks a bit like a pimple, usually on the outer edge of the lid near the lash line. Most styes resolve on their own within a week or two, but what triggers them in the first place, and how they differ from similar-looking lumps, is worth understanding.
How a Stye Actually Develops
Your eyelids contain dozens of tiny glands. Along the lash line sit the glands of Zeis (which produce an oily substance that coats the base of each lash) and the glands of Moll (modified sweat glands). Deeper in the lid, embedded in the firm tissue called the tarsal plate, are the meibomian glands, which secrete the oily outer layer of your tear film. A stye, technically called a hordeolum, starts when bacteria colonize one of these glands or a lash follicle and trigger an acute, pus-forming infection.2PubMed. The lowly chalazion
External styes are the more common type and develop right at the lid margin, around a lash root or the opening of a Zeis or Moll gland. Internal styes form deeper, inside a meibomian gland, and tend to be more painful because the swelling pushes against the firmer tissue of the lid. In either case, the chain of events is the same: a gland opening gets blocked, bacteria that already live on the skin surface multiply in the trapped oil, and the immune system responds with inflammation and pus.
Signs and Symptoms
The first thing most people notice is tenderness or a gritty, foreign-body sensation in one spot on the lid. Within a day or so, a visible bump appears, red and swollen, sometimes with a small yellowish head where pus has collected near the surface. Your eye may water more than usual, and the whole eyelid can look puffy even though the stye itself is localized. Blinking often feels uncomfortable, and the area around the bump may be warm to the touch.
One underappreciated early sign is crusting along the lash line when you wake up in the morning. The same bacterial overgrowth that leads to a stye often causes mild blepharitis (inflammation of the lid margins), and crusty, flaky lashes can precede the bump by days. If you notice that pattern repeatedly, it is worth paying attention to prevention strategies before the next stye has a chance to form.
Stye Versus Chalazion
People often confuse styes with chalazia, and even some clinicians use the terms loosely. The two are related but distinct. A stye is an acute, infectious process: bacteria are actively causing pus and pain. A chalazion, by contrast, is a chronic, non-infectious lump caused by a blocked meibomian gland that has become walled off by the body’s own inflammatory tissue. It forms a firm, painless nodule rather than a tender, red bump.2PubMed. The lowly chalazion
The practical distinction matters because a stye that does not fully drain can become a chalazion. Once the acute infection subsides but the gland remains plugged, granulation tissue builds up around the trapped oils, and you are left with a hard pea-sized lump that may persist for weeks or months. Many “recurring styes” people complain about are actually chalazia that never fully resolved. A chalazion rarely needs antibiotics but sometimes needs a small in-office procedure to drain it.
Who Gets Styes and When
Styes can strike anyone at any age, but eyelid lumps in general are more common in certain age groups. A large analysis of electronic medical records from over two million patients in India found that the prevalence of chalazia peaked in the third decade of life (ages 20–29), with children making up roughly a quarter of cases and adults accounting for the rest.3PubMed Central. Demography and Clinical Features of Chalazion Among Patients Seen at a Multi-Tier Eye Care Network in India Styes follow a broadly similar pattern: young adults are affected frequently, in part because hormonal changes in the teens and twenties ramp up sebum production throughout the body, including in the eyelid glands.
People who have already had one stye are at higher risk for another. Some individuals seem to carry heavier loads of Staphylococcus on their skin, and once a gland has been inflamed, its opening may scar slightly and become easier to block again. If you find yourself getting styes more than once or twice a year, it is worth looking at the underlying risk factors rather than simply treating each episode.
The Rosacea Connection
One of the strongest and most underrecognized risk factors for styes is rosacea, the chronic skin condition best known for facial redness and flushing. Ocular rosacea affects the eyelids and the surface of the eye, and it can cause meibomian gland dysfunction, recurring styes, and chalazia.4PubMed. Rosacea: The eyes have it Many people with ocular rosacea have no idea they have the condition, because the eyelid symptoms can appear years before the facial redness does, or the facial symptoms may be mild enough to dismiss.
A study comparing people who had styes as children with matched controls found that childhood stye sufferers had a significantly higher rate of adult rosacea, about 5.5% compared with 1.5% in the control group.5PubMed. Childhood stye and adult rosacea That suggests the relationship may run in both directions: rosacea predisposes you to styes, and recurrent childhood styes may be an early marker of a rosacea-prone constitution. If you had frequent styes as a kid and now notice facial flushing or persistent redness across the cheeks and nose, it is worth mentioning both to a dermatologist.
Blepharitis and the Vicious Cycle
Blepharitis, or chronic inflammation of the lid margins, is probably the single biggest day-to-day risk factor for developing styes. When the lash line stays inflamed, gland openings swell and narrow, bacteria flourish in the altered oily secretions, and the stage is set for acute infection. A large database study found that blepharitis was strongly associated with chalazia, with roughly a fivefold increase in odds, and was also linked to rosacea, anxiety, and certain gastrointestinal conditions.6PubMed. Associated morbidity of blepharitis
The link between blepharitis, gut disorders, and eyelid disease is still being worked out, but the pattern is consistent enough that researchers take it seriously. The practical takeaway is straightforward: if you have chronic red, flaky, irritated eyelid margins, treating the blepharitis itself with regular lid hygiene is one of the best things you can do to break the cycle of recurring styes.
Demodex Mites and Eyelid Infections
Demodex mites are microscopic parasites that live in human hair follicles and oil glands, including those of the eyelids. Nearly everyone carries some Demodex, but in certain people the populations grow large enough to cause problems. Two species matter here: Demodex folliculorum, which lives in eyelash follicles, and Demodex brevis, which inhabits the meibomian glands and glands of Zeis.7Dermatology Review/Przegląd Dermatologiczny. Ophthalmic manifestations of Demodex spp. infection – what should a dermatologist know?
When Demodex populations explode, the mites physically clog gland openings and trigger chronic inflammation. Symptoms can include itching around the eyes, dry-eye sensation, crusty lashes, and recurrent styes or chalazia.7Dermatology Review/Przegląd Dermatologiczny. Ophthalmic manifestations of Demodex spp. infection – what should a dermatologist know? A classic clue to Demodex involvement is cylindrical dandruff at the base of the lashes, small waxy sleeves that wrap around each lash root. If your eye doctor spots those during an exam, treating the mite overgrowth with tea tree oil-based lid scrubs or a prescription medication like ivermectin can reduce stye recurrence.
Does Diabetes Raise the Risk?
You might expect diabetes to increase the likelihood of styes, given that high blood sugar impairs immune function and raises infection risk in many parts of the body. Surprisingly, a cohort study that specifically investigated the link between diabetes, glycemic control, and a range of eye infections found no association between diabetes and styes or chalazia.8PubMed. The association between diabetes, level of glycaemic control and eye infection: Cohort database study Diabetes does raise the risk of other eye infections, but a stye does not appear to be one of them. This is a case where a reasonable-sounding assumption does not hold up when tested, and it is worth knowing so you do not over-attribute styes to blood sugar issues.
Everyday Triggers and Prevention
Beyond the medical risk factors, some very mundane habits make styes more likely. Touching your eyes with unwashed hands is the most obvious one. Your fingers carry Staphylococcus and other bacteria from every surface you touch, and rubbing your eyes transfers those bacteria directly to the vulnerable gland openings along the lid margin. Contact lens wearers are at particular risk because they handle their eyes routinely. Sleeping in lenses, failing to replace lens cases regularly, and poor hand hygiene before insertion or removal all create opportunities for bacteria to settle in.
Old eye makeup is another underestimated culprit. Mascara wands and eyeliner pencils collect bacteria over time, and applying them along the lash line deposits those microbes exactly where styes start. Replacing mascara every three months and never sharing eye cosmetics are simple steps that make a difference. Sleeping in makeup is one of the worst offenders, because leaving cosmetic residue on the lid margin for hours gives bacteria a warm, moist environment to multiply in while the glands are closed.
For people prone to recurrences, a daily lid-hygiene routine can be surprisingly effective. That means gently washing the lid margins each morning with diluted baby shampoo or a commercial lid scrub, which removes debris, excess bacteria, and flaky skin before they can clog a gland. It is not glamorous, but doing it consistently is arguably more protective than any other single measure.
Warm Compresses and Home Treatment
The first-line treatment for a stye is also the simplest: warm compresses. Heat softens the hardened oils plugging the gland, encourages drainage, and improves blood flow to the area, which helps the immune system clear the infection. The key is getting the lid surface warm enough for long enough. Research into the optimal temperature for melting meibomian gland secretions suggests that heating the lid area to around 40–45°C brings the oils close to their maximum fluidity.9PubMed Central. The Optimum Temperature for the Heat Therapy for Meibomian Gland Dysfunction
How you deliver the heat matters. A trial comparing purpose-made heated eye masks with a simple warm washcloth found that the commercial masks performed significantly better over an eight-week period, while the washcloth showed no meaningful improvement in meibomian gland function.10PubMed. The Efficacy of Warm Compresses in the Treatment of Meibomian Gland Dysfunction and Demodex Folliculorum Blepharitis The reason is straightforward: a wet washcloth loses its heat within a couple of minutes, well before the oils have softened enough to drain. Microwaveable bead masks or gel packs hold their temperature for the 10 to 15 minutes you actually need. If you do use a washcloth, you need to keep re-wetting it in hot water every few minutes rather than pressing a single lukewarm cloth against your eye and hoping for the best.
Resist the temptation to squeeze or pop a stye. Forcing it can push the infection deeper into the lid tissue or spread bacteria to adjacent glands, turning one stye into two. Let the warm compress do the work. Most styes will come to a head and drain on their own within a few days to a week.
When to See a Doctor
Most styes do not need medical attention, but certain signs warrant a visit. If a stye has not improved after a week of consistent warm compresses, if the swelling is spreading beyond the lid margin to the rest of the eyelid or the surrounding skin, or if you develop fever, those are reasons to get checked. Spreading redness and swelling can signal preseptal cellulitis, a more serious infection of the tissue around the eye that may need oral antibiotics.
For styes or chalazia that do make it to a doctor’s office, the evidence on treatment is reassuring. A study of outcomes across different treatment approaches found that adding antibiotics, whether drops or ointments, to standard warm compress therapy did not significantly improve success rates for either styes or chalazia.11PubMed Central. Efficacy of Care and Antibiotic Use for Chalazia and Hordeola In other words, most of the time the antibiotics your doctor might prescribe are not doing much beyond what heat and time accomplish on their own. When a stye or chalazion persists and needs a procedure, however, the results are excellent: incision and drainage resolved roughly 97% of styes in that same study.11PubMed Central. Efficacy of Care and Antibiotic Use for Chalazia and Hordeola
Eyelid Lumps That Are Not Styes
Not every bump on the eyelid is a stye or a chalazion. One scenario that keeps ophthalmologists vigilant is the eyelid lesion that looks like a chalazion but does not behave like one. A chalazion that recurs in the exact same spot after drainage, or one that bleeds easily, distorts the lash line, or causes lash loss, should be biopsied. Sebaceous gland carcinoma, a rare but aggressive cancer, can masquerade as a chronic chalazion. By far the most common malignant eyelid tumor is basal cell carcinoma, but sebaceous gland carcinoma is the one most likely to be misdiagnosed as a benign chalazion because it arises from the same meibomian glands.12Springer. Diagnosis and treatment of malignant eyelid tumors
The red flags to remember are straightforward: a lump that recurs in the identical location after apparently resolving, a lump that has been growing slowly for more than a couple of months, loss of lashes overlying the bump, or a change in the skin texture of the lid. None of these are common, and the vast majority of eyelid bumps are completely benign. But the stakes of missing a malignancy are high enough that an eyelid lump that does not follow the normal script deserves a closer look.
Styes in Children
Children get styes for all the same reasons adults do, with the added factor that kids touch their faces constantly and are less likely to keep their hands clean. The anatomy is no different, but the practical management can be trickier because convincing a small child to hold a warm compress against a sore eye for 10 minutes requires patience and creativity. Heated gel masks designed for children, or even a warm hard-boiled egg wrapped in a clean cloth, can sometimes work better than a washcloth that a child keeps pulling away.
As mentioned earlier, frequent childhood styes are associated with a higher rate of rosacea later in life.5PubMed. Childhood stye and adult rosacea This does not mean every child who gets a stye will develop rosacea. But for children who get them repeatedly, it is worth noting the pattern and mentioning it to a pediatrician or dermatologist as the child grows up. Early identification of rosacea-prone skin can guide skincare choices and potentially reduce the severity of the condition in adulthood.
Contact Lenses, Makeup, and Other Practical Concerns
If you develop a stye while wearing contact lenses, switch to glasses until the stye has fully resolved. Contacts can trap bacteria against the lid, irritate the inflamed gland, and make recovery slower. Discard the pair of lenses you were wearing when the stye appeared, since bacteria may have colonized the lens surface.
The same logic applies to eye makeup. Throw away any mascara, eyeliner, or eyeshadow applicators that were used in the days before the stye appeared. Continuing to use contaminated products is one of the most common reasons people get styes in clusters. Once the stye has healed, start fresh with new products. Sharpening eyeliner pencils before each use removes the contaminated surface layer and is a worthwhile habit even when you are stye-free.
Stress and sleep deprivation come up frequently in conversations about styes, and while no randomized trial has isolated either as a direct cause, the mechanism is plausible. Chronic stress and poor sleep both weaken immune surveillance at the skin level, which could give resident Staphylococcus populations the edge they need to breach a gland lining. If you notice styes popping up during high-stress periods or after stretches of poor sleep, treat that pattern as meaningful even if the formal evidence is not yet ironclad. Addressing the stye and addressing the sleep are both worth doing.