A stye is a small, painful bump on the eyelid caused by an infected oil gland or eyelash follicle. Most styes clear up on their own within a few days to a week with simple home care. Warm compresses are the main treatment, and antibiotics or drainage are only needed in specific situations.
What Is a Stye and What Causes It?
A stye (the medical term is hordeolum) is an infection of a gland in or around the eyelid. The infection is usually bacterial, most often caused by Staphylococcus aureus, a bacterium commonly found on healthy skin.
There are two types. An external stye forms at the base of an eyelash follicle or in a small gland near the lid margin. It looks like a tiny pimple at the edge of the eyelid. An internal stye forms deeper in a meibomian gland, which is one of the oil-producing glands that line the inner eyelid. Internal styes tend to be more painful and can cause more swelling because they are embedded in the tissue.
Styes are not contagious. You cannot catch one from someone else, and you cannot spread one from your eye to another person. The bacteria that cause them already live on most people’s skin. What triggers a stye is usually a blockage of a gland that then becomes infected.
Several factors raise the odds of developing one:
- Touching or rubbing your eyes with unwashed hands
- Using old or contaminated eye makeup
- Not removing eye makeup before sleep
- Sleeping in contact lenses or not cleaning them properly
- Having blepharitis, a chronic inflammation of the eyelid margin
- Having rosacea, which can affect the eyelids
- Having diabetes or another condition that weakens immune defenses
A stye is different from a chalazion, though people often confuse the two. A chalazion is a blocked meibomian gland that becomes a firm, painless lump. It is not usually infected. A stye is infected and typically painful. The distinction matters because treatments differ slightly, and a chalazion that does not resolve may need different care.
How Do You Treat a Stye in the Eye at Home?
Warm compresses are the first-line treatment for a stye, and they work well for most people. The heat increases blood flow to the area, helps soften the blocked gland, and allows it to drain.
Here is how to do it properly:
- Wash your hands thoroughly before touching your eye area.
- Use a clean washcloth soaked in warm — not hot — water. It should feel comfortably warm on your wrist, not burning.
- Hold the compress gently against the closed eyelid for about 10 to 15 minutes.
- Repeat this three to four times a day.
- Use a fresh, clean cloth each time to avoid reintroducing bacteria.
Some clinicians also recommend gentle eyelid hygiene. This means cleaning the lid margin with a diluted baby shampoo solution or a commercially available eyelid wipe. The evidence for eyelid hygiene specifically treating an active stye is not strong, but it is widely used for blepharitis, which often accompanies styes. It is reasonable to try, and it is not harmful when done gently.
Do not squeeze, pop, or try to drain a stye yourself. This can push the infection deeper into the eyelid tissue and, in rare cases, lead to a more serious infection called preseptal cellulitis. It can also cause the infection to spread to surrounding areas.
Over-the-counter pain relievers like ibuprofen or acetaminophen can help with discomfort if needed. Follow the dosing instructions on the package. There is no strong evidence that antibiotic eye drops or ointments available without a prescription help a typical stye, and most guidelines do not recommend them for routine cases.
When Should You See a Doctor for a Stye?
Most styes improve within two to three days and resolve within a week to ten days. See a doctor if the stye does not start improving after 48 hours of consistent warm compresses, or if it gets worse instead of better.
Other reasons to seek medical care:
- The swelling spreads beyond the eyelid to the cheek or surrounding face
- You have fever or chills
- Your vision is affected
- The eye itself becomes red, painful, or sensitive to light
- The stye keeps coming back
- You have diabetes or a weakened immune system
- The bump is painless and firm — this may be a chalazion or another type of growth
Swelling that spreads to the face, fever, and vision changes are signs the infection may have moved beyond the eyelid. These need prompt medical evaluation. Do not wait to see if they improve on their own.
What Medical Treatments Are Available?
When home care is not enough, a doctor may prescribe treatment. The options depend on the size, location, and severity of the stye.
Antibiotic ointments or drops. For an external stye that is not resolving, a doctor may prescribe a topical antibiotic. Erythromycin ophthalmic ointment is one example. Topical antibiotics are generally used for styes near the lid margin. For deeper internal styes, oral antibiotics may be prescribed instead. The evidence for antibiotics in uncomplicated styes is limited because most resolve without them, but they are commonly used when the infection is persistent or spreading.
Incision and drainage. If a stye becomes a large, painful, fluid-filled lump that will not drain on its own, a doctor may drain it. This is a minor procedure done with local numbing. Do not attempt this at home under any circumstances.
Steroid injections. These are more often used for chalazia than for infected styes. A doctor may inject a corticosteroid directly into a persistent chalazion to reduce inflammation. This is not a first-line treatment for a typical stye.
Some clinicians recommend oral antibiotics for styes that are recurrent or associated with blepharitis. The evidence supporting this approach is not strong, and it is generally reserved for cases where topical treatment has failed or the infection is more extensive.
How Can You Prevent Styes?
Prevention focuses on keeping the eyelids clean and avoiding habits that block or irritate the glands.
- Wash your hands before touching your eyes or face.
- Remove eye makeup every night before bed.
- Replace mascara and eyeliner every three months, and do not share eye makeup.
- Clean contact lenses properly and follow the recommended replacement schedule.
- Do not sleep in contact lenses unless your eye doctor specifically approves it.
- If you have blepharitis, follow your doctor’s recommended eyelid hygiene routine.
- Manage underlying conditions like rosacea and diabetes with your doctor.
For people who get styes often, daily eyelid hygiene may help reduce how frequently they occur. This means gently cleaning the lid margins with a warm, damp cloth or a recommended eyelid wipe. The evidence for this as a prevention strategy is not as strong as it is for treating blepharitis, but it is low-risk and commonly recommended.
If you wear makeup, avoid using products past their expiration date or after an eye infection. Bacteria can live in old cosmetics and reinfect the eye.
What Is the Difference Between a Stye and a Chalazion?
Both a stye and a chalazion appear as a bump on the eyelid, but they are not the same thing. A stye is an infected gland or follicle. A chalazion is a blocked gland that becomes a firm, painless lump without infection.
This difference matters for treatment. A stye responds to warm compresses and sometimes antibiotics. A chalazion also responds to warm compresses, but if it persists, a doctor may treat it with a steroid injection or minor surgery to remove it. A chalazion that does not go away after several weeks should be evaluated by an eye doctor.
In some cases, a stye can turn into a chalazion after the infection clears. The gland stays blocked, and the bump remains. This is not dangerous, but it can be annoying and may need medical treatment if it does not resolve.
It is not always easy to tell the difference on your own, especially early on. If a bump on your eyelid is painless and has been there for more than a few weeks, it is more likely a chalazion. If it is red, tender, and came on quickly, it is more likely a stye.
Can a Stye Cause Long-Term Problems?
Most styes heal without any lasting effects. The eyelid returns to normal, and there is no scarring or vision damage. Recurrence is possible, especially in people with blepharitis or rosacea.
Serious complications are rare but possible. If the infection spreads to the tissue around the eye, it can cause preseptal cellulitis, which needs antibiotic treatment. If it spreads behind the eye, it can cause orbital cellulitis, a more serious condition that requires immediate medical care. These complications are uncommon, but they are the reason you should not ignore spreading swelling, fever, or vision changes.
People with diabetes or weakened immune systems are at higher risk for complications. If you fall into either group, see a doctor early rather than waiting to see if the stye resolves on its own.
Frequently Asked Questions
How long does a stye take to go away?
Most styes start improving within two to three days and clear up within a week to ten days with warm compresses. If it is not better after 48 hours of consistent care, see a doctor.
Can I pop a stye like a pimple?
No. Popping a stye can push the infection deeper into the eyelid and, in rare cases, cause a more serious infection. Let it drain on its own or have a doctor treat it.
Are styes contagious?
No, styes are not contagious. The bacteria that cause them already live on most people’s skin, and you cannot pass a stye to someone else.
Do I need antibiotics for a stye?
Most styes do not need antibiotics and resolve with warm compresses alone. A doctor may prescribe antibiotics if the stye is not improving, is spreading, or keeps coming back.

