Ear infections happen when bacteria or viruses multiply in a part of the ear where they don’t belong, usually after something disrupts the ear’s natural defenses. The two most common types affect different parts of the ear through completely different mechanisms: middle ear infections start from the inside (often following a cold), while outer ear infections start from the outside (often from trapped moisture). Understanding which type you’re dealing with helps explain why it happened and how to avoid it next time.
Middle Ear Infections Start With a Blocked Tube
The middle ear sits behind your eardrum and connects to the back of your nose through a narrow passage called the eustachian tube. Every time you swallow or yawn, this tube opens briefly to equalize pressure and drain mucus from the middle ear. When the tube swells shut, usually from a cold or allergies, the middle ear becomes a sealed chamber. The lining absorbs the trapped air, creating negative pressure that pulls the eardrum inward. Fluid accumulates with nowhere to go, and if bacteria reach that fluid, you have an acute middle ear infection.
The two bacteria most commonly responsible are Streptococcus pneumoniae and Haemophilus influenzae. But a virus typically sets the stage first. About one in five upper respiratory infections (common colds) progresses to a middle ear infection. The timeline varies: roughly half of these ear infections show up within the first four days of cold symptoms, and three-quarters develop within the first week, though it can happen at any point during the illness.
Why Children Get Ear Infections So Often
Children’s eustachian tubes are shorter, narrower, and more horizontal than those of adults. That horizontal angle does two things: it makes it harder for fluid to drain downward out of the middle ear, and it gives bacteria an easier path from the nose into the middle ear space. As children grow, the tube lengthens and tilts to a steeper angle, which is why ear infections become far less common after age seven or eight.
Babies who drink from a bottle while lying flat face extra risk. When a baby is on their back, liquid can flow from the throat into the eustachian tube and pool in the middle ear. Feeding in a slightly upright position reduces this.
Children exposed to secondhand smoke also get more ear infections and are more likely to have persistent fluid in their ears. Smoke irritates and swells the tissues lining the eustachian tube, making blockages more frequent.
Outer Ear Infections Work Differently
Outer ear infections, commonly called swimmer’s ear, affect the ear canal between the opening of your ear and the eardrum. Your ear canal has a built-in defense system: earwax. That waxy coating is slightly acidic and contains natural antimicrobial compounds that suppress bacterial and fungal growth. An outer ear infection happens when something strips away or overwhelms that protective barrier.
The most common culprit is moisture. Water that sits in the ear canal for a long time raises the pH, washes away earwax, and softens the skin lining the canal. Waterlogged skin absorbs moisture and becomes a perfect growth medium for bacteria. Swimming is the classic trigger, but heavy perspiration, high humidity, and hot environments can do the same thing.
The second major cause is mechanical damage to the ear canal. Sticking cotton swabs, fingernails, or other objects into your ear removes protective wax and can create tiny skin breaks where bacteria enter. Hearing aids and earplugs can have a similar effect, trapping moisture against the canal wall while also rubbing away wax over time. Chronic skin conditions like eczema, psoriasis, and seborrheic dermatitis also weaken the canal’s skin barrier and increase infection risk.
Keeping Water Out of Your Ears
Preventing swimmer’s ear comes down to keeping the ear canal dry. After swimming or showering, tilt your head to each side so each ear faces down and water can drain. Pulling your earlobe in different directions while your ear faces the ground helps open the canal. Dry your ears thoroughly with a towel. If water still feels trapped, a hair dryer on its lowest heat and fan setting, held several inches from the ear, can evaporate what’s left.
Resist the urge to “clean” your ears with cotton swabs. Earwax is doing its job by protecting the canal from infection. Removing it makes you more vulnerable, not less.
When Ear Infections Become Chronic
Most ear infections clear up within days to a couple of weeks. But some become chronic, and the reason often comes down to biofilms. Bacteria can form structured colonies on the surfaces of the middle ear, encasing themselves in a protective slime layer that shields them from both antibiotics and the immune system. These biofilms are a leading cause of chronic middle ear infections with ongoing drainage through a perforated eardrum.
One bacterium particularly skilled at this is Pseudomonas aeruginosa. It builds unusually robust biofilms and uses chemical signaling systems to coordinate its defenses. If a Pseudomonas infection isn’t eliminated early, it can transition into a persistent state with a mucoid biofilm that resists standard topical treatments. Within these biofilms, “persister cells” enter a dormant state that lets them survive antibiotic exposure, then reactivate once treatment stops. This is why some ear infections seem to come back repeatedly despite treatment, and why chronic cases sometimes require more aggressive approaches.
What Raises Your Overall Risk
Several factors make ear infections more likely, depending on the type:
- Recent cold or respiratory illness: The single biggest trigger for middle ear infections, since the viral infection swells the eustachian tube shut and introduces bacteria.
- Allergies: Chronic nasal congestion from allergies keeps the eustachian tube inflamed and prone to blockage.
- Age: Young children are most susceptible to middle ear infections due to their eustachian tube anatomy and developing immune systems.
- Group childcare: More exposure to other children’s colds means more opportunities for the viral-to-ear-infection chain.
- Frequent water exposure: Swimming, especially in lakes or poorly treated pools, raises the risk of outer ear infections.
- Ear canal irritation: Cotton swabs, earbuds worn for long periods, and hearing aids all disrupt the canal’s protective environment.
- Tobacco smoke exposure: Irritates the respiratory lining and impairs the eustachian tube’s ability to stay open and drain.
You can’t eliminate every risk factor, but the ones you can control, like drying your ears after water exposure, keeping objects out of the ear canal, avoiding smoke exposure for children, and feeding babies in an upright position, meaningfully reduce the chances of infection.

