A stye forms when bacteria, almost always Staphylococcus aureus, infect one of the tiny oil or sweat glands along your eyelid margin. The process typically starts with a blocked gland. Oil thickens and stops flowing, creating a stagnant environment where bacteria already living on your skin can multiply and trigger an infection. Within a day or two, the result is that familiar red, painful bump near the edge of your eyelid.
What Happens Inside Your Eyelid
Your eyelids contain dozens of small glands that produce oils and moisture to keep your eyes lubricated. When one of these glands gets clogged, its secretions thicken and back up. Bacteria that normally live harmlessly on your skin surface seize the opportunity, moving into the stalled gland and multiplying. Your immune system responds with inflammation, and a tender, swollen bump appears.
There are two types. An external stye, the more common kind, develops at the base of an eyelash where oil and sweat glands sit right at the lid’s edge. After a day or two, it typically forms a small yellowish pustule surrounded by redness and swelling. You may also notice tearing, light sensitivity, or a gritty foreign-body sensation. An internal stye develops deeper in the eyelid, in one of the larger oil glands embedded in the lid’s cartilage. These feel more like a deep ache and the swelling shows on the inner surface of the lid rather than at the lash line.
Why Some People Get Styes More Often
The single biggest risk factor is a condition called blepharitis, which is chronic, low-grade inflammation of the eyelid margins. If you’ve ever noticed crusty flakes at the base of your lashes, persistent redness along the lid edge, or a gritty irritation that never fully goes away, you likely have some degree of blepharitis. It keeps the oil glands in a state of partial blockage, making repeat infections much more likely.
Ocular rosacea, a form of the skin condition rosacea that affects the eyes, is another common driver. The Mayo Clinic lists recurrent styes as one of its hallmark signs. People with rosacea-related eye problems often cycle through styes and other eyelid infections repeatedly until the underlying rosacea is managed. Other factors that raise your risk include touching your eyes with unwashed hands, sleeping in eye makeup, wearing contact lenses longer than recommended, and using old or contaminated cosmetics.
Stye vs. Chalazion
A stye and a chalazion can look nearly identical in their first 48 hours, but they behave differently as they develop. A stye stays painful, stays at the eyelid margin, and usually comes to a head like a small pimple. A chalazion starts from the same type of blocked gland but doesn’t involve active bacterial infection. It tends to develop farther back from the lash line, forming a firm, round, mostly painless nodule in the body of the eyelid. You might not even notice a chalazion forming until it’s large enough to feel or see.
The distinction matters because styes often resolve on their own with simple warm compresses, while chalazia that persist may eventually need a minor in-office procedure to drain.
How to Treat a Stye at Home
Warm compresses are the first-line treatment. Soak a clean cloth in warm (not hot) water, wring it out, and hold it gently against your closed eyelid for 5 to 10 minutes, 3 to 6 times a day. The heat softens the clogged oil, encourages the gland to drain, and increases blood flow to help your body fight the infection. Do not microwave a wet cloth to warm it, as it can develop hot spots that burn the delicate eyelid skin.
Resist the urge to squeeze or pop a stye. Forcing it open can spread the infection into surrounding tissue. Most styes drain on their own within a few days of consistent warm compresses. While it’s healing, skip eye makeup and contact lenses to avoid reintroducing bacteria or irritating the area further.
When a Stye Becomes Something More Serious
Occasionally, the infection from a stye can spread beyond the gland into the soft tissue around the eye, a condition called periorbital cellulitis. The warning signs are distinct: spreading redness and swelling that extends well beyond the bump, fever, eye pain that worsens rather than improves, vision changes, or the eye starting to bulge forward. Any of these symptoms, particularly in a child, call for prompt medical attention. Periorbital cellulitis itself is treatable, but without care it can progress to a deeper infection behind the eye that threatens vision.
A stye that hasn’t improved after a week of warm compresses, or one that keeps coming back in the same spot, is also worth having evaluated. Persistent or recurrent styes sometimes signal an underlying lid condition that benefits from targeted treatment.
Preventing Styes
Most prevention comes down to keeping the eyelid margin clean and reducing the bacterial load around your lashes. Wash your hands before touching your eyes or handling contact lenses. Remove all eye makeup before bed every night. If you have blepharitis, daily lid scrubs with a gentle cleanser along the lash line can keep gland openings clear and reduce flare-ups.
Eye makeup hygiene is an overlooked factor. Replace mascara every six months, liquid eyeliner every six months, and pencil liners every one to two years. If you develop a stye or any eye infection, throw out and replace all eye products you’ve been using. Never share mascara, eyeliner, or eye shadow brushes, as these transfer bacteria directly to the lash line. The American Optometric Association recommends replacing all eye makeup every three months if you’re prone to styes.
Contact lens wearers should follow their prescribed wearing schedule carefully. Overwearing lenses or sleeping in lenses not designed for overnight use irritates the lid margin and creates conditions that favor gland blockage. Cleaning and storing lenses properly with fresh solution each time also reduces bacterial exposure.