Why Do You Get a Stye? Causes and Prevention

You get a stye when bacteria infect one of the tiny oil glands or hair follicles along your eyelid margin. The result is a red, painful bump that looks and feels a lot like a pimple. Styes are extremely common, and while they can be miserable for a few days, most resolve on their own within one to two weeks.

What Actually Happens Inside Your Eyelid

Your eyelids contain dozens of small glands that produce oils to keep your eyes lubricated. When bacteria, most often Staphylococcus aureus, get into one of these glands or into an eyelash follicle, the tissue becomes infected and swollen. Your immune system responds with inflammation, and a small pus-filled bump forms.

There are two types, depending on which gland is involved. An external stye forms at the base of an eyelash, where a small oil gland opens directly into the follicle. You’ll see a yellowish pustule right at the lash line, surrounded by redness and swelling. An internal stye develops deeper in the eyelid, inside one of the larger oil-producing glands embedded in the eyelid’s cartilage. Internal styes tend to be more painful and can cause more dramatic swelling, sometimes affecting the entire eyelid. They occasionally cause systemic symptoms like a low fever.

Why Some People Get Them More Often

The bacteria that cause styes live on everyone’s skin. What makes the difference is whether those bacteria find an easy path into a gland. Several everyday habits and conditions create that opportunity.

  • Touching or rubbing your eyes transfers bacteria from your hands directly to your eyelid margin, where the glands are most vulnerable.
  • Old or shared cosmetics harbor bacteria that accumulate over time. Sharing eye makeup, brushes, pillowcases, or washcloths with someone who has a stye can spread the infection.
  • Contact lens handling increases the number of times your fingers touch the area around your eyes, raising the odds of introducing bacteria.
  • Blepharitis, a chronic inflammation of the eyelid margins, disrupts the normal flow of oil from your glands, making blockages and infections more likely.
  • Sleep deprivation and poor nutrition weaken your immune defenses, giving bacteria a foothold they wouldn’t otherwise have.

There’s also a genetic and inflammatory component. Research published in the Journal of the American Academy of Dermatology found that children who had styes were significantly more likely to develop rosacea as adults (5.5% compared to 1.5% in those without childhood styes). This suggests that people prone to styes may have an underlying tendency toward inflammatory skin and oil gland conditions, even if they don’t realize it yet.

What a Stye Feels and Looks Like

The first sign is usually tenderness or a gritty sensation along the eyelid. Within a day or so, a distinct bump appears. External styes sit right at the lash line and develop a visible yellow or white head, much like a pimple. The surrounding skin turns red, and the eyelid may feel warm to the touch. Swelling can sometimes make the entire eyelid puffy enough that it’s hard to open your eye fully.

Internal styes are harder to see from the outside. You might notice a yellowish spot if you gently flip the eyelid, but the main symptom is a deep, aching pain. Both types typically reach peak discomfort within the first two or three days, then the bump either drains on its own or gradually shrinks.

Stye vs. Chalazion

A chalazion can look similar but behaves differently. The key distinctions, according to the American Academy of Ophthalmology: a stye is very painful, while a chalazion usually is not. A stye appears at the eyelid’s edge near the lashes, while a chalazion develops farther back on the lid. And a stye can make the entire eyelid swell, while a chalazion rarely does.

Chalazia form when an oil gland becomes blocked and inflamed without an active bacterial infection. Sometimes a stye that doesn’t fully drain will leave behind a small, firm, painless lump that becomes a chalazion. If you have a bump that isn’t tender and has been sitting there for more than a few weeks, it’s likely a chalazion rather than a stye.

How Styes Heal

Most styes resolve on their own within one to two weeks. After a few days, the bump typically pops and releases pus, which relieves the pain quickly. The remaining redness and swelling fade over the following days.

You can speed things along with warm compresses. Moisten a clean washcloth with warm water and hold it gently against the affected eye for five minutes, several times a day. The heat loosens the clogged oil and encourages the stye to drain naturally. Resist the urge to squeeze or pop it yourself. Forcing it open can push the infection deeper into the eyelid tissue.

While you have a stye, avoid wearing contact lenses and eye makeup. Both can reintroduce bacteria and slow healing. Once the stye has fully resolved, replace any eye cosmetics you were using before the infection started.

When a Stye Becomes Something More Serious

Rarely, a stye can progress to preseptal cellulitis, a spreading infection of the soft tissue around the eye. Warning signs include redness and swelling that extend well beyond the bump itself, increasing pain rather than improving after a few days, fever, or changes in your vision. This is more common with internal styes, which sit closer to the deeper structures of the eyelid.

A stye that hasn’t improved at all after two weeks, or one that keeps coming back in the same spot, is worth having examined. Recurrent styes sometimes signal an underlying condition like blepharitis or rosacea that benefits from targeted treatment rather than just warm compresses.

Preventing Styes

Since styes start with bacteria reaching a vulnerable gland, prevention is mostly about keeping the eyelid margin clean. Wash your hands before touching your face or handling contact lenses. Remove eye makeup completely before bed. Replace mascara and eyeliner every three to six months, since bacterial contamination builds up in the tubes over time. If you’re prone to recurrent styes, a nightly routine of gently cleaning your eyelid margins with diluted baby shampoo or a commercial lid scrub can reduce the bacterial load and keep oil glands flowing freely.