Most ear infections start with something else: a cold, allergies, or even just water trapped in the ear canal. The infection itself is a secondary event, triggered when the ear’s natural defenses break down and bacteria or viruses take hold. About five out of six children will have at least one ear infection by age three, but adults get them too. Understanding the chain of events that leads to an ear infection helps explain why they so often follow a stuffy nose or a day at the pool.
The Two Main Types Start Differently
Ear infections fall into two broad categories, and each one begins through a distinct mechanism. Middle ear infections (the kind that causes deep ear pain and muffled hearing) start from the inside, typically when congestion blocks a small tube connecting the back of the throat to the middle ear. Outer ear infections, often called swimmer’s ear, start from the outside when the skin lining the ear canal loses its protective barrier.
The triggers, timeline, and risk factors differ for each type, so it helps to understand them separately.
How Middle Ear Infections Begin
The middle ear is a small air-filled chamber behind the eardrum. It stays healthy because of a narrow channel called the Eustachian tube, which runs from the middle ear down to the back of the throat. This tube opens and closes regularly to equalize pressure and drain any fluid that accumulates. In adults, it’s about 35 mm long and angled downward at roughly 45 degrees, which lets gravity help with drainage.
When you catch a cold or develop nasal congestion from allergies, the tissue around the Eustachian tube swells. That swelling can partially or fully block the tube, trapping air inside the middle ear. The lining of the middle ear absorbs about 1 mL of that trapped air every 24 hours, creating negative pressure, essentially a vacuum effect. That negative pressure pulls fluid from the surrounding tissue into the middle ear space. Now you have a warm, moist, sealed chamber filled with fluid: an ideal breeding ground for bacteria.
The two most common bacteria that cause middle ear infections are Streptococcus pneumoniae and nontypeable Haemophilus influenzae, according to the CDC. Viruses that cause the common cold can also directly infect the middle ear. In many cases, the infection is a combination of both viral and bacterial involvement.
The Typical Timeline
The pattern is predictable enough that parents learn to watch for it. A child develops cold symptoms: runny nose, congestion, maybe a low fever. About three days into the cold, ear pain begins. That three-day window is the time it takes for the Eustachian tube to become sufficiently blocked, for fluid to accumulate, and for bacteria to multiply to the point of causing symptoms. In some cases it takes longer, but ear pain appearing a few days into a respiratory illness is a classic sign.
Why Children Get More Ear Infections
The anatomy of a child’s ear makes infection far more likely. In infants, the Eustachian tube is about 18 mm long (roughly half the adult length), and it sits nearly horizontal, angled at close to 10 degrees rather than the adult’s 45 degrees. It’s also wider, floppier, and less structurally rigid. This combination means the tube drains poorly and allows bacteria from the throat and nose to travel more easily into the middle ear.
As children grow, the base of the skull extends downward, gradually increasing the angle and length of the tube. This is the main reason ear infections become less frequent with age. By the time the tube reaches its adult dimensions and angle, gravity does most of the drainage work automatically.
How Swimmer’s Ear Starts
Outer ear infections follow a completely different path. The ear canal is lined with skin that produces earwax, which serves as a waterproof, slightly acidic barrier against bacteria. Two things commonly break down this defense: excess moisture and physical trauma.
When water sits in the ear canal for extended periods (from swimming, bathing, or humid environments), it raises the pH of the canal and washes away the protective earwax layer. The leftover skin debris absorbs the water, creating a damp environment where bacteria thrive. This is why the infection is so commonly associated with swimming, though it can happen after any prolonged moisture exposure.
Physical trauma is the other common trigger. Cotton swabs, earbuds, hearing aids, or even a fingernail can scratch the thin skin lining the canal. Once that skin is broken, bacteria that normally live harmlessly on the surface can penetrate deeper tissue and cause infection. The ear canal is surprisingly easy to damage, and the combination of a small scratch plus trapped moisture is often enough to start an infection within a day or two.
Allergies and the Eustachian Tube
Seasonal allergies are an underappreciated trigger for middle ear infections, particularly in children. When allergens cause inflammation in the nasal passages, that swelling extends to the tissue surrounding the Eustachian tube. The result is the same mechanical blockage that a cold produces: the tube can’t open properly, fluid builds up, and infection can follow.
Studies on children with allergic rhinitis have found that Eustachian tube dysfunction worsens during allergy seasons or after exposure to specific pollen. This helps explain why some children develop recurring ear infections at the same time every year, coinciding with their allergy triggers rather than cold and flu season.
Secondhand Smoke and Other Risk Factors
Exposure to cigarette smoke significantly raises the risk of ear infections, and the mechanism goes beyond simple irritation. Tobacco smoke alters the physical properties of the mucus layer inside the middle ear, making it thicker and harder to drain. It impairs the tiny hair-like structures (cilia) that normally sweep mucus and debris out through the Eustachian tube. It also damages the cells lining the tube directly, weakens the immune cells that would normally fight off bacteria, and contributes to Eustachian tube dysfunction.
Other factors that increase risk include attending daycare (more exposure to respiratory viruses), bottle-feeding while lying flat (which can push fluid toward the Eustachian tube), and pacifier use in infants.
Why Some Ear Infections Keep Coming Back
Recurrent ear infections often involve bacterial biofilms. A biofilm is a structured colony of bacteria that adheres to a surface and encases itself in a protective matrix. Once bacteria form a biofilm on the tissue of the middle ear, they become remarkably difficult to eliminate. The biofilm shields the bacteria from both the immune system and antibiotics, allowing them to survive treatment and reseed new infections once conditions are favorable again.
Research published in the Proceedings of the National Academy of Sciences identified biofilms as the common cause of persistent middle ear infections. Within these biofilms, bacteria develop increasing antibiotic resistance over time, which explains why children with chronic ear infections sometimes stop responding to standard treatments. This cycle of partial treatment, biofilm persistence, and reinfection is what often leads doctors to recommend ear tubes, which bypass the Eustachian tube entirely by providing an alternative drainage path through the eardrum.

