What Is a Stye and How Do You Get It?

A stye is a small, painful bump on the eyelid caused by a blocked and infected oil gland. It looks similar to a pimple, usually forms right along the lash line, and most styes heal on their own within one to two weeks. While they can be annoying and uncomfortable, they’re rarely dangerous.

What Happens Inside Your Eyelid

Your eyelids contain dozens of tiny oil glands that help lubricate your eyes every time you blink. When one of these glands gets clogged, oil builds up behind the blockage. Bacteria, almost always Staphylococcus aureus (a common skin bacterium), then multiply in that trapped oil and trigger an infection. The result is a red, swollen, tender lump.

There are two types, depending on which gland is affected. An external stye forms at the base of an eyelash, in one of the small oil or sweat glands along the lid margin. This is the more common kind and looks like a whitehead sitting right on the lash line. An internal stye develops deeper in the eyelid, in one of the larger oil-producing glands embedded in the lid’s cartilage. Internal styes tend to be more painful because the swelling pushes against the eye itself, and you may only see the bump if you gently flip the eyelid.

How You Get a Stye

The underlying process is always the same: a gland opening gets blocked, secretions stagnate, and bacteria move in. But several everyday habits and conditions make that chain of events more likely.

  • Touching or rubbing your eyes with unwashed hands is the most direct route. Your fingers carry Staph bacteria, and rubbing pushes them right into gland openings.
  • Old or shared eye makeup is a common culprit. Bacteria grow readily in mascara and eyeliner. The general recommendation is to replace mascara at least every six months.
  • Sleeping in makeup blocks gland openings overnight, giving bacteria hours to colonize trapped oil.
  • Contact lens handling without proper hand hygiene introduces bacteria to the lid area repeatedly.
  • Chronic eyelid inflammation (blepharitis) thickens the oils your glands produce, making blockages more likely. If you get styes repeatedly, blepharitis or a related condition called meibomian gland dysfunction is often the underlying cause.

Styes are not contagious in the way a cold is, but the bacteria that cause them can transfer from person to person through shared towels, pillowcases, or makeup. Stress, lack of sleep, and hormonal changes can also play a role by altering the consistency of your eyelid oils or lowering your immune defenses.

What a Stye Feels and Looks Like

The first sign is usually a tender, slightly swollen spot on one eyelid. Over the next day or two, it develops into a distinct red bump, often with a visible white or yellow center where pus has collected. Your eye may water more than usual, and the eyelid can feel heavy or gritty, as if something is stuck in it. Some people notice their whole eyelid swells, especially with internal styes.

Pain is the hallmark that separates a stye from a chalazion, which is a similar-looking eyelid bump caused by a blocked gland without active infection. In the first couple of days, the two can look identical. But a stye stays painful and stays at the lid margin, while a chalazion migrates toward the center of the eyelid and becomes a painless, firm nodule over time. If your bump hurts, it’s likely a stye. If it stops hurting but doesn’t go away, it may have turned into a chalazion.

How Long Recovery Takes

Most styes resolve on their own in one to two weeks. The bump gradually comes to a head, drains (often while you sleep or during a warm compress), and then shrinks. You don’t need antibiotics in most cases.

The single most effective home treatment is a warm compress. Soak a clean washcloth in warm water, wring it out, and hold it against the closed eyelid for 10 to 15 minutes. Repeat this three to four times a day. The warmth softens the clogged oil and encourages the stye to drain naturally. Resist the urge to squeeze or pop it, which can push the infection deeper into the lid tissue.

If a stye hasn’t started improving after about a week of consistent warm compresses, or if it keeps growing, a doctor can lance and drain it in a quick office procedure. Antibiotic ointments are sometimes prescribed for styes that are spreading or particularly stubborn, but warm compresses alone are enough for the majority.

Styes That Keep Coming Back

A single stye is common and usually nothing to worry about. Recurring styes, however, point to a chronic issue with the oil glands in your eyelids. Meibomian gland dysfunction, where the glands produce thickened, waxy secretions that clog easily, is the most frequent cause of repeat styes. This condition often goes hand in hand with blepharitis, creating a cycle where inflammation thickens the oils, blockages form, infections follow, and the resulting inflammation worsens gland function further.

If you get more than two or three styes a year, a daily lid hygiene routine can help break that cycle. Warm compresses for five minutes each morning loosen gland secretions before they harden. Gently cleaning the lash line with diluted baby shampoo or a commercial lid scrub removes debris and bacteria. These habits take only a few minutes but can significantly reduce recurrence.

When a Stye Becomes Something More Serious

Rarely, the infection from a stye can spread beyond the gland and into the surrounding eyelid tissue, causing a condition called preseptal cellulitis. The signs are hard to miss: the entire eyelid becomes swollen, warm, red, and tender, sometimes so puffy you can barely open it. You may develop a fever. This requires prompt medical treatment with oral antibiotics.

The key distinction is that with preseptal cellulitis, once the swollen lid is opened, your vision remains normal and the eyeball itself doesn’t bulge or hurt when you move it. If you do notice vision changes, pain with eye movement, or a bulging eye, the infection may have spread behind the eye, which is a medical emergency.

Practical Prevention Tips

Most styes are preventable with a few consistent habits. Wash your hands before touching your face or eyes, and avoid rubbing your eyes even when they itch. Replace mascara and liquid eyeliner every six months, and never share eye makeup. Remove all eye makeup before bed. If you wear contacts, wash your hands thoroughly before handling them and follow the recommended replacement schedule for your lens type.

For people prone to styes, adding a brief eyelid cleaning step to your nighttime routine makes a real difference. A warm washcloth held over closed eyes for a minute or two, followed by a gentle wipe along the lash line, keeps gland openings clear and reduces the bacterial load where infections start.