Styes come from bacterial infections in the tiny oil-producing glands along your eyelid margin. The culprit is almost always Staphylococcus aureus, a common bacterium that lives on skin and can cause trouble when it gets trapped in a blocked gland. The process starts with a clog, and the infection follows.
How a Stye Forms
Your eyelids contain dozens of small glands that produce oils to lubricate your eyes and keep tears from evaporating too quickly. When one of these glands gets blocked, its oily secretions stagnate. That stagnant environment becomes a perfect breeding ground for staph bacteria, which are already present on most people’s skin. The bacteria multiply inside the blocked gland, triggering the red, swollen, painful bump you recognize as a stye.
There are two types, depending on which glands are involved. An external stye forms at the base of an eyelash, where small oil and sweat glands sit right along the lid margin. This is the more common kind and tends to look like a small yellowish pustule surrounded by redness. An internal stye develops deeper in the eyelid, in the larger oil glands embedded in the lid’s firm tissue. Internal styes are less visible from the outside but can be more painful because the swelling presses against the eye.
Most external styes follow a predictable course: they swell and hurt for a day or two, then form a visible head, rupture on their own within two to four days, and resolve once the pus drains. Internal styes can take longer and sometimes need more attention.
Common Triggers and Risk Factors
Anything that increases bacteria near your eyes or promotes gland blockages raises your risk. These are the most common contributors:
- Touching your eyes with unwashed hands. This is the single most direct way staph bacteria reach your eyelid glands.
- Old or shared eye makeup. Mascara and liquid eyeliner applicators touch your eyes and then sit in a warm tube, giving bacteria time to multiply. Mascara and liquid liners should be replaced every four months. Solid eye pencils last up to a year. Sharing eye makeup transfers bacteria between people.
- Sleeping in makeup. Leaving cosmetics on overnight clogs the gland openings along your lash line, setting the stage for infection.
- Contact lens habits. Handling lenses without washing your hands, or wearing them longer than recommended, introduces bacteria to the eye area.
- Previous styes. If you’ve had one, you’re more likely to get another. Reusing contaminated makeup products is a common reason styes recur.
Skin Conditions That Make Styes More Likely
Some people get styes repeatedly, and the reason often traces back to a chronic skin or eyelid condition rather than a single hygiene lapse.
Rosacea is one of the biggest underlying factors. This inflammatory skin condition, known for causing facial redness, involves the eyes in anywhere from 6% to 58% of people who have it. Ocular rosacea causes chronic inflammation of the eyelid margins and disrupts the normal function of the oil glands. When those glands don’t work properly, blockages happen more easily, and blockages lead to infections. People with ocular rosacea often deal with recurrent styes or chalazia (the non-infectious cousin of a stye) as a result.
Seborrheic dermatitis, a flaky skin condition that commonly affects the scalp and face, can also inflame the eyelid margins and contribute to gland dysfunction. Blepharitis, a general term for chronic eyelid inflammation, is another common setup. In all these cases, the underlying problem is the same: the oil glands along the lid become chronically irritated, their secretions thicken, and bacteria take advantage of the stagnation.
Styes vs. Chalazia
Not every eyelid bump is a stye. A chalazion looks similar in the first day or two, with the same redness, swelling, and tenderness. But the two conditions diverge quickly. A stye stays painful, localizes to the lid margin, and often develops a visible pus-filled head. A chalazion, by contrast, becomes a small, painless, firm nodule sitting in the body of the eyelid after a couple of days. The key difference is that a chalazion is a blocked gland without active infection. It’s an inflammatory reaction to trapped oils, not a bacterial problem.
This distinction matters because they respond to different approaches. Styes usually resolve on their own as they drain. Chalazia can linger for weeks or months because there’s no infection to run its course, just a pocket of trapped material the body slowly reabsorbs.
When a Stye Becomes Serious
The vast majority of styes are minor and self-limiting. Rarely, the infection can spread beyond the gland into the surrounding eyelid tissue, causing a condition called preseptal cellulitis. Signs that this is happening include swelling that spreads across the entire eyelid or beyond the lid margins, fever, and increasing pain that doesn’t improve as the stye matures.
If the infection spreads even deeper, past a membrane called the orbital septum and into the eye socket itself, it becomes orbital cellulitis. This is a genuine emergency. Warning signs include the eye bulging forward, pain with eye movement, vision changes, and fever. Children are particularly susceptible to this progression. If you notice these symptoms in yourself or your child, get to an emergency room.
Reducing Your Risk
Good eyelid hygiene is the most effective prevention. Wash your hands before touching your face or eyes. Remove all eye makeup before bed every night. Replace mascara and liquid liners on schedule, and don’t share eye cosmetics. If you wear contacts, follow your recommended replacement schedule and handle them with clean hands.
For people prone to recurrent styes, daily eyelid cleaning makes a real difference. Foaming eyelid cleansers or pre-moistened lid wipes designed for the eye area help keep the gland openings clear of debris and reduce the bacterial load along the lash line. Warm compresses held against closed eyelids for five to ten minutes also help by softening thickened gland secretions so they flow more freely, preventing the blockages that start the whole cycle.
If you have rosacea, seborrheic dermatitis, or chronic blepharitis, managing the underlying condition is the most important step you can take to break the pattern of recurring styes. Treating only the stye without addressing the chronic inflammation underneath means another one is likely around the corner.

