How Can You Get an Ear Infection: Causes & Types

Ear infections develop when bacteria, viruses, or fungi take hold in one of the three parts of your ear: the outer canal, the middle ear behind the eardrum, or the inner ear. Each type has different triggers, but most come down to the same basic pattern: something traps moisture or blocks drainage, creating conditions where germs can multiply. Between 80% and 90% of children get at least one ear infection by age three, and adults are far from immune.

Middle Ear Infections: The Most Common Type

The middle ear sits just behind your eardrum and connects to the back of your throat through a narrow channel called the eustachian tube. Every time you swallow or yawn, this tube opens briefly to equalize pressure and drain mucus. When it gets blocked, fluid builds up in the middle ear with nowhere to go. That warm, stagnant fluid becomes a breeding ground for bacteria.

The most common reason the tube blocks up is a cold or flu. When your nose and throat become inflamed, the swelling can narrow or seal off the eustachian tube opening. The trapped air in the middle ear gets absorbed by the tissue lining, creating negative pressure that pulls the eardrum inward. You feel this as fullness, muffled hearing, or pain. If bacteria from the nose migrate into that pooled fluid, you get an acute middle ear infection. The two bacteria most often responsible are Streptococcus pneumoniae and nontypeable Haemophilus influenzae, though viruses alone can also cause middle ear infections.

Anything that causes chronic nasal congestion can set this process in motion: allergies, sinus infections, or repeated colds. Children in daycare get more ear infections largely because they pass respiratory viruses back and forth constantly.

Why Children Get Ear Infections So Often

Children’s eustachian tubes are shorter than adults’, which means bacteria can travel from the nose to the middle ear more easily. Their tubes also run more horizontally, so fluid doesn’t drain as efficiently by gravity. On top of that, the muscles responsible for opening the tube during swallowing are smaller and less effective in young children. These anatomical differences largely resolve as kids grow, which is why ear infections become less frequent with age.

A few behavioral factors raise the risk further. Prolonged pacifier use can contribute because the sucking motion lifts the soft palate and pulls on the muscle attached to the eustachian tube. This repeatedly forces the tube open in a way that can allow bacteria from the throat to enter the middle ear. Secondhand smoke exposure also increases ear infection rates in children, causes more persistent fluid buildup behind the eardrum, and leads to more ear tube surgeries.

Outer Ear Infections (Swimmer’s Ear)

Outer ear infections happen in the ear canal, the passage that leads from the outside of your head to your eardrum. Water is the biggest culprit. When moisture pools in the ear canal after swimming, bathing, or even heavy sweating, bacteria and fungi thrive in that warm, wet environment. This is why the condition is commonly called swimmer’s ear.

Your ear canal has a natural defense system: earwax. It coats the canal with a water-resistant barrier that keeps germs out. Anything that strips away that wax leaves you vulnerable. Frequent water exposure gradually washes it out. Cleaning your ears with cotton swabs, bobby pins, or other objects does even more damage because it removes wax and can scratch the delicate skin lining the canal. Those tiny abrasions give bacteria a direct entry point into the tissue.

You’re at higher risk for outer ear infections if you swim regularly, use earbuds or hearing aids that trap moisture, or have skin conditions like eczema affecting your ear canal.

Fungal Ear Infections

About 10% of outer ear infections are caused by fungi rather than bacteria. The fungus Aspergillus is responsible for roughly 90% of these cases, with Candida accounting for most of the rest. Fungal ear infections follow the same basic logic as bacterial ones: they need warmth, moisture, and reduced earwax to take hold.

These infections are most common during summer months and in humid climates. People who swim, surf, or SCUBA dive are especially prone. A weakened immune system, ear injuries, or skin conditions affecting the ear also raise your risk. The symptoms often overlap with bacterial outer ear infections (itching, discharge, discomfort), but fungal infections tend to be more persistent and may not respond to the antibiotic ear drops typically used for swimmer’s ear.

Inner Ear Infections

Inner ear infections are the least common type but can be the most disorienting. The inner ear controls both hearing and balance, so when it becomes inflamed (a condition called labyrinthitis), you can experience sudden dizziness, vertigo, nausea, and hearing changes that feel alarming.

Viruses cause most inner ear infections. A cold, flu, or other respiratory illness can trigger inflammation that spreads to the inner ear. Less commonly, an untreated middle ear infection can extend deeper into the ear structures. Allergies and certain medications that are toxic to the inner ear can also be involved. Unlike middle and outer ear infections, inner ear infections are rarely caused by bacteria on their own.

Habits That Raise Your Risk

Several everyday behaviors make ear infections more likely, regardless of the type:

  • Cleaning your ears with objects. Cotton swabs, pen caps, and hair pins push wax deeper and scratch the ear canal. Your ears are largely self-cleaning; earwax naturally migrates outward.
  • Leaving water in your ears. Tilting your head to drain water after swimming or showering reduces the chance of outer ear infections significantly. Drying the outer ear with a towel helps too.
  • Smoking or exposure to secondhand smoke. Smoke irritates the lining of the nose and throat, promoting eustachian tube dysfunction and making middle ear infections more likely, especially in children.
  • Spending time in group care settings. Daycare increases a child’s exposure to the respiratory viruses that trigger middle ear infections.
  • Extended pacifier use. For infants, the repeated sucking motion can mechanically open the eustachian tube in a way that lets bacteria enter the middle ear.

How to Tell Which Type You Have

The location of your symptoms gives the strongest clue. Outer ear infections typically cause pain when you tug on your earlobe or press on the small flap at the front of your ear. The canal may feel itchy, swollen, or produce discharge. Middle ear infections cause deeper pain, a feeling of pressure or fullness, muffled hearing, and sometimes fever. In children, irritability, trouble sleeping, and pulling at the ear are common signs. Inner ear infections are distinct because they produce vertigo or a spinning sensation along with hearing changes, often without much ear pain at all.

Middle ear infections sometimes resolve on their own as the underlying cold clears and the eustachian tube reopens. Outer ear infections generally need topical treatment applied directly to the canal. Inner ear infections are managed based on whether the cause is viral or bacterial, with most viral cases improving over days to weeks as the inflammation subsides.