A stye forms when one of the tiny glands along your eyelid edge gets infected, almost always by a common skin bacterium called Staphylococcus aureus. This bacterium already lives on your skin and usually causes no problems, but when it gets trapped inside a blocked gland or hair follicle on your eyelid, it triggers a painful, red bump that looks a lot like a pimple. Most styes clear up on their own within about a week.
How a Stye Actually Forms
Your eyelids are lined with small oil-producing glands that keep your tears from evaporating too quickly. You also have glands attached to each eyelash root. When any of these glands gets clogged with dead skin cells, dried oil, or debris, bacteria can multiply inside the blocked gland and cause an infection. The result is a tender, swollen lump.
There are two types. An external stye forms at the base of an eyelash, in the smaller oil or sweat glands near the lash line. This is the more common kind and the one you can usually see right away. An internal stye develops deeper in the eyelid, inside the larger oil glands embedded in the eyelid’s cartilage. Internal styes tend to be more painful and can take longer to resolve because the infection is less able to drain on its own.
Common Reasons You Developed One
The single biggest trigger is touching your eyes with unwashed hands. Your fingers pick up staph bacteria from countless surfaces throughout the day, and transferring that bacteria to your eyelid is all it takes. But several other everyday habits raise your risk:
- Sleeping in eye makeup. Leftover mascara, eyeliner, and eyeshadow can clog the glands along your lash line overnight. Old cosmetics are even worse because bacteria multiply in the product over time.
- Contact lens hygiene lapses. Handling lenses without washing your hands first, reusing old solution, or wearing lenses past their replacement schedule all introduce bacteria to your eyelids.
- Chronic eyelid inflammation. A condition called blepharitis causes ongoing irritation and crusting along the lash line, which keeps your oil glands partially blocked and makes recurring styes much more likely.
- Rosacea. This skin condition, known for facial redness, also affects the eyelids and disrupts normal oil gland function, creating a favorable environment for styes.
If you’re getting styes repeatedly, blepharitis or rosacea is often the underlying reason rather than a single hygiene slip.
Is It a Stye or Something Else?
A stye and a chalazion can look similar, but they feel very different. A stye is painful from the start. It typically appears right at the eyelid’s edge, and the swelling can sometimes spread across the entire lid. A chalazion, by contrast, is usually painless. It forms farther back on the eyelid, tends to be firmer, and develops when an oil gland gets blocked without an active infection. A stye can sometimes turn into a chalazion once the infection clears but the blocked gland remains.
If your bump isn’t tender, has been there for more than a couple of weeks, and sits away from the lash line, it’s more likely a chalazion than a stye.
How to Help It Heal
Warm compresses are the most effective home treatment. Soak a clean washcloth in warm water, wring it out, and hold it gently against your closed eyelid for 5 to 10 minutes. Repeat this 3 to 6 times a day. The heat softens the clogged oil inside the gland and encourages the stye to drain naturally. Most styes resolve within about a week with this approach alone.
Resist the urge to squeeze or pop a stye. Forcing it open can spread the infection to surrounding tissue. If you wear contact lenses, switch to glasses until the stye is gone, and throw away the pair of lenses you were wearing when it appeared. Bacteria can linger on the lens surface, and reinserting them risks reinfection. Replace your lens case too.
When a Stye Becomes Serious
Most styes are a nuisance, not a danger. But in rare cases, the infection can spread beyond the gland into the surrounding eyelid tissue, a condition called preseptal cellulitis. Signs include spreading redness and warmth across the skin around the eye, significant swelling, tenderness that extends well beyond the original bump, and sometimes fever. Vision and eye movement typically remain normal with preseptal cellulitis, which distinguishes it from a deeper, more serious infection behind the eye.
If swelling is getting worse instead of better after a few days of warm compresses, the redness is spreading noticeably, you develop a fever, or your vision changes in any way, you need prompt medical attention. These signs suggest the infection has outgrown what your body can handle on its own.
Preventing the Next One
If you’ve had one stye, you’re more prone to getting another, especially if the underlying cause (like blepharitis or a hygiene habit) hasn’t changed. A few daily practices make a real difference.
Wash your hands before touching your face or eyes, every time. Remove all eye makeup before bed, and replace mascara and liquid eyeliner every few months rather than using them until they run out. If you wear contacts, follow the recommended cleaning and replacement schedule exactly, and use fresh solution each time rather than topping off old solution in the case.
For people with recurring styes or blepharitis, daily eyelid scrubs help keep the glands clear. These are gentle cleansers designed specifically for the lash line. Hypochlorous acid sprays are a popular option. Despite being a diluted form of bleach, they’re gentle enough for daily use, kill bacteria, and reduce inflammation in a way that mimics your own immune system. Tea tree oil products (look for about 25% concentration, not full strength) are another option that target the tiny mites sometimes involved in chronic eyelid inflammation. If you have sensitive skin, choose preservative-free formulas to avoid irritation.
Building a 30-second lid-cleaning habit into your nightly routine is the single most effective thing you can do if styes keep coming back.

