A stye is caused by a bacterial infection in one of the tiny oil glands or hair follicles along your eyelid. The bacterium responsible in most cases is Staphylococcus aureus, a common germ that already lives on your skin and around your nose. When it gets trapped inside a blocked gland, infection and swelling follow quickly, producing that familiar red, painful bump.
How a Stye Forms
Your eyelids contain dozens of small oil-producing glands that help keep your tears from evaporating too fast. There are also glands attached directly to your eyelash follicles. When one of these glands gets clogged by dead skin cells, dried oil, or debris, bacteria that normally sit harmlessly on your skin can multiply inside the blocked gland. Your immune system responds with inflammation, and the result is a small, localized abscess: the stye.
There are two types depending on which gland is involved. An external stye, the more common kind, forms at the base of an eyelash where the smaller oil glands sit. It looks and feels like a pimple right at the eyelid margin. An internal stye develops deeper inside the eyelid, in one of the larger oil glands embedded in the eyelid tissue itself. Internal styes tend to be more painful and may not be visible on the surface, though you’ll feel a distinct tender lump when you press on the lid.
Risk Factors That Make Styes More Likely
Anything that clogs your eyelid glands or introduces bacteria to the area raises your risk. The most common triggers include:
- Touching your eyes with unwashed hands. This is the single easiest way to transfer staph bacteria to your eyelids.
- Old or shared eye makeup. Mascara and eyeliner can harbor bacteria, especially after a few months of use. Sharing applicators spreads those bacteria between people.
- Sleeping in contact lenses. Contacts left in overnight trap bacteria against the eye and lid surface.
- Chronic eyelid inflammation (blepharitis). If your eyelid margins are chronically red, flaky, or crusty, the oil glands are already partially blocked, creating a perfect setup for infection.
- Rosacea. People with this skin condition frequently develop problems with the oil glands in their eyelids. Styes and similar bumps are among the most common eye-related symptoms of rosacea.
Styes are more common in adults than in children. One likely reason is that adult skin produces thicker, stickier oil that clogs glands more easily. Adults are also more likely to have blepharitis or rosacea, both of which keep the eyelid glands in a state of chronic dysfunction. That said, children can and do get styes, especially if they rub their eyes frequently.
Stye vs. Chalazion
People often confuse styes with chalazia, but they’re different conditions. A stye is an active infection: it’s red, swollen, warm, and tender to touch. A chalazion is not infected. It forms when a blocked oil gland leaks its contents into the surrounding tissue, triggering inflammation without bacteria being involved. The key difference you’ll notice is pain. A stye hurts, sometimes quite a bit. A chalazion is a firm, painless lump.
A stye can sometimes turn into a chalazion. Once the infection clears, if the gland remains blocked, the leftover inflammation can harden into a painless nodule that sticks around for weeks or months.
How Long a Stye Lasts
Most styes resolve on their own within one to two weeks. The bump typically comes to a head, drains on its own, and then heals. You can speed this process up with warm compresses, which soften the hardened oil inside the blocked gland. Research shows it takes about two to three minutes of sustained warmth to liquefy the oil inside a clogged gland, so holding a warm, damp cloth against your closed eyelid for about five minutes per session gives the heat enough time to work. Two to four sessions per day is the standard recommendation from ophthalmologists. Once the oil liquefies, you’ve accomplished the goal for that round, so longer sessions don’t add much benefit.
If the pain and swelling haven’t started improving after 48 hours of home care, that’s a reasonable point to see an eye doctor. You should also get prompt attention if pus or blood leaks from the bump, your eyelid swells shut, blisters form on the lid, or your vision changes. Styes that keep coming back may signal an underlying condition like blepharitis or rosacea that needs its own treatment.
When a Stye Becomes Serious
In rare cases, the infection from a stye can spread beyond the gland and into the soft tissue around the eye. This is called preseptal cellulitis, and it causes redness and swelling that extends well beyond the original bump, sometimes across the entire eyelid and surrounding skin. If that infection pushes deeper into the eye socket, it becomes orbital cellulitis, a much more dangerous situation that can affect your vision and requires emergency treatment. Warning signs include fever combined with pain and swelling around the entire eye socket, bulging of the eye, and any changes in how well you can see.
These complications are uncommon. The vast majority of styes are a nuisance, not a danger. But knowing the red flags helps you recognize the rare case that needs urgent care.
Preventing Styes
Since styes start with clogged, bacteria-laden glands, prevention comes down to keeping your eyelids clean and minimizing the bacteria you introduce. Wash your hands before touching your face or handling contact lenses. Replace eye makeup every two to three months, and never share mascara or eyeliner. If you wear contacts, follow the recommended wearing schedule and clean them properly.
If you’re prone to recurrent styes, daily eyelid hygiene makes a real difference. A warm compress for five minutes each morning helps keep your oil glands flowing freely, and gently cleaning your eyelid margins with diluted baby shampoo or a commercial lid scrub removes the crusty debris that contributes to blockages. For people with rosacea or chronic blepharitis, managing the underlying condition is the most effective way to break the cycle of repeated styes.