You get a stye when a sebaceous gland along your eyelid margin, usually one of the meibomian glands or an eyelash-associated gland of Zeis, becomes blocked and then colonized by bacteria, most often Staphylococcus aureus. The blocked gland keeps secreting oil into a space with no exit, pressure builds, and the trapped oil plus bacterial waste triggers a localized inflammatory abscess. That is the whole event in one sentence: obstruction first, infection second, abscess third.

Most people assume a stye appears because something dirty touched the eye. Contamination plays a role, but the mechanical setup matters more. A stye needs a gland with a narrowed duct, oil that has thickened enough to plug it, and skin flora already living at the lid margin. Two of those three conditions are present in nearly everyone. The third, a duct that actually clogs, is the variable that decides who gets a bump and who does not.

The duct obstruction mechanism, step by step

Each eyelid carries 20 to 40 meibomian glands in the tarsal plate, oriented vertically with openings right at the lid edge behind the lashes. These glands produce meibum, a lipid mixture that coats the tear film and slows evaporation. Meibum is not watery. It is a thick secretion that stays semi-solid at room temperature and thins slightly at body temperature, which is why it flows only when the gland is warm and the lid is blinking normally.

A stye begins when meibum chemistry shifts. The lipid profile becomes more saturated and more viscous, so the secretion stops behaving like a liquid at eyelid temperature and starts behaving like paste. Several things push that shift: age-related gland changes, contact lens wear, blepharitis, and hormonal shifts that alter sebum composition. Once the meibum thickens, the narrow terminal duct, only a fraction of a millimeter wide, can no longer clear it during a blink.

The trapped oil becomes a culture medium. Staphylococcus aureus and Staphylococcus epidermidis already colonize most eyelid margins, so no new organism needs to arrive. The plugged duct creates a low-oxygen, nutrient-rich pocket, and the bacteria multiply in it. Neutrophils flood in, the area swells, and the result is the tender red nodule you can feel before you can see it. This is why a stye often hurts before it shows: the pressure and inflammation start inside the tarsal plate.

Plain language: the gland is a tube that makes oil, the tube gets corked with its own product, and bacteria already on the lid turn the corked tube into a small abscess.

Why some people get them and others don't

Two structures produce styes, and the distinction explains the pattern. External hordeola involve the glands of Zeis or Moll, which sit at the base of an eyelash follicle and open onto the lid margin near the lash. Internal hordeola involve the meibomian glands deeper in the tarsal plate. External styes point outward and often drain on their own. Internal styes are larger, more painful, and more likely to need intervention because they are buried in denser tissue.

The risk profile is dominated by anything that thickens meibum or slows gland drainage. Blepharitis, ocular rosacea, and seborrheic dermatitis all inflame the lid margin and narrow the duct openings. Contact lens wear alters the tear film and lid environment. Makeup, especially eyeliner applied inside the lash line, can physically occlude gland orifices. Prior styes are themselves a risk factor, because a gland that clogged once tends to clog again.

Numbers help here, with the caveat that exact incidence is not well established in population data. Meibomian gland dysfunction is common enough that it appears in a large share of adults presenting to eye care, and it is the single most consistent predisposing condition for internal hordeola. Recurrence is the practical number that matters: styes that come back, especially in the same location or in crops, point to an underlying lid-margin problem rather than bad luck.

How a stye evolves, and when it resolves

The timeline is fairly predictable for an uncomplicated stye. Day one is tenderness and a subtle swelling. By day two or three, a visible nodule and redness appear. Days three through five are peak inflammation, when the stye is most painful and most likely to look angry. Resolution or spontaneous drainage typically happens within one to two weeks. Internal styes run longer than external ones.

Stage Typical timing What is happening What it looks like
Early obstruction Hours to 1 day Duct plugs, oil backs up Tenderness, subtle lid swelling
Inflammation 1–2 days Bacteria multiply, neutrophils arrive Visible nodule, redness, pain
Peak 3–5 days Abscess fills, pressure peaks Tender bump, possible yellow center
Drainage or resorption 5–14 days Pus exits or body clears it Crusting, then shrinking
Residual Up to several weeks Firm lump may persist Painless small nodule

A chalazion is what happens when the acute infection subsides but the blocked gland stays plugged. The inflammation becomes chronic and granulomatous, and you are left with a firm, usually painless lump. The distinction is clinically useful: a painful red bump is more likely a stye, while a painless firm lump that lingers is more likely a chalazion. Both come from the same gland mechanics, and one can follow the other.

What actually helps versus what people do

Warm compresses are the intervention with the most consistent support, and the reason is mechanical. Heat raises meibum temperature, lowering its viscosity so the plug can flow. A compress that is genuinely warm, applied for 10 to 15 minutes several times daily, does what the mechanism predicts. A lukewarm washcloth for two minutes does not, because the meibum never reaches the temperature at which it thins.

Use a compress warm enough to feel clearly hot but not scalding, refreshed as it cools, for 10–15 minutes, three to four times daily. Do not squeeze, pop, or lance a stye. Pressure can push infected material into surrounding tissue and, rarely, into deeper orbital structures. Stop eyeliner and mascara on the affected lid until it resolves. Replace eye makeup and clean applicators, since contaminated product can reseed the gland. Wash lids gently with a lid scrub or diluted baby shampoo rather than scrubbing hard. Avoid contact lenses on the affected eye until the stye resolves.

Red flags that change the plan: swelling that spreads to the cheek or brow, fever, vision changes, pain severe enough to limit eye movement, or a stye that persists beyond two weeks or keeps recurring in the same spot. These warrant professional evaluation rather than continued home care.

Approach Mechanism Evidence position Practical note
Warm compress Thins meibum, promotes drainage First-line, widely endorsed Temperature and duration matter most
Lid hygiene Removes debris, reduces bacterial load Supportive, low risk Gentle, daily, not aggressive scrubbing
Topical antibiotics Reduces bacterial colonization Limited for uncomplicated styes Not routinely needed without signs of spread
Incision and drainage Relieves abscess pressure Reserved for persistent or large lesions Performed by a clinician, not at home
Intralesional steroid Shrinks granulomatous chalazion Used for persistent chalazion Clinician decision
Warm compress plus massage Adds mechanical clearance Common adjunct Massage direction matters, ask a clinician

Reconcile the thresholds explicitly. Home care is reasonable and expected to work within roughly one to two weeks for a simple stye. Persistent beyond two weeks, spreading beyond the lid, or recurring in a crop moves you from the "watch and compress" threshold to the "get it looked at" threshold. Those are different clocks: one measures resolution of a single lesion, the other measures a pattern that suggests underlying lid disease.

The counterintuitive part, and the recirculation problem

The most common professional caveat is that styes are not primarily a hygiene failure. Most people with a stye have normal lid hygiene and were simply unlucky in the timing of a duct plug. Blaming yourself, scrubbing aggressively, or switching to harsh cleansers can inflame the lid margin further and make the next plug more likely. The goal is gentle, consistent lid care, not sterilization.

The deeper caveat concerns what a stye leaves behind. A single resolved stye leaves a gland that may have scarred or narrowed, which is why the same gland can clog again. Recurrent styes in one location are less a series of independent events and more a chronic gland problem expressing itself repeatedly. That is also why warm compresses alone often do not stop recurrence: they treat the current plug but not the meibum that keeps plugging.

One more professional detail: what looks like a stye is sometimes not one. A persistent, painless, or atypical lid lump can be a chalazion, a cyst, a papilloma, or, rarely, a more serious lesion, particularly in older adults or when the lump ulcerates or bleeds. The general rule among eye care clinicians is that anything on the lid margin that does not behave like a stye should be examined rather than watched indefinitely.

What the mechanism does and does not tell us

The gland-obstruction model explains most styes well, but it has limits. It does not predict which individual will get one, because duct plugging depends on meibum chemistry that varies between people and over time. It does not tell you the exact bacterial strain without a culture, and cultures are not routine for uncomplicated styes. And it does not resolve the recurrence problem, because the underlying meibomian gland dysfunction usually persists.

What stays stable is the practical core. The stye is a blocked gland plus local bacteria plus trapped oil. Warmth, gentle lid hygiene, and avoiding squeezing are the interventions that follow from the mechanism. Persistent, spreading, or recurrent lesions fall outside what home care can reasonably address and belong with a clinician. The same mechanism that produces the bump tells you why it hurts before it shows, why it usually clears in one to two weeks, and why the same spot can come back.