A stye forms when a small gland along your eyelid edge gets infected, almost always by a common skin bacterium called Staphylococcus aureus. That bacterium lives on your skin all the time without causing problems, but when it gets trapped inside one of the tiny oil or sweat glands that line your lash line, the gland swells into a painful, red bump. Most styes resolve on their own within one to two weeks.
What Actually Happens Inside Your Eyelid
Your eyelids contain dozens of small glands. Some produce oil that keeps your tear film from evaporating too fast. Others are sweat glands or glands attached to individual eyelash follicles. A stye starts when bacteria enter one of these glands and multiply, creating a localized pocket of infection. The result is a tender, pus-filled bump that can appear on the outer edge of your lid (near your lashes) or on the inner surface of the lid itself. Internal styes tend to be more painful because they press against the eyeball, while external ones look more like a pimple at the lash line.
Common Reasons You Developed One
Styes rarely appear for no reason. Something usually gave bacteria an opening or created conditions that made infection more likely. The most common triggers are everyday habits you might not think twice about.
Touching or rubbing your eyes transfers bacteria from your hands directly to your lid glands. This is the single most frequent way styes start. Sleeping in your makeup blocks gland openings overnight, trapping bacteria and oil together in a warm, dark environment. Using old or expired cosmetics is another major contributor, since bacteria colonize makeup products over time. Eye makeup like mascara and eyeliner should be replaced every three to six months. Poor contact lens hygiene, such as handling lenses without washing your hands or wearing them longer than recommended, also raises your risk significantly.
Beyond daily habits, certain skin conditions make styes more likely to recur. Blepharitis, a chronic inflammation of the eyelid margins, disrupts the normal flow of oil from your lid glands and creates an environment where bacteria thrive. Meibomian gland dysfunction, a related condition where the oil glands become clogged or produce thickened secretions, has the same effect. Both conditions are more common in people with rosacea or seborrheic dermatitis. If you get styes repeatedly, one of these underlying conditions is often the reason.
Stye vs. Chalazion
Not every bump on your eyelid is a stye. A chalazion looks similar but behaves differently. Styes are infections: they’re tender, often painful, and develop quickly over a day or two. A chalazion is not an infection at all. It forms when a blocked oil gland triggers an inflammatory reaction to the trapped oil, producing a firm, painless nodule that grows slowly over weeks. The key distinction is tenderness. If pressing on the bump hurts, it’s likely a stye. If it’s a hard, painless lump that’s been there for a while, it’s probably a chalazion. Sometimes a stye that doesn’t fully drain will harden into a chalazion over time.
How to Treat a Stye at Home
Warm compresses are the core treatment. Soak a clean washcloth in warm water, wring it out, and hold it against your closed eyelid for 10 to 15 minutes. Repeat this three to four times a day. The heat softens the blockage inside the gland and encourages it to drain naturally. Most styes begin improving within a few days of consistent compress use.
While you’re treating a stye, avoid squeezing or popping it. Forcing it open can spread the infection deeper into your eyelid tissue. Skip eye makeup until it clears up, and if you wear contacts, switch to glasses until the bump is gone. Keep your hands away from your eyes as much as possible, and wash them before applying compresses.
When a Stye Needs Medical Treatment
If your stye hasn’t started improving after about a week of warm compresses, a doctor can help. Mild to moderate styes that linger are typically treated with antibiotic eye drops or ointment applied directly to the eyelid. In a small number of cases where the entire eyelid becomes swollen, red, and painful, oral antibiotics may be necessary. For styes that won’t drain on their own, a doctor can make a small incision to release the trapped pus, usually a quick in-office procedure.
Rarely, a stye can progress to a more serious skin infection called preseptal cellulitis, where redness and swelling spread beyond the bump to involve the entire eyelid and surrounding skin. Watch for a fever combined with increasing pain, swelling extending across the eye socket, vision changes, or the eye starting to bulge forward. These symptoms warrant immediate medical attention, as the infection can spread to deeper tissues behind the eye if left untreated.
Preventing the Next One
Once you’ve had a stye, you’re more likely to get another, especially if the underlying cause hasn’t changed. A few adjustments make a real difference. Wash your hands before touching your face or handling contact lenses. Remove all eye makeup before bed every night, and toss mascara, eyeliner, and eyeshadow that’s more than three to six months old. If you wear contacts, follow the replacement schedule exactly and never sleep in lenses that aren’t designed for overnight use.
If you get styes more than once or twice a year, daily lid hygiene can help break the cycle. Gently cleaning your eyelid margins each morning with a warm washcloth removes the bacterial buildup and dried oil that clog glands over time. For people with blepharitis or meibomian gland dysfunction, an eye doctor can recommend a more targeted routine to keep your lid glands functioning normally and reduce flare-ups.