You get an eye infection when a pathogen bypasses the eye's surface defenses and multiplies in tissue. Most cases come from your own hands, your own skin and nasal bacteria, or contaminated contact lenses, not from strangers or the air. The germ has to land on the conjunctiva, cornea, or eyelid margin and then overcome tear-film defenses long enough to establish itself. That two-step sequence, exposure plus failed clearance, explains nearly every route below.
The barrier that fails first
The eye is built to be inhospitable. Every blink spreads a tear film containing lysozyme, lactoferrin, and secretory IgA across the cornea and conjunctiva. These proteins break down bacterial cell walls and bind pathogens before they attach. The conjunctiva also carries goblet cells and a dense network of immune cells that mount a response within hours.
Infection requires the inoculum, the starting dose of organisms, to exceed what that system clears. A small number of bacteria on an intact surface usually loses. A large dose, a more virulent organism, or a breached surface changes the math. That is why a minor splash rarely causes infection while a contaminated contact lens sitting under a closed eyelid reliably can.
Surface breach is the second variable. The cornea's outer epithelium is a tight barrier, but it regenerates slowly compared with skin. A fingernail scratch, a foreign body, or chronic dryness creates a microscopic entry point. Once the epithelium is disrupted, organisms that would otherwise be swept away can adhere to exposed basement membrane.
The eyelid margin is a third entry zone. Meibomian glands and eyelash follicles harbor staphylococci in most adults. When a gland blocks, the trapped bacteria and lipid trigger a localized infection, which is what a stye actually is. Here the pathogen was already resident; the blockage, not a new exposure, is the event.
Quantified context: how common and how risky
Conjunctivitis is the most frequent eye infection seen in primary care, and viral causes dominate. Adenovirus accounts for a large share of infectious conjunctivitis cases, with bacterial causes more common in children than adults. Most viral cases resolve in 7 to 14 days without treatment.
Contact lens wear is the single largest modifiable risk factor for serious eye infection. The cornea's oxygen supply drops under a lens, and the closed-lid environment under a sleeping lens raises warmth and moisture. Overnight wear multiplies the risk of microbial keratitis several-fold compared with daily wear. That is why every major optometric body advises against sleeping in lenses not approved for extended wear.
The most severe common infection is bacterial keratitis, a corneal infection that can scar the eye within days. Its incidence in contact lens wearers is low per person-year but climbs sharply with extended wear, poor lens hygiene, and contact with water. Acanthamoeba keratitis, a protozoan infection, is rare but strongly linked to tap water exposure and lens rinsing.
Prevalence of blepharitis, the eyelid margin inflammation that predisposes to styes and chronic irritation, is high in adults and rises with age and skin conditions such as rosacea. That background burden matters because marginal infection is often a flare of an existing problem, not a new acquisition.
Route-by-route: how pathogens actually arrive
Hand-to-eye transfer is the dominant route for common conjunctivitis. Respiratory viruses such as adenovirus survive on skin and fomites long enough for a hand to pick them up and deliver them to the conjunctiva. This is why viral pink eye spreads so efficiently within households and schools.
Contact lens handling is the dominant route for corneal infection. Pathogens form biofilms on lens cases and lenses, and the case is the usual reservoir. Rinsing lenses or cases with tap water introduces Acanthamoeba and Pseudomonas, organisms adapted to water systems. Topping off old solution instead of discarding it concentrates organisms.
Direct inoculation from trauma or foreign bodies is a distinct route. A corneal abrasion from a branch, a fingernail, or a foreign body carries surface flora into the wound. This is the classic setup for bacterial keratitis after injury, and it is why eye protection matters in gardening and construction.
Endogenous spread is rare but serious. Bacteria or fungi can reach the eye through the bloodstream, typically in immunocompromised patients or those with systemic infection. This route bypasses the surface defenses entirely and behaves differently from typical surface infection.
Reactivation of latent virus is a fourth pattern. Herpes simplex can lie dormant in the trigeminal ganglion and reactivate as keratitis, often triggered by stress, sun exposure, or illness. Here there is no new exposure; the pathogen was already inside.
Red-flag warnings that change the category
Most eye infections are self-limited surface problems. A small set of signs indicate a serious infection or a non-infectious emergency and warrant urgent care.
Pain that is severe or worsening rather than gritty irritation. Vision changes: blurring that does not clear with blinking, or halos. Photophobia, meaning light hurts out of proportion to the redness. Corneal opacity, a white or gray spot on the colored part of the eye. Contact lens wear plus any of the above, especially after water exposure. Redness with fever, or swelling that spreads beyond the eyelid.
These signs separate keratitis and other serious conditions from simple conjunctivitis. The distinction matters because treatment windows differ by days, not weeks.
A counterintuitive point about pink eye
The instinct to treat every red eye with antibiotic drops is wrong more often than right. Most adult infectious conjunctivitis is viral, and antibiotics do nothing to adenovirus. Unnecessary drops carry costs: they disrupt the ocular surface flora, they can cause allergic reactions, and they contribute to resistance.
A second counterintuitive point involves the "contagious" label. Viral conjunctivitis is contagious through direct contact with discharge or contaminated objects. It is not airborne in the way respiratory viruses spread through a room. That reframes prevention toward hand hygiene and fomite cleaning rather than isolation.
The professional caveat: distinguishing viral from bacterial conjunctivitis by appearance alone is unreliable, even for clinicians. Purulent discharge suggests bacteria, but the overlap is substantial. That uncertainty is why guidance increasingly favors observation for uncomplicated cases rather than routine empiric antibiotics.
Comparing common eye infections by route, speed, and severity
| Condition | Usual cause | Typical entry route | Onset speed | Severity | |
|---|---|---|---|---|---|
| Viral conjunctivitis | Adenovirus | Hand-to-eye, fomites | 1 to 3 days after exposure | Mild to moderate, self-limited | |
| Bacterial conjunctivitis | Staphylococci, streptococci | Hand-to-eye, contact lens | 1 to 3 days | Mild, often resolves without treatment | |
| Bacterial keratitis | Pseudomonas, staphylococci | Contact lens, trauma | Hours to 2 days | Serious, can scar cornea | |
| Acanthamoeba keratitis | Acanthamoeba | Tap water with lenses | Days to weeks, often delayed | Serious, hard to diagnose | |
| Stye (hordeolum) | Staphylococci | Eyelid gland blockage | 1 to 3 days | Mild, localized | |
| Herpes simplex keratitis | HSV-1 reactivation | Latent virus reactivation | Hours to days | Variable, can recur |
The comparison shows why route and speed matter more than the name of the germ. A keratitis that progresses in hours needs a different response than a conjunctivitis that smolders for a week.
Timeline: what a typical surface infection looks like
| Time point | What is happening | What you may notice |
|---|---|---|
| Hour 0 | Inoculation onto conjunctiva or cornea | Nothing yet |
| Hours 6 to 24 | Pathogen adheres, immune response begins | Grittiness, mild redness |
| Day 1 to 2 | Inflammation peaks, discharge develops | Watery or purulent discharge, crusting |
| Day 3 to 5 | Immune clearance or pathogen proliferation | Viral cases begin improving; bacterial may plateau |
| Day 5 to 10 | Resolution phase for self-limited cases | Redness fades, discharge decreases |
| Day 10 to 14 | Most viral conjunctivitis resolved | Residual irritation possible |
| Beyond 2 weeks | Persistent or worsening symptoms | Reevaluate for keratitis or non-infectious cause |
This timeline assumes a normal immune response and no complicating factors. Contact lens wear, dry eye, and immunosuppression all stretch it.
Practical actions: reducing dose and protecting the surface
The goal is to lower inoculum and keep the surface intact. Concrete steps:
Wash hands with soap and water for at least 20 seconds before touching the face or handling lenses, and dry with a clean towel. Never rinse lenses or lens cases with tap water; use sterile solution and replace the case every 3 months. Remove lenses before swimming, showering, or sleeping unless specifically approved for extended wear. Discard opened solution by its labeled date and never top off old solution in the case. Avoid sharing towels, pillowcases, or eye makeup during an active infection. Wear eye protection for gardening, construction, and any task with flying debris.
Thresholds that matter: replace lenses on the schedule your eye care provider sets, not when they feel uncomfortable. Replace mascara every 3 months. Stop lens wear at the first sign of pain or vision change and seek care the same day.
Reconciling thresholds across sources: overnight wear is discouraged by every major optometric body, while extended-wear approval exists for specific lens types. The reconciliation is that approval reflects lens design, not a safety guarantee; risk still rises with each night worn.
Limits of what this explains
Mechanism explains risk, not diagnosis. The same redness can come from allergy, dry eye, blepharitis, or a foreign body, and none of those are infections. Self-diagnosis by symptom pattern is unreliable, and the severe category is defined by findings that are hard to see without a slit lamp.
Evidence gaps remain. Precise incidence figures for keratitis vary by study population and lens type, and much of the prevention guidance rests on case-control data rather than trials. Where numbers are uncertain, the direction of risk is clear even when the magnitude is not.
The practical takeaway is that eye infection is mostly a dose-and-barrier problem. Reduce what reaches the eye, keep the surface intact, and treat pain or vision change as a category shift rather than a symptom to wait out.