You get an eye infection when pathogens—bacteria, viruses, fungi, or parasites—land on or invade the eye’s surface and overwhelm its defenses. Transmission happens through contaminated fingers, contact lenses, respiratory droplets, or water. Risk climbs with poor hand hygiene, contact lens misuse, impaired immunity, and breaks in the eye’s surface. Most infections are surface-level and treatable, but some can threaten vision permanently.
The eye is built to defend itself. A film of tears washes across the cornea with every blink, carrying lysozyme and antibodies that break down bacterial cell walls. The eyelid margin holds glands that release antimicrobial oils. The corneal epithelium forms a tight physical barrier. Most eye infections begin when one of these defenses fails—or when a large enough dose of pathogen bypasses them entirely. Understanding that balance explains why some people get infections repeatedly and others never do.
The invasion sequence: how pathogens breach the eye
An eye infection rarely starts with a single germ landing on a healthy eye. It starts with a chain: a pathogen source, a transfer route, and a breach in defense. Each link is a place where infection can be stopped.
The most common route is direct contact. You rub your eye with fingers that touched a contaminated surface, and bacteria or viruses transfer to the conjunctiva—the thin membrane lining the eyelid and covering the white of the eye. Human hands carry an average of hundreds of bacterial species, and a single touch can deposit thousands of organisms. The conjunctiva is well-supplied with blood vessels and immune cells, so it usually fights off small exposures. Infection occurs when the inoculum is large or the immune response is locally weakened.
The second route is the ocular surface itself. Contact lenses sit directly on the cornea and create a microscopic space between the lens and the epithelium. If that space traps bacteria and the lens is worn too long, oxygen deprivation weakens the corneal surface and gives bacteria a foothold. Pseudomonas aeruginosa, a bacterium common in water and soil, is the classic contact-lens pathogen. It adheres to lens surfaces and produces toxins that can dissolve corneal tissue within days.
The third route is airborne or droplet spread. Viral conjunctivitis, particularly adenovirus, spreads through respiratory droplets and contaminated surfaces. A sick person who touches their eye then a doorknob can leave virus behind for hours. Adenovirus is hardy on fomites—it can survive on plastic and metal surfaces long enough to infect the next person who touches that surface and then their eye.
The fourth route is waterborne. Swimming in lakes, wearing contacts in hot tubs, or rinsing lenses with tap water exposes the eye to Acanthamoeba, a free-living amoeba that causes a rare but severe corneal infection. Tap water is not sterile; it can carry Pseudomonas, Acanthamoeba, and other organisms. Rinsing a lens case with tap water is a documented risk factor for Acanthamoeba keratitis, which is difficult to treat and can require corneal transplantation.
How common eye infections are, and which ones dominate
Conjunctivitis—commonly called pink eye—is the most frequent eye infection worldwide. Viral conjunctivitis accounts for roughly half of all infectious conjunctivitis cases in adults, with adenovirus the leading cause. Bacterial conjunctivitis is more common in children than adults and peaks in winter months.
The economic and clinical burden is not trivial. In the United States, conjunctivitis accounts for millions of clinic visits each year and is a leading reason for antibiotic eye drop prescriptions. But most viral cases resolve without treatment, and most bacterial cases in healthy adults resolve without antibiotics as well. That mismatch between prescribing habits and clinical need is a persistent driver of antibiotic resistance in eye care.
Keratitis—infection of the cornea—is less common but far more serious. Contact lens wear is the single largest risk factor for microbial keratitis in developed countries. Population-based estimates put the annual incidence of contact-lens-related microbial keratitis in the range of a few cases per 10,000 wearers. That sounds small until you consider that tens of millions of people wear contacts, and the consequences of a corneal infection can include permanent scarring, vision loss, and surgery.
Fungal keratitis is rarer still and is strongly associated with agricultural trauma—a scratch from a plant leaf or branch—and with contact lens wear in tropical climates. It is frequently misdiagnosed as bacterial keratitis initially because the early signs overlap, and treatment delays of even a few days can worsen outcomes. This is one reason any corneal infection after plant material contact should be evaluated promptly.
Who faces the highest risk, and why
Risk is not evenly distributed. Some people carry exposures that make infection far more likely, and some carry immune vulnerabilities that make any exposure more dangerous.
Contact lens wearers are the largest at-risk group in high-income countries. The risks cluster around specific behaviors: sleeping in lenses, wearing them past the recommended replacement schedule, swimming or showering in them, and using tap water to rinse lenses or cases. Each behavior increases the bacterial load and the time bacteria spend against the cornea.
Children are a high-incidence group for conjunctivitis because they gather in close quarters, share toys, and have less-developed hygiene. Daycare and school outbreaks of viral conjunctivitis are common. Children also rub their eyes frequently, which moves pathogens from hands to eyes more efficiently than adults typically do.
Older adults face higher risk of severe outcomes because of age-related immune decline, more frequent dry eye, and higher rates of cataract and other eye surgery. Dry eye matters because the tear film is part of the defense system; when tears thin, pathogen clearance slows.
People with diabetes have a well-documented increase in susceptibility to infection generally, including ocular infections. Elevated glucose impairs neutrophil function and wound healing, which matters for corneal infections because the cornea must repair itself to clear the infection.
Immunocompromised people—those receiving chemotherapy, transplant patients on immunosuppressants, people with advanced HIV, and those on chronic corticosteroids—face the highest risk of unusual and severe eye infections. Organisms that are harmless to healthy eyes, including certain fungi and atypical bacteria, can cause destructive keratitis in an immunocompromised cornea.
Red flags: signs that this is more than a simple infection
Most eye infections are self-limited or easily treated. A subset are emergencies that can permanently damage vision if not addressed quickly.
Vision changes that do not clear with blinking Severe pain, especially pain that worsens in hours rather than days Corneal opacity, a white or gray spot on the eye surface Light sensitivity that is intense and new Contact lens wear with any of the above, especially after swimming or sleeping in lenses Eye infection after eye surgery or eye injury
These signs should prompt same-day evaluation by an eye care professional, not a wait-and-see approach.
What actually separates mild from serious: mechanism and timing
The difference between a nuisance infection and a vision-threatening one usually comes down to tissue depth and speed of treatment. Conjunctivitis stays on the surface. Keratitis invades the cornea. Endophthalmitis—infection inside the eye—is rare but catastrophic.
The cornea has a remarkable repair system, but it depends on rapid immune response. When bacteria reach the corneal stroma, the tissue swells, and inflammatory cells release enzymes that digest both bacteria and corneal tissue. That response can clear the infection but leave a scar that scatters light and blurs vision. The faster the infection is treated, the less tissue is lost.
Time matters most in keratitis. Bacterial keratitis can progress from a small infiltrate to a corneal ulcer and perforation in days, sometimes less in aggressive organisms. Fungal keratitis progresses more slowly but is harder to treat and often needs weeks of topical antifungal therapy. Acanthamoeba keratitis is notoriously painful and can persist for months, and it is frequently misdiagnosed in its early stages because it mimics other forms of keratitis.
How the major eye infections compare
| Infection type | Typical cause | Main risk group | Usual course | Key concern |
|---|---|---|---|---|
| Viral conjunctivitis | Adenovirus | Children, adults in outbreaks | 1–2 weeks, often self-limited | Highly contagious |
| Bacterial conjunctivitis | Staphylococci, streptococci | Children, contact lens wearers | Days to a week | Antibiotic resistance |
| Bacterial keratitis | Pseudomonas, staphylococci | Contact lens wearers | Rapid, days to weeks | Corneal scarring and vision loss |
| Fungal keratitis | Fusarium, Aspergillus | Agricultural workers, tropical lens wearers | Slower, weeks to months | Misdiagnosis and delayed treatment |
| Acanthamoeba keratitis | Acanthamoeba | Contact lens users who use tap water | Weeks to months | Severe pain and difficult treatment |
The pattern is clear: contact lens behavior, environment, and immune status determine which category a person lands in.
What you can do: practical actions with thresholds
Most eye infections are preventable, and the prevention steps are specific.
Wash hands before touching your eyes or handling contacts. Use soap and water for at least 20 seconds. Replace contact lenses on the schedule your eye doctor set, and never sleep in them unless they are approved for overnight wear. Keep water away from lenses. Do not swim, shower, or use hot tubs while wearing contacts, and never rinse lenses or cases with tap water. Replace lens cases at least every 3 months, and let them air-dry face down when not in use. Do not share towels, pillows, or eye makeup with someone who has conjunctivitis, and discard eye makeup used during an infection. Clean eyeglasses and sunglasses regularly; they can carry pathogens near the eye.
When an infection appears, the practical threshold is this: if symptoms are mild and stable, a few days of observation may be reasonable for an otherwise healthy adult. If symptoms worsen over 24 to 48 hours, if vision changes, or if the person is a contact lens wearer, seek professional evaluation. For contact lens wearers, the threshold is zero tolerance—remove the lenses immediately and call an eye care provider.
The counterintuitive part: why swimming goggles don’t protect against everything
A professional caveat worth stating clearly: swimming goggles reduce exposure to pool water, but they do not eliminate risk for contact lens wearers, because water can still enter the eye if goggles leak and because Acanthamoeba can survive in lens storage cases long after the swim. The behavior that matters most is not wearing contacts in the water at all.
A second caveat: antibiotics are not a universal fix. Many eye infections are viral, and even bacterial conjunctivitis in healthy adults often resolves without antibiotics. Overuse of antibiotic eye drops contributes to resistant organisms, which makes future infections harder to treat.
A third caveat is that symptoms alone cannot distinguish viral from bacterial conjunctivitis reliably, even for clinicians. That is why evaluation matters when symptoms are severe or prolonged.
What this does not tell you
This article explains mechanisms and risk factors, not individualized diagnosis or treatment. A person with a red, painful eye needs a clinical exam, because the same symptoms can come from infection, allergy, dry eye, or inflammation. The limits of self-assessment are real: what looks like conjunctivitis can be early keratitis.
A final limitation: infection risk depends on local conditions—water quality, climate, healthcare access, and antibiotic resistance patterns—that vary widely. The mechanisms are stable, but the probabilities shift with place and circumstance. If you have any of the red-flag signs above, the right next step is an eye care professional, not a search engine.