Styes form when bacteria infect one of the tiny oil or sweat glands along your eyelid margin. The culprit is almost always Staphylococcus aureus, a common bacterium that lives on your skin and can slip into a gland when the opening gets clogged or irritated. Once trapped inside, the bacteria multiply, triggering the red, painful bump you recognize as a stye. Most styes resolve on their own within one to two weeks, but understanding what causes them can help you avoid getting them repeatedly.
What Happens Inside the Eyelid
Your eyelids contain dozens of small glands that serve different purposes. Oil glands along the lash line keep your eyelashes conditioned, while larger oil glands deeper in the lid produce the oily layer of your tear film that prevents tears from evaporating too quickly. Sweat glands near the lash roots also dot the eyelid margin.
A stye starts when one of these glands gets blocked. Dead skin cells, dried oil, or debris can seal off the gland’s opening, and bacteria that were harmlessly sitting on the skin surface now have a warm, enclosed space to grow. Your immune system responds with inflammation, sending white blood cells to the area. That’s what creates the swelling, redness, tenderness, and eventually the white or yellowish head of pus that many styes develop.
External styes form in the smaller oil glands or sweat glands right at the base of your eyelashes. They sit on the outer edge of the lid and are the most common type. Internal styes develop deeper inside the lid, in the larger oil-producing glands that face the eyeball. Internal styes tend to be more painful because the infection sits against the sensitive inner surface of the eyelid, and they can take longer to drain.
Common Risk Factors
Anything that introduces bacteria to your eyelid or blocks those tiny gland openings raises your risk. The most common triggers are everyday habits you might not think twice about.
- Touching your eyes with unwashed hands. This is the single most common way Staph bacteria reach the eyelid glands. Rubbing your eyes after touching your phone, doorknobs, or other surfaces transfers bacteria directly to the lash line.
- Old or shared eye makeup. Mascara and liquid eyeliner should be replaced every four months, and solid eye pencils roughly every year. Beyond those windows, cosmetics become breeding grounds for bacteria. Sharing applicators spreads bacteria between people.
- Sleeping in contact lenses. Wearing contacts overnight reduces oxygen flow to the cornea and creates conditions that favor bacterial growth on the lid surface.
- Not removing makeup before bed. Leftover mascara and eyeliner can physically block gland openings overnight, giving bacteria hours to colonize the sealed space.
Chronic Conditions That Cause Recurring Styes
If you get styes frequently, the problem likely goes beyond a one-time hygiene lapse. Two conditions in particular make the eyelid environment chronically hospitable to infection.
Blepharitis is ongoing inflammation of the eyelid margins. It causes flaky, irritated lids and disrupts the normal flow of oil from the glands. When oil thickens or the gland openings stay inflamed, blockages happen more easily, and each blockage is another opportunity for bacteria to take hold. People with blepharitis often cycle through styes every few months unless they manage the underlying inflammation.
Ocular rosacea is another major driver. This condition, related to the facial rosacea that causes flushing and redness, specifically targets the eye area. It produces chronic inflammation of the eyelid margin and disrupts the oil glands deeper in the lid. Patients with ocular rosacea commonly present with recurrent red eyes, blepharitis, and frequent styes as early signs of the ongoing inflammatory process. The condition involves an overactive immune response that floods the eyelid tissues with inflammatory signals, damaging the glands over time and leading to secondary complications like persistent gland dysfunction.
If styes keep returning despite good hygiene, it’s worth considering whether one of these conditions is the root cause. Providers who see patients with recurring styes sometimes perform a biopsy to rule out more serious issues.
How Styes Heal
Most styes are self-limiting. The immune system walls off the infection, pus collects, and the stye either drains on its own or gets reabsorbed by the body. Typical resolution takes one to two weeks with basic care, and many mild cases need no medical treatment at all.
Warm compresses are the most effective thing you can do to speed the process. A clean washcloth soaked in warm water, held against the closed eyelid for 10 to 15 minutes several times a day, softens the blocked oil and encourages the gland to open and drain. Gently cleaning the eyelid with diluted baby shampoo or a mild lid cleanser helps clear debris from the lash line. Over-the-counter pain relievers can take the edge off the tenderness.
What you should avoid matters just as much. Don’t squeeze or pop a stye. Forcing it can push the infection deeper into the lid tissue or spread bacteria to neighboring glands. Avoid wearing eye makeup or contact lenses until the stye clears. Wash your hands before and after touching the area, and change your pillowcases frequently to prevent bacteria from reinfecting the same spot.
When a Stye Doesn’t Resolve
Occasionally a stye doesn’t drain and instead hardens into a firm, painless lump called a chalazion. This happens when the blocked gland becomes encapsulated by scar tissue. Chalazia aren’t infected the way a fresh stye is, but they can persist for weeks or months. Small ones sometimes resolve with continued warm compresses, while larger or stubborn ones may need a minor in-office procedure to drain.
A stye that causes significant swelling beyond the eyelid, affects your vision, produces a fever, or doesn’t improve after two weeks of warm compresses has moved beyond the typical course. Spreading redness or warmth across the eyelid skin can signal cellulitis, a deeper skin infection that needs treatment beyond home care.
Preventing Styes Long Term
Daily lid hygiene is the closest thing to a guarantee against recurrence. A quick wipe of each eyelid margin with a warm, damp cloth every morning removes the overnight buildup of oil and dead skin that blocks glands. For people prone to styes or blepharitis, dedicated lid scrub pads or diluted baby shampoo on a cotton swab along the lash line adds an extra layer of protection.
Replace mascara and liquid liner every four months regardless of whether they look or smell fine, since bacterial contamination isn’t visible. Wash your hands before inserting or removing contacts, and never sleep in lenses not specifically designed for overnight wear. If you notice your eyelids are chronically red, flaky, or gritty-feeling, addressing that baseline inflammation with consistent lid care can break the cycle of repeated styes before it starts.