What Causes an Ear Infection: Viruses, Bacteria & More

Ear infections happen when fluid gets trapped in the ear and allows bacteria or viruses to multiply. The most common type, a middle ear infection, typically starts after a cold or respiratory illness causes swelling that blocks the small tubes connecting your ears to your throat. Outer ear infections, often called swimmer’s ear, develop when water or moisture gets trapped in the ear canal. Understanding the specific triggers can help you recognize why infections keep coming back and what you can do about them.

How Fluid Gets Trapped in the Middle Ear

Your middle ear connects to the back of your throat through a narrow passage called the eustachian tube. This tube has two jobs: equalizing air pressure and draining fluid away from the ear. It stays closed most of the time and opens briefly when you swallow, yawn, or sneeze. When the tube swells shut from a cold, allergies, or sinus congestion, fluid has nowhere to go. It pools in the middle ear, creating a warm, stagnant environment where bacteria thrive.

That trapped fluid also creates the pressure and fullness you feel during an ear infection. As bacteria multiply, the immune system responds with inflammation, which pushes against the eardrum and causes pain. In some cases, enough pressure builds to rupture the eardrum, which actually relieves the pain but signals a more advanced infection.

Viruses That Set the Stage

Most middle ear infections don’t start with bacteria. They start with a virus. A cold, flu, or RSV infection inflames the nasal passages and throat, which swells the eustachian tubes shut. While that’s happening, respiratory viruses entering the nose encounter bacteria already living harmlessly in the back of the throat. This viral-bacterial mixture gets pushed up the swollen eustachian tube and into the middle ear cavity, where the real infection takes hold.

This is why ear infections so often follow a few days behind a cold. The virus does the groundwork by creating congestion and inflammation, and bacteria take advantage of the environment. Seasonal flu vaccines have shown some success in reducing ear infections in children, precisely because fewer flu episodes mean fewer opportunities for this chain of events.

The Bacteria Behind Most Infections

Three bacteria account for the vast majority of middle ear infections worldwide. The most common is Streptococcus pneumoniae, followed closely by Haemophilus influenzae, with Moraxella catarrhalis as a distant third. These bacteria naturally colonize the back of the throat in many people without causing problems. They only become infectious when they migrate into the middle ear during a period of eustachian tube dysfunction.

The balance between these bacteria shifts depending on the type of infection. In a first-time acute ear infection, S. pneumoniae is usually the dominant culprit. But in chronic or recurring infections, or in cases where initial treatment didn’t work, H. influenzae tends to take over. This distinction matters because it affects how well an infection responds to standard antibiotics.

Why Children Get Ear Infections So Often

Children are far more vulnerable to ear infections than adults, and the reason is largely structural. In infants, the eustachian tube is about 18 millimeters long and sits at a nearly flat 10-degree angle. By adolescence, it doubles to 36 millimeters and tilts to 45 degrees. That steeper angle in adults lets gravity pull fluid down and out of the ear naturally. A child’s shorter, flatter tube doesn’t drain well, and fluid sits in the middle ear much longer.

Children also have immune systems that are still learning to fight common respiratory viruses, so they catch more colds. More colds mean more episodes of eustachian tube swelling, more trapped fluid, and more chances for bacteria to settle in. Daycares and schools accelerate this cycle by putting many young children in close contact during cold and flu season.

Allergies and Chronic Congestion

Seasonal allergies and year-round allergic rhinitis are well-established contributors to ear infections. When you inhale an allergen, the lining of your nasal passages swells and produces excess mucus. That inflammation doesn’t stay in the nose. It extends to the tissue surrounding the eustachian tubes, causing the same kind of blockage that a cold does. The result is increased negative pressure in the middle ear and poor ventilation, both of which set up conditions for infection.

Chronic acid reflux can produce a similar effect. Stomach acid reaching the back of the throat irritates the tissue around the eustachian tube opening, causing persistent low-grade swelling. For people who get recurring ear infections without an obvious cold beforehand, allergies or reflux are worth investigating as underlying triggers.

Secondhand Smoke and Other Environmental Risks

Exposure to cigarette smoke significantly increases the risk of ear infections in children. One study found that 68% of children with chronic fluid in the middle ear lived in homes where someone smoked, compared to 48% of healthy children. Smoke damages the delicate lining of the eustachian tube and nasal passages in several ways at once: it impairs the tiny hair-like cells that sweep mucus out of the ear, reduces the ability of immune cells to kill bacteria, and causes the tissue to swell and produce excess mucus.

Other environmental factors include bottle-feeding while lying flat, which can allow milk to flow toward the eustachian tubes, and using pacifiers, which changes swallowing patterns and may affect tube function.

What Causes Swimmer’s Ear

Outer ear infections are a completely different problem. Instead of fluid trapped behind the eardrum, swimmer’s ear involves infection of the ear canal itself. The most common cause is water that stays in the ear canal after swimming or bathing. Bacteria and fungi thrive in that warm, moist environment and begin multiplying on the skin of the canal.

The two bacteria most often responsible are Pseudomonas aeruginosa and Staphylococcus aureus. You can also trigger an outer ear infection by scratching or damaging the ear canal with cotton swabs, bobby pins, earbuds, or other objects. Even small abrasions in the canal’s skin give bacteria an entry point. People who wear hearing aids or use earbuds frequently may also be more prone because these devices trap moisture and create friction.

How Ear Infections Are Managed

Not every ear infection needs antibiotics. For mild cases in children over six months, the American Academy of Pediatrics recommends a watch-and-wait approach: managing pain with over-the-counter pain relievers and monitoring symptoms for 48 to 72 hours. Many ear infections, particularly those triggered by viruses, resolve on their own in that window. If symptoms worsen or don’t improve, antibiotics are started at that point.

More severe infections, those with significant eardrum bulging, high fever, or drainage, are treated with antibiotics right away. For children who get frequent recurring infections, a doctor may recommend small tubes placed in the eardrums to keep fluid draining continuously, bypassing the faulty eustachian tubes entirely.

Risks of Untreated Infections

Most ear infections resolve without lasting damage, but infections that go untreated or keep recurring can cause real harm. Persistent fluid in the middle ear muffles sound, and in young children, even temporary hearing reduction during critical language-learning months can delay speech development. Repeated infections can also cause scarring of the eardrum, leading to some degree of permanent hearing loss.

The most serious complication is mastoiditis, an infection that spreads from the middle ear into the dense bone behind the ear. This happens when a middle ear infection is left untreated long enough for bacteria to invade surrounding tissue. Mastoiditis can lead to facial paralysis, inner ear damage, meningitis, or in rare cases, life-threatening systemic infection. It’s uncommon in countries where antibiotics are accessible, but it’s the reason persistent ear pain and fever shouldn’t be ignored.