How you treat an infection depends entirely on what’s causing it. Bacteria, viruses, and fungi each require different approaches, and using the wrong one (like antibiotics for a cold) won’t help and can cause harm. Most minor infections resolve with a combination of the right medication and basic supportive care like rest, hydration, and fever management. Here’s what works for each type and what to watch for.
Bacterial vs. Viral: Why It Matters
Antibiotics kill bacteria or stop them from growing. They do nothing against viruses. This distinction is the single most important thing to understand about treating infections, because taking antibiotics for a viral illness contributes to antibiotic resistance without providing any benefit.
Antiviral medications work differently. Rather than killing the virus directly, most antivirals stop a virus from copying itself or block it from entering and leaving your cells. Because of this, antivirals often need your immune system to finish the job. That’s why staying hydrated, sleeping enough, and managing your fever all matter even when you’re on medication.
Treating Bacterial Infections
Bacterial infections are treated with antibiotics, and the specific type your doctor prescribes depends on the bacteria involved. Some antibiotics destroy the bacterial cell wall, causing the cell to burst. Others block bacteria from making the proteins they need to survive, and still others prevent bacteria from copying their DNA. Your doctor chooses the right class based on the type of infection, the likely bacteria causing it, and local resistance patterns.
How long you’ll take antibiotics varies by infection. A straightforward urinary tract infection in women typically requires 3 to 5 days of treatment. Strep throat usually calls for 5 to 10 days, depending on the antibiotic and your risk factors. Finishing the full course matters, even if you feel better after a few days, because stopping early can leave behind bacteria that are harder to kill next time.
For uncomplicated skin infections like cellulitis, 5 days of antibiotics is often as effective as a 10-day course. Your doctor may also tell you to elevate the affected area, which speeds healing by draining swelling and inflammatory fluid away from the site. Treating any underlying condition that made you vulnerable in the first place, like athlete’s foot or a skin wound, is equally important for preventing the infection from returning.
Treating Viral Infections
Most viral infections, including the common cold and many stomach bugs, have no specific antiviral treatment. Your immune system handles them on its own, and treatment focuses on managing symptoms while you recover.
Some viruses do have targeted antivirals. Herpes viruses (including cold sores, genital herpes, and shingles) are treated with medications that slip into the virus’s DNA during replication and stop it from copying itself. Influenza can be treated with antivirals that block the virus from escaping infected cells, but these work best when started within the first 48 hours of symptoms. Hepatitis B and C have specific antiviral regimens that may last months. HIV is managed with lifelong antiviral therapy.
The key with viral infections is timing. For flu in particular, the sooner you start treatment, the more effective it is. If you suspect the flu and you’re in a high-risk group (older adults, young children, pregnant women, or people with chronic health conditions), contact your doctor quickly rather than waiting to see if you improve on your own.
Treating Fungal Infections
Fungal infections range from mild skin conditions like athlete’s foot and ringworm to serious lung or bloodstream infections. Surface-level fungal infections are typically treated with topical creams, ointments, or medicated shampoos. These work well when the fungus is limited to skin, nails, or mucous membranes.
Deeper or more widespread fungal infections require oral or even intravenous antifungal medications. Fungal lung infections, for example, need oral antifungals. Depending on the severity, treatment can last months or even years. Nail fungus is a common example of a technically “minor” infection that requires a long treatment course, often 6 to 12 weeks of oral medication, because the drug needs to grow out with the new nail.
Caring for Infected Wounds at Home
For a small infected cut, scrape, or boil, home care can often resolve the problem before it needs antibiotics. Clean the area gently, keep it covered with a dry dressing, and watch for signs that it’s worsening. Small boils respond well to warm, moist compresses, which promote natural drainage.
If a skin abscess forms, it typically needs to be drained by a healthcare provider. Antibiotics alone usually aren’t enough for abscesses because the medication can’t penetrate the walled-off pocket of pus effectively. After drainage, a simple dry dressing is usually all that’s needed. Antibiotics are added only if you have significant surrounding redness spreading outward, fever, multiple abscesses, or a weakened immune system.
Signs that a skin infection has outgrown home care include expanding redness, red streaks moving away from the wound, increasing warmth and swelling, pus, or fever. These suggest the infection is spreading into surrounding tissue and needs professional treatment.
Managing Fever and Dehydration
Fever is your body’s way of fighting infection, and mild fevers don’t always need to be treated. But when fever makes you miserable or climbs high enough to cause concern, over-the-counter options help. Acetaminophen and ibuprofen both reduce fever. Adults should not exceed 4,000 milligrams of acetaminophen in 24 hours. For children under 12, dosing should be determined by a doctor based on weight.
Dehydration is one of the most common complications of infections that cause fever, vomiting, or diarrhea. Drinking water helps, but when you’ve lost significant fluid, plain water doesn’t replace the salts your body needs. The WHO recommends a simple oral rehydration solution: 8 level teaspoons of sugar and 1 level teaspoon of salt dissolved in 1 liter of water. This combination matches what your intestines absorb most efficiently and can prevent a trip to the emergency room for IV fluids.
Sip the solution steadily rather than gulping it. If you’re vomiting, take small sips every few minutes rather than large amounts at once. For most adults with mild to moderate dehydration from a stomach bug or fever, this approach works well.
Recovery Timelines for Common Infections
Knowing how long an infection should take to improve helps you gauge whether your treatment is working. Most uncomplicated UTIs improve within 1 to 3 days of starting antibiotics, even though you’ll finish the full 3- to 5-day course. Strep throat typically feels significantly better within 24 to 48 hours of starting treatment. The flu, with or without antivirals, generally runs its course in 5 to 7 days, though fatigue can linger for a week or two after.
Skin infections like cellulitis should show improvement within 2 to 3 days of starting antibiotics. If redness continues to expand after 48 hours of treatment, that’s a sign the antibiotic may not be covering the right bacteria, and you should follow up with your doctor.
When an Infection Becomes an Emergency
Sepsis occurs when your body’s response to an infection spirals out of control and begins damaging your own organs. It can develop from any type of infection, including a UTI, pneumonia, or skin infection. Confusion, rapid shallow breathing, unexplained sweating, lightheadedness, and shivering are warning signs.
Septic shock, the most dangerous progression, causes an inability to stand, extreme drowsiness or difficulty staying awake, and severe confusion. These symptoms require emergency care immediately. Sepsis progresses fast, and early treatment dramatically improves survival. If someone with a known infection suddenly becomes confused or starts breathing rapidly, call emergency services rather than waiting to see if it passes.