A stye forms when one of the tiny oil glands along your eyelid gets blocked and then infected, almost always by a common skin bacterium. The process is straightforward: the gland’s opening clogs, oily secretions build up behind the blockage, bacteria multiply in the trapped material, and a small abscess forms. The result is that painful, red bump you see at the edge of your eyelid.
The Blockage That Starts It All
Your eyelids contain dozens of small oil-producing glands. Their job is to release a thin layer of oil onto the surface of your eye every time you blink, which keeps your tears from evaporating too quickly. When the opening of one of these glands gets clogged, the oil has nowhere to go. It thickens and backs up inside the gland, creating the perfect environment for bacteria to take hold.
The bacterium responsible in roughly 90 to 95 percent of cases is Staphylococcus aureus, a species that already lives on most people’s skin and eyelashes without causing problems. It only becomes an issue when it gets trapped inside a blocked gland alongside stagnant oil. Once the bacteria begin multiplying, your immune system sends white blood cells to fight the infection, and the resulting buildup of immune cells and dead tissue is what forms the swollen, pus-filled bump.
External vs. Internal Styes
Not all styes form in the same place, because your eyelids have more than one type of oil gland.
An external stye, the more common kind, develops at the base of an eyelash. It involves a small gland called the gland of Zeis, which opens directly into the eyelash follicle. You’ll see redness and swelling centered around a specific lash, and if infection is active, a yellowish-red point may appear right at the lash root. This is what most people picture when they think of a stye.
An internal stye forms deeper in the eyelid, inside one of the larger meibomian glands embedded in the firm tissue of the lid itself. These glands have ducts that open along the inner rim of the eyelid. When one becomes infected, the bump tends to “point” toward the inside of the lid rather than the outer skin surface. Internal styes can be more painful because the swelling presses against the eye, and they sometimes take longer to resolve.
Why Some People Get Styes Repeatedly
A single stye is usually just bad luck, but recurring styes point to an underlying condition that keeps the oil glands prone to blockage. The most common culprit is blepharitis, a chronic low-grade inflammation of the eyelid margins. With blepharitis, the gland openings stay partially clogged, bacterial colonies along the lash line are larger than normal, and the oil itself becomes thicker and stickier. All of this makes repeat infections far more likely.
Ocular rosacea is another frequent contributor. This condition, sometimes called meibomian gland dysfunction, causes ongoing inflammation of the eyelids and the skin around the eyes. People with ocular rosacea often develop styes and chalazia as a recurring problem because their meibomian glands are chronically inflamed and prone to blockage. If you notice that styes keep coming back alongside facial redness, dry eyes, or a gritty feeling, rosacea affecting the eyes may be the underlying issue.
Other factors that raise your risk include touching or rubbing your eyes with unwashed hands, sleeping in eye makeup, and using old or contaminated cosmetics. Each of these introduces extra bacteria to the eyelid margin or physically pushes debris into gland openings.
What a Stye Feels Like as It Develops
Most styes follow a predictable pattern. You’ll first notice a tender, slightly swollen spot on the eyelid. Over the next day or two, the area becomes redder and more painful, and a visible bump forms. Your eyelid may feel heavy or watery, and blinking can be uncomfortable. In many cases, a small yellow or white point appears at the center of the bump as pus collects near the surface.
Styes typically last one to two weeks and go away on their own. The bump either drains spontaneously or your immune system reabsorbs the infection. Warm compresses, held gently against the closed eyelid for 10 to 15 minutes several times a day, help soften the blocked oil and encourage drainage. If pain and swelling haven’t started improving after about 48 hours of home care, or if they get worse after the first two to three days, it’s worth having an eye doctor take a look.
Styes vs. Chalazia
A stye and a chalazion can look similar, but they develop differently and feel different. A stye is an active infection, so it’s tender, red, and often painful to the touch. A chalazion is not infected. It forms when a blocked meibomian gland triggers an inflammatory reaction to the trapped oil itself, without bacteria being involved. Chalazia are firm, round bumps that are typically painless or only mildly uncomfortable.
Sometimes a stye that doesn’t fully drain will leave behind a persistent lump that transitions into a chalazion. The infection clears, but the gland remains blocked and the surrounding tissue stays inflamed. This is one reason warm compresses matter early on: encouraging complete drainage reduces the chance of a lingering bump.
Keeping Your Eyelid Glands Clear
The most effective way to prevent styes is to keep the oil glands along your eyelids flowing freely. A simple daily habit of warm compresses, even for just five minutes, can soften gland secretions and reduce the chance of blockage. Following the compress with a gentle wipe along the lash line using a clean, damp cloth or a pre-moistened eyelid wipe removes the debris and bacterial buildup that contribute to clogs.
If you wear eye makeup, removing it completely before bed is important. Residual mascara, eyeliner, and shadow can physically block gland openings overnight. Replace eye cosmetics every few months, since bacteria accumulate in the product over time. Avoid sharing eye makeup or applicators with others, and resist the urge to rub your eyes, especially with unwashed hands. For people with blepharitis or ocular rosacea, treating the underlying condition with regular lid hygiene and any recommended therapy significantly cuts down on stye recurrence.

