Most eyelid infections clear up within one to two weeks with consistent home care, and you can start treatment right now with supplies you already have. The key is identifying what type of eyelid infection you’re dealing with, applying the right technique, and knowing when the situation calls for professional help.
Which Type of Eyelid Infection You Have
Eyelid infections fall into a few common categories, and telling them apart is usually straightforward based on how they look and feel.
A stye (hordeolum) is a red, painful bump near the edge of your eyelid that looks like a pimple. It forms when bacteria infect an oil gland or hair follicle at the base of an eyelash. External styes sit on the outer edge of the lid, while internal styes develop deeper inside the eyelid and tend to be more painful.
A chalazion is a firm, usually painless lump that develops when an oil gland in the eyelid becomes blocked but not actively infected. Chalazia often start as styes. Once the acute infection fades, the blocked gland remains swollen and hard. They tend to be larger than styes and sit farther from the eyelid margin.
Blepharitis is inflammation along the entire eyelid margin rather than a single bump. Your eyelids may feel crusty, itchy, or gritty, especially in the morning. It’s a chronic condition, meaning it comes and goes rather than fully resolving, and it often underlies recurrent styes and chalazia.
A less common but more serious category is cellulitis, an infection of the skin and soft tissue around the eye. This causes widespread redness, swelling, warmth, and pain across the eyelid rather than a localized bump, and it requires medical treatment.
Warm Compresses: The Core Treatment
Warm compresses are the single most effective home treatment for styes, chalazia, and blepharitis. Heat softens the solidified oils clogging the glands in your eyelid, allowing them to drain naturally. Research on the optimal temperature shows that heat needs to reach about 40 to 41.5°C (104 to 107°F) at the inner eyelid surface to effectively liquify blocked gland secretions. Because roughly 5°C is lost between the outer skin and the inner lid, you should aim for the compress to feel warm but not uncomfortably hot against your closed eyelid, around 45°C (113°F) at the surface.
Here’s how to do it effectively:
- Use a clean washcloth soaked in warm water, or a microwavable eye mask designed for this purpose. Wring out excess water.
- Apply for 10 to 15 minutes at a time, reheating the cloth every few minutes as it cools. A washcloth loses heat quickly, which is why reusable gel masks or rice-filled pouches work better at maintaining temperature.
- Repeat three to four times per day. Consistency matters more than any single session. Skipping days slows healing significantly.
- Gently massage toward the eyelid margin after warming. This helps push softened oil out of the blocked gland. Use a clean fingertip and press lightly in a downward motion on the upper lid or upward on the lower lid.
Most uncomplicated styes resolve within one to two weeks with this routine. Chalazia can take longer, sometimes four to six weeks, because the blockage is deeper and more established.
Eyelid Cleaning Techniques
Keeping your eyelid margins clean prevents bacteria from accumulating and speeds recovery. This is especially important for blepharitis, where daily lid hygiene is the foundation of long-term management.
Use a commercially available lid scrub pad or make your own by mixing a few drops of diluted baby shampoo with warm water on a clean cotton pad. Gently scrub along the base of your eyelashes with your eyes closed, then rinse. Do this once or twice daily. Pre-made eyelid cleansing sprays and foams containing hypochlorous acid are another option and can be easier to use. They’re available over the counter at most pharmacies.
If your eyelids have crusty debris, especially common with blepharitis, soften it first with the warm compress, then clean. Trying to pick off dry crusts can irritate the skin and spread bacteria.
When You Need Antibiotic Treatment
Most styes don’t need antibiotics. Warm compresses alone resolve the majority of cases. But if the infection worsens, spreads beyond the bump, or hasn’t improved after a week of consistent home care, an antibiotic ointment may be prescribed.
Ophthalmic antibiotic ointments are the standard prescription. You typically apply a small strip, about a third of an inch, directly to the inner eyelid or the eyelid margin, then keep your eye closed for a minute or two to let the medication make contact with the infected area. You’ll need to continue the full course even if symptoms improve early, because stopping prematurely lets surviving bacteria regrow.
For blepharitis that doesn’t respond to hygiene alone, your doctor may prescribe a longer course of low-dose oral antibiotics. These work partly through anti-inflammatory effects rather than purely killing bacteria, which is why the doses and duration differ from what you’d take for a typical infection.
Mite-Related Eyelid Infections
Tiny mites called Demodex live in the hair follicles of most adults and usually cause no problems. But when they overpopulate, they can trigger a specific form of blepharitis with itching, redness, and a characteristic cylindrical dandruff at the base of the eyelashes.
Tea tree oil is the best-studied treatment for Demodex blepharitis. The active compound, terpinen-4-ol, can kill the mites at concentrations as low as 1%. Clinical protocols have used weekly in-office lid scrubs with 50% tea tree oil combined with daily at-home scrubs using a 10% concentration. However, undiluted tea tree oil is irritating and can damage the eye surface, so don’t apply it directly. Look for commercial lid wipes or cleansers formulated with tea tree oil or terpinen-4-ol at safe concentrations. A prescription treatment specifically targeting Demodex is also now available.
What Not to Do
Never squeeze, pop, or lance a stye yourself. The eyelid has a rich blood supply, and forcing an infected bump to rupture can spread bacteria deeper into the tissue or into the bloodstream. If a stye needs draining, a doctor can do it safely with sterile instruments.
Avoid wearing contact lenses while you have an active eyelid infection. Lenses can trap bacteria against the eye and transfer the infection to the cornea, which is a much more serious problem. Once the infection has fully healed, start with a fresh pair of contacts rather than reusing the ones you wore before or during the infection.
Don’t wear eye makeup during an active infection. Mascara, eyeliner, and eyeshadow applicators can harbor bacteria. Throw away any products you used around the time symptoms started and replace your brushes and tools.
Signs the Infection Is Serious
Most eyelid infections are minor nuisances. But certain symptoms suggest the infection has spread beyond the surface, potentially into the deeper tissue around the eye socket. This condition, orbital cellulitis, can threaten your vision and requires emergency treatment.
Get medical attention immediately if you experience any of the following alongside eyelid swelling:
- Your eye is being pushed forward out of its normal position
- You can’t move your eye normally in all directions, or it hurts to try
- Your vision has changed, even slightly
- You have a fever along with significant eyelid swelling
- Redness and swelling are spreading rapidly beyond the eyelid
Preseptal cellulitis, a less dangerous form that stays in front of the eye socket, causes eyelid swelling, redness, and warmth but doesn’t affect eye movement or vision. It still needs antibiotic treatment but is far less urgent than orbital involvement. The distinction between the two is critical, and a doctor can tell them apart with a physical exam and sometimes imaging.
Preventing Recurrence
Some people get eyelid infections once and never again. Others deal with them repeatedly, often because of underlying oil gland dysfunction or chronic blepharitis. If you fall into the second group, daily lid hygiene isn’t just treatment, it’s maintenance.
A nightly routine of warm compresses followed by gentle lid cleaning can dramatically reduce how often styes and chalazia come back. It takes only a few minutes and keeps the oil glands flowing freely. Omega-3 fatty acid supplements may also help improve the quality of the oil your eyelid glands produce, though the evidence is modest.
Replace eye makeup every three to six months, clean brushes regularly, and always remove makeup before bed. If you wear contact lenses, follow the recommended replacement schedule and never sleep in lenses that aren’t designed for overnight wear. These habits won’t eliminate every infection, but they remove the most common triggers.

