Ear infections are usually bacterial, but not always. Studies of middle ear fluid in children with acute ear infections find bacteria present in roughly 55 to 92 percent of cases, depending on the study. Viruses account for a smaller share, appearing in about 4 to 26 percent of samples, and sometimes bacteria and viruses show up together. In 16 to 25 percent of cases, no pathogen is detected at all.
So while bacteria are the most common cause, the full picture is more nuanced. The type of ear infection matters too, since middle ear infections and outer ear infections involve different bacteria and different treatments entirely.
Most Middle Ear Infections Are Bacterial
The classic ear infection, especially in children, is acute otitis media, an infection of the middle ear (the space behind the eardrum). The two bacteria most responsible are Streptococcus pneumoniae and nontypeable Haemophilus influenzae. These bacteria are common residents of the nose and throat, and they migrate to the middle ear when conditions are right.
That migration usually starts with a cold. A viral upper respiratory infection causes swelling and congestion in the nasal passages and the eustachian tubes, which are the narrow channels connecting the back of the throat to the middle ear. When those tubes swell shut, fluid gets trapped behind the eardrum. Bacteria that were already present in the nose and throat now have a warm, stagnant pool of fluid to multiply in. This is why ear infections so often follow a few days after a cold begins. The virus sets the stage, but bacteria typically drive the actual ear infection.
In some cases, a virus alone causes the infection. Viral ear infections tend to be milder, but from the outside, the symptoms can look identical: ear pain, fussiness in young children, and sometimes fever. There’s no simple way for a parent to tell whether bacteria or a virus is responsible, and even doctors can’t always distinguish them without testing the fluid itself (which is rarely done outside of research settings).
Outer Ear Infections Are a Different Story
Swimmer’s ear (otitis externa) is an infection of the ear canal, the passage leading from outside to the eardrum. This type is also overwhelmingly bacterial, but the bacteria involved are different. Pseudomonas aeruginosa and Staphylococcus aureus are the most common culprits. These thrive in moist environments, which is why swimmer’s ear tends to follow swimming, bathing, or prolonged moisture exposure.
The distinction between swimmer’s ear and a middle ear infection matters because the treatments are completely different. Swimmer’s ear is treated with antibiotic ear drops applied directly into the canal. A middle ear infection sits behind the eardrum, so drops can’t reach it. Kids with a middle ear infection often have pain that worsens when lying down and may develop vomiting, diarrhea, or loss of appetite. Swimmer’s ear pain typically gets worse when you tug on the outer ear or press on the small flap in front of the ear canal.
Why Antibiotics Aren’t Always Prescribed
Even though bacteria cause most middle ear infections, antibiotics aren’t automatic. Many ear infections clear up on their own within one to two weeks without treatment. Current guidelines from the American Academy of Pediatrics recommend a “watchful waiting” approach for many children, reserving antibiotics for situations where they’re most clearly needed.
For children 6 to 23 months old, immediate antibiotics are recommended when symptoms are severe (fever at or above 102.2°F, moderate to severe ear pain, or pain lasting 48 hours or more) or when both ears are infected. If only one ear is affected and symptoms are mild, watchful waiting is preferred. For children 2 years and older, watchful waiting is the recommended first step for any ear infection without severe symptoms, whether one ear or both are involved.
Watchful waiting means monitoring symptoms for 48 to 72 hours. If pain and fever improve during that window, antibiotics aren’t needed. If symptoms persist or get worse, antibiotics are started at that point. This approach works because the immune system successfully fights off many ear infections, including some bacterial ones, without help. It also avoids unnecessary antibiotic exposure, which contributes to resistance over time.
What You Can Expect During Recovery
With or without antibiotics, most ear infections improve within the first couple of days. Full resolution typically takes one to two weeks. Pain is usually the most immediate concern, and over-the-counter pain relievers are the primary way to manage it during the early days regardless of whether antibiotics are prescribed.
Fluid behind the eardrum often lingers after the infection itself has resolved. This is normal and can temporarily muffle hearing. In most children, that fluid drains on its own within a few weeks to a few months. Persistent fluid or recurrent infections (three or more episodes in six months) sometimes lead to a conversation about ear tubes, small devices placed in the eardrum to help the middle ear drain more effectively.
When the Cause Is Unclear
One thing that surprises many parents is that in roughly one out of every five or six ear infections, no bacteria or virus is detected at all. The ear is inflamed, fluid is present, and the child is in pain, but standard testing doesn’t identify a clear pathogen. This likely reflects the limitations of testing rather than the absence of an infectious cause, but it’s a reminder that ear infections aren’t as straightforward as “bacterial versus viral.”
In practical terms, the distinction between bacterial and viral doesn’t usually change what happens next. Your child’s age, the severity of symptoms, and whether one or both ears are affected are the factors that guide treatment decisions. The good news is that most ear infections, whatever their cause, resolve without complications.

