How Do You Get an Ear Infection? Causes & Risk Factors

Ear infections happen when fluid gets trapped in the ear and bacteria or viruses start multiplying. The two main types, middle ear infections and outer ear infections, develop through different mechanisms, but both come down to disrupted natural defenses. Understanding what triggers them can help you avoid the most common causes.

How Middle Ear Infections Develop

Your middle ear is a small air-filled space behind the eardrum, connected to the back of your throat by a narrow passage called the eustachian tube. This tube has three jobs: draining fluid from the middle ear, equalizing air pressure so your eardrum vibrates properly, and closing off the middle ear from viruses and bacteria when you’re not swallowing or yawning.

When something causes the eustachian tube to swell shut, fluid that would normally drain away gets trapped behind the eardrum. That warm, moist pocket becomes an ideal breeding ground for germs. As bacteria or viruses multiply, pressure builds, the eardrum reddens and bulges, and you feel that familiar deep ache. The two bacteria most commonly responsible are Streptococcus pneumoniae and nontypeable Haemophilus influenzae, though viruses like the ones that cause colds can also infect the middle ear directly.

The Cold-to-Ear-Infection Pipeline

Most middle ear infections don’t start in the ear. They start with a cold, the flu, or an allergy flare. When your nose and throat are swollen and congested, that inflammation extends to the eustachian tubes. The tubes swell shut, fluid accumulates, and bacteria that were already present in the upper respiratory tract migrate into the stagnant fluid. This is why ear infections so often follow a week of sniffles, particularly in kids who seem to catch every cold that goes around daycare.

Allergies work the same way. Chronic nasal congestion from seasonal or environmental allergies keeps the eustachian tubes irritated and partially blocked, creating repeated opportunities for fluid buildup. If you notice ear pressure or muffled hearing during allergy season, that’s eustachian tube dysfunction at work, and it can progress to a full infection if bacteria take hold.

Why Children Get Ear Infections More Often

About five out of six children will have at least one ear infection by age three. The main reason is anatomy. Children’s eustachian tubes are significantly shorter than adults’, which means bacteria have a shorter distance to travel from the throat into the middle ear. Their tubes also have less muscular support. The muscle that opens the eustachian tube during swallowing is smaller in children, with less surface area and a less effective angle of pull. This makes the tube less efficient at opening, draining, and ventilating the middle ear.

Children’s immune systems are also still learning to fight off respiratory viruses. More colds mean more swelling, more blocked tubes, and more infections. As kids grow, the tubes lengthen, the muscles develop, and ear infections typically become far less frequent.

How Outer Ear Infections (Swimmer’s Ear) Start

Outer ear infections affect the ear canal, the passage between the outside of your ear and the eardrum. The canal is lined with skin that produces a thin layer of protective wax. Two things most commonly break down that defense: excessive moisture and physical trauma.

When water sits in the ear canal for extended periods (after swimming, showering, or working in humid conditions), the skin softens and its protective barrier weakens. Bacteria that are normally kept in check can then invade the damaged skin. The dominant culprits are Pseudomonas aeruginosa and Staphylococcus aureus. In about 10% of cases, fungi are responsible instead, most commonly Aspergillus species.

Trauma is the other major trigger. Cotton swabs, earbuds, hearing aids, or even just scratching an itchy ear can create tiny breaks in the canal’s skin. Those micro-abrasions give bacteria a way in. Combining both risk factors, like swimming and then scratching a waterlogged ear, is a particularly effective recipe for an infection.

Other Risk Factors That Increase Your Chances

Beyond colds and water exposure, several factors make ear infections more likely:

  • Tobacco smoke exposure. Secondhand smoke irritates the eustachian tubes and nasal passages, impairing drainage. Children in households with smokers have higher rates of middle ear infections.
  • Bottle feeding while lying flat. Milk can flow toward the eustachian tube opening in infants who drink while on their backs, introducing bacteria into the middle ear.
  • Group childcare settings. More children in close contact means more circulating viruses, which means more secondary ear infections.
  • Seasonal timing. Middle ear infections peak in fall and winter when respiratory viruses circulate most actively.
  • Narrow or malformed eustachian tubes. Some people are simply built with tubes that don’t drain as efficiently, leading to recurrent infections throughout life.

What an Ear Infection Feels Like

Middle ear infections typically cause a deep, throbbing pain inside the ear, often worse when lying down because the position increases pressure on the eardrum. You may notice muffled hearing, a feeling of fullness, and sometimes fluid draining from the ear if the eardrum ruptures (which sounds alarming but usually heals on its own). In children too young to describe symptoms, tugging at the ear, unusual fussiness, trouble sleeping, and fever are the classic signs. A fever of 102.2°F (39°C) or higher, moderate to severe pain, or symptoms lasting more than 48 hours are considered markers of more serious infection.

Outer ear infections feel different. The pain is often sharp and worsens when you pull on the outer ear or press on the small flap in front of the ear canal. The canal may feel itchy before it becomes painful, and you might see swelling, redness, or discharge. The ear can feel blocked, but the muffled hearing comes from canal swelling rather than fluid behind the eardrum.

How Ear Infections Are Managed

Not every ear infection needs antibiotics. For mild to moderate middle ear infections, especially in children over two, a 48 to 72 hour observation period is often recommended. Many infections are viral and will resolve on their own. Pain management with over-the-counter pain relievers is typically the first step. If symptoms worsen or don’t improve within that window, antibiotics may be prescribed.

Outer ear infections are usually treated with eardrops that target bacteria directly in the canal. Keeping the ear dry during treatment speeds recovery. Most outer ear infections improve noticeably within a few days of starting drops.

Reducing Your Risk

For middle ear infections, the most effective prevention targets the upstream causes. Keeping up with childhood vaccinations helps: pneumococcal vaccines have been shown to reduce moderate-to-severe ear disease by roughly 14%, and the protective effect is even stronger when it comes to preventing ear infections that lead to hearing problems, with a 36% relative risk reduction in that group. Breastfeeding for at least the first six months, avoiding secondhand smoke, and managing allergies all reduce the frequency of infections.

For swimmer’s ear, the strategy is simpler. Dry your ears thoroughly after swimming or showering by tilting your head to let water drain. A few drops of a half-and-half mixture of white vinegar and rubbing alcohol after swimming can help evaporate trapped water and restore the canal’s acidic environment. Avoid inserting anything into the ear canal, including cotton swabs, which push wax deeper and scratch the protective skin lining.