How Do You Get an Ear Infection: Causes and Types

Ear infections develop when bacteria, viruses, or fungi gain access to parts of the ear that are normally well-protected. The two most common types, middle ear infections and outer ear infections, happen through completely different mechanisms. Understanding both helps explain why something as simple as a cold or a day at the pool can leave you with serious ear pain.

Middle Ear Infections Start With Swelling

The most common type of ear infection happens in the middle ear, the small air-filled space behind your eardrum. This space connects to the back of your throat through a narrow channel called the eustachian tube. Under normal conditions, this tube opens and closes to equalize air pressure and drain fluid away from the ear. When you get a cold, the flu, or an allergy flare-up, the swelling in your nose and throat extends to that tube, partially or fully blocking it.

Once the tube is blocked, fluid that would normally drain gets trapped in the middle ear. That warm, stagnant fluid becomes a breeding ground for bacteria. The three bacteria most often responsible are Streptococcus pneumoniae, Haemophilus influenzae, and Moraxella catarrhalis. This is why ear infections so frequently follow a cold: the virus itself doesn’t infect the ear, but the swelling it causes creates the conditions for bacteria to take hold. Symptoms tend to come on fast once the fluid becomes infected.

Why Children Get Ear Infections So Often

Children’s eustachian tubes are shorter, narrower, and more horizontal than an adult’s. This makes it much harder for fluid to drain out of the middle ear, even under normal circumstances. Add the swelling from a cold, and the tube blocks easily. As children grow, the tube lengthens and angles more steeply downward, which is why most kids outgrow frequent ear infections by age seven or eight.

Secondhand smoke significantly raises the risk. According to the CDC, children whose parents smoke around them get more ear infections, have fluid in their ears more often, and are more likely to need surgical ear tubes for drainage. Smoke irritates and swells the lining of the eustachian tube the same way a cold does, keeping it chronically congested.

Outer Ear Infections Come From Moisture and Damage

Outer ear infections, often called swimmer’s ear, affect the ear canal rather than the space behind the eardrum. The mechanism is different: instead of fluid being trapped internally, water gets trapped in the canal from the outside. Bacteria and fungi thrive in warm, moist environments, so water pooling in your ear canal after swimming, showering, or even heavy sweating creates ideal conditions for infection. The bacteria most commonly involved are Pseudomonas aeruginosa and Staphylococcus aureus.

You don’t need to go swimming to get swimmer’s ear. Anything that damages the thin skin lining the ear canal can open the door to infection. Cotton swabs are a major culprit. Sticking them (or pens, bobby pins, or paper clips) into your ear to remove wax can scratch the canal, creating tiny breaks in the skin where bacteria enter. Earwax actually protects the canal by moisturizing the skin and blocking dirt, dust, and germs. Removing it aggressively strips away that defense and risks physical injury at the same time. Johns Hopkins physicians report seeing bleeding ear canals and perforated eardrums from cotton swab use.

Specific Situations That Raise Your Risk

Certain everyday scenarios make ear infections more likely:

  • After a cold or upper respiratory infection. The swelling and congestion from a viral illness is the single most common trigger for middle ear infections. If your ears feel full or pressurized during a cold, fluid is likely building up behind the eardrum.
  • Swimming in lakes, rivers, or poorly maintained pools. Natural bodies of water contain higher levels of bacteria than treated pools. But even chlorinated pools can cause problems if water stays trapped in the canal afterward.
  • Allergies. Chronic allergic inflammation keeps the eustachian tubes swollen for weeks or months at a time, creating repeated opportunities for fluid buildup and infection.
  • Frequent use of earbuds or hearing aids. These devices can trap moisture in the ear canal and introduce bacteria, particularly if they aren’t cleaned regularly.
  • Living with smokers. Ongoing exposure to secondhand smoke keeps the tissues of the nose, throat, and eustachian tubes in a state of low-grade irritation, making blockages more likely.

How to Tell Which Type You Have

Middle ear infections typically produce deep, throbbing pain inside the ear, often with a feeling of fullness or muffled hearing. You might notice it a few days into a cold. Young children may tug at their ears, become unusually fussy, or have trouble sleeping. Fever is common with middle ear infections, especially in kids.

Outer ear infections feel different. The pain is usually in the ear canal itself and gets noticeably worse when you pull on your earlobe or press on the small flap of cartilage at the front of the ear. The canal may feel itchy before it becomes painful, and you might see redness or swelling at the ear opening. Discharge from the ear is more common with outer infections.

What Happens if You Leave It Alone

Many middle ear infections in adults and older children clear on their own within two to three days as the underlying cold resolves and the eustachian tube reopens. The trapped fluid drains, and the immune system handles the remaining bacteria. Younger children and people with severe symptoms typically need antibiotic treatment because their shorter eustachian tubes drain poorly and the infection is less likely to resolve without help.

Outer ear infections rarely go away without treatment. Because the ear canal stays warm and moist, bacteria continue to multiply. Prescription ear drops that fight the infection and reduce swelling are the standard treatment. Keeping the ear dry during recovery is critical. If you swim regularly and get repeated outer ear infections, drying your ears thoroughly after every swim (tilting your head to let water drain, then using a towel) can prevent most recurrences. Over-the-counter drying drops made with rubbing alcohol can help evaporate residual water.

Repeated middle ear infections in children sometimes lead to persistent fluid behind the eardrum, which can temporarily affect hearing. In those cases, small tubes placed through the eardrum allow continuous drainage and ventilation of the middle ear space until the child’s eustachian tubes mature enough to function on their own.