How to Treat a Stye in Your Eye and When to See a Doctor

Most styes heal on their own within one to two weeks, and the single most effective treatment is something you already have at home: a warm, moist compress. A stye is essentially a small infection in an oil gland along your eyelid, usually caused by common skin bacteria. While it looks alarming and feels uncomfortable, treatment is straightforward in the vast majority of cases.

What Causes a Stye

Your eyelids contain dozens of tiny oil glands that help lubricate your eyes. When one of these glands gets clogged, bacteria (usually staph, the same type that lives on everyone’s skin) can multiply inside the blocked gland, creating a red, swollen bump. It looks a lot like a pimple, and it forms right at the edge of your eyelid or just under the skin near your lash line.

Styes are more common if you touch your eyes frequently, sleep in your contact lenses, or use old eye makeup. Anything that introduces bacteria to your eyelid margin or blocks those oil glands raises your risk.

Warm Compresses: The Core Treatment

A warm, moist compress applied to the affected eye is the first and most important step. The heat softens the clogged oil inside the gland and encourages the stye to drain naturally. Apply the compress for 5 to 10 minutes at a time, 3 to 6 times per day. Consistency matters more than any single long session.

Use a clean washcloth soaked in warm water. The water should feel comfortably warm on your wrist, not hot. Don’t microwave a wet cloth to heat it, since it can develop hot spots that burn the thin skin of your eyelid. Re-wet the cloth as it cools during your session to keep the temperature steady. Some people find it easier to use a clean sock filled with rice and microwaved for a few seconds, which holds heat longer, but a washcloth works perfectly well.

Most people start feeling relief within a couple of days of consistent warm compresses. The bump may come to a head and drain on its own, which is exactly what you want. Let that happen naturally.

Don’t Squeeze or Pop It

It’s tempting to treat a stye like a pimple, but squeezing or popping it yourself can push bacteria deeper into the tissue. That creates a risk of more severe infection, scarring on your eyelid, or even a scratch on your cornea. Let the warm compresses do the work. If the stye is going to drain, it will do so on its own once the blockage softens enough.

Keeping the Area Clean

Gentle eyelid hygiene speeds healing and helps prevent a second stye from forming. Dilute a small amount of baby shampoo (or another fragrance-free, dye-free soap) in warm water. Dip a clean cotton swab or washcloth into the mixture and gently wipe along your eyelid. Don’t scrub or rub.

While the stye is active, avoid wearing eye makeup and contact lenses. Bacteria can transfer to mascara wands, eyeliner pencils, and lens cases, creating a cycle of reinfection. Once the stye has fully healed, throw away any eye makeup you used around the time it appeared and start with a fresh pair of contacts.

Over-the-Counter Relief

You’ll find OTC stye ointments at most pharmacies. These are lubricant-based products, typically containing mineral oil and white petrolatum (petroleum jelly). They don’t treat the infection itself. What they do is soothe the burning and irritation that comes with having a swollen, inflamed eyelid, and they keep the area from drying out. Think of them as comfort measures while you wait for the stye to resolve. They’re safe to use alongside warm compresses.

When a Stye Needs Medical Attention

Most styes start improving noticeably within 48 hours of consistent home care. If the pain and swelling are getting worse after two to three days instead of better, it’s time to see an eye doctor. The same goes for a stye that hasn’t resolved at all after about two weeks.

A doctor may prescribe a topical antibiotic ointment to apply along the eyelid margin a few times daily. This targets the bacterial infection directly. For styes that have grown large or formed an abscess, an ophthalmologist can perform a small incision and drainage procedure. This is a quick in-office treatment reserved for stubborn cases that don’t respond to compresses and medication.

Signs of a More Serious Problem

Rarely, an eyelid infection can spread to the surrounding tissue, a condition called periorbital or orbital cellulitis. Watch for these warning signs: swelling that spreads well beyond the bump itself, significant pain when moving your eye, changes in your vision, a fever, or an eye that starts to bulge forward. These symptoms need prompt medical evaluation, not continued home treatment. Orbital cellulitis is a serious infection that can affect your vision if left untreated.

Preventing Styes From Coming Back

Some people get styes once and never again. Others deal with them repeatedly, which usually points to a pattern in eyelid hygiene or habits. A few changes can make a real difference:

  • Wash your eyelids regularly. The same diluted baby shampoo technique used during a stye works as daily maintenance. A quick wipe along your lash line in the shower removes the buildup of oil and dead skin that clogs glands.
  • Replace eye makeup regularly. Mascara and liquid eyeliner are especially prone to harboring bacteria. Replace them every few months, and never share eye products.
  • Clean your contact lenses properly. Follow the replacement schedule your eye doctor recommends, and never sleep in lenses that aren’t designed for overnight wear.
  • Keep your hands away from your eyes. If you need to touch your eyes, wash your hands first. This alone eliminates the most common route bacteria take to reach your eyelid glands.

If you get styes frequently despite good hygiene, it may be worth seeing an eye doctor to check for underlying eyelid conditions like blepharitis (chronic eyelid inflammation) that make infections more likely.