How to Stop an Eye Infection: What Actually Works

Most eye infections clear up within one to two weeks, but how you treat them depends entirely on what’s causing the problem. Viral infections, the most common type, resolve on their own with basic home care. Bacterial infections typically need prescription antibiotic drops. And a smaller number of infections, like fungal keratitis, require aggressive medical treatment to prevent vision damage.

The first step is figuring out what you’re dealing with, because the wrong approach can waste time or make things worse.

Identify What Type of Infection You Have

Eye infections share a core set of symptoms: redness, a gritty sensation, discharge, and sensitivity to light. But the details of those symptoms point toward different causes.

Bacterial conjunctivitis (pink eye) produces a thick, yellow-green discharge that crusts your eyelashes shut overnight. It often starts in one eye and spreads to the other within a day or two. Viral conjunctivitis looks similar but tends to produce a thinner, watery discharge and frequently accompanies a cold or upper respiratory infection. If your eyes are intensely itchy with clear, watery tearing, you’re more likely dealing with allergic conjunctivitis, which isn’t actually an infection at all.

A stye is a red, painful bump near the edge of your eyelid caused by a blocked oil gland that gets infected. It’s localized, not spread across the whole eye. Fungal keratitis is rarer and more serious. It typically follows an eye injury involving plant material, soil, or organic debris, and it’s most common among agricultural workers or people injured outdoors. The pain tends to be more severe and progressive than a standard case of pink eye.

Home Care That Actually Helps

For viral eye infections, there’s no medication that speeds recovery. The virus runs its course in 7 to 14 days, though stubborn cases can take two to three weeks. Your job is managing discomfort while it heals.

Cold compresses and preservative-free artificial tears are the two most effective over-the-counter tools. Artificial tears lubricate the eye and flush out irritants. Cold compresses reduce inflammation and soothe that raw, burning feeling. Both are available without a prescription at any pharmacy.

For styes and chalazia (blocked oil gland bumps), warm compresses are the standard treatment. Place a warm, moist cloth on the affected eye for 5 to 10 minutes, 3 to 6 times a day. Use comfortably warm water, not hot. Don’t heat a wet cloth in the microwave, which creates uneven hot spots that can burn delicate eyelid skin. The warmth softens the blocked material inside the gland, helping it drain naturally.

One important note: over-the-counter redness-reducing eye drops (the kind marketed to “get the red out”) don’t treat infections. They constrict blood vessels temporarily to make your eyes look whiter, but the effect wears off and can cause rebound redness with repeated use. Stick with plain artificial tears.

When You Need Prescription Treatment

Bacterial conjunctivitis often requires antibiotic eye drops. A typical prescription involves applying one drop to the affected eye every three hours for 7 to 10 days, with more frequent dosing for severe cases. Most people notice improvement within 24 to 48 hours of starting drops, but finishing the full course matters to prevent the infection from returning.

Fungal keratitis is a different situation entirely. It won’t respond to standard antibiotic drops and needs specialized antifungal treatment, often involving multiple medications used simultaneously. If you’ve had a recent eye injury involving dirt, wood, or plant material and your symptoms are getting worse rather than better, this is a possibility your doctor needs to rule out quickly. Delayed treatment can lead to permanent vision damage.

Stop the Infection From Spreading

Viral and bacterial pink eye are both highly contagious. A few habits make the difference between a one-person problem and a household outbreak.

  • Wash your hands constantly. Every time you touch your eye, apply drops, or remove a compress, wash with soap and warm water before touching anything else.
  • Launder everything in hot water. Wash pillowcases, sheets, washcloths, and towels frequently using hot water and detergent. Don’t share any of these items with others in your household.
  • Throw out contaminated makeup. Any eye or face makeup you used in the days before or during the infection can harbor bacteria or virus. Replace mascara, eyeliner, and any brushes that touched the eye area. Don’t share these products.
  • Stop wearing contact lenses immediately. Switch to glasses until your symptoms are completely gone. If you weren’t seen by a doctor, wait until all redness, discharge, and discomfort have resolved before putting lenses back in.

Contact Lens Wearers Need Extra Steps

Contact lenses are one of the most common contributors to eye infections, and how you handle them during and after an infection determines whether you end up right back where you started.

Remove your lenses at the first sign of discomfort, redness, or unusual discharge. Dispose of the pair you were wearing when symptoms started. If you use a reusable case, clean it by rubbing and rinsing with fresh disinfecting solution (never water), then store it upside down with the caps off to air dry. Never top off old solution with fresh solution. Replace the case itself at least every three months.

Once your infection has fully cleared and you’re ready to resume lens wear, start with a fresh pair of lenses, a new case, and a new bottle of solution. Reusing any of these from before the infection risks reintroducing the same organisms to your eyes.

Red Flags That Need Urgent Attention

Most eye infections are annoying but harmless. A few warning signs, however, suggest something more serious is happening.

Any sudden decrease in your vision is the most important red flag. Blurry vision that doesn’t clear when you blink away discharge could signal a deeper infection or rising pressure inside the eye. Moderate to severe eye pain (not just irritation or grittiness, but real pain) warrants prompt evaluation. The same goes for significant light sensitivity where normal indoor lighting becomes uncomfortable.

These symptoms can indicate conditions like bacterial keratitis (infection of the cornea), elevated eye pressure, or inflammation inside the eye itself. All of these need same-day evaluation by an eye care provider or emergency department, because delays in treatment can cause permanent vision loss.

If your symptoms are mild but haven’t improved after two weeks of home care, or if they’re steadily getting worse rather than better, that’s also a reason to get evaluated. What started as a simple viral infection may have developed a secondary bacterial component, or the diagnosis may have been wrong from the start.