Treatment depends on what caused the infection and how severe it is

Most ear infections fall into two categories: middle ear infections (behind the eardrum) and outer ear infections (in the ear canal). A middle ear infection caused by a virus often clears on its own within a few days to two weeks, even without treatment. A bacterial middle ear infection typically requires antibiotics. Outer ear infections almost always need treatment, usually antibiotic drops. Your doctor determines which type you have by looking in your ear with an otoscope and sometimes testing fluid if the eardrum has ruptured.

The first step is almost always pain management and watchful waiting. Most people start with over-the-counter pain relievers like ibuprofen or acetaminophen, a warm compress held against the ear, and keeping the ear dry. If symptoms don't improve in 48 to 72 hours, or if they worsen, you see a doctor. For children under six months or anyone with severe pain, fever above 102°F, or signs the infection is spreading, medical care should not wait.

Key Takeaways

  • Viral middle ear infections often resolve without antibiotics, but bacterial infections need them—your doctor determines which through examination.
  • Pain relief with ibuprofen or acetaminophen and a warm compress is the starting point for most ear infections.
  • Antibiotic ear drops treat outer ear infections; oral antibiotics treat bacterial middle ear infections.
  • Antibiotics take 48 to 72 hours to show improvement, and finishing the full course matters even if you feel better sooner.
  • Decongestants and nasal saline rinses may help middle ear infections by draining fluid, though evidence for their benefit is mixed.

When antibiotics are prescribed and how they work

A bacterial middle ear infection is treated with oral antibiotics—usually amoxicillin as the first choice, or azithromycin if you're allergic to penicillin. Your doctor prescribes a course lasting 7 to 10 days. Antibiotics work by killing the bacteria or stopping them from multiplying, but they don't work on viruses. This is why doctors often wait 48 to 72 hours before prescribing: if the infection is viral, antibiotics won't help and unnecessary antibiotics contribute to antibiotic resistance.

Outer ear infections (swimmer's ear) are treated with antibiotic ear drops, often containing neomycin, polymyxin B, and hydrocortisone. These drops go directly into the ear canal and work faster than oral antibiotics for this type of infection. If the ear canal is very swollen, your doctor may insert a wick—a small piece of gauze—to help the drops reach deeper into the canal. The wick stays in for 24 to 48 hours and is then removed.

It's important to finish the full course of antibiotics even if you feel better after a few days. Stopping early can allow bacteria to survive and multiply again, leading to a recurrent or resistant infection. If symptoms don't improve after three days of antibiotics, or if they worsen, contact your doctor—the infection may not respond to that particular antibiotic, or it may not be bacterial.

Pain relief and comfort measures at home

Over-the-counter pain relievers are the foundation of ear infection treatment. Ibuprofen (Advil, Motrin) and acetaminophen (Tylenol) both reduce pain and fever. Ibuprofen often works better for ear pain because it also reduces inflammation. Follow the dosing on the package for your age and weight; for children, use the pediatric formulation and dosing chart.

A warm compress—a heating pad on low, a warm (not hot) damp cloth, or a warm water bottle wrapped in a towel—held against the ear for 10 to 20 minutes several times a day reduces pain significantly. Some people find relief by lying on the affected side to help fluid drain, though this doesn't work for everyone. Keep the ear dry: avoid swimming and showers until the infection clears, and use a cotton ball lightly coated with petroleum jelly if you must wash your hair.

Numbing ear drops containing benzocaine (like Auralgan) can provide temporary relief, though they don't treat the infection itself. They're useful for the first day or two while waiting to see a doctor or for antibiotics to take effect. Do not use them if the eardrum has ruptured, which your doctor can confirm.

Decongestants and nasal rinses for middle ear infections

Middle ear infections often happen because fluid builds up behind the eardrum when the Eustachian tube—the narrow passage connecting the middle ear to the back of the nose—becomes blocked. Decongestants like pseudoephedrine (Sudafed) shrink swollen nasal tissue and may help the tube drain. However, research on whether decongestants actually speed recovery from ear infections is mixed, and they don't work for everyone.

Saline nasal rinses (using a neti pot or squeeze bottle with salt water) can help clear nasal congestion and may support drainage. They're safe for most people and have fewer side effects than decongestants. Some doctors recommend them as a first step before trying decongestants. Neither decongestants nor rinses replace antibiotics if a bacterial infection is present—they're supportive measures only.

When to see a doctor and what to expect

See a doctor if ear pain lasts more than 48 hours, if fever is present, if you see fluid or pus draining from the ear, or if you have hearing loss. Also seek care if you have severe pain, if you're very young (under six months), or if you have a weakened immune system. For children, see a doctor if symptoms don't improve in 48 to 72 hours or if the child is in significant pain.

At the appointment, your doctor will look in your ear with an otoscope to see if the eardrum is red or bulging (signs of middle ear infection) or if the ear canal is inflamed (outer ear infection). They may test your hearing, especially if this is a recurrent infection. If fluid is draining, they may send a sample to the lab to identify the bacteria and test which antibiotics it responds to—this takes a few days but helps if the first antibiotic doesn't work.

What happens if the infection doesn't improve

If symptoms persist after three days of antibiotics, or if they worsen at any point, contact your doctor. The bacteria may be resistant to the antibiotic prescribed, or the infection may be viral (in which case antibiotics won't help anyway). Your doctor may switch to a different antibiotic or, if the infection is viral, recommend continuing supportive care while the immune system clears it.

Rarely, an untreated or severe middle ear infection can lead to complications like a ruptured eardrum, mastoiditis (infection of the bone behind the ear), or meningitis. These are serious but uncommon. A ruptured eardrum often heals on its own within weeks, though it may cause temporary hearing loss and requires keeping the ear dry. If you have severe headache, stiff neck, high fever, or dizziness along with ear infection symptoms, seek immediate care.

Recurrent ear infections and prevention

Some people have repeated ear infections—more than three in six months or more than four in a year. For children, this sometimes leads to discussion of ear tubes (small tubes placed through the eardrum to allow fluid to drain). For adults, recurrent infections warrant investigation into underlying causes like allergies, chronic sinus problems, or Eustachian tube dysfunction.

Prevention strategies include avoiding smoke and air pollution, managing allergies, not smoking, and for children, limiting pacifier use and avoiding secondhand smoke. Breastfeeding infants for at least six months reduces ear infection risk. Keeping ears dry after swimming or showering, and avoiding inserting objects into the ear, prevents outer ear infections. These measures don't prevent all infections but reduce frequency and severity.

Frequently Asked Questions

How long does it take for an ear infection to go away?

Viral middle ear infections often clear in 7 to 14 days without treatment. Bacterial infections treated with antibiotics typically improve within 48 to 72 hours, with complete resolution in 7 to 10 days. Outer ear infections treated with drops usually improve within 3 to 5 days. Pain often decreases faster than the infection fully clears.

Can I treat an ear infection without seeing a doctor?

Pain relief and warm compresses help manage symptoms, and many viral infections resolve on their own. However, you can't tell whether an infection is viral or bacterial without a doctor's examination. If pain lasts more than 48 hours, fever is present, or you see drainage, medical evaluation is needed to determine if antibiotics are necessary.

Is it safe to use over-the-counter numbing drops?

Numbing drops containing benzocaine are safe for temporary pain relief in outer ear infections and uncomplicated middle ear infections. Do not use them if the eardrum has ruptured (your doctor can confirm this). They reduce pain but don't treat the infection, so they're a short-term comfort measure while waiting for antibiotics to work.

What should I do if antibiotics aren't working?

Contact your doctor after three days if symptoms haven't improved or are worsening. The bacteria may be resistant to that antibiotic, or the infection may be viral. Your doctor can switch antibiotics, test the bacteria to see which drugs it responds to, or adjust the treatment plan based on what they find on re-examination.

Can I fly or swim with an ear infection?

Flying with an ear infection is uncomfortable because pressure changes in the cabin make pain worse and can slow healing. Avoid flying if possible until the infection clears. Swimming should be avoided because water in the ear can worsen the infection or introduce new bacteria. Wait until pain is gone and any drainage has stopped before returning to water activities.