An ear infection usually starts when bacteria or viruses get trapped behind the eardrum in a small, fluid-filled space. The most common type — a middle ear infection — typically begins after a cold or flu. That illness causes swelling in the nose and throat, which blocks the narrow tube connecting the middle ear to the back of the throat. Fluid builds up, germs multiply in that warm puddle, and the result is pain, pressure, and sometimes fever.
What Actually Happens Inside the Ear During an Infection?
To understand how an ear gets infected, you need a quick look at the anatomy. The ear has three parts, and each can become infected for different reasons.
The outer ear is the canal you can see and touch. The middle ear sits behind the eardrum — a small air-filled chamber that holds three tiny bones. The inner ear is deeper still and handles balance and hearing signals.
Most infections people mean when they say “ear infection” happen in the middle ear. That space is supposed to stay air-filled and drained. It connects to the back of the throat through a channel called the eustachian tube. This tube does two jobs: it lets air in to equalize pressure, and it lets fluid drain out.
When that tube swells shut, the middle ear becomes a closed box. Cells lining the ear keep making a little fluid, but nothing can drain. Bacteria that normally live harmlessly in the nose and throat get into that trapped fluid and multiply. Pressure builds against the eardrum. That pressure — not the germs themselves — is a big part of why ear infections hurt so much.
The sequence is reliable and well understood:
- A cold, flu, or allergy swells the lining of the nose and throat.
- The eustachian tube narrows or closes.
- Fluid collects in the middle ear and cannot drain.
- Bacteria or viruses grow in the trapped fluid.
- Pressure and inflammation build, causing pain and sometimes fever.
How Does Ear Get Infected After a Cold or Flu?
Viruses set the stage, and bacteria often take advantage. This is the single most common path to a middle ear infection.
When you catch a cold, the lining of your nose and throat becomes inflamed and produces more mucus. That swelling spreads to the eustachian tube, which is lined with the same kind of tissue. A swollen tube cannot open and close the way it should, so the middle ear stops ventilating and draining.
Here is a detail many people miss. The fluid that builds up is not automatically infected. At first it is just sterile fluid — a condition doctors call otitis media with effusion. It can cause a plugged, full feeling and mild hearing muffling without any infection at all. It often clears on its own. Only when germs multiply in that fluid does it become a true infection, called acute otitis media.
That distinction matters. Fluid behind the eardrum is common and frequently harmless. Infection means the fluid now contains active germs and the tissue is inflamed.
Why Are Children More Prone to Ear Infections?
Children get middle ear infections far more often than adults, and the reason is largely mechanical.
A child’s eustachian tube is shorter, narrower, and more horizontal than an adult’s. Think of it like a drain that runs nearly sideways instead of sloping downward. Fluid has a harder time moving out, and germs have an easier time moving in. As children grow, the tube lengthens and tilts downward, which is one reason infections become less frequent with age.
Other factors that raise risk in young children include:
- Larger adenoids, which sit near the eustachian tube opening and can block it
- Immature immune defenses against common respiratory germs
- Time in group childcare, which increases exposure to cold viruses
- Bottle-feeding while lying flat, which can let fluid pool near the tube
- Exposure to secondhand smoke, which irritates the airway lining
Breastfeeding is associated with a lower risk of ear infections in infancy, though researchers continue to study how much of that is due to milk itself versus other factors. The evidence points in a favorable direction but is not absolute.
Can an Ear Get Infected From Water or a Scratch?
Yes — but this is a different infection in a different place. It is called otitis externa, or swimmer’s ear, and it affects the outer canal rather than the middle ear.
The outer ear canal is lined with thin skin. When that skin gets scratched, or when it stays damp for long periods, bacteria or fungi can grow in the canal itself. Water exposure — from swimming, showering, or humid climates — softens the skin and creates conditions germs like. Inserting cotton swabs, fingernails, or earbuds can break the skin and let germs in.
The symptoms differ from a middle ear infection in useful ways:
- Swimmer’s ear pain gets worse when you tug on the outer ear or press the small flap in front of it.
- Middle ear infection pain is felt deeper and is often worse when lying down.
- Swimmer’s ear may itch and drain fluid from the canal.
- Middle ear infection often comes with fever and muffled hearing.
These two conditions need different treatment, which is why a doctor examines the ear rather than guessing.
What Raises Your Risk of an Ear Infection?
Certain conditions make the middle ear more likely to become infected. Most of them work by interfering with the eustachian tube.
- Age. Children between 6 months and 2 years are the most affected group.
- Recent respiratory illness. Colds and flu are the leading trigger.
- Allergies. Allergic swelling can block the tube just like a cold does.
- Smoke exposure. Secondhand smoke irritates and swells the airway lining.
- Anatomy. Some people simply have eustachian tubes that drain poorly.
- Immune suppression. Weaker immune defenses make it easier for germs to take hold.
- Bottle-feeding while lying down. This position can let milk pool near the tube opening.
Not everyone with these risk factors gets an infection, and plenty of people with none of them do. Risk factors shift the odds — they do not decide the outcome.
How Do You Know It Is an Ear Infection?
The classic signs are ear pain, a plugged or full feeling, muffled hearing, and sometimes fever. In young children who cannot describe pain, the clues are often indirect: tugging at the ear, crying more than usual, trouble sleeping, or being fussy when lying flat.
Only a clinician can confirm a middle ear infection, and this is where accuracy matters. Diagnosis is made by looking at the eardrum with a device called an otoscope. A doctor looks for a bulging eardrum, redness, and fluid behind it. Redness alone is not enough — eardrums can look red from crying or fever without any infection present. That is one reason home diagnosis is unreliable.
Many mild middle ear infections clear without antibiotics. This is why guidelines in many countries recommend watching and waiting for a short period in certain children before prescribing, especially when symptoms are mild. The decision depends on age, severity, and whether fluid is clearly present. This is a conversation to have with a clinician, not a rule to apply on your own.
Can You Prevent an Ear Infection?
You cannot prevent every ear infection, but you can lower the odds by reducing the triggers that block the eustachian tube.
- Treat colds and allergies so nasal swelling does not spread to the tube.
- Keep cigarette smoke away from children.
- Feed infants upright rather than lying flat.
- Keep up with recommended vaccinations, which reduce some of the respiratory infections that lead to ear infections.
- Avoid inserting objects into the ear canal, which prevents outer ear infections.
- Dry the ears after swimming if you are prone to swimmer’s ear.
None of these steps is a guarantee. They reduce risk rather than eliminate it. Ear infections are common, and having one does not mean you did something wrong.
If you or your child has severe ear pain, high fever, drainage from the ear, or symptoms that last more than a couple of days, see a clinician. Some ear infections need treatment, and some resolve on their own — a medical exam is the only reliable way to tell which situation you are in.
Frequently Asked Questions
How does an ear infection start?
It usually starts when a cold or allergy swells the eustachian tube, trapping fluid in the middle ear where germs multiply. The trapped fluid and pressure cause the pain and inflammation.
Can an ear infection go away on its own?
Many mild middle ear infections clear without antibiotics, which is why some guidelines recommend a short watch-and-wait period. Whether yours will depends on age, severity, and what the exam shows, so a clinician should make that call.
Is an ear infection contagious?
The infection itself is not contagious, but the cold viruses that often trigger it are. That is why ear infections can cluster in households and childcare settings.
How long does an ear infection last?
Symptoms often improve within a few days, though fluid behind the eardrum can linger for weeks and muffle hearing during that time. Persistent or worsening symptoms should be checked by a clinician.

