You get an ear infection when germs — usually bacteria, sometimes viruses — travel into the space behind your eardrum and multiply there. That space is called the middle ear. Most of the time, the germs get in through the eustachian tube, a small channel that connects the back of your nose and throat to your middle ear. A cold, allergy, or sinus infection can swell that tube, trapping fluid in the middle ear, and that trapped fluid becomes a place where germs grow. Preventing ear infections mostly comes down to reducing the things that block that tube — colds, allergies, and smoke exposure — and to giving young children the feeding and vaccination advantages that lower their risk.
How Do You Get Ear Infections And How To Prevent Them?
The middle ear is normally filled with air. When the eustachian tube works properly, it opens briefly when you swallow or yawn, letting air in and fluid drain out. When that tube swells or gets blocked, the middle ear can no longer drain. Fluid builds up. Germs that were already sitting in the back of the nose and throat move into that warm, wet space and start to multiply.
This is why ear infections so often follow a cold. A cold inflames the lining of the nose and throat, and that inflammation spreads to the eustachian tube. The tube narrows. Fluid collects. An infection follows in some children and adults, though not all.
Children get ear infections far more often than adults. Their eustachian tubes are shorter, flatter, and more horizontal, so fluid drains less easily and germs travel a shorter distance. Their immune systems are also still developing. This anatomy explains why ear infections are one of the most common reasons young children see a doctor.
What Actually Causes an Ear Infection?
Most middle ear infections are bacterial. The two most common bacteria involved are Streptococcus pneumoniae and Haemophilus influenzae, along with a few others. Some ear infections are viral, and some are mixed. This matters because it explains why antibiotics do not help every case — they only work against bacteria.
It helps to separate two terms that get used loosely. A middle ear infection (acute otitis media) involves inflammation with signs of infection, such as a bulging eardrum. An ear infection with fluid that lingers but no active infection is different — fluid can stay in the middle ear for weeks after an infection clears, and that alone is not an active infection.
There is also a separate problem that is not a middle ear infection at all: swimmer’s ear (otitis externa). That is an infection of the skin of the ear canal, usually from water staying in the canal, and it is treated differently. The cause is different, the location is different, and prevention is different.
Why Are Children More Prone to Ear Infections?
Anatomy is the main reason. A young child’s eustachian tube is short and nearly level, which makes it easy for fluid and germs to reach the middle ear and hard for fluid to escape. As children grow, the tube lengthens and angles more steeply, and the frequency of infections typically drops.
Several other factors raise a child’s risk:
- Attending group childcare, which increases exposure to colds and other respiratory infections
- Exposure to secondhand smoke, which irritates the airways and the eustachian tube
- Bottle-feeding while lying flat, which can allow milk to pool near the eustachian tube opening
- Pacifier use, which some studies link to higher risk
- Season — ear infections are more common in fall and winter, when colds circulate
Breastfeeding is associated with a lower risk of ear infections in infancy. The evidence is strongest for exclusive breastfeeding in the early months, though the effect is modest and other factors play a role too.
What Raises the Risk in Adults?
Adults get ear infections too, just less often. In adults, the things that block the eustachian tube are usually the culprits: a bad cold, allergies, or sinus problems. Smoking and secondhand smoke exposure increase risk at any age.
Certain situations make ear problems more likely regardless of age. Air travel and rapid changes in air pressure can trap fluid or cause discomfort, especially if you are already congested. Having a cold while flying is a common trigger for ear pressure problems and sometimes infection.
In adults, recurring ear infections or persistent fluid in one ear deserve a medical look. It is uncommon for adults to have repeated ear infections without an underlying cause, and a doctor can check for things like eustachian tube dysfunction or other conditions.
What Are the Signs of an Ear Infection?
In older children and adults, an ear infection often causes ear pain, a feeling of fullness or pressure, and sometimes muffled hearing. Fluid behind the eardrum can make sounds seem dull. Fever may be present, especially with a bacterial infection.
In babies and young children who cannot describe pain, the signs are less direct. A child may pull or tug at the ear, act fussy, sleep poorly, or run a fever. Pulling at the ear alone is not reliable — teething and other discomforts cause it too. A doctor confirms a middle ear infection by looking at the eardrum and seeing signs like bulging or redness, not by symptoms alone.
This is an important point: many things that look like ear infections are not. A child with a cold and mild ear discomfort may simply have fluid and inflammation that will clear on its own. That is why the diagnosis usually needs a clinician’s eyes on the eardrum.
How Can You Prevent Ear Infections?
You cannot prevent every ear infection, but the steps below target the things that most often block the eustachian tube or raise risk. The evidence for each varies, so treat these as reasonable measures rather than guarantees.
Reduce smoke exposure. Keep homes and cars smoke-free. Secondhand smoke irritates the airways and is one of the more consistent risk factors linked to ear infections in children.
Feed infants upright. Hold a baby semi-upright during bottle-feeding rather than letting them drink while lying flat. This reduces the chance of milk pooling near the eustachian tube opening.
Keep vaccinations current. Vaccines against pneumococcal bacteria and influenza reduce the risk of the infections that often lead to ear infections. The pneumococcal conjugate vaccine in particular has been associated with fewer ear infections in young children.
Manage allergies and colds. Treating allergies and congestion can help keep the eustachian tube from staying blocked. There is no strong evidence that over-the-counter cold medicines prevent ear infections, and they are not recommended for young children.
Breastfeed where possible. Breastfeeding in infancy is associated with a modestly lower risk of ear infections.
Avoid unnecessary antibiotics. Using antibiotics only when needed helps limit resistant bacteria, which makes future infections harder to treat.
For children in group childcare, some exposure to colds is unavoidable, and that is part of how the immune system matures. The goal is not a germ-free childhood but reducing the factors you can control.
What About Swimmer’s Ear?
Swimmer’s ear is a different problem with different prevention. It comes from moisture trapped in the ear canal, which softens the skin and lets bacteria or fungi grow. It causes itching, pain when the outer ear is pulled, and sometimes discharge — not the deep pressure of a middle ear infection.
To reduce the risk, keep ears dry after swimming or bathing. Tilt the head to let water drain, and dry the outer ear gently with a towel. Do not insert cotton swabs or fingers into the canal, which can scratch the skin and make infection more likely. Some clinicians recommend a few drops of a diluted alcohol-and-vinegar solution after swimming for people prone to swimmer’s ear, but this should not be used if you have a perforated eardrum or ear tubes. Ask a doctor before trying it.
When Should You See a Doctor?
See a doctor for severe ear pain, high fever, symptoms that last more than a couple of days, fluid or discharge from the ear, or hearing loss that does not improve. In young children, persistent fussiness, poor feeding, or trouble sleeping along with a fever warrants a check.
Get urgent care for swelling or redness behind the ear, a stiff neck, severe headache, or confusion alongside an ear problem. These can signal a more serious infection that needs prompt treatment.
For most uncomplicated ear infections, some cases are watched for a short period before antibiotics, especially in older children with mild symptoms. This “watchful waiting” approach is supported by clinical guidance for selected cases, but it is a decision for a clinician, not a default for everyone. Infants and children with severe symptoms usually need treatment sooner.
Frequently Asked Questions
Are ear infections contagious?
The ear infection itself is not contagious, but the cold or respiratory virus that leads to it can spread from person to person. Good handwashing and covering coughs help limit the spread of those triggering infections.
Can you prevent ear infections in adults?
Adults can lower risk by treating allergies and colds, avoiding smoke, and managing congestion before air travel. There is no proven method that prevents all adult ear infections.
Do ear infections go away on their own?
Some mild ear infections clear without antibiotics, especially in older children and adults, which is why some cases are watched briefly before treatment. Infants and people with severe symptoms usually need a clinician’s care.
Does putting oil or cotton in the ear help prevent infection?
No. Putting oil, cotton, or objects in the ear canal is not a proven prevention method and can trap moisture or cause injury. Keep the canal clean and dry and let a doctor advise on anything inserted.

