Why Do You Get a Stye in Your Eye and How to Treat It

A stye forms when one of the tiny oil glands or hair follicles along your eyelid gets blocked and infected, almost always by staphylococcal bacteria that already live on your skin. The result is a red, painful bump that looks and feels a lot like a pimple. Styes are extremely common, affect all age groups, and typically resolve on their own within one to two weeks.

What Happens Inside Your Eyelid

Your eyelids contain dozens of small glands that produce oils to keep your tears from evaporating too quickly. When one of these glands gets clogged, bacteria that normally sit harmlessly on your skin surface can multiply inside the blocked gland, triggering an infection. Your immune system responds with inflammation, and the familiar swollen, tender bump appears.

There are two types of styes depending on which gland is involved. An external stye, the more common kind, starts in an eyelash follicle or one of the tiny oil glands right at the lash line. An internal stye develops deeper in the eyelid when one of the larger oil-producing glands embedded in the lid tissue becomes infected. Internal styes tend to be more painful because they press against the eye itself, and they’re more likely to need medical attention.

Why Some People Get Styes More Often

Certain everyday habits make gland blockages far more likely. The biggest one is touching your eyes with unwashed hands, which transfers bacteria directly to the eyelid margin where infections start. Contact lens wearers face extra risk if they handle their lenses without washing their hands first or skip proper cleaning routines.

Eye makeup is another major contributor. Sleeping in your makeup allows product to migrate into gland openings overnight, creating the perfect environment for bacterial growth. Old or expired cosmetics are particularly problematic because bacteria accumulate in the product and on applicators over time. Replacing eye makeup every three to six months and never sharing products with others significantly lowers your risk.

Two underlying eyelid conditions also make styes more frequent. Blepharitis, a chronic inflammation of the eyelid margins, keeps the area irritated and prone to infection. Meibomian gland dysfunction, where the oil glands don’t function properly, means those glands are more easily blocked in the first place. If you get styes repeatedly, one of these conditions is often the underlying reason.

How a Stye Progresses

Most styes follow a predictable pattern. You’ll first notice tenderness or a gritty feeling at one spot on your eyelid. Over the next day or two, that spot swells into a visible bump, often with a small white or yellowish head. Your eye may water more than usual, and the eyelid can feel heavy or puffy. Pain and swelling typically peak around day two or three.

From there, the stye usually drains on its own and gradually shrinks. The full cycle from first twinge to complete healing runs about one to two weeks. You don’t need antibiotics in most cases.

Warm Compresses: The Main Treatment

The most effective thing you can do is apply a warm compress to the affected eyelid. The heat softens the hardened oils blocking the gland and encourages the stye to drain naturally. The American Academy of Ophthalmology recommends applying warmth for about five minutes at a time, two to four times per day.

A clean washcloth soaked in warm water works well, though it loses heat quickly. Microwavable eye masks hold their temperature longer and can be more practical if you’re treating a stye over several days. After each compress session, you can gently clean the eyelid with a mild cleanser or diluted baby shampoo to keep bacteria from reaccumulating. Resist the urge to squeeze or pop a stye. Forcing it open can spread the infection deeper into the eyelid tissue.

Stye vs. Chalazion

A chalazion looks similar to a stye but develops differently. While a stye is an active infection that’s red, tender, and comes on quickly, a chalazion is a firm, usually painless lump that forms when a blocked gland becomes chronically inflamed without true infection. Chalazia tend to sit in the middle of the eyelid rather than right at the lash line, and they grow more slowly.

Sometimes a stye that doesn’t fully resolve transforms into a chalazion. If you have a bump that lingers for more than a few weeks without pain or redness, it’s likely a chalazion rather than a recurring stye.

When a Stye Needs Medical Attention

Most styes are harmless, but certain warning signs point to a more serious infection. If pain and swelling keep getting worse after the first two to three days instead of improving, that’s a reason to see a doctor. The same goes for a stye that doesn’t show any signs of improvement after two weeks of warm compresses.

Rarely, an eyelid infection can spread to the tissues around the eye, a condition called cellulitis. The key red flags are changes in your vision, double vision, pain when moving your eye, a bulging eye, or an inability to open the eyelid fully. These symptoms require prompt evaluation because the infection may have moved beyond the eyelid surface into deeper tissue.