How to Get Rid of a Stye: Treatment and Prevention

Most styes clear up on their own within one to two weeks, and the single most effective thing you can do to speed that along is apply warm compresses consistently. A stye is a small, painful bump on or inside your eyelid caused by a bacterial infection in one of the tiny oil glands along your lash line. The good news: you can almost always manage it at home without a doctor visit.

What Causes a Stye

Styes are caused by a common skin bacterium called Staphylococcus aureus. This germ lives on your skin all the time, but when it gets trapped in one of the oil-producing glands at the edge of your eyelid, it triggers an infection. The gland swells, fills with pus, and forms the red, tender bump you’re dealing with. External styes sit right along your lash line, while internal styes form deeper inside the eyelid and tend to be more painful.

Warm Compresses Are the Main Treatment

A warm compress is the cornerstone of stye treatment. Soak a clean washcloth in warm water (comfortably hot, not scalding), wring it out, and hold it against your closed eyelid for about 10 minutes. Do this four times a day. The heat softens the blocked oil in the gland and encourages the stye to drain naturally. You’ll likely need to re-wet the cloth a few times during each session to keep it warm.

After each compress, gently clean the eyelid with a mild soap, like diluted baby shampoo, or a pre-moistened eyelid cleansing wipe. This removes bacteria and any discharge that’s built up. Always wash your hands thoroughly before and after touching the area.

Over-the-Counter Options

OTC stye ointments are available at most pharmacies, but they’re simpler than you might expect. The active ingredients are typically mineral oil and white petrolatum, which are lubricants and emollients. They won’t kill the bacteria causing the infection. What they do is soothe burning, reduce irritation, and keep the eyelid from drying out while you heal. Think of them as comfort measures, not cures. Standard over-the-counter pain relievers can also help take the edge off if the stye is particularly tender.

What Not to Do

Do not squeeze or pop a stye. It’s tempting, especially once you see a visible white or yellow head, but forcing pus out of a stye can push the infection deeper into the eyelid tissue. The risks include severe infection spreading to surrounding skin, scarring or permanent discoloration of the eyelid, and a corneal abrasion if bacteria reach the surface of your eye. Let the warm compresses do the work. A stye that’s going to drain will do so on its own.

You should also stop wearing contact lenses until the stye resolves, and avoid eye makeup. Both can introduce more bacteria to the area and slow healing. Swap out your pillowcase frequently during this time, since bacteria can transfer to the fabric overnight and reinfect the area.

When a Stye Needs Medical Attention

If your stye hasn’t started improving after 48 hours of consistent warm compresses, it’s time to see a doctor. You should also seek care if redness and swelling spread beyond the eyelid into your cheek or other parts of your face, which can signal a more serious skin infection called preseptal cellulitis.

In these cases, a doctor may prescribe a topical antibiotic ointment, particularly if the stye is actively draining or if there’s a secondary infection of the eyelid. For people who get styes repeatedly, an oral antibiotic may be added to address chronic inflammation in the oil glands. In rare cases where a stye becomes very large or doesn’t respond to other treatments, a doctor can drain it with a small incision under local anesthesia.

Stye or Chalazion?

If you’ve had a bump on your eyelid for several weeks and it’s no longer red or painful but still won’t go away, you may be dealing with a chalazion instead. A chalazion forms when a blocked oil gland becomes a firm, painless lump inside the eyelid rather than an active infection. The two can be hard to tell apart early on, but the key difference is that a chalazion feels like a hard pea under the skin and doesn’t usually hurt. Warm compresses help with chalazions too, but they often take longer to resolve and sometimes need to be drained by a doctor.

Preventing Styes From Coming Back

Some people are prone to recurrent styes, especially if they have oily skin, chronic dandruff, or a condition called blepharitis (ongoing inflammation of the eyelid margins). A few daily habits can lower your risk significantly:

  • Wash your hands before touching your face or eyes. This is the single biggest factor, since the bacteria that cause styes are transferred by your fingers.
  • Clean your eyelids regularly. A gentle scrub along the lash line with diluted baby shampoo or a dedicated lid cleanser removes oil buildup before it clogs glands.
  • Replace eye makeup every few months. Old mascara and eyeliner are breeding grounds for bacteria. Never share eye cosmetics.
  • Wash pillowcases frequently. Bacteria accumulate on fabric that touches your face nightly.

If styes keep returning despite good hygiene, your doctor may want to do a biopsy of the bump to rule out other, less common conditions that can mimic a stye.