The right medicine for an infection depends entirely on what’s causing it. Bacterial infections require antibiotics, viral infections may need antivirals, and fungal infections call for antifungals. Using the wrong type won’t help and can cause unnecessary side effects. Here’s how to understand which medicines treat which infections and what to expect from treatment.
Why the Type of Infection Matters
Infections fall into three main categories: bacterial, viral, and fungal. Each one is caused by a completely different type of organism, and medicines designed for one category don’t work against another. Antibiotics, for example, have zero effect on a virus like the flu. Taking them anyway contributes to antibiotic resistance, a growing global problem that makes bacterial infections harder to treat for everyone.
Your doctor can often distinguish between bacterial and viral infections through blood tests. Bacterial infections tend to produce much higher levels of inflammation markers in the blood. In one study, patients with bacterial infections had inflammation levels roughly six times higher than those with viral infections at the time of admission. White blood cell counts also run higher with bacterial infections, typically around 11.3 billion per liter compared to about 6.9 billion for viral ones. These numbers, combined with your symptoms and physical exam, help determine the right treatment path.
Antibiotics for Bacterial Infections
Antibiotics are prescription medicines that kill bacteria or stop them from multiplying. There are more than a dozen major classes, and each one works against specific types of bacteria. The most commonly prescribed groups include penicillins, cephalosporins, macrolides (like azithromycin), and fluoroquinolones. Your doctor chooses based on the suspected bacteria and the location of the infection.
Sometimes doctors start with a broad-spectrum antibiotic, one that covers many types of bacteria, while waiting for lab results that identify the exact culprit. Once results come back, they may switch you to a more targeted drug. For severe infections, or infections caused by multiple bacteria, a combination of antibiotics is sometimes necessary.
Most people start to notice improvement within the first few days of treatment. Clinical signs of improvement, like reduced fever and less pain, generally appear within three to five days when the antibiotic is working. At the biological level, common bacteria like E. coli can be cleared in two to four days, while tougher organisms like Staphylococcus aureus may take four to nine days. If you don’t feel noticeably better by day three, that’s a strong signal the current antibiotic isn’t effective, and your doctor may need to adjust treatment.
Antibiotics do come with side effects. The most common ones are nausea, diarrhea, dizziness, rash, and yeast infections. These are frequent enough that one in five medication-related emergency room visits are caused by antibiotic reactions. Finishing your full prescribed course, even after you feel better, helps ensure the bacteria are fully cleared and reduces the chance of resistance developing.
Antivirals for Viral Infections
Most viral infections, including common colds, resolve on their own without prescription medicine. Your immune system handles the job. But certain viruses, particularly influenza, benefit from antiviral drugs that shorten the illness and reduce severity.
For the flu specifically, the CDC recommends four approved antiviral medications. The most widely used is oseltamivir (Tamiflu), available as a pill or liquid. A newer option, baloxavir (Xofluza), requires only a single dose. Two others, zanamivir (an inhaled powder) and peramivir (given by IV), are available for people who can’t take pills. All of these work best when started within the first 48 hours of symptoms.
Other viral infections have their own specific antivirals. Herpes and shingles are treated with a separate class of drugs, and HIV requires a complex combination regimen. The key point is that antivirals are always virus-specific. There’s no general-purpose antiviral the way people sometimes think of antibiotics.
Antifungals for Fungal Infections
Fungal infections range from superficial skin conditions like athlete’s foot and ringworm to serious internal infections that affect the lungs or bloodstream. Treatment depends on where the infection is and how deep it goes.
For common skin infections, topical creams and ointments are the first choice. Terbinafine cream, for instance, is approved for athlete’s foot, jock itch, and ringworm. Many topical antifungals are available over the counter at pharmacies. For infections that go deeper, like fungal nail infections or scalp ringworm, oral antifungal pills are typically needed because creams can’t penetrate far enough. Oral terbinafine is commonly prescribed for stubborn nail fungus, while ketoconazole treats both surface-level and more serious systemic fungal infections like histoplasmosis and blastomycosis.
Fungal infections tend to take longer to clear than bacterial ones. A skin infection may resolve in a few weeks, but nail fungus can require months of oral medication before you see full results.
Over-the-Counter Medicines for Symptom Relief
Regardless of the infection type, over-the-counter pain relievers can help manage symptoms while your body or prescription medicine fights off the invader. Acetaminophen (Tylenol), ibuprofen (Advil), and aspirin all reduce fever, headache, muscle aches, sore throat pain, and sinus pressure. They work by blocking the production of inflammatory chemicals that sensitize your pain nerve endings.
These medicines treat symptoms, not the infection itself. They’re recognized as safe and effective by regulatory agencies worldwide when used as directed. For bacterial infections, they’re useful alongside antibiotics. For mild viral infections like colds, they may be the only treatment you need while waiting for the virus to run its course.
Why Antibiotics Don’t Work for Every Infection
One of the most important things to understand is that antibiotics only work against bacteria. Taking them for a viral infection like a cold or flu does nothing to help you recover faster. What it does do is expose your body’s normal bacteria to the drug, giving resistant strains an opportunity to thrive. The World Health Organization has flagged widespread resistance to common antibiotics as a serious and growing threat, calling on countries to align treatment guidelines with local resistance patterns and to use antibiotics only when genuinely needed.
Resistance is already making some previously reliable antibiotics ineffective. Staphylococcus aureus, a common cause of skin infections, was once easily treated with penicillin. Many strains are now resistant. When antibiotics stop working, infections become harder to treat, require stronger drugs with more side effects, and in some cases become dangerous. Using the right medicine for the right type of infection protects both you and the broader effectiveness of these drugs.

